@sippulse/niva-sdk 0.1.0-rc.7 → 0.1.0-rc.9

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.
@@ -10,6 +10,7 @@ export type CallAnalyseId = `ca_${string}`;
10
10
  export type CallRecordId = `call_${string}`;
11
11
  export type CallEventId = `cev_${string}`;
12
12
  export type ChannelId = `ch_${string}`;
13
+ export type ConnectorId = `conn_${string}`;
13
14
  export type ContactId = `ct_${string}`;
14
15
  export type CallTranscriptionId = `ctr_${string}`;
15
16
  export type DialerAttemptId = `datt_${string}`;
@@ -68,7 +69,7 @@ export type AiGetBudgetOutput = {
68
69
  *
69
70
  * Returns the org's current SipPulse AI project budget status (limits and consumption). Requires the ai module and the ai:read scope.
70
71
  */
71
- export type AiGetBudgetErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
72
+ export type AiGetBudgetErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
72
73
  /**
73
74
  * ai.getBudgetOverview input.
74
75
  *
@@ -151,7 +152,7 @@ export type AiGetBudgetOverviewOutput = {
151
152
  *
152
153
  * Returns the current SipPulse AI budget status and percentage-only composition for both budget windows. Breakdown failures are returned as null so the status remains usable. Requires the ai module and the ai:read scope.
153
154
  */
154
- export type AiGetBudgetOverviewErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
155
+ export type AiGetBudgetOverviewErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
155
156
  /**
156
157
  * ai.getCallAnalyses input.
157
158
  *
@@ -215,7 +216,7 @@ export type AiGetCallAnalysesOutput = {
215
216
  *
216
217
  * Returns the custom-analysis results already generated for a call as a plain array (empty when none). Read-only historical data — served even after the AI module is downgraded. Requires the call_record:read scope.
217
218
  */
218
- export type AiGetCallAnalysesErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
219
+ export type AiGetCallAnalysesErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
219
220
  /**
220
221
  * ai.getTranscription input.
221
222
  *
@@ -275,7 +276,7 @@ export type AiGetTranscriptionOutput = {
275
276
  *
276
277
  * 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.
277
278
  */
278
- export type AiGetTranscriptionErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
279
+ export type AiGetTranscriptionErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
279
280
  /**
280
281
  * ai.getUsage input.
281
282
  *
@@ -309,7 +310,7 @@ export interface AiGetUsageOutput {
309
310
  *
310
311
  * Returns the org's usage metrics for the current billing period (calls, minutes, STT/TTS, LLM and embedding tokens, recording storage, webhook deliveries and peak concurrency). Requires the ai module and the ai:read scope.
311
312
  */
312
- export type AiGetUsageErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
313
+ export type AiGetUsageErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
313
314
  /**
314
315
  * ai.listAgents input.
315
316
  *
@@ -336,7 +337,7 @@ export type AiListAgentsOutput = {
336
337
  *
337
338
  * Returns all of the org's SipPulse AI agents as a plain array. Each item carries sip_inbound_enabled, which tells whether that agent can answer a voice call — agents without it are listed but cannot be dialed yet. Errors with AI_NOT_CONFIGURED when the org has no usable SipPulse AI credentials, and with AI_UNREACHABLE when the upstream listing fails. Requires the ai module and the ai:read scope.
338
339
  */
339
- export type AiListAgentsErrorCode = "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
340
+ export type AiListAgentsErrorCode = "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
340
341
  /**
341
342
  * ai.listStructuredAnalyses input.
342
343
  *
@@ -387,7 +388,7 @@ export interface AiListStructuredAnalysesOutput {
387
388
  *
388
389
  * Returns the organization-scoped structured-analysis catalog from SipPulse AI. The catalog is cached briefly and a stale copy is returned when the upstream service is unavailable. Set refresh to force a manual refresh.
389
390
  */
390
- export type AiListStructuredAnalysesErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
391
+ export type AiListStructuredAnalysesErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
391
392
  /**
392
393
  * ai.runAnalysis input.
393
394
  *
@@ -462,7 +463,7 @@ export type AiRunAnalysisOutput = {
462
463
  *
463
464
  * Runs a SipPulse AI structured analysis against the call's transcription and returns the persisted result. The call.analysis_completed webhook contains one item for this manual execution. The legacy templateId input is accepted only during migration. Requires the ai module and the ai:execute scope.
464
465
  */
465
- export type AiRunAnalysisErrorCode = "FEATURE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "TRANSCRIPTION_NOT_FOUND" | "UNAUTHORIZED";
466
+ export type AiRunAnalysisErrorCode = "FEATURE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "TRANSCRIPTION_NOT_FOUND" | "UNAUTHORIZED";
466
467
  /**
467
468
  * ai.runConfiguredAnalyses input.
468
469
  *
@@ -531,7 +532,7 @@ export type AiRunConfiguredAnalysesOutput = {
531
532
  *
532
533
  * Runs every custom analysis configured by the call's visual plan or organization defaults in parallel, waits for all of them, persists each result independently, and emits one call.analysis_completed webhook containing every completed or failed item. Requires the ai module and the ai:execute scope.
533
534
  */
534
- export type AiRunConfiguredAnalysesErrorCode = "FEATURE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "TRANSCRIPTION_NOT_FOUND" | "UNAUTHORIZED";
535
+ export type AiRunConfiguredAnalysesErrorCode = "FEATURE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "TRANSCRIPTION_NOT_FOUND" | "UNAUTHORIZED";
535
536
  /**
536
537
  * ai.runSpeechAnalytics input.
537
538
  *
@@ -561,7 +562,7 @@ export interface AiRunSpeechAnalyticsOutput {
561
562
  *
562
563
  * 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.
563
564
  */
564
- export type AiRunSpeechAnalyticsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
565
+ export type AiRunSpeechAnalyticsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
565
566
  /**
566
567
  * ai.searchTranscriptions input.
567
568
  *
@@ -631,7 +632,7 @@ export type AiSearchTranscriptionsOutput = {
631
632
  *
632
633
  * 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.
633
634
  */
634
- export type AiSearchTranscriptionsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
635
+ export type AiSearchTranscriptionsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
635
636
  /**
636
637
  * ai.transcribeNow input.
637
638
  *
@@ -701,7 +702,7 @@ export type AiTranscribeNowOutput = {
701
702
  *
702
703
  * 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.
703
704
  */
704
- export type AiTranscribeNowErrorCode = "AI_NOT_CONFIGURED" | "CALL_HAS_NO_TRANSCRIPTION_WINDOW" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "NODE_NOT_IN_TRACE" | "NODE_RANGE_INVALID" | "RANGE_HAS_NO_AUDIO" | "RANGE_NOT_APPLICABLE" | "RECORDING_NOT_FOUND" | "UNAUTHORIZED";
705
+ export type AiTranscribeNowErrorCode = "AI_NOT_CONFIGURED" | "CALL_HAS_NO_TRANSCRIPTION_WINDOW" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "NODE_NOT_IN_TRACE" | "NODE_RANGE_INVALID" | "RANGE_HAS_NO_AUDIO" | "RANGE_NOT_APPLICABLE" | "RECORDING_NOT_FOUND" | "UNAUTHORIZED";
705
706
  /**
706
707
  * apiKeys.create input.
707
708
  *
@@ -744,7 +745,7 @@ export interface ApiKeysCreateOutput {
744
745
  *
745
746
  * Creates an API key with the given scopes and optional expiry. The response includes plain_key, the full secret shown only once here; store it immediately. Requires the api_key:create scope.
746
747
  */
747
- export type ApiKeysCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
748
+ export type ApiKeysCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
748
749
  /**
749
750
  * apiKeys.finishRotation input.
750
751
  *
@@ -769,7 +770,7 @@ export interface ApiKeysFinishRotationOutput {
769
770
  *
770
771
  * Invalidates the previous API key secret immediately, before its grace period expires. Requires the api_key:revoke scope.
771
772
  */
772
- export type ApiKeysFinishRotationErrorCode = "API_KEY_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
773
+ export type ApiKeysFinishRotationErrorCode = "API_KEY_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
773
774
  /**
774
775
  * apiKeys.get input.
775
776
  *
@@ -804,7 +805,7 @@ export interface ApiKeysGetOutput {
804
805
  *
805
806
  * Fetches one API key's metadata (name, prefix, scopes, timestamps) by id. An unknown or cross-org id returns 404 API_KEY_NOT_FOUND. The secret key material is never exposed. Requires the api_key:read scope.
806
807
  */
807
- export type ApiKeysGetErrorCode = "API_KEY_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
808
+ export type ApiKeysGetErrorCode = "API_KEY_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
808
809
  /**
809
810
  * apiKeys.list input.
810
811
  *
@@ -880,7 +881,7 @@ export interface ApiKeysListOutput {
880
881
  *
881
882
  * Returns the org's API keys as a paginated envelope. Only key metadata (name, prefix, scopes, timestamps) is returned; the secret key material is never exposed after creation. Requires the api_key:read scope.
882
883
  */
883
- export type ApiKeysListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
884
+ export type ApiKeysListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
884
885
  /**
885
886
  * apiKeys.revoke input.
886
887
  *
@@ -905,7 +906,7 @@ export interface ApiKeysRevokeOutput {
905
906
  *
906
907
  * Revokes an API key so it can no longer authenticate, returning { success: true }. An unknown id returns 404 API_KEY_NOT_FOUND. Requires the api_key:revoke scope.
907
908
  */
908
- export type ApiKeysRevokeErrorCode = "API_KEY_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
909
+ export type ApiKeysRevokeErrorCode = "API_KEY_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
909
910
  /**
910
911
  * apiKeys.rotate input.
911
912
  *
@@ -951,7 +952,7 @@ export interface ApiKeysRotateOutput {
951
952
  *
952
953
  * Replaces an API key secret in place, preserving its id, name and scopes. By default the previous secret stops working immediately; an optional grace period keeps it valid for up to 168 hours. Requires the api_key:create scope.
953
954
  */
954
- export type ApiKeysRotateErrorCode = "API_KEY_EXPIRED" | "API_KEY_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "SELF_ROTATION_FORBIDDEN" | "UNAUTHORIZED";
955
+ export type ApiKeysRotateErrorCode = "API_KEY_EXPIRED" | "API_KEY_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "SELF_ROTATION_FORBIDDEN" | "UNAUTHORIZED";
955
956
  /**
956
957
  * apiKeys.update input.
957
958
  *
@@ -993,7 +994,7 @@ export interface ApiKeysUpdateOutput {
993
994
  *
994
995
  * Changes the key's name and/or scopes. The secret is untouched, and the new values apply to the next request the key makes; use rotate to replace the secret. An unknown or cross-org id returns 404 API_KEY_NOT_FOUND. Requires the api_key:create scope.
995
996
  */
996
- export type ApiKeysUpdateErrorCode = "API_KEY_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
997
+ export type ApiKeysUpdateErrorCode = "API_KEY_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
997
998
  /**
998
999
  * apiKeys.usage input.
999
1000
  *
@@ -1041,7 +1042,7 @@ export interface ApiKeysUsageOutput {
1041
1042
  *
1042
1043
  * Returns which routes this API key called, how many times per day and when each route was last used, over the last `days` days (1 to 90, default 30). An unknown or cross-org id returns 404 API_KEY_NOT_FOUND. Requires the api_key:read scope.
1043
1044
  */
1044
- export type ApiKeysUsageErrorCode = "API_KEY_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
1045
+ export type ApiKeysUsageErrorCode = "API_KEY_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
1045
1046
  /**
1046
1047
  * archive.listDeleted input.
1047
1048
  *
@@ -1114,7 +1115,7 @@ export interface ArchiveListDeletedOutput {
1114
1115
  *
1115
1116
  * Lists archived (soft-deleted) items of a single `entity_type` in a paginated envelope.
1116
1117
  */
1117
- export type ArchiveListDeletedErrorCode = "ARCHIVE_ITEM_IN_USE" | "ARCHIVE_ITEM_NOT_FOUND" | "ARCHIVE_RESTORE_CONFLICT" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1118
+ export type ArchiveListDeletedErrorCode = "ARCHIVE_ITEM_IN_USE" | "ARCHIVE_ITEM_NOT_FOUND" | "ARCHIVE_RESTORE_CONFLICT" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1118
1119
  /**
1119
1120
  * archive.purge input.
1120
1121
  *
@@ -1143,7 +1144,7 @@ export interface ArchivePurgeOutput {
1143
1144
  *
1144
1145
  * 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.
1145
1146
  */
1146
- export type ArchivePurgeErrorCode = "ARCHIVE_ITEM_IN_USE" | "ARCHIVE_ITEM_NOT_FOUND" | "ARCHIVE_RESTORE_CONFLICT" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1147
+ export type ArchivePurgeErrorCode = "ARCHIVE_ITEM_IN_USE" | "ARCHIVE_ITEM_NOT_FOUND" | "ARCHIVE_RESTORE_CONFLICT" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1147
1148
  /**
1148
1149
  * archive.restore input.
1149
1150
  *
@@ -1174,7 +1175,7 @@ export interface ArchiveRestoreOutput {
1174
1175
  *
1175
1176
  * 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. Returns 404 ARCHIVE_ITEM_NOT_FOUND when the item is absent and 409 ARCHIVE_RESTORE_CONFLICT when the restored channel is unavailable.
1176
1177
  */
1177
- export type ArchiveRestoreErrorCode = "ARCHIVE_ITEM_IN_USE" | "ARCHIVE_ITEM_NOT_FOUND" | "ARCHIVE_RESTORE_CONFLICT" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1178
+ export type ArchiveRestoreErrorCode = "ARCHIVE_ITEM_IN_USE" | "ARCHIVE_ITEM_NOT_FOUND" | "ARCHIVE_RESTORE_CONFLICT" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1178
1179
  /**
1179
1180
  * archive.summary input.
1180
1181
  *
@@ -1195,7 +1196,7 @@ export type ArchiveSummaryOutput = {
1195
1196
  *
1196
1197
  * Returns per-entity-type counts of archived (soft-deleted) items for the organization.
1197
1198
  */
1198
- export type ArchiveSummaryErrorCode = "ARCHIVE_ITEM_IN_USE" | "ARCHIVE_ITEM_NOT_FOUND" | "ARCHIVE_RESTORE_CONFLICT" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1199
+ export type ArchiveSummaryErrorCode = "ARCHIVE_ITEM_IN_USE" | "ARCHIVE_ITEM_NOT_FOUND" | "ARCHIVE_RESTORE_CONFLICT" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1199
1200
  /**
1200
1201
  * audioFiles.content input.
1201
1202
  *
@@ -1212,7 +1213,7 @@ export interface AudioFilesContentInput {
1212
1213
  *
1213
1214
  * Returns the raw audio bytes of the stored file (read into memory in full, not streamed — the library caps files at 10 MB), with the format's media type and the original filename. Supports HTTP Range requests (206 Partial Content) for seeking. Returns 404 AUDIO_FILE_NOT_FOUND when the file does not exist or belongs to another organization, and 404 AUDIO_FILE_CONTENT_MISSING when the record exists but its bytes are gone from storage.
1214
1215
  */
1215
- export type AudioFilesContentErrorCode = "AUDIO_FILE_CONTENT_MISSING" | "AUDIO_FILE_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
1216
+ export type AudioFilesContentErrorCode = "AUDIO_FILE_CONTENT_MISSING" | "AUDIO_FILE_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
1216
1217
  /**
1217
1218
  * audioFiles.delete input.
1218
1219
  *
@@ -1237,7 +1238,7 @@ export interface AudioFilesDeleteOutput {
1237
1238
  *
1238
1239
  * Deletes an audio file. Returns 409 AUDIO_FILE_IN_USE (with the referencing plan names) when the file is still used by one or more plans, and 404 AUDIO_FILE_NOT_FOUND when it does not exist. Returns `{ success: true }` on success.
1239
1240
  */
1240
- export type AudioFilesDeleteErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "AUDIO_FILE_IN_USE" | "AUDIO_FILE_NOT_FOUND" | "AUDIO_FILE_NOT_TTS" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "TTS_VOICE_UNAVAILABLE" | "UNAUTHORIZED";
1241
+ export type AudioFilesDeleteErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "AUDIO_FILE_IN_USE" | "AUDIO_FILE_NOT_FOUND" | "AUDIO_FILE_NOT_TTS" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "TTS_VOICE_UNAVAILABLE" | "UNAUTHORIZED";
1241
1242
  /**
1242
1243
  * audioFiles.generateTts input.
1243
1244
  *
@@ -1321,7 +1322,7 @@ export interface AudioFilesGenerateTtsOutput {
1321
1322
  *
1322
1323
  * Synthesizes speech from the supplied text and stores it as a new TTS audio file. When `voice` and `model` are omitted they are resolved from the organization's language and active provider tier. Returns 422 TTS_VOICE_UNAVAILABLE when no voice is available for that language.
1323
1324
  */
1324
- export type AudioFilesGenerateTtsErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "AUDIO_FILE_IN_USE" | "AUDIO_FILE_NOT_FOUND" | "AUDIO_FILE_NOT_TTS" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "TTS_VOICE_UNAVAILABLE" | "UNAUTHORIZED";
1325
+ export type AudioFilesGenerateTtsErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "AUDIO_FILE_IN_USE" | "AUDIO_FILE_NOT_FOUND" | "AUDIO_FILE_NOT_TTS" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "TTS_VOICE_UNAVAILABLE" | "UNAUTHORIZED";
1325
1326
  /**
1326
1327
  * audioFiles.getById input.
1327
1328
  *
@@ -1387,7 +1388,7 @@ export type AudioFilesGetByIdOutput = {
1387
1388
  *
1388
1389
  * Returns the audio file, or `null` (HTTP 200) when it does not exist or belongs to another organization.
1389
1390
  */
1390
- export type AudioFilesGetByIdErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "AUDIO_FILE_IN_USE" | "AUDIO_FILE_NOT_FOUND" | "AUDIO_FILE_NOT_TTS" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "TTS_VOICE_UNAVAILABLE" | "UNAUTHORIZED";
1391
+ export type AudioFilesGetByIdErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "AUDIO_FILE_IN_USE" | "AUDIO_FILE_NOT_FOUND" | "AUDIO_FILE_NOT_TTS" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "TTS_VOICE_UNAVAILABLE" | "UNAUTHORIZED";
1391
1392
  /**
1392
1393
  * audioFiles.list input.
1393
1394
  *
@@ -1494,7 +1495,7 @@ export interface AudioFilesListOutput {
1494
1495
  *
1495
1496
  * Returns a paginated list of the organization's audio files (uploaded recordings and TTS-generated clips).
1496
1497
  */
1497
- export type AudioFilesListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
1498
+ export type AudioFilesListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
1498
1499
  /**
1499
1500
  * audioFiles.previewUrl input.
1500
1501
  *
@@ -1513,7 +1514,7 @@ export interface AudioFilesPreviewUrlInput {
1513
1514
  *
1514
1515
  * Fetches and normalizes a static HTTP(S) audio URL and returns the WAV bytes used for telephony playback.
1515
1516
  */
1516
- export type AudioFilesPreviewUrlErrorCode = "AUDIO_URL_BLOCKED" | "AUDIO_URL_DECODE_FAILED" | "AUDIO_URL_HTTP_ERROR" | "AUDIO_URL_INVALID" | "AUDIO_URL_TIMEOUT" | "AUDIO_URL_TOO_LARGE" | "AUDIO_URL_UNREACHABLE" | "AUDIO_URL_UNSUPPORTED_FORMAT" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
1517
+ export type AudioFilesPreviewUrlErrorCode = "AUDIO_URL_BLOCKED" | "AUDIO_URL_DECODE_FAILED" | "AUDIO_URL_HTTP_ERROR" | "AUDIO_URL_INVALID" | "AUDIO_URL_TIMEOUT" | "AUDIO_URL_TOO_LARGE" | "AUDIO_URL_UNREACHABLE" | "AUDIO_URL_UNSUPPORTED_FORMAT" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
1517
1518
  /**
1518
1519
  * audioFiles.regenerateTts input.
1519
1520
  *
@@ -1595,7 +1596,7 @@ export interface AudioFilesRegenerateTtsOutput {
1595
1596
  *
1596
1597
  * Re-synthesizes the audio content of an existing TTS audio file, optionally with new text/voice/model. Returns 422 AUDIO_FILE_NOT_TTS when the file was not TTS-generated, 422 TTS_VOICE_UNAVAILABLE when no voice is available, and 404 AUDIO_FILE_NOT_FOUND when it does not exist.
1597
1598
  */
1598
- export type AudioFilesRegenerateTtsErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "AUDIO_FILE_IN_USE" | "AUDIO_FILE_NOT_FOUND" | "AUDIO_FILE_NOT_TTS" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "TTS_VOICE_UNAVAILABLE" | "UNAUTHORIZED";
1599
+ export type AudioFilesRegenerateTtsErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "AUDIO_FILE_IN_USE" | "AUDIO_FILE_NOT_FOUND" | "AUDIO_FILE_NOT_TTS" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "TTS_VOICE_UNAVAILABLE" | "UNAUTHORIZED";
1599
1600
  /**
1600
1601
  * audioFiles.update input.
1601
1602
  *
@@ -1667,7 +1668,7 @@ export interface AudioFilesUpdateOutput {
1667
1668
  *
1668
1669
  * Updates the audio file's name and/or description only; the audio content itself is not changed. Returns 404 AUDIO_FILE_NOT_FOUND when it does not exist.
1669
1670
  */
1670
- export type AudioFilesUpdateErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "AUDIO_FILE_IN_USE" | "AUDIO_FILE_NOT_FOUND" | "AUDIO_FILE_NOT_TTS" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "TTS_VOICE_UNAVAILABLE" | "UNAUTHORIZED";
1671
+ export type AudioFilesUpdateErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "AUDIO_FILE_IN_USE" | "AUDIO_FILE_NOT_FOUND" | "AUDIO_FILE_NOT_TTS" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "TTS_VOICE_UNAVAILABLE" | "UNAUTHORIZED";
1671
1672
  /**
1672
1673
  * audioFiles.upload input.
1673
1674
  *
@@ -1743,7 +1744,7 @@ export interface AudioFilesUploadOutput {
1743
1744
  *
1744
1745
  * Stores an uploaded audio file (multipart/form-data) in the organization's audio library. Accepts wav, mp3, ogg, flac and m4a up to 10 MB. Returns 400 AUDIO_FILE_INVALID_FORMAT for other extensions and 413 AUDIO_FILE_TOO_LARGE above the size cap.
1745
1746
  */
1746
- export type AudioFilesUploadErrorCode = "AUDIO_FILE_INVALID_FORMAT" | "AUDIO_FILE_TOO_LARGE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
1747
+ export type AudioFilesUploadErrorCode = "AUDIO_FILE_INVALID_FORMAT" | "AUDIO_FILE_TOO_LARGE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
1747
1748
  /**
1748
1749
  * audit.count input.
1749
1750
  *
@@ -1792,7 +1793,7 @@ export interface AuditCountOutput {
1792
1793
  *
1793
1794
  * Returns the exact number of audit-log entries matching the same filters GET /audit-logs accepts, without paging any of them. It exists so a cursor-paginated listing can show a total without paying for count(*) on every page. Requires the enterprise module - callers without it receive 403 MODULE_DISABLED.
1794
1795
  */
1795
- export type AuditCountErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1796
+ export type AuditCountErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1796
1797
  /**
1797
1798
  * audit.exportCsv input.
1798
1799
  *
@@ -1848,7 +1849,7 @@ export interface AuditExportCsvEvent {
1848
1849
  *
1849
1850
  * Streams the matching audit-log entries as Server-Sent Events (`text/event-stream`), one flat JSON object per row - NOT a text/csv file; the caller joins the cells itself. Repeat the multi-valued filters with brackets (`?actions[]=create&actions[]=delete`); a single bracket-less occurrence is read as a string and rejected. Capped at the 100000 most recent entries, and the stream terminates with a done event { emitted, truncated }. Requires the enterprise module - callers without it receive 403 MODULE_DISABLED.
1850
1851
  */
1851
- export type AuditExportCsvErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1852
+ export type AuditExportCsvErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1852
1853
  /**
1853
1854
  * audit.list input.
1854
1855
  *
@@ -1956,7 +1957,7 @@ export interface AuditListOutput {
1956
1957
  *
1957
1958
  * Lists audit-log entries in a paginated envelope, filterable by action, resource type and date range. A date-only dateFrom/dateTo bound (YYYY-MM-DD) means that calendar day in the organization's timezone, with dateTo fully included; an ISO timestamp is an absolute instant. Deep pages should use keyset pagination: feed next_cursor back as cursor, which ignores page and returns null total/total_pages - ask GET /audit-logs/count for the number. Requires the enterprise module — callers without it receive 403 MODULE_DISABLED.
1958
1959
  */
1959
- export type AuditListErrorCode = "AUDIT_CURSOR_INVALID" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1960
+ export type AuditListErrorCode = "AUDIT_CURSOR_INVALID" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
1960
1961
  /**
1961
1962
  * callRecords.count input.
1962
1963
  *
@@ -2079,7 +2080,7 @@ export interface CallRecordsCountOutput {
2079
2080
  *
2080
2081
  * 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.
2081
2082
  */
2082
- export type CallRecordsCountErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
2083
+ export type CallRecordsCountErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
2083
2084
  /**
2084
2085
  * callRecords.exportCsv input.
2085
2086
  *
@@ -2147,7 +2148,7 @@ export type CallRecordsExportCsvEvent = Record<string, string | number | boolean
2147
2148
  *
2148
2149
  * Streams the matching call records as Server-Sent Events (`text/event-stream`), one JSON object per row - NOT a text/csv file; the separator only tells the UI how to join the cells when it builds the file client-side. Each row carries exactly the requested `columns` keys, plus the per-node event columns when `includeEvents` is true (one row per node visited). Repeat `columns` with brackets to select more than one (`?columns[]=started_at&columns[]=status`); omitting it yields the basic column set. `date_from` and `date_to` are always required and at most 90 days apart, and the scan stops at the 100000 most recent matching calls. The stream terminates with a done event { emitted, truncated }. Metadata filters use exact JSON containment and REST clients send them as `metadata[key]=value`; all supplied pairs must match. Setting `apply_table_filters=false` ignores every other filter and keeps only that window. The SIP transport fields (`sip_call_id`, `remote_addr`, `user_agent`) are not selectable here, matching the omission on `GET /call-records/{call_record_id}`. Requires the call_record:export permission (call_record:read API-key scope).
2149
2150
  */
2150
- export type CallRecordsExportCsvErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "INVALID_EXPORT_COLUMNS" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
2151
+ export type CallRecordsExportCsvErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "INVALID_EXPORT_COLUMNS" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
2151
2152
  /**
2152
2153
  * callRecords.getById input.
2153
2154
  *
@@ -2363,7 +2364,7 @@ export type CallRecordsGetByIdOutput = {
2363
2364
  *
2364
2365
  * Fetches a single call record by id, including persisted answer-recognition results. A missing or cross-org id returns 200 with a null body. Sensitive fields (SIP call id, remote address, user agent, raw recording path) are omitted from the output. Requires the call_record:read scope.
2365
2366
  */
2366
- export type CallRecordsGetByIdErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
2367
+ export type CallRecordsGetByIdErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
2367
2368
  /**
2368
2369
  * callRecords.getEvents input.
2369
2370
  *
@@ -2424,7 +2425,7 @@ export type CallRecordsGetEventsOutput = {
2424
2425
  *
2425
2426
  * Returns the timeline of events for one call as a plain array (naturally bounded, not paginated). An unknown or cross-org call yields an empty array. Requires the call_record:read scope.
2426
2427
  */
2427
- export type CallRecordsGetEventsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
2428
+ export type CallRecordsGetEventsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
2428
2429
  /**
2429
2430
  * callRecords.getRecordingUrl input.
2430
2431
  *
@@ -2457,7 +2458,7 @@ export interface CallRecordsGetRecordingUrlOutput {
2457
2458
  *
2458
2459
  * 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.
2459
2460
  */
2460
- export type CallRecordsGetRecordingUrlErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
2461
+ export type CallRecordsGetRecordingUrlErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
2461
2462
  /**
2462
2463
  * callRecords.list input.
2463
2464
  *
@@ -2771,7 +2772,7 @@ export interface CallRecordsListOutput {
2771
2772
  *
2772
2773
  * Returns the org's call records as a paginated envelope. Supports a rich filter set (exact call_record_id TypeID, exact FreeSWITCH channel uuid, exact SIP sip_call_id, date range, plan, channel, status, caller search, duration bounds, recording/transcription/error presence, channel type, dialer vs direct origin and exact metadata containment). The three call identifier filters use equality on their indexed columns and do not use substring search. A date-only date_from/date_to bound (YYYY-MM-DD) means that calendar day in the organization's timezone, with date_to fully included; an ISO timestamp is an absolute instant. Deep pages should use keyset pagination: feed next_cursor back as cursor, which ignores page and returns null total/total_pages - ask GET /call-records/count for the number. Metadata filters require every supplied key/value pair to match; REST clients send them as metadata[key]=value, for example metadata[id_correlacao]=dispatch_482913. Requires the call_record:read scope.
2773
2774
  */
2774
- export type CallRecordsListErrorCode = "CALL_RECORD_CURSOR_INVALID" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
2775
+ export type CallRecordsListErrorCode = "CALL_RECORD_CURSOR_INVALID" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
2775
2776
  /**
2776
2777
  * callRecords.purgeVoiceContent input.
2777
2778
  *
@@ -2822,7 +2823,7 @@ export interface CallRecordsPurgeVoiceContentOutput {
2822
2823
  *
2823
2824
  * Permanently erases the voice content of a single call (LGPD right to erasure): recording file, transcription and its embeddings. The operational CDR (timings, SIP result, billing, event timeline and opaque metadata) survives and existing analyses are kept but detached from the erased transcription. Do not put personal data in metadata; voice purge does not erase it. Irreversible and idempotent - a repeated purge succeeds with zero counts. Requires the call_record:purge permission and, for API keys, the call_record:write scope. Returns 404 CALL_NOT_FOUND for an unknown or cross-org call.
2824
2825
  */
2825
- export type CallRecordsPurgeVoiceContentErrorCode = "CALL_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
2826
+ export type CallRecordsPurgeVoiceContentErrorCode = "CALL_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
2826
2827
  /**
2827
2828
  * callRecords.recordingContent input.
2828
2829
  *
@@ -2839,7 +2840,7 @@ export interface CallRecordsRecordingContentInput {
2839
2840
  *
2840
2841
  * 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.
2841
2842
  */
2842
- export type CallRecordsRecordingContentErrorCode = "CALL_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "RANGE_NOT_SATISFIABLE" | "RECORDING_CONTENT_MISSING" | "RECORDING_NOT_FOUND" | "UNAUTHORIZED";
2843
+ export type CallRecordsRecordingContentErrorCode = "CALL_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "RANGE_NOT_SATISFIABLE" | "RECORDING_CONTENT_MISSING" | "RECORDING_NOT_FOUND" | "UNAUTHORIZED";
2843
2844
  /**
2844
2845
  * callRecords.retryRecording input.
2845
2846
  *
@@ -2864,7 +2865,7 @@ export interface CallRecordsRetryRecordingOutput {
2864
2865
  *
2865
2866
  * 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.
2866
2867
  */
2867
- export type CallRecordsRetryRecordingErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
2868
+ export type CallRecordsRetryRecordingErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
2868
2869
  /**
2869
2870
  * calls.hangupCall input.
2870
2871
  *
@@ -2889,7 +2890,7 @@ export interface CallsHangupCallOutput {
2889
2890
  *
2890
2891
  * Ends an active voice or chat call owned by the authenticated organization. The path takes the call TypeID (call_...) - the same call_id returned by originate and carried by the CDRs and the call webhooks. A channel FreeSWITCH no longer knows about is dropped from the live state and reported with stale=true; a hangup the switch refuses answers 502 HANGUP_FAILED and leaves the call untouched. Requires the call:hangup permission and call:write scope.
2891
2892
  */
2892
- export type CallsHangupCallErrorCode = "ACTIVE_CALL_NOT_FOUND" | "ESL_CONNECTION_ERROR" | "FORBIDDEN" | "HANGUP_FAILED" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
2893
+ export type CallsHangupCallErrorCode = "ACTIVE_CALL_NOT_FOUND" | "ESL_CONNECTION_ERROR" | "FORBIDDEN" | "HANGUP_FAILED" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
2893
2894
  /**
2894
2895
  * calls.originate input.
2895
2896
  *
@@ -2994,7 +2995,7 @@ export interface CallsOriginateOutput {
2994
2995
  *
2995
2996
  * Places an outbound call that executes a published visual plan and returns its synchronous outcome. A 200 response does not mean the call was answered: read status. When the destination (or the carrier dialect) decides the outcome - any SIP 4xx or 6xx except 401, 403, 407 and 488 - the call answers 200 with status failed plus hangup_cause and sip_code. When the failure is ours - any SIP 5xx, the four codes above, or a failure without a SIP code - it answers 502 ORIGINATE_FAILED; with FreeSWITCH unreachable, 503. The legacy POST /originate/calls shape is deprecated, frozen, and keeps the old allowlist classification. Requires the call:originate scope.
2996
2997
  */
2997
- export type CallsOriginateErrorCode = "ESL_CONNECTION_ERROR" | "FEATURE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "ORIGINATE_CAPACITY_EXCEEDED" | "ORIGINATE_DESTINATION_NOT_ROUTABLE" | "ORIGINATE_FAILED" | "ORIGINATE_PLAN_NOT_PUBLISHED" | "PLAN_NOT_FOUND" | "UNAUTHORIZED";
2998
+ export type CallsOriginateErrorCode = "ESL_CONNECTION_ERROR" | "FEATURE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "ORIGINATE_CAPACITY_EXCEEDED" | "ORIGINATE_DESTINATION_NOT_ROUTABLE" | "ORIGINATE_FAILED" | "ORIGINATE_PLAN_NOT_PUBLISHED" | "PLAN_NOT_FOUND" | "UNAUTHORIZED";
2998
2999
  /**
2999
3000
  * capabilities.get input.
3000
3001
  *
@@ -3039,11 +3040,11 @@ export interface CapabilitiesGetOutput {
3039
3040
  *
3040
3041
  * Returns the compatibility snapshot SDKs handshake against: the server product and protocol versions, the sorted operationIds of the /api/v1 surface (deprecated operations and the token-authenticated public operations excluded), and per-module enablement for this deployment. Callable by any valid key regardless of its scopes, because every SDK handshakes here first; it exposes only versions, the public operation list and module enablement.
3041
3042
  */
3042
- export type CapabilitiesGetErrorCode = "FORBIDDEN" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
3043
+ export type CapabilitiesGetErrorCode = "FORBIDDEN" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
3043
3044
  /**
3044
3045
  * channels.create input.
3045
3046
  *
3046
- * Creates a channel of the given type. For WhatsApp and Telegram channels the supplied credentials are validated against the provider and webhook/SIP registration is performed as a side effect. A duplicate identifier returns 409 DUPLICATE_CHANNEL and invalid credentials return 422. Non-SIP channel types require the omnichannel module.
3047
+ * Creates a channel of the given type. WhatsApp channels require a `connector_id` that provides `channel.whatsapp`; the connector validates the phone number and supplies the business identity. Telegram credentials are validated against the provider and a webhook is registered as a side effect. A duplicate identifier returns 409 DUPLICATE_CHANNEL. Non-SIP channel types require the omnichannel module.
3047
3048
  */
3048
3049
  export interface ChannelsCreateInput {
3049
3050
  /**
@@ -3054,6 +3055,10 @@ export interface ChannelsCreateInput {
3054
3055
  * Channel-type-specific configuration object (e.g. Telegram bot token, WhatsApp phone number ID); validated against the schema for the given `channel_type`.
3055
3056
  */
3056
3057
  config?: Record<string, NivaJsonValue>;
3058
+ /**
3059
+ * TypeID of the connector (conn_...) that owns this channel's account; required for WhatsApp.
3060
+ */
3061
+ connector_id?: ConnectorId;
3057
3062
  description?: string;
3058
3063
  /**
3059
3064
  * Provider-facing identifier for the channel (e.g. SIP number); must be unique within the organization.
@@ -3078,34 +3083,48 @@ export interface ChannelsCreateInput {
3078
3083
  /**
3079
3084
  * channels.create output.
3080
3085
  *
3081
- * Creates a channel of the given type. For WhatsApp and Telegram channels the supplied credentials are validated against the provider and webhook/SIP registration is performed as a side effect. A duplicate identifier returns 409 DUPLICATE_CHANNEL and invalid credentials return 422. Non-SIP channel types require the omnichannel module.
3086
+ * Creates a channel of the given type. WhatsApp channels require a `connector_id` that provides `channel.whatsapp`; the connector validates the phone number and supplies the business identity. Telegram credentials are validated against the provider and a webhook is registered as a side effect. A duplicate identifier returns 409 DUPLICATE_CHANNEL. Non-SIP channel types require the omnichannel module.
3082
3087
  */
3083
3088
  export interface ChannelsCreateOutput {
3089
+ calls_7d: {
3090
+ daily: number[];
3091
+ /**
3092
+ * Calls and conversations in the last 7 days.
3093
+ */
3094
+ total: number;
3095
+ } | null;
3084
3096
  channel_type: string;
3085
3097
  config?: NivaJsonValue;
3098
+ connector_id: ConnectorId | null;
3086
3099
  created_at: string;
3087
3100
  description: string | null;
3088
3101
  id: ChannelId;
3089
3102
  identifier: string | null;
3090
3103
  is_active: boolean;
3104
+ last_call_at: string | null;
3091
3105
  name: string;
3092
3106
  schedule_id: ScheduleId | null;
3093
3107
  schedule_name: string | null;
3094
3108
  updated_at: string;
3109
+ /**
3110
+ * True when the linked plan's working draft differs from its published version by the editor's own rules. False when never published.
3111
+ */
3112
+ visual_plan_has_unpublished_changes: boolean;
3095
3113
  visual_plan_id: VisualPlanId | null;
3096
3114
  visual_plan_name: string | null;
3115
+ visual_plan_published_version: number | null;
3097
3116
  webhook_url: string | null;
3098
3117
  }
3099
3118
  /**
3100
3119
  * channels.create error codes.
3101
3120
  *
3102
- * Creates a channel of the given type. For WhatsApp and Telegram channels the supplied credentials are validated against the provider and webhook/SIP registration is performed as a side effect. A duplicate identifier returns 409 DUPLICATE_CHANNEL and invalid credentials return 422. Non-SIP channel types require the omnichannel module.
3121
+ * Creates a channel of the given type. WhatsApp channels require a `connector_id` that provides `channel.whatsapp`; the connector validates the phone number and supplies the business identity. Telegram credentials are validated against the provider and a webhook is registered as a side effect. A duplicate identifier returns 409 DUPLICATE_CHANNEL. Non-SIP channel types require the omnichannel module.
3103
3122
  */
3104
- export type ChannelsCreateErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_ACCESS_TOKEN_INVALID" | "CHANNEL_WHATSAPP_PHONE_NUMBER_NOT_FOUND" | "CHANNEL_WHATSAPP_SYNC_CONFIRMATION_REQUIRED" | "CHANNEL_WHATSAPP_WABA_INVALID" | "CHANNEL_WHATSAPP_WEBHOOK_SYNC_FAILED" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WHATSAPP_NOT_CONFIGURED";
3123
+ export type ChannelsCreateErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_CONNECTOR_NOT_ALLOWED" | "CHANNEL_CONNECTOR_REQUIRED" | "CHANNEL_CONNECTOR_UNAVAILABLE" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_NUMBER_NOT_IN_CONNECTOR" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
3105
3124
  /**
3106
3125
  * channels.delete input.
3107
3126
  *
3108
- * Soft-deletes (archives) the channel and runs its type-specific teardown hook (e.g. removing the Telegram webhook). The record is retained so it can later be restored. Returns `{ success: true }`.
3127
+ * Soft-deletes (archives) the channel and runs its type-specific teardown hook (e.g. removing the Telegram webhook, disabling WhatsApp SIP calling through the connector). The record is retained so it can later be restored. Returns `{ success: true }`.
3109
3128
  */
3110
3129
  export interface ChannelsDeleteInput {
3111
3130
  /**
@@ -3116,7 +3135,7 @@ export interface ChannelsDeleteInput {
3116
3135
  /**
3117
3136
  * channels.delete output.
3118
3137
  *
3119
- * Soft-deletes (archives) the channel and runs its type-specific teardown hook (e.g. removing the Telegram webhook). The record is retained so it can later be restored. Returns `{ success: true }`.
3138
+ * Soft-deletes (archives) the channel and runs its type-specific teardown hook (e.g. removing the Telegram webhook, disabling WhatsApp SIP calling through the connector). The record is retained so it can later be restored. Returns `{ success: true }`.
3120
3139
  */
3121
3140
  export interface ChannelsDeleteOutput {
3122
3141
  success: true;
@@ -3124,13 +3143,13 @@ export interface ChannelsDeleteOutput {
3124
3143
  /**
3125
3144
  * channels.delete error codes.
3126
3145
  *
3127
- * Soft-deletes (archives) the channel and runs its type-specific teardown hook (e.g. removing the Telegram webhook). The record is retained so it can later be restored. Returns `{ success: true }`.
3146
+ * Soft-deletes (archives) the channel and runs its type-specific teardown hook (e.g. removing the Telegram webhook, disabling WhatsApp SIP calling through the connector). The record is retained so it can later be restored. Returns `{ success: true }`.
3128
3147
  */
3129
- export type ChannelsDeleteErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_ACCESS_TOKEN_INVALID" | "CHANNEL_WHATSAPP_PHONE_NUMBER_NOT_FOUND" | "CHANNEL_WHATSAPP_SYNC_CONFIRMATION_REQUIRED" | "CHANNEL_WHATSAPP_WABA_INVALID" | "CHANNEL_WHATSAPP_WEBHOOK_SYNC_FAILED" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WHATSAPP_NOT_CONFIGURED";
3148
+ export type ChannelsDeleteErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_CONNECTOR_NOT_ALLOWED" | "CHANNEL_CONNECTOR_REQUIRED" | "CHANNEL_CONNECTOR_UNAVAILABLE" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_NUMBER_NOT_IN_CONNECTOR" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
3130
3149
  /**
3131
3150
  * channels.getById input.
3132
3151
  *
3133
- * 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.
3152
+ * 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.
3134
3153
  */
3135
3154
  export interface ChannelsGetByIdInput {
3136
3155
  /**
@@ -3141,34 +3160,48 @@ export interface ChannelsGetByIdInput {
3141
3160
  /**
3142
3161
  * channels.getById output.
3143
3162
  *
3144
- * 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.
3163
+ * 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.
3145
3164
  */
3146
3165
  export type ChannelsGetByIdOutput = {
3166
+ calls_7d: {
3167
+ daily: number[];
3168
+ /**
3169
+ * Calls and conversations in the last 7 days.
3170
+ */
3171
+ total: number;
3172
+ } | null;
3147
3173
  channel_type: string;
3148
3174
  config?: NivaJsonValue;
3175
+ connector_id: ConnectorId | null;
3149
3176
  created_at: string;
3150
3177
  description: string | null;
3151
3178
  id: ChannelId;
3152
3179
  identifier: string | null;
3153
3180
  is_active: boolean;
3181
+ last_call_at: string | null;
3154
3182
  name: string;
3155
3183
  schedule_id: ScheduleId | null;
3156
3184
  schedule_name: string | null;
3157
3185
  updated_at: string;
3186
+ /**
3187
+ * True when the linked plan's working draft differs from its published version by the editor's own rules. False when never published.
3188
+ */
3189
+ visual_plan_has_unpublished_changes: boolean;
3158
3190
  visual_plan_id: VisualPlanId | null;
3159
3191
  visual_plan_name: string | null;
3192
+ visual_plan_published_version: number | null;
3160
3193
  webhook_url: string | null;
3161
3194
  } | null;
3162
3195
  /**
3163
3196
  * channels.getById error codes.
3164
3197
  *
3165
- * 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.
3198
+ * 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.
3166
3199
  */
3167
- export type ChannelsGetByIdErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_ACCESS_TOKEN_INVALID" | "CHANNEL_WHATSAPP_PHONE_NUMBER_NOT_FOUND" | "CHANNEL_WHATSAPP_SYNC_CONFIRMATION_REQUIRED" | "CHANNEL_WHATSAPP_WABA_INVALID" | "CHANNEL_WHATSAPP_WEBHOOK_SYNC_FAILED" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WHATSAPP_NOT_CONFIGURED";
3200
+ export type ChannelsGetByIdErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_CONNECTOR_NOT_ALLOWED" | "CHANNEL_CONNECTOR_REQUIRED" | "CHANNEL_CONNECTOR_UNAVAILABLE" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_NUMBER_NOT_IN_CONNECTOR" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
3168
3201
  /**
3169
3202
  * channels.list input.
3170
3203
  *
3171
- * Returns a paginated list of the organization's channels, optionally filtered by `channel_type` and `is_active`. When the omnichannel module is disabled the result is restricted to SIP channels, and requesting a non-SIP `channel_type` returns 403 MODULE_DISABLED.
3204
+ * 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.
3172
3205
  */
3173
3206
  export interface ChannelsListInput {
3174
3207
  /**
@@ -3206,27 +3239,57 @@ export interface ChannelsListInput {
3206
3239
  * Filter by activation state; `true` returns only active channels.
3207
3240
  */
3208
3241
  is_active?: boolean;
3242
+ /**
3243
+ * When `true`, returns only channels with an alert: active channels with no plan, a never-published plan, or a failed WhatsApp webhook sync.
3244
+ */
3245
+ alert?: boolean;
3209
3246
  }
3210
3247
  /**
3211
3248
  * channels.list output.
3212
3249
  *
3213
- * Returns a paginated list of the organization's channels, optionally filtered by `channel_type` and `is_active`. When the omnichannel module is disabled the result is restricted to SIP channels, and requesting a non-SIP `channel_type` returns 403 MODULE_DISABLED.
3250
+ * 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.
3214
3251
  */
3215
3252
  export interface ChannelsListOutput {
3253
+ /**
3254
+ * Active channels under the current search, ignoring the other filters.
3255
+ */
3256
+ active_count: number;
3257
+ /**
3258
+ * Channels with an alert under the current search, ignoring the other filters: active channels with no plan, a never-published plan, or a failed WhatsApp webhook sync.
3259
+ */
3260
+ alert_count: number;
3261
+ /**
3262
+ * Channel counts by `channel_type` (`all` plus one entry per type with rows) under the current search, ignoring the type/status/alert filters.
3263
+ */
3264
+ counts: Record<string, number>;
3216
3265
  items: {
3266
+ calls_7d: {
3267
+ daily: number[];
3268
+ /**
3269
+ * Calls and conversations in the last 7 days.
3270
+ */
3271
+ total: number;
3272
+ } | null;
3217
3273
  channel_type: string;
3218
3274
  config?: NivaJsonValue;
3275
+ connector_id: ConnectorId | null;
3219
3276
  created_at: string;
3220
3277
  description: string | null;
3221
3278
  id: ChannelId;
3222
3279
  identifier: string | null;
3223
3280
  is_active: boolean;
3281
+ last_call_at: string | null;
3224
3282
  name: string;
3225
3283
  schedule_id: ScheduleId | null;
3226
3284
  schedule_name: string | null;
3227
3285
  updated_at: string;
3286
+ /**
3287
+ * True when the linked plan's working draft differs from its published version by the editor's own rules. False when never published.
3288
+ */
3289
+ visual_plan_has_unpublished_changes: boolean;
3228
3290
  visual_plan_id: VisualPlanId | null;
3229
3291
  visual_plan_name: string | null;
3292
+ visual_plan_published_version: number | null;
3230
3293
  webhook_url: string | null;
3231
3294
  }[];
3232
3295
  /**
@@ -3249,15 +3312,15 @@ export interface ChannelsListOutput {
3249
3312
  /**
3250
3313
  * channels.list error codes.
3251
3314
  *
3252
- * Returns a paginated list of the organization's channels, optionally filtered by `channel_type` and `is_active`. When the omnichannel module is disabled the result is restricted to SIP channels, and requesting a non-SIP `channel_type` returns 403 MODULE_DISABLED.
3315
+ * 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.
3253
3316
  */
3254
- export type ChannelsListErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_ACCESS_TOKEN_INVALID" | "CHANNEL_WHATSAPP_PHONE_NUMBER_NOT_FOUND" | "CHANNEL_WHATSAPP_SYNC_CONFIRMATION_REQUIRED" | "CHANNEL_WHATSAPP_WABA_INVALID" | "CHANNEL_WHATSAPP_WEBHOOK_SYNC_FAILED" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WHATSAPP_NOT_CONFIGURED";
3317
+ export type ChannelsListErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_CONNECTOR_NOT_ALLOWED" | "CHANNEL_CONNECTOR_REQUIRED" | "CHANNEL_CONNECTOR_UNAVAILABLE" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_NUMBER_NOT_IN_CONNECTOR" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
3255
3318
  /**
3256
3319
  * channels.testConnection input.
3257
3320
  *
3258
- * Validates the supplied provider credentials (Telegram bot token or WhatsApp phone number ID) against the provider without creating or modifying any channel. Requires the omnichannel module. Connectivity failures are returned as `{ ok: false, error }` rather than raised as errors.
3321
+ * Validates a Telegram bot token against the provider without creating or modifying any channel. Requires the omnichannel module. Connectivity failures are returned as `{ ok: false, error }` rather than raised as errors.
3259
3322
  */
3260
- export type ChannelsTestConnectionInput = {
3323
+ export interface ChannelsTestConnectionInput {
3261
3324
  channel_type: "telegram";
3262
3325
  config: {
3263
3326
  /**
@@ -3265,23 +3328,13 @@ export type ChannelsTestConnectionInput = {
3265
3328
  */
3266
3329
  bot_token: string;
3267
3330
  };
3268
- } | {
3269
- channel_type: "whatsapp";
3270
- config: {
3271
- /**
3272
- * minLength: 1
3273
- */
3274
- phone_number_id: string;
3275
- };
3276
- };
3331
+ }
3277
3332
  /**
3278
3333
  * channels.testConnection output.
3279
3334
  *
3280
- * Validates the supplied provider credentials (Telegram bot token or WhatsApp phone number ID) against the provider without creating or modifying any channel. Requires the omnichannel module. Connectivity failures are returned as `{ ok: false, error }` rather than raised as errors.
3335
+ * Validates a Telegram bot token against the provider without creating or modifying any channel. Requires the omnichannel module. Connectivity failures are returned as `{ ok: false, error }` rather than raised as errors.
3281
3336
  */
3282
3337
  export interface ChannelsTestConnectionOutput {
3283
- business_name?: string;
3284
- display_phone_number?: string;
3285
3338
  error?: string;
3286
3339
  ok: boolean;
3287
3340
  username?: string;
@@ -3289,9 +3342,9 @@ export interface ChannelsTestConnectionOutput {
3289
3342
  /**
3290
3343
  * channels.testConnection error codes.
3291
3344
  *
3292
- * Validates the supplied provider credentials (Telegram bot token or WhatsApp phone number ID) against the provider without creating or modifying any channel. Requires the omnichannel module. Connectivity failures are returned as `{ ok: false, error }` rather than raised as errors.
3345
+ * Validates a Telegram bot token against the provider without creating or modifying any channel. Requires the omnichannel module. Connectivity failures are returned as `{ ok: false, error }` rather than raised as errors.
3293
3346
  */
3294
- export type ChannelsTestConnectionErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_ACCESS_TOKEN_INVALID" | "CHANNEL_WHATSAPP_PHONE_NUMBER_NOT_FOUND" | "CHANNEL_WHATSAPP_SYNC_CONFIRMATION_REQUIRED" | "CHANNEL_WHATSAPP_WABA_INVALID" | "CHANNEL_WHATSAPP_WEBHOOK_SYNC_FAILED" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WHATSAPP_NOT_CONFIGURED";
3347
+ export type ChannelsTestConnectionErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_CONNECTOR_NOT_ALLOWED" | "CHANNEL_CONNECTOR_REQUIRED" | "CHANNEL_CONNECTOR_UNAVAILABLE" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_NUMBER_NOT_IN_CONNECTOR" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
3295
3348
  /**
3296
3349
  * channels.toggle input.
3297
3350
  *
@@ -3320,11 +3373,11 @@ export interface ChannelsToggleOutput {
3320
3373
  *
3321
3374
  * Sets the channel's `is_active` flag to the explicit value provided in `is_active` (an absolute set, not a relative flip). Returns `{ success: true }`.
3322
3375
  */
3323
- export type ChannelsToggleErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_ACCESS_TOKEN_INVALID" | "CHANNEL_WHATSAPP_PHONE_NUMBER_NOT_FOUND" | "CHANNEL_WHATSAPP_SYNC_CONFIRMATION_REQUIRED" | "CHANNEL_WHATSAPP_WABA_INVALID" | "CHANNEL_WHATSAPP_WEBHOOK_SYNC_FAILED" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WHATSAPP_NOT_CONFIGURED";
3376
+ export type ChannelsToggleErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_CONNECTOR_NOT_ALLOWED" | "CHANNEL_CONNECTOR_REQUIRED" | "CHANNEL_CONNECTOR_UNAVAILABLE" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_NUMBER_NOT_IN_CONNECTOR" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
3324
3377
  /**
3325
3378
  * channels.update input.
3326
3379
  *
3327
- * Partially updates a channel. Moving a channel that is already attached to a different plan returns 409 CHANNEL_ALREADY_ASSIGNED unless `reassign` is `true`. Changing WhatsApp integration fields re-validates the configuration against Meta and re-triggers webhook synchronization.
3380
+ * Partially updates a channel. Moving a channel that is already attached to a different plan returns 409 CHANNEL_ALREADY_ASSIGNED unless `reassign` is `true`. Changing a WhatsApp channel's connector or phone number re-validates the number against the connector.
3328
3381
  */
3329
3382
  export interface ChannelsUpdateInput {
3330
3383
  /**
@@ -3335,6 +3388,10 @@ export interface ChannelsUpdateInput {
3335
3388
  * Channel-type-specific configuration object; merged with the existing configuration.
3336
3389
  */
3337
3390
  config?: Record<string, NivaJsonValue>;
3391
+ /**
3392
+ * TypeID of the connector (conn_...) that owns this channel's account; only valid on WhatsApp channels.
3393
+ */
3394
+ connector_id?: ConnectorId;
3338
3395
  description?: string;
3339
3396
  /**
3340
3397
  * maxLength: 255
@@ -3356,30 +3413,44 @@ export interface ChannelsUpdateInput {
3356
3413
  /**
3357
3414
  * channels.update output.
3358
3415
  *
3359
- * Partially updates a channel. Moving a channel that is already attached to a different plan returns 409 CHANNEL_ALREADY_ASSIGNED unless `reassign` is `true`. Changing WhatsApp integration fields re-validates the configuration against Meta and re-triggers webhook synchronization.
3416
+ * Partially updates a channel. Moving a channel that is already attached to a different plan returns 409 CHANNEL_ALREADY_ASSIGNED unless `reassign` is `true`. Changing a WhatsApp channel's connector or phone number re-validates the number against the connector.
3360
3417
  */
3361
3418
  export interface ChannelsUpdateOutput {
3419
+ calls_7d: {
3420
+ daily: number[];
3421
+ /**
3422
+ * Calls and conversations in the last 7 days.
3423
+ */
3424
+ total: number;
3425
+ } | null;
3362
3426
  channel_type: string;
3363
3427
  config?: NivaJsonValue;
3428
+ connector_id: ConnectorId | null;
3364
3429
  created_at: string;
3365
3430
  description: string | null;
3366
3431
  id: ChannelId;
3367
3432
  identifier: string | null;
3368
3433
  is_active: boolean;
3434
+ last_call_at: string | null;
3369
3435
  name: string;
3370
3436
  schedule_id: ScheduleId | null;
3371
3437
  schedule_name: string | null;
3372
3438
  updated_at: string;
3439
+ /**
3440
+ * True when the linked plan's working draft differs from its published version by the editor's own rules. False when never published.
3441
+ */
3442
+ visual_plan_has_unpublished_changes: boolean;
3373
3443
  visual_plan_id: VisualPlanId | null;
3374
3444
  visual_plan_name: string | null;
3445
+ visual_plan_published_version: number | null;
3375
3446
  webhook_url: string | null;
3376
3447
  }
3377
3448
  /**
3378
3449
  * channels.update error codes.
3379
3450
  *
3380
- * Partially updates a channel. Moving a channel that is already attached to a different plan returns 409 CHANNEL_ALREADY_ASSIGNED unless `reassign` is `true`. Changing WhatsApp integration fields re-validates the configuration against Meta and re-triggers webhook synchronization.
3451
+ * Partially updates a channel. Moving a channel that is already attached to a different plan returns 409 CHANNEL_ALREADY_ASSIGNED unless `reassign` is `true`. Changing a WhatsApp channel's connector or phone number re-validates the number against the connector.
3381
3452
  */
3382
- export type ChannelsUpdateErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_ACCESS_TOKEN_INVALID" | "CHANNEL_WHATSAPP_PHONE_NUMBER_NOT_FOUND" | "CHANNEL_WHATSAPP_SYNC_CONFIRMATION_REQUIRED" | "CHANNEL_WHATSAPP_WABA_INVALID" | "CHANNEL_WHATSAPP_WEBHOOK_SYNC_FAILED" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WHATSAPP_NOT_CONFIGURED";
3453
+ export type ChannelsUpdateErrorCode = "CHANNEL_ALREADY_ASSIGNED" | "CHANNEL_CONNECTOR_NOT_ALLOWED" | "CHANNEL_CONNECTOR_REQUIRED" | "CHANNEL_CONNECTOR_UNAVAILABLE" | "CHANNEL_INVALID_CREDENTIALS" | "CHANNEL_NOT_FOUND" | "CHANNEL_WHATSAPP_NUMBER_NOT_IN_CONNECTOR" | "DUPLICATE_CHANNEL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
3383
3454
  /**
3384
3455
  * contacts.getById input.
3385
3456
  *
@@ -3410,7 +3481,7 @@ export type ContactsGetByIdOutput = {
3410
3481
  *
3411
3482
  * Returns the contact, or `null` (HTTP 200) when it does not exist or belongs to another organization. Requires the omnichannel module.
3412
3483
  */
3413
- export type ContactsGetByIdErrorCode = "CONTACT_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
3484
+ export type ContactsGetByIdErrorCode = "CONTACT_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
3414
3485
  /**
3415
3486
  * contacts.list input.
3416
3487
  *
@@ -3482,7 +3553,7 @@ export interface ContactsListOutput {
3482
3553
  *
3483
3554
  * Returns a paginated list of the organization's omnichannel contacts. Requires the omnichannel module, otherwise 403 MODULE_DISABLED is returned.
3484
3555
  */
3485
- export type ContactsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
3556
+ export type ContactsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
3486
3557
  /**
3487
3558
  * contacts.update input.
3488
3559
  *
@@ -3528,7 +3599,7 @@ export interface ContactsUpdateOutput {
3528
3599
  *
3529
3600
  * Partially updates a contact's profile fields. Requires the omnichannel module, and returns 404 CONTACT_NOT_FOUND when the contact does not exist or belongs to another organization.
3530
3601
  */
3531
- export type ContactsUpdateErrorCode = "CONTACT_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
3602
+ export type ContactsUpdateErrorCode = "CONTACT_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
3532
3603
  /**
3533
3604
  * dashboard.capacityStatus input.
3534
3605
  *
@@ -3589,7 +3660,7 @@ export interface DashboardCapacityStatusOutput {
3589
3660
  *
3590
3661
  * Returns a live capacity snapshot for the organization, computed on demand from active sessions (Redis) and license/usage data (DB): voice and chat channel pools against their concurrent limits, license status, and — when the AI module is enabled — current STT/TTS/LLM usage against the monthly grant.
3591
3662
  */
3592
- export type DashboardCapacityStatusErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
3663
+ export type DashboardCapacityStatusErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
3593
3664
  /**
3594
3665
  * dashboard.watchDashboardMetrics input.
3595
3666
  *
@@ -3650,7 +3721,7 @@ export interface DashboardWatchDashboardMetricsEvent {
3650
3721
  *
3651
3722
  * Server-Sent Events stream of the organization's capacity snapshot. The first event is always a full snapshot of the current state, and every later event carries the whole state too rather than a delta — so reconnecting is safe and never loses ground. The response advertises a 5s reconnect delay, and capacity is re-emitted after 30s of silence so a dropped update self-heals.
3652
3723
  */
3653
- export type DashboardWatchDashboardMetricsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
3724
+ export type DashboardWatchDashboardMetricsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
3654
3725
  /**
3655
3726
  * destinations.create input.
3656
3727
  *
@@ -3700,7 +3771,7 @@ export interface DestinationsCreateOutput {
3700
3771
  *
3701
3772
  * Creates a transfer destination pointing at a SIP/telephony `uri` that plans can forward calls to.
3702
3773
  */
3703
- export type DestinationsCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
3774
+ export type DestinationsCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
3704
3775
  /**
3705
3776
  * destinations.delete input.
3706
3777
  *
@@ -3725,7 +3796,7 @@ export interface DestinationsDeleteOutput {
3725
3796
  *
3726
3797
  * Deletes a destination. Returns 404 DESTINATION_NOT_FOUND when it does not exist, and `{ success: true }` on success.
3727
3798
  */
3728
- export type DestinationsDeleteErrorCode = "DESTINATION_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
3799
+ export type DestinationsDeleteErrorCode = "DESTINATION_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
3729
3800
  /**
3730
3801
  * destinations.getById input.
3731
3802
  *
@@ -3762,7 +3833,7 @@ export type DestinationsGetByIdOutput = {
3762
3833
  *
3763
3834
  * Returns the destination, or `null` (HTTP 200) when it does not exist or belongs to another organization.
3764
3835
  */
3765
- export type DestinationsGetByIdErrorCode = "DESTINATION_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
3836
+ export type DestinationsGetByIdErrorCode = "DESTINATION_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
3766
3837
  /**
3767
3838
  * destinations.list input.
3768
3839
  *
@@ -3840,7 +3911,7 @@ export interface DestinationsListOutput {
3840
3911
  *
3841
3912
  * Returns a paginated list of the organization's transfer destinations (call-forwarding targets).
3842
3913
  */
3843
- export type DestinationsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
3914
+ export type DestinationsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
3844
3915
  /**
3845
3916
  * destinations.update input.
3846
3917
  *
@@ -3894,7 +3965,7 @@ export interface DestinationsUpdateOutput {
3894
3965
  *
3895
3966
  * Partially updates a destination. Returns 404 DESTINATION_NOT_FOUND when it does not exist or belongs to another organization.
3896
3967
  */
3897
- export type DestinationsUpdateErrorCode = "DESTINATION_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
3968
+ export type DestinationsUpdateErrorCode = "DESTINATION_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
3898
3969
  /**
3899
3970
  * dialerAttempts.list input.
3900
3971
  *
@@ -4011,7 +4082,7 @@ export interface DialerAttemptsListOutput {
4011
4082
  *
4012
4083
  * Returns the read-only call-attempt history for a campaign as a paginated envelope. Optionally filter by attempt status, by a single contact, and by a creation-time window (dateFrom is inclusive; a YYYY-MM-DD bound means that calendar day in the organization timezone, so a YYYY-MM-DD dateTo includes that whole local day, while an ISO timestamp is an absolute instant and dateTo stops there, excluding it). Each row includes the joined contact phone number and name (null if the contact row was removed), machine_type on an attempt a recording answered, and call_record_id, the call report the attempt produced (null when no record was written).
4013
4084
  */
4014
- export type DialerAttemptsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4085
+ export type DialerAttemptsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4015
4086
  /**
4016
4087
  * dialerCampaigns.control input.
4017
4088
  *
@@ -4167,7 +4238,7 @@ export interface DialerCampaignsControlOutput {
4167
4238
  *
4168
4239
  * Drives the campaign state machine. Valid transitions: start (draft/scheduled/finished -> running, or -> scheduled when a future auto_start_at is armed), pause (running -> paused), resume (paused -> running), stop (draft/scheduled/running/paused -> finished, cancelling pending retries). Invalid transitions return 409 DIALER_CAMPAIGN_INVALID_TRANSITION. start and resume additionally require the dialer module enabled (403 DIALER_MODULE_DISABLED), a published plan (422 DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED) and at least one pending contact (422 DIALER_CAMPAIGN_NO_CONTACTS).
4169
4240
  */
4170
- export type DialerCampaignsControlErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4241
+ export type DialerCampaignsControlErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4171
4242
  /**
4172
4243
  * dialerCampaigns.create input.
4173
4244
  *
@@ -4390,7 +4461,7 @@ export interface DialerCampaignsCreateOutput {
4390
4461
  *
4391
4462
  * 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.
4392
4463
  */
4393
- export type DialerCampaignsCreateErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "UNAUTHORIZED";
4464
+ export type DialerCampaignsCreateErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "UNAUTHORIZED";
4394
4465
  /**
4395
4466
  * dialerCampaigns.delete input.
4396
4467
  *
@@ -4415,7 +4486,7 @@ export interface DialerCampaignsDeleteOutput {
4415
4486
  *
4416
4487
  * Soft-deletes a campaign. Running, paused, or scheduled campaigns must be stopped first and otherwise return 409 DIALER_CAMPAIGN_INVALID_TRANSITION; an unknown id returns 404. Requires the dialer_campaign:delete scope.
4417
4488
  */
4418
- export type DialerCampaignsDeleteErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4489
+ export type DialerCampaignsDeleteErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4419
4490
  /**
4420
4491
  * dialerCampaigns.get input.
4421
4492
  *
@@ -4567,7 +4638,7 @@ export type DialerCampaignsGetOutput = {
4567
4638
  *
4568
4639
  * Fetches a single campaign by id. A missing or cross-org id returns 200 with a null body rather than 404, so it never reveals whether an id exists in another org.
4569
4640
  */
4570
- export type DialerCampaignsGetErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4641
+ export type DialerCampaignsGetErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4571
4642
  /**
4572
4643
  * dialerCampaigns.list input.
4573
4644
  *
@@ -4764,7 +4835,7 @@ export interface DialerCampaignsListOutput {
4764
4835
  *
4765
4836
  * Returns the org's dialer campaigns as a paginated envelope. Optionally filter by lifecycle status; page, limit, sort_by, sort_order and search follow the standard list contract.
4766
4837
  */
4767
- export type DialerCampaignsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4838
+ export type DialerCampaignsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4768
4839
  /**
4769
4840
  * dialerCampaigns.liveStats input.
4770
4841
  *
@@ -4813,7 +4884,7 @@ export interface DialerCampaignsLiveStatsEvent {
4813
4884
  *
4814
4885
  * Server-Sent Events stream of one campaign's live statistics. The first event is always a full snapshot of the current state, and every later event carries the whole state too rather than a delta — so reconnecting is safe and never loses ground. The response advertises a 5s reconnect delay. An unknown or cross-org id returns 404 DIALER_CAMPAIGN_NOT_FOUND before the stream opens.
4815
4886
  */
4816
- export type DialerCampaignsLiveStatsErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4887
+ export type DialerCampaignsLiveStatsErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4817
4888
  /**
4818
4889
  * dialerCampaigns.orgLiveStats input.
4819
4890
  *
@@ -4857,7 +4928,7 @@ export interface DialerCampaignsOrgLiveStatsEvent {
4857
4928
  *
4858
4929
  * Server-Sent Events stream of live statistics for the org's running and paused campaigns, one event per campaign. It opens with a full snapshot of the current state, and every later event carries a campaign's whole state rather than a delta — so reconnecting is safe and never loses ground. The response advertises a 5s reconnect delay.
4859
4930
  */
4860
- export type DialerCampaignsOrgLiveStatsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4931
+ export type DialerCampaignsOrgLiveStatsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4861
4932
  /**
4862
4933
  * dialerCampaigns.stats input.
4863
4934
  *
@@ -4940,7 +5011,7 @@ export interface DialerCampaignsStatsOutput {
4940
5011
  *
4941
5012
  * Returns the campaign's cumulative call-outcome counters (answered, machine, busy, no-answer, failed, DNC-skipped, cancelled) plus live pending and calling counts. The machine counter is populated only on campaigns with answering-machine detection enabled, and answered never includes it. An unknown or cross-org id returns 404 DIALER_CAMPAIGN_NOT_FOUND.
4942
5013
  */
4943
- export type DialerCampaignsStatsErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5014
+ export type DialerCampaignsStatsErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4944
5015
  /**
4945
5016
  * dialerCampaigns.summary input.
4946
5017
  *
@@ -4965,7 +5036,7 @@ export interface DialerCampaignsSummaryOutput {
4965
5036
  *
4966
5037
  * Aggregates the org's currently running campaigns and their live calling contacts for the dashboard card. When exactly one campaign is running, its id and name are included so the client can deep-link into it.
4967
5038
  */
4968
- export type DialerCampaignsSummaryErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5039
+ export type DialerCampaignsSummaryErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
4969
5040
  /**
4970
5041
  * dialerCampaigns.update input.
4971
5042
  *
@@ -5188,7 +5259,7 @@ export interface DialerCampaignsUpdateOutput {
5188
5259
  *
5189
5260
  * 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.
5190
5261
  */
5191
- export type DialerCampaignsUpdateErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5262
+ export type DialerCampaignsUpdateErrorCode = "DIALER_CAMPAIGN_INVALID_TRANSITION" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_CAMPAIGN_NO_CONTACTS" | "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED" | "DIALER_MODULE_DISABLED" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5192
5263
  /**
5193
5264
  * dialerContacts.add input.
5194
5265
  *
@@ -5252,7 +5323,7 @@ export interface DialerContactsAddOutput {
5252
5323
  *
5253
5324
  * Adds one contact to a campaign's mailing in pending status. The phone number is normalized with the org default country; an unknown campaign returns 404 DIALER_CAMPAIGN_NOT_FOUND and an unparseable number returns 422 DIALER_IMPORT_INVALID. Requires the dialer_campaign:update scope.
5254
5325
  */
5255
- export type DialerContactsAddErrorCode = "CONTACT_NOT_FOUND" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_IMPORT_INVALID" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5326
+ export type DialerContactsAddErrorCode = "CONTACT_NOT_FOUND" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_IMPORT_INVALID" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5256
5327
  /**
5257
5328
  * dialerContacts.bulkCancel input.
5258
5329
  *
@@ -5279,7 +5350,7 @@ export interface DialerContactsBulkCancelOutput {
5279
5350
  *
5280
5351
  * Cancels up to 500 pending contacts by id in one call. Non-pending contacts are skipped; the response reports cancelled and skipped counts. Requires the dialer_campaign:update scope.
5281
5352
  */
5282
- export type DialerContactsBulkCancelErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5353
+ export type DialerContactsBulkCancelErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5283
5354
  /**
5284
5355
  * dialerContacts.bulkRequeue input.
5285
5356
  *
@@ -5306,7 +5377,7 @@ export interface DialerContactsBulkRequeueOutput {
5306
5377
  *
5307
5378
  * Requeues up to 500 terminal contacts by id back to pending. Non-terminal contacts are skipped; the response reports requeued and skipped counts. Requires the dialer_campaign:update scope.
5308
5379
  */
5309
- export type DialerContactsBulkRequeueErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5380
+ export type DialerContactsBulkRequeueErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5310
5381
  /**
5311
5382
  * dialerContacts.cancel input.
5312
5383
  *
@@ -5358,7 +5429,7 @@ export interface DialerContactsCancelOutput {
5358
5429
  *
5359
5430
  * Cancels a pending contact so it is no longer dialed, returning the updated contact. An unknown contact returns 404 CONTACT_NOT_FOUND. Requires the dialer_campaign:update scope.
5360
5431
  */
5361
- export type DialerContactsCancelErrorCode = "CONTACT_NOT_FOUND" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_IMPORT_INVALID" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5432
+ export type DialerContactsCancelErrorCode = "CONTACT_NOT_FOUND" | "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_IMPORT_INVALID" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5362
5433
  /**
5363
5434
  * dialerContacts.exportCsv input.
5364
5435
  *
@@ -5382,7 +5453,7 @@ export type DialerContactsExportCsvEvent = Record<string, string | number | null
5382
5453
  *
5383
5454
  * Streams the campaign's mailing as Server-Sent Events (`text/event-stream`), one JSON object per contact - NOT a text/csv file; the caller joins the cells itself. Rows carry the fixed columns (phone_number, name, status, attempt_count, machine_attempts, machine_type, last_attempt_at) plus every custom field of that contact expanded as its own key, so the shape is import-symmetric and may vary between rows. The two machine columns are always present: machine_attempts counts the calls a recording answered and machine_type is the kind identified on the most recent classified one, empty when the contact was never classified. Filters mirror the contact listing. Requires the dialer module and the dialer_campaign:read scope.
5384
5455
  */
5385
- export type DialerContactsExportCsvErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5456
+ export type DialerContactsExportCsvErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5386
5457
  /**
5387
5458
  * dialerContacts.get input.
5388
5459
  *
@@ -5434,7 +5505,7 @@ export interface DialerContactsGetOutput {
5434
5505
  *
5435
5506
  * Fetches a single mailing contact scoped to its campaign. An unknown or cross-org contact returns 404 CONTACT_NOT_FOUND.
5436
5507
  */
5437
- export type DialerContactsGetErrorCode = "CONTACT_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5508
+ export type DialerContactsGetErrorCode = "CONTACT_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5438
5509
  /**
5439
5510
  * dialerContacts.list input.
5440
5511
  *
@@ -5534,7 +5605,7 @@ export interface DialerContactsListOutput {
5534
5605
  *
5535
5606
  * Returns a campaign's mailing (contacts) as a paginated envelope. Optionally filter by contact status and by a creation-time window (dateFrom is inclusive; a YYYY-MM-DD bound means that calendar day in the organization timezone, so a YYYY-MM-DD dateTo includes that whole local day, while an ISO timestamp is an absolute instant and dateTo stops there, excluding it); search matches phone number and name. Each row also carries machine_type, the kind of recording identified on the contact's most recent classified call; null means no call of that contact was ever classified.
5536
5607
  */
5537
- export type DialerContactsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5608
+ export type DialerContactsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5538
5609
  /**
5539
5610
  * dialerContacts.remove input.
5540
5611
  *
@@ -5561,7 +5632,7 @@ export interface DialerContactsRemoveOutput {
5561
5632
  *
5562
5633
  * Soft-deletes up to 500 contacts by id in one call. Contacts currently calling are skipped; the response reports removed and skipped counts. Requires the dialer_campaign:update scope.
5563
5634
  */
5564
- export type DialerContactsRemoveErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5635
+ export type DialerContactsRemoveErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5565
5636
  /**
5566
5637
  * dialerContacts.requeue input.
5567
5638
  *
@@ -5613,7 +5684,7 @@ export interface DialerContactsRequeueOutput {
5613
5684
  *
5614
5685
  * Requeues a terminal contact (lead recycling) back to pending without resetting cumulative counters. Only contacts in a terminal status can be requeued; pending/calling contacts return 409 DIALER_CONTACT_NOT_REQUEUEABLE and an unknown contact returns 404. Requires the dialer_campaign:update scope.
5615
5686
  */
5616
- export type DialerContactsRequeueErrorCode = "CONTACT_NOT_FOUND" | "DIALER_CONTACT_NOT_REQUEUEABLE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5687
+ export type DialerContactsRequeueErrorCode = "CONTACT_NOT_FOUND" | "DIALER_CONTACT_NOT_REQUEUEABLE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5617
5688
  /**
5618
5689
  * dialerContacts.requeueAll input.
5619
5690
  *
@@ -5642,7 +5713,7 @@ export interface DialerContactsRequeueAllOutput {
5642
5713
  *
5643
5714
  * Requeues every terminal contact of a campaign back to pending, optionally restricted to a single terminal status. The response reports how many were requeued. Requires the dialer_campaign:update scope.
5644
5715
  */
5645
- export type DialerContactsRequeueAllErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5716
+ export type DialerContactsRequeueAllErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5646
5717
  /**
5647
5718
  * dialerContacts.update input.
5648
5719
  *
@@ -5710,7 +5781,7 @@ export interface DialerContactsUpdateOutput {
5710
5781
  *
5711
5782
  * Partially updates a mailing contact. Only pending contacts are editable (409 DIALER_CONTACT_NOT_EDITABLE otherwise); a phone number colliding with another contact in the campaign returns 409 DIALER_CONTACT_DUPLICATE, an unparseable number 422 DIALER_IMPORT_INVALID and an unknown contact 404. Requires the dialer_campaign:update scope.
5712
5783
  */
5713
- export type DialerContactsUpdateErrorCode = "CONTACT_NOT_FOUND" | "DIALER_CONTACT_DUPLICATE" | "DIALER_CONTACT_NOT_EDITABLE" | "DIALER_IMPORT_INVALID" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5784
+ export type DialerContactsUpdateErrorCode = "CONTACT_NOT_FOUND" | "DIALER_CONTACT_DUPLICATE" | "DIALER_CONTACT_NOT_EDITABLE" | "DIALER_IMPORT_INVALID" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5714
5785
  /**
5715
5786
  * dialerDnc.add input.
5716
5787
  *
@@ -5756,7 +5827,7 @@ export interface DialerDncAddOutput {
5756
5827
  *
5757
5828
  * Adds one number to the org's do-not-call list so future campaigns skip it. A number already present returns 409 DIALER_DNC_DUPLICATE and an unparseable number 422 DIALER_IMPORT_INVALID. Requires the dialer_dnc:manage scope.
5758
5829
  */
5759
- export type DialerDncAddErrorCode = "DIALER_DNC_DUPLICATE" | "DIALER_IMPORT_INVALID" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5830
+ export type DialerDncAddErrorCode = "DIALER_DNC_DUPLICATE" | "DIALER_IMPORT_INVALID" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5760
5831
  /**
5761
5832
  * dialerDnc.bulkImport input.
5762
5833
  *
@@ -5784,7 +5855,7 @@ export interface DialerDncBulkImportOutput {
5784
5855
  *
5785
5856
  * Adds up to 10000 numbers to the do-not-call list in one call, applying an optional shared reason. Duplicates are skipped; the response reports added and skipped counts. Requires the dialer_dnc:manage scope.
5786
5857
  */
5787
- export type DialerDncBulkImportErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5858
+ export type DialerDncBulkImportErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5788
5859
  /**
5789
5860
  * dialerDnc.bulkRemove input.
5790
5861
  *
@@ -5806,7 +5877,7 @@ export interface DialerDncBulkRemoveOutput {
5806
5877
  *
5807
5878
  * Soft-deletes up to 500 do-not-call entries by id in one call; unknown or already-removed ids are skipped and the response reports the removed count. Requires the dialer_dnc:manage scope.
5808
5879
  */
5809
- export type DialerDncBulkRemoveErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5880
+ export type DialerDncBulkRemoveErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5810
5881
  /**
5811
5882
  * dialerDnc.list input.
5812
5883
  *
@@ -5886,7 +5957,7 @@ export interface DialerDncListOutput {
5886
5957
  *
5887
5958
  * Returns the org's do-not-call entries as a paginated envelope; search matches the phone number. Requires the dialer_dnc:read scope.
5888
5959
  */
5889
- export type DialerDncListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5960
+ export type DialerDncListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5890
5961
  /**
5891
5962
  * dialerDnc.remove input.
5892
5963
  *
@@ -5911,7 +5982,7 @@ export interface DialerDncRemoveOutput {
5911
5982
  *
5912
5983
  * Soft-deletes one do-not-call entry by id and returns { success: true }. Requires the dialer_dnc:manage scope.
5913
5984
  */
5914
- export type DialerDncRemoveErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5985
+ export type DialerDncRemoveErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5915
5986
  /**
5916
5987
  * dialerImports.create input.
5917
5988
  *
@@ -5979,7 +6050,7 @@ export interface DialerImportsCreateOutput {
5979
6050
  *
5980
6051
  * Uploads a CSV (multipart) and starts an asynchronous import job that appends contacts to the campaign per the column mapping. Returns the created job immediately while rows are processed off the request path; poll the job or its SSE progress. An unknown campaign returns 404 DIALER_CAMPAIGN_NOT_FOUND and a malformed file/mapping returns 422 DIALER_IMPORT_INVALID. Requires the dialer_campaign:update scope.
5981
6052
  */
5982
- export type DialerImportsCreateErrorCode = "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_IMPORT_INVALID" | "DIALER_IMPORT_JOB_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
6053
+ export type DialerImportsCreateErrorCode = "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_IMPORT_INVALID" | "DIALER_IMPORT_JOB_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
5983
6054
  /**
5984
6055
  * dialerImports.get input.
5985
6056
  *
@@ -6039,7 +6110,7 @@ export interface DialerImportsGetOutput {
6039
6110
  *
6040
6111
  * Fetches an import job with its current status and progress counters (total/processed rows, imported, skipped, invalid) plus a has_invalid_rows flag. An unknown or cross-org job returns 404 DIALER_IMPORT_JOB_NOT_FOUND.
6041
6112
  */
6042
- export type DialerImportsGetErrorCode = "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_IMPORT_INVALID" | "DIALER_IMPORT_JOB_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
6113
+ export type DialerImportsGetErrorCode = "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_IMPORT_INVALID" | "DIALER_IMPORT_JOB_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
6043
6114
  /**
6044
6115
  * dialerImports.invalidRows input.
6045
6116
  *
@@ -6065,7 +6136,7 @@ export type DialerImportsInvalidRowsOutput = {
6065
6136
  *
6066
6137
  * Returns a downloadable CSV of the rows an import job rejected (filename plus CSV body), or null when the job produced no invalid rows. An unknown job returns 404 DIALER_IMPORT_JOB_NOT_FOUND.
6067
6138
  */
6068
- export type DialerImportsInvalidRowsErrorCode = "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_IMPORT_INVALID" | "DIALER_IMPORT_JOB_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
6139
+ export type DialerImportsInvalidRowsErrorCode = "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_IMPORT_INVALID" | "DIALER_IMPORT_JOB_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
6069
6140
  /**
6070
6141
  * dialerImports.progress input.
6071
6142
  *
@@ -6096,7 +6167,7 @@ export interface DialerImportsProgressEvent {
6096
6167
  *
6097
6168
  * Server-Sent Events stream of an import job's progress. The first event is always a full snapshot of the current state, and every later event carries the whole state too rather than a delta — so reconnecting is safe and never loses ground. The response advertises a 5s reconnect delay; the stream closes once the job reaches done or failed. An unknown or cross-org job returns 404 DIALER_IMPORT_JOB_NOT_FOUND before the stream opens.
6098
6169
  */
6099
- export type DialerImportsProgressErrorCode = "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_IMPORT_INVALID" | "DIALER_IMPORT_JOB_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
6170
+ export type DialerImportsProgressErrorCode = "DIALER_CAMPAIGN_NOT_FOUND" | "DIALER_IMPORT_INVALID" | "DIALER_IMPORT_JOB_NOT_FOUND" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
6100
6171
  /**
6101
6172
  * holidays.countries input.
6102
6173
  *
@@ -6117,7 +6188,7 @@ export type HolidaysCountriesOutput = {
6117
6188
  *
6118
6189
  * Returns the countries supported by the external holiday provider (Nager.Date). Returns 502 NAGER_API_ERROR when the provider cannot be reached.
6119
6190
  */
6120
- export type HolidaysCountriesErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "NAGER_API_ERROR" | "UNAUTHORIZED";
6191
+ export type HolidaysCountriesErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "NAGER_API_ERROR" | "UNAUTHORIZED";
6121
6192
  /**
6122
6193
  * holidays.create input.
6123
6194
  *
@@ -6183,7 +6254,7 @@ export interface HolidaysCreateOutput {
6183
6254
  *
6184
6255
  * Adds a single holiday (a single day or a date range) to the given group. Set `recurring` to repeat it every year on the same date.
6185
6256
  */
6186
- export type HolidaysCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
6257
+ export type HolidaysCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6187
6258
  /**
6188
6259
  * holidays.delete input.
6189
6260
  *
@@ -6208,7 +6279,7 @@ export interface HolidaysDeleteOutput {
6208
6279
  *
6209
6280
  * Deletes a single holiday. Returns 404 HOLIDAY_NOT_FOUND when it does not exist, and `{ success: true }` on success.
6210
6281
  */
6211
- export type HolidaysDeleteErrorCode = "FORBIDDEN" | "HOLIDAY_NOT_FOUND" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
6282
+ export type HolidaysDeleteErrorCode = "FORBIDDEN" | "HOLIDAY_NOT_FOUND" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6212
6283
  /**
6213
6284
  * holidays.groups.create input.
6214
6285
  *
@@ -6252,7 +6323,7 @@ export interface HolidaysGroupsCreateOutput {
6252
6323
  *
6253
6324
  * Creates an empty holiday group. Holidays can then be added individually or imported from an external provider.
6254
6325
  */
6255
- export type HolidaysGroupsCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
6326
+ export type HolidaysGroupsCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6256
6327
  /**
6257
6328
  * holidays.groups.delete input.
6258
6329
  *
@@ -6277,7 +6348,7 @@ export interface HolidaysGroupsDeleteOutput {
6277
6348
  *
6278
6349
  * Deletes a holiday group and the holidays it contains. Returns 404 HOLIDAY_GROUP_NOT_FOUND when it does not exist, and `{ success: true }` on success.
6279
6350
  */
6280
- export type HolidaysGroupsDeleteErrorCode = "FORBIDDEN" | "HOLIDAY_GROUP_NOT_FOUND" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
6351
+ export type HolidaysGroupsDeleteErrorCode = "FORBIDDEN" | "HOLIDAY_GROUP_NOT_FOUND" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6281
6352
  /**
6282
6353
  * holidays.groups.getById input.
6283
6354
  *
@@ -6313,7 +6384,7 @@ export type HolidaysGroupsGetByIdOutput = {
6313
6384
  *
6314
6385
  * Returns the holiday group, or `null` (HTTP 200) when it does not exist or belongs to another organization.
6315
6386
  */
6316
- export type HolidaysGroupsGetByIdErrorCode = "FORBIDDEN" | "HOLIDAY_GROUP_NOT_FOUND" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
6387
+ export type HolidaysGroupsGetByIdErrorCode = "FORBIDDEN" | "HOLIDAY_GROUP_NOT_FOUND" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6317
6388
  /**
6318
6389
  * holidays.groups.list input.
6319
6390
  *
@@ -6390,7 +6461,7 @@ export interface HolidaysGroupsListOutput {
6390
6461
  *
6391
6462
  * Returns a paginated list of the organization's holiday groups (named collections of holidays that schedules can reference).
6392
6463
  */
6393
- export type HolidaysGroupsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
6464
+ export type HolidaysGroupsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6394
6465
  /**
6395
6466
  * holidays.groups.update input.
6396
6467
  *
@@ -6432,7 +6503,7 @@ export interface HolidaysGroupsUpdateOutput {
6432
6503
  *
6433
6504
  * Partially updates a holiday group's metadata. Returns 404 HOLIDAY_GROUP_NOT_FOUND when it does not exist or belongs to another organization.
6434
6505
  */
6435
- export type HolidaysGroupsUpdateErrorCode = "FORBIDDEN" | "HOLIDAY_GROUP_NOT_FOUND" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
6506
+ export type HolidaysGroupsUpdateErrorCode = "FORBIDDEN" | "HOLIDAY_GROUP_NOT_FOUND" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6436
6507
  /**
6437
6508
  * holidays.import input.
6438
6509
  *
@@ -6469,7 +6540,7 @@ export interface HolidaysImportOutput {
6469
6540
  *
6470
6541
  * Imports the public holidays for a country and year from the external provider (Nager.Date) into the given group and returns how many were imported. Returns 404 HOLIDAY_GROUP_NOT_FOUND when the group does not exist and 502 NAGER_API_ERROR when the provider cannot be reached.
6471
6542
  */
6472
- export type HolidaysImportErrorCode = "FORBIDDEN" | "HOLIDAY_GROUP_NOT_FOUND" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "NAGER_API_ERROR" | "UNAUTHORIZED";
6543
+ export type HolidaysImportErrorCode = "FORBIDDEN" | "HOLIDAY_GROUP_NOT_FOUND" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "NAGER_API_ERROR" | "UNAUTHORIZED";
6473
6544
  /**
6474
6545
  * holidays.list input.
6475
6546
  *
@@ -6544,7 +6615,7 @@ export interface HolidaysListOutput {
6544
6615
  *
6545
6616
  * Returns a paginated list of the holidays belonging to the given group.
6546
6617
  */
6547
- export type HolidaysListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
6618
+ export type HolidaysListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6548
6619
  /**
6549
6620
  * holidays.previewImport input.
6550
6621
  *
@@ -6581,7 +6652,7 @@ export type HolidaysPreviewImportOutput = {
6581
6652
  *
6582
6653
  * Fetches the public holidays for a country and year from the external provider without persisting anything, so the result can be reviewed before import. Returns 502 NAGER_API_ERROR when the provider cannot be reached.
6583
6654
  */
6584
- export type HolidaysPreviewImportErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "NAGER_API_ERROR" | "UNAUTHORIZED";
6655
+ export type HolidaysPreviewImportErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "NAGER_API_ERROR" | "UNAUTHORIZED";
6585
6656
  /**
6586
6657
  * holidays.update input.
6587
6658
  *
@@ -6640,7 +6711,7 @@ export interface HolidaysUpdateOutput {
6640
6711
  *
6641
6712
  * Partially updates a single holiday. Returns 404 HOLIDAY_NOT_FOUND when it does not exist.
6642
6713
  */
6643
- export type HolidaysUpdateErrorCode = "FORBIDDEN" | "HOLIDAY_NOT_FOUND" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
6714
+ export type HolidaysUpdateErrorCode = "FORBIDDEN" | "HOLIDAY_NOT_FOUND" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6644
6715
  /**
6645
6716
  * insights.aggregate input.
6646
6717
  *
@@ -6703,7 +6774,7 @@ export interface InsightsAggregateOutput {
6703
6774
  *
6704
6775
  * 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.
6705
6776
  */
6706
- export type InsightsAggregateErrorCode = "FORBIDDEN" | "INSIGHT_PERIOD_TOO_LONG" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
6777
+ export type InsightsAggregateErrorCode = "FORBIDDEN" | "INSIGHT_PERIOD_TOO_LONG" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
6707
6778
  /**
6708
6779
  * license.modules input.
6709
6780
  *
@@ -6724,7 +6795,7 @@ export interface LicenseModulesOutput {
6724
6795
  *
6725
6796
  * Returns enabled modules and service availability without exposing deployment license details.
6726
6797
  */
6727
- export type LicenseModulesErrorCode = "FORBIDDEN" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
6798
+ export type LicenseModulesErrorCode = "FORBIDDEN" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6728
6799
  /**
6729
6800
  * license.status input.
6730
6801
  *
@@ -6758,7 +6829,147 @@ export interface LicenseStatusOutput {
6758
6829
  *
6759
6830
  * Returns deployment-wide license status and installation details. Available only to platform administrators.
6760
6831
  */
6761
- export type LicenseStatusErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
6832
+ export type LicenseStatusErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6833
+ /**
6834
+ * nodes.list input.
6835
+ *
6836
+ * Returns every plan block type with its category, channel, the connector kind it needs (null when none) and the variables it produces. Read-only product metadata, available to any authenticated member or key.
6837
+ */
6838
+ export type NodesListInput = void;
6839
+ /**
6840
+ * nodes.list output.
6841
+ *
6842
+ * Returns every plan block type with its category, channel, the connector kind it needs (null when none) and the variables it produces. Read-only product metadata, available to any authenticated member or key.
6843
+ */
6844
+ export type NodesListOutput = {
6845
+ /**
6846
+ * Palette category (interaction, handling, routing, data, legacy).
6847
+ */
6848
+ category: string;
6849
+ /**
6850
+ * Channel the block works on.
6851
+ */
6852
+ channel: "voice" | "chat" | "both";
6853
+ connector: {
6854
+ /**
6855
+ * Key of the block config that holds the connector's public id (`conn_...`). Fill it with an ACTIVE connector of this kind.
6856
+ */
6857
+ config_key: string;
6858
+ /**
6859
+ * Connector kind the block calls through (for example `twilio`).
6860
+ */
6861
+ kind: string;
6862
+ } | null;
6863
+ /**
6864
+ * What the block does, in one sentence.
6865
+ */
6866
+ description: string;
6867
+ /**
6868
+ * Commercial module the block belongs to (core, ai, queues, dialer, omnichannel, enterprise).
6869
+ */
6870
+ module: string;
6871
+ /**
6872
+ * Display name of the block.
6873
+ */
6874
+ name: string;
6875
+ produced_variables: {
6876
+ /**
6877
+ * Variable name, as referenced after the block runs (`{{<block>.<name>}}` or `{{vars.<name>}}`).
6878
+ */
6879
+ name: string;
6880
+ /**
6881
+ * Value type of the variable.
6882
+ */
6883
+ type: "string" | "number" | "object" | "array";
6884
+ }[];
6885
+ /**
6886
+ * Block type identifier, the value of `node_type` in `nodes_schema` and of the block's `type` in an editor state.
6887
+ */
6888
+ type: string;
6889
+ }[];
6890
+ /**
6891
+ * nodes.list error codes.
6892
+ *
6893
+ * Returns every plan block type with its category, channel, the connector kind it needs (null when none) and the variables it produces. Read-only product metadata, available to any authenticated member or key.
6894
+ */
6895
+ export type NodesListErrorCode = "FORBIDDEN" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6896
+ /**
6897
+ * nodes.schema input.
6898
+ *
6899
+ * Returns the JSON Schema of the block's `config`, its default config, its output handles and the connector kind it needs. An unknown node_type is a validation error (422).
6900
+ */
6901
+ export interface NodesSchemaInput {
6902
+ /**
6903
+ * Block type, as listed by `nodes_list` (for example `sendSms` or `menu`).
6904
+ */
6905
+ node_type: "start" | "playback" | "ivr" | "collectDigits" | "transfer" | "hangup" | "timeRouting" | "switchCase" | "trafficSplit" | "setVariable" | "sequence" | "counter" | "httpRequest" | "webhook" | "whatsappTemplate" | "sendSms" | "phoneLookup" | "verifyCode" | "dataTransform" | "subPlan" | "sendDtmf" | "aiAgent" | "retellAgent" | "vapiAgent" | "elevenlabsAgent" | "voiceRecognition" | "tell" | "menu" | "capture" | "routeAi" | "channelRouter" | "addToDnc" | "apiSwitch" | "enableRecord" | "recording" | "transcription" | "analysis";
6906
+ }
6907
+ /**
6908
+ * nodes.schema output.
6909
+ *
6910
+ * Returns the JSON Schema of the block's `config`, its default config, its output handles and the connector kind it needs. An unknown node_type is a validation error (422).
6911
+ */
6912
+ export interface NodesSchemaOutput {
6913
+ /**
6914
+ * Palette category (interaction, handling, routing, data, legacy).
6915
+ */
6916
+ category: string;
6917
+ /**
6918
+ * Channel the block works on.
6919
+ */
6920
+ channel: "voice" | "chat" | "both";
6921
+ /**
6922
+ * JSON Schema of the block `config`: field names, types, constraints, enums and descriptions. Keys inside are the block config's own names and are sent back unchanged.
6923
+ */
6924
+ config_schema: Record<string, NivaJsonValue>;
6925
+ connector: {
6926
+ /**
6927
+ * Key of the block config that holds the connector's public id (`conn_...`). Fill it with an ACTIVE connector of this kind.
6928
+ */
6929
+ config_key: string;
6930
+ /**
6931
+ * Connector kind the block calls through (for example `twilio`).
6932
+ */
6933
+ kind: string;
6934
+ } | null;
6935
+ /**
6936
+ * Config a freshly placed block starts with. A valid starting point to extend.
6937
+ */
6938
+ default_config: Record<string, NivaJsonValue>;
6939
+ /**
6940
+ * What the block does, in one sentence.
6941
+ */
6942
+ description: string;
6943
+ handles: string[];
6944
+ /**
6945
+ * Commercial module the block belongs to (core, ai, queues, dialer, omnichannel, enterprise).
6946
+ */
6947
+ module: string;
6948
+ /**
6949
+ * Display name of the block.
6950
+ */
6951
+ name: string;
6952
+ produced_variables: {
6953
+ /**
6954
+ * Variable name, as referenced after the block runs (`{{<block>.<name>}}` or `{{vars.<name>}}`).
6955
+ */
6956
+ name: string;
6957
+ /**
6958
+ * Value type of the variable.
6959
+ */
6960
+ type: "string" | "number" | "object" | "array";
6961
+ }[];
6962
+ /**
6963
+ * Block type identifier, the value of `node_type` in `nodes_schema` and of the block's `type` in an editor state.
6964
+ */
6965
+ type: string;
6966
+ }
6967
+ /**
6968
+ * nodes.schema error codes.
6969
+ *
6970
+ * Returns the JSON Schema of the block's `config`, its default config, its output handles and the connector kind it needs. An unknown node_type is a validation error (422).
6971
+ */
6972
+ export type NodesSchemaErrorCode = "FORBIDDEN" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6762
6973
  /**
6763
6974
  * oauthGrants.list input.
6764
6975
  *
@@ -6833,7 +7044,7 @@ export interface OauthGrantsListOutput {
6833
7044
  *
6834
7045
  * Lists the OAuth grants (connected apps) that are still alive in the organization. A member sees only their own consents; a role holding oauth_grant:revoke sees every member's. Requires the oauth_grant:read scope.
6835
7046
  */
6836
- export type OauthGrantsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
7047
+ export type OauthGrantsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6837
7048
  /**
6838
7049
  * oauthGrants.revoke input.
6839
7050
  *
@@ -6858,7 +7069,7 @@ export interface OauthGrantsRevokeOutput {
6858
7069
  *
6859
7070
  * Revokes a connected-app OAuth grant: the next refresh fails with invalid_grant and the live access token is refused immediately. A member can revoke only their own grants; oauth_grant:revoke revokes anyone's in the organization. Unknown or already-revoked ids return 404 OAUTH_GRANT_NOT_FOUND. Requires the oauth_grant:read scope; a credential (API key or OAuth token) additionally needs the oauth_grant:write scope, as any mutation.
6860
7071
  */
6861
- export type OauthGrantsRevokeErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "OAUTH_GRANT_FORBIDDEN" | "OAUTH_GRANT_NOT_FOUND" | "UNAUTHORIZED";
7072
+ export type OauthGrantsRevokeErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "OAUTH_GRANT_FORBIDDEN" | "OAUTH_GRANT_NOT_FOUND" | "UNAUTHORIZED";
6862
7073
  /**
6863
7074
  * oauthGrants.usage input.
6864
7075
  *
@@ -6906,7 +7117,7 @@ export interface OauthGrantsUsageOutput {
6906
7117
  *
6907
7118
  * Returns which routes this OAuth grant called, how many times per day and when each route was last used, over the last `days` days (1 to 90, default 30). A member can read only their own grants; oauth_grant:revoke (org admin) reads anyone's in the organization. An unknown or cross-org id returns 404 OAUTH_GRANT_NOT_FOUND; another member's grant returns 403 OAUTH_GRANT_FORBIDDEN. Requires the oauth_grant:read scope.
6908
7119
  */
6909
- export type OauthGrantsUsageErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "OAUTH_GRANT_FORBIDDEN" | "OAUTH_GRANT_NOT_FOUND" | "UNAUTHORIZED";
7120
+ export type OauthGrantsUsageErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "OAUTH_GRANT_FORBIDDEN" | "OAUTH_GRANT_NOT_FOUND" | "UNAUTHORIZED";
6910
7121
  /**
6911
7122
  * orgSettings.getDialer input.
6912
7123
  *
@@ -6949,7 +7160,7 @@ export type OrgSettingsGetDialerOutput = {
6949
7160
  *
6950
7161
  * Returns the organization's dialer operational settings — reserved inbound channels, default trunk, default country and the answering-machine detection defaults. Returns null when no settings row exists yet.
6951
7162
  */
6952
- export type OrgSettingsGetDialerErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
7163
+ export type OrgSettingsGetDialerErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
6953
7164
  /**
6954
7165
  * orgSettings.upsertDialer input.
6955
7166
  *
@@ -7019,7 +7230,7 @@ export interface OrgSettingsUpsertDialerOutput {
7019
7230
  *
7020
7231
  * 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.
7021
7232
  */
7022
- export type OrgSettingsUpsertDialerErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
7233
+ export type OrgSettingsUpsertDialerErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
7023
7234
  /**
7024
7235
  * schedules.create input.
7025
7236
  *
@@ -7086,7 +7297,7 @@ export interface SchedulesCreateOutput {
7086
7297
  *
7087
7298
  * Creates a schedule from a set of time-based rules and optional holiday country calendars.
7088
7299
  */
7089
- export type SchedulesCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
7300
+ export type SchedulesCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
7090
7301
  /**
7091
7302
  * schedules.delete input.
7092
7303
  *
@@ -7111,7 +7322,7 @@ export interface SchedulesDeleteOutput {
7111
7322
  *
7112
7323
  * Deletes a schedule. Returns 404 SCHEDULE_NOT_FOUND when it does not exist, and `{ success: true }` on success.
7113
7324
  */
7114
- export type SchedulesDeleteErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "SCHEDULE_NOT_FOUND" | "UNAUTHORIZED";
7325
+ export type SchedulesDeleteErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "SCHEDULE_NOT_FOUND" | "UNAUTHORIZED";
7115
7326
  /**
7116
7327
  * schedules.getById input.
7117
7328
  *
@@ -7145,7 +7356,7 @@ export type SchedulesGetByIdOutput = {
7145
7356
  *
7146
7357
  * Returns the schedule, or `null` (HTTP 200) when it does not exist or belongs to another organization.
7147
7358
  */
7148
- export type SchedulesGetByIdErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "SCHEDULE_NOT_FOUND" | "UNAUTHORIZED";
7359
+ export type SchedulesGetByIdErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "SCHEDULE_NOT_FOUND" | "UNAUTHORIZED";
7149
7360
  /**
7150
7361
  * schedules.list input.
7151
7362
  *
@@ -7220,7 +7431,7 @@ export interface SchedulesListOutput {
7220
7431
  *
7221
7432
  * Returns a paginated list of the organization's schedules (business-hours rule sets used to gate when plans answer).
7222
7433
  */
7223
- export type SchedulesListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
7434
+ export type SchedulesListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
7224
7435
  /**
7225
7436
  * schedules.update input.
7226
7437
  *
@@ -7291,7 +7502,7 @@ export interface SchedulesUpdateOutput {
7291
7502
  *
7292
7503
  * Partially updates a schedule. Returns 404 SCHEDULE_NOT_FOUND when it does not exist or belongs to another organization.
7293
7504
  */
7294
- export type SchedulesUpdateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "SCHEDULE_NOT_FOUND" | "UNAUTHORIZED";
7505
+ export type SchedulesUpdateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "SCHEDULE_NOT_FOUND" | "UNAUTHORIZED";
7295
7506
  /**
7296
7507
  * secrets.list input.
7297
7508
  *
@@ -7384,7 +7595,7 @@ export interface SecretsListOutput {
7384
7595
  *
7385
7596
  * Returns the organization's secrets as a paginated envelope: name, description, the last 4 characters of the value, and how many plans reference it, published and draft counted apart. The value itself is never returned by any procedure. Requires the secret:read scope.
7386
7597
  */
7387
- export type SecretsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
7598
+ export type SecretsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
7388
7599
  /**
7389
7600
  * secrets.listNames input.
7390
7601
  *
@@ -7402,7 +7613,7 @@ export type SecretsListNamesOutput = string[];
7402
7613
  *
7403
7614
  * Returns just the names of the organization's secrets, for plan-editor autocomplete and broken-reference detection. No values, suffixes or descriptions. Requires the visual_plan:read scope, not secret:read.
7404
7615
  */
7405
- export type SecretsListNamesErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
7616
+ export type SecretsListNamesErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
7406
7617
  /**
7407
7618
  * signals.callSignals input.
7408
7619
  *
@@ -7519,7 +7730,7 @@ export type SignalsCallSignalsOutput = {
7519
7730
  *
7520
7731
  * 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.
7521
7732
  */
7522
- export type SignalsCallSignalsErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
7733
+ export type SignalsCallSignalsErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
7523
7734
  /**
7524
7735
  * signals.create input.
7525
7736
  *
@@ -7660,7 +7871,7 @@ export interface SignalsCreateOutput {
7660
7871
  *
7661
7872
  * 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.
7662
7873
  */
7663
- export type SignalsCreateErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
7874
+ export type SignalsCreateErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
7664
7875
  /**
7665
7876
  * signals.delete input.
7666
7877
  *
@@ -7747,7 +7958,7 @@ export interface SignalsDeleteOutput {
7747
7958
  *
7748
7959
  * 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.
7749
7960
  */
7750
- export type SignalsDeleteErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
7961
+ export type SignalsDeleteErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
7751
7962
  /**
7752
7963
  * signals.get input.
7753
7964
  *
@@ -7834,7 +8045,7 @@ export interface SignalsGetOutput {
7834
8045
  *
7835
8046
  * 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.
7836
8047
  */
7837
- export type SignalsGetErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
8048
+ export type SignalsGetErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
7838
8049
  /**
7839
8050
  * signals.list input.
7840
8051
  *
@@ -7989,7 +8200,7 @@ export interface SignalsListOutput {
7989
8200
  *
7990
8201
  * 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.
7991
8202
  */
7992
- export type SignalsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
8203
+ export type SignalsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
7993
8204
  /**
7994
8205
  * signals.overview input.
7995
8206
  *
@@ -8056,7 +8267,7 @@ export interface SignalsOverviewOutput {
8056
8267
  *
8057
8268
  * 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.
8058
8269
  */
8059
- export type SignalsOverviewErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
8270
+ export type SignalsOverviewErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
8060
8271
  /**
8061
8272
  * signals.presets input.
8062
8273
  *
@@ -8140,7 +8351,7 @@ export type SignalsPresetsOutput = {
8140
8351
  *
8141
8352
  * 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.
8142
8353
  */
8143
- export type SignalsPresetsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED";
8354
+ export type SignalsPresetsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED";
8144
8355
  /**
8145
8356
  * signals.test input.
8146
8357
  *
@@ -8371,7 +8582,7 @@ export type SignalsTestOutput = {
8371
8582
  *
8372
8583
  * 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.
8373
8584
  */
8374
- export type SignalsTestErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
8585
+ export type SignalsTestErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
8375
8586
  /**
8376
8587
  * signals.update input.
8377
8588
  *
@@ -8512,7 +8723,7 @@ export interface SignalsUpdateOutput {
8512
8723
  *
8513
8724
  * 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.
8514
8725
  */
8515
- export type SignalsUpdateErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
8726
+ export type SignalsUpdateErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
8516
8727
  /**
8517
8728
  * signals.upsertBySlug input.
8518
8729
  *
@@ -8659,7 +8870,7 @@ export interface SignalsUpsertBySlugOutput {
8659
8870
  *
8660
8871
  * 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.
8661
8872
  */
8662
- export type SignalsUpsertBySlugErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
8873
+ export type SignalsUpsertBySlugErrorCode = "CALL_NOT_FOUND" | "DECISIONS_UNAVAILABLE" | "DUPLICATE_SIGNAL_SLUG" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_ALERT_OPTION_REMOVED" | "SIGNAL_ARCHIVED" | "SIGNAL_DEFINITION_INVALID" | "SIGNAL_KIND_IMMUTABLE" | "SIGNAL_NOT_FOUND" | "SIGNAL_TEST_NO_TRANSCRIPTION" | "SIGNAL_TEST_SOURCE_INVALID" | "SIGNAL_VERSION_CONFLICT" | "UNAUTHORIZED";
8663
8874
  /**
8664
8875
  * tts.listModels input.
8665
8876
  *
@@ -8681,7 +8892,7 @@ export type TtsListModelsOutput = {
8681
8892
  *
8682
8893
  * Returns the catalog of available TTS models as a raw array, limited to the active, licensed provider tier.
8683
8894
  */
8684
- export type TtsListModelsErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
8895
+ export type TtsListModelsErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
8685
8896
  /**
8686
8897
  * tts.listVoices input.
8687
8898
  *
@@ -8714,7 +8925,7 @@ export type TtsListVoicesOutput = {
8714
8925
  *
8715
8926
  * Returns the catalog of available TTS voices as a raw array, optionally filtered by `language` and/or `model`. Only voices from the active, licensed provider tier are visible.
8716
8927
  */
8717
- export type TtsListVoicesErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
8928
+ export type TtsListVoicesErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
8718
8929
  /**
8719
8930
  * tts.preview input.
8720
8931
  *
@@ -8743,7 +8954,7 @@ export interface TtsPreviewInput {
8743
8954
  *
8744
8955
  * Synthesizes the supplied text and returns the raw audio bytes without storing anything in the audio library. When `voice` and `model` are omitted they are resolved from the organization's language and active provider tier. Returns 422 TTS_VOICE_UNAVAILABLE when no voice is available for that language.
8745
8956
  */
8746
- export type TtsPreviewErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "TTS_VOICE_UNAVAILABLE" | "UNAUTHORIZED";
8957
+ export type TtsPreviewErrorCode = "AI_INVALID_API_KEY" | "AI_NOT_CONFIGURED" | "AI_UNREACHABLE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "TTS_VOICE_UNAVAILABLE" | "UNAUTHORIZED";
8747
8958
  /**
8748
8959
  * users.activateMember input.
8749
8960
  *
@@ -8775,7 +8986,7 @@ export interface UsersActivateMemberOutput {
8775
8986
  *
8776
8987
  * Reactivates a previously suspended member, restoring their access. Returns 404 MEMBER_NOT_FOUND when the member does not exist.
8777
8988
  */
8778
- export type UsersActivateMemberErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_NOT_FOUND" | "MEMBER_SUSPENDED" | "PERMISSION_CEILING_EXCEEDED" | "UNAUTHORIZED";
8989
+ export type UsersActivateMemberErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_NOT_FOUND" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "PERMISSION_CEILING_EXCEEDED" | "UNAUTHORIZED";
8779
8990
  /**
8780
8991
  * users.createMember input.
8781
8992
  *
@@ -8818,7 +9029,7 @@ export interface UsersCreateMemberOutput {
8818
9029
  *
8819
9030
  * Adds a member to the organization, either by attaching an existing user (by email) or by creating a new user. Creating a new user requires `password` and `name`, otherwise 422 NEW_USER_REQUIRES_PASSWORD is returned. Returns 409 DUPLICATE_EMAIL / ALREADY_MEMBER on conflicts and 422 ROLE_SCOPE_MISMATCH / 404 ROLE_NOT_FOUND for invalid role assignment.
8820
9031
  */
8821
- export type UsersCreateMemberErrorCode = "ALREADY_MEMBER" | "DUPLICATE_EMAIL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "NEW_USER_REQUIRES_PASSWORD" | "PERMISSION_CEILING_EXCEEDED" | "ROLE_NOT_FOUND" | "ROLE_SCOPE_MISMATCH" | "UNAUTHORIZED";
9032
+ export type UsersCreateMemberErrorCode = "ALREADY_MEMBER" | "DUPLICATE_EMAIL" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "NEW_USER_REQUIRES_PASSWORD" | "PERMISSION_CEILING_EXCEEDED" | "ROLE_NOT_FOUND" | "ROLE_SCOPE_MISMATCH" | "SSO_REQUIRED" | "UNAUTHORIZED";
8822
9033
  /**
8823
9034
  * users.listMembers input.
8824
9035
  *
@@ -8864,13 +9075,16 @@ export interface UsersListMembersInput {
8864
9075
  */
8865
9076
  export interface UsersListMembersOutput {
8866
9077
  items: {
9078
+ can_manage_account: boolean;
8867
9079
  can_reset_password: boolean;
8868
9080
  created_at: string;
8869
9081
  email: string;
8870
9082
  id: UserId;
9083
+ locked_until: string | null;
8871
9084
  name: string;
8872
9085
  role_id: RoleId;
8873
9086
  role_name: string;
9087
+ second_factor: "none" | "totp" | "passkey" | "pending";
8874
9088
  status: string;
8875
9089
  timezone: string | null;
8876
9090
  }[];
@@ -8896,7 +9110,7 @@ export interface UsersListMembersOutput {
8896
9110
  *
8897
9111
  * Returns a paginated list of the organization's members, optionally filtered by membership `status`.
8898
9112
  */
8899
- export type UsersListMembersErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
9113
+ export type UsersListMembersErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
8900
9114
  /**
8901
9115
  * users.me input.
8902
9116
  *
@@ -8924,6 +9138,7 @@ export type UsersMeOutput = {
8924
9138
  * Deprecated: the notification center is always on. Always in_app.
8925
9139
  */
8926
9140
  notification_center_mode: "off" | "in_app" | "full";
9141
+ notification_email: boolean;
8927
9142
  notification_toast: "follow_org" | "critical_only" | "off";
8928
9143
  org_id: OrganizationId;
8929
9144
  org_timezone: string;
@@ -8939,7 +9154,7 @@ export type UsersMeOutput = {
8939
9154
  *
8940
9155
  * Returns the authenticated user's profile for the current organization, including their effective `permissions`, role scope and feature flags. Under `X-API-Key` authentication this resolves to the user who created the key. A platform admin that is not a member of the resolved organization is answered from its platform-scope membership. Returns `null` (HTTP 200) when an organization-scoped caller is not a member of the organization.
8941
9156
  */
8942
- export type UsersMeErrorCode = "FORBIDDEN" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
9157
+ export type UsersMeErrorCode = "FORBIDDEN" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
8943
9158
  /**
8944
9159
  * users.removeMember input.
8945
9160
  *
@@ -8964,7 +9179,57 @@ export interface UsersRemoveMemberOutput {
8964
9179
  *
8965
9180
  * Removes a member from the organization. Returns 409 CANNOT_REMOVE_SELF when the caller targets their own membership and 404 MEMBER_NOT_FOUND when the member does not exist. Returns `{ success: true }` on success.
8966
9181
  */
8967
- export type UsersRemoveMemberErrorCode = "CANNOT_REMOVE_SELF" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "LAST_ADMINISTRATOR" | "MEMBER_NOT_FOUND" | "MEMBER_SUSPENDED" | "PERMISSION_CEILING_EXCEEDED" | "UNAUTHORIZED";
9182
+ export type UsersRemoveMemberErrorCode = "CANNOT_REMOVE_SELF" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "LAST_ADMINISTRATOR" | "MEMBER_NOT_FOUND" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "PERMISSION_CEILING_EXCEEDED" | "UNAUTHORIZED";
9183
+ /**
9184
+ * users.resetSecondFactor input.
9185
+ *
9186
+ * Removes authenticator and recovery codes and revokes every session and trusted device.
9187
+ */
9188
+ export interface UsersResetSecondFactorInput {
9189
+ /**
9190
+ * TypeID of the member/user (usr_...).
9191
+ */
9192
+ user_id: UserId;
9193
+ }
9194
+ /**
9195
+ * users.resetSecondFactor output.
9196
+ *
9197
+ * Removes authenticator and recovery codes and revokes every session and trusted device.
9198
+ */
9199
+ export interface UsersResetSecondFactorOutput {
9200
+ success: true;
9201
+ }
9202
+ /**
9203
+ * users.resetSecondFactor error codes.
9204
+ *
9205
+ * Removes authenticator and recovery codes and revokes every session and trusted device.
9206
+ */
9207
+ export type UsersResetSecondFactorErrorCode = "ACCOUNT_TARGET_FORBIDDEN" | "CANNOT_MANAGE_OWN_ACCOUNT" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_NOT_FOUND" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "PERMISSION_CEILING_EXCEEDED" | "UNAUTHORIZED";
9208
+ /**
9209
+ * users.revokeMemberSessions input.
9210
+ *
9211
+ * Ends all of the member's sessions across the installation, including legacy tokens. Does not change membership status.
9212
+ */
9213
+ export interface UsersRevokeMemberSessionsInput {
9214
+ /**
9215
+ * TypeID of the member/user (usr_...).
9216
+ */
9217
+ user_id: UserId;
9218
+ }
9219
+ /**
9220
+ * users.revokeMemberSessions output.
9221
+ *
9222
+ * Ends all of the member's sessions across the installation, including legacy tokens. Does not change membership status.
9223
+ */
9224
+ export interface UsersRevokeMemberSessionsOutput {
9225
+ success: true;
9226
+ }
9227
+ /**
9228
+ * users.revokeMemberSessions error codes.
9229
+ *
9230
+ * Ends all of the member's sessions across the installation, including legacy tokens. Does not change membership status.
9231
+ */
9232
+ export type UsersRevokeMemberSessionsErrorCode = "ACCOUNT_TARGET_FORBIDDEN" | "CANNOT_MANAGE_OWN_ACCOUNT" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_NOT_FOUND" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "PERMISSION_CEILING_EXCEEDED" | "UNAUTHORIZED";
8968
9233
  /**
8969
9234
  * users.suspendMember input.
8970
9235
  *
@@ -8996,7 +9261,54 @@ export interface UsersSuspendMemberOutput {
8996
9261
  *
8997
9262
  * 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.
8998
9263
  */
8999
- export type UsersSuspendMemberErrorCode = "CANNOT_SUSPEND_SELF" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "LAST_ADMINISTRATOR" | "MEMBER_NOT_FOUND" | "MEMBER_SUSPENDED" | "PERMISSION_CEILING_EXCEEDED" | "UNAUTHORIZED";
9264
+ export type UsersSuspendMemberErrorCode = "CANNOT_SUSPEND_SELF" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "LAST_ADMINISTRATOR" | "MEMBER_NOT_FOUND" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "PERMISSION_CEILING_EXCEEDED" | "UNAUTHORIZED";
9265
+ /**
9266
+ * users.unlockMember input.
9267
+ *
9268
+ * Resets the installation-wide password lockout. Does not change membership status.
9269
+ */
9270
+ export interface UsersUnlockMemberInput {
9271
+ /**
9272
+ * TypeID of the member/user (usr_...).
9273
+ */
9274
+ user_id: UserId;
9275
+ }
9276
+ /**
9277
+ * users.unlockMember output.
9278
+ *
9279
+ * Resets the installation-wide password lockout. Does not change membership status.
9280
+ */
9281
+ export interface UsersUnlockMemberOutput {
9282
+ success: true;
9283
+ }
9284
+ /**
9285
+ * users.unlockMember error codes.
9286
+ *
9287
+ * Resets the installation-wide password lockout. Does not change membership status.
9288
+ */
9289
+ export type UsersUnlockMemberErrorCode = "ACCOUNT_TARGET_FORBIDDEN" | "CANNOT_MANAGE_OWN_ACCOUNT" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_NOT_FOUND" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "PERMISSION_CEILING_EXCEEDED" | "UNAUTHORIZED";
9290
+ /**
9291
+ * users.updateMyNotificationEmail input.
9292
+ *
9293
+ * Sets whether the calling user wants notification emails.
9294
+ */
9295
+ export interface UsersUpdateMyNotificationEmailInput {
9296
+ notification_email: boolean;
9297
+ }
9298
+ /**
9299
+ * users.updateMyNotificationEmail output.
9300
+ *
9301
+ * Sets whether the calling user wants notification emails.
9302
+ */
9303
+ export interface UsersUpdateMyNotificationEmailOutput {
9304
+ notification_email: boolean;
9305
+ }
9306
+ /**
9307
+ * users.updateMyNotificationEmail error codes.
9308
+ *
9309
+ * Sets whether the calling user wants notification emails.
9310
+ */
9311
+ export type UsersUpdateMyNotificationEmailErrorCode = "FORBIDDEN" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
9000
9312
  /**
9001
9313
  * users.updateMyNotificationToast input.
9002
9314
  *
@@ -9018,7 +9330,7 @@ export interface UsersUpdateMyNotificationToastOutput {
9018
9330
  *
9019
9331
  * Sets whether the calling user wants notification toasts: `follow_org`, `critical_only` or `off`.
9020
9332
  */
9021
- export type UsersUpdateMyNotificationToastErrorCode = "FORBIDDEN" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
9333
+ export type UsersUpdateMyNotificationToastErrorCode = "FORBIDDEN" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
9022
9334
  /**
9023
9335
  * users.updateRole input.
9024
9336
  *
@@ -9054,7 +9366,7 @@ export interface UsersUpdateRoleOutput {
9054
9366
  *
9055
9367
  * Assigns a new role to a member. Returns 422 ROLE_SCOPE_MISMATCH when the role cannot be assigned in this organization context, 404 ROLE_NOT_FOUND when the role does not exist, and 404 MEMBER_NOT_FOUND when the member does not exist.
9056
9368
  */
9057
- export type UsersUpdateRoleErrorCode = "CANNOT_REMOVE_SELF" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "LAST_ADMINISTRATOR" | "MEMBER_NOT_FOUND" | "MEMBER_SUSPENDED" | "PERMISSION_CEILING_EXCEEDED" | "ROLE_NOT_FOUND" | "ROLE_SCOPE_MISMATCH" | "UNAUTHORIZED";
9369
+ export type UsersUpdateRoleErrorCode = "CANNOT_REMOVE_SELF" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "LAST_ADMINISTRATOR" | "MEMBER_NOT_FOUND" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "PERMISSION_CEILING_EXCEEDED" | "ROLE_NOT_FOUND" | "ROLE_SCOPE_MISMATCH" | "UNAUTHORIZED";
9058
9370
  /**
9059
9371
  * visualPlans.clone input.
9060
9372
  *
@@ -9125,7 +9437,7 @@ export interface VisualPlansCloneOutput {
9125
9437
  *
9126
9438
  * Creates a new plan that duplicates the source plan's node graph and settings under a new name. The clone starts unpublished. Returns 404 PLAN_NOT_FOUND when the source plan does not exist.
9127
9439
  */
9128
- export type VisualPlansCloneErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9440
+ export type VisualPlansCloneErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9129
9441
  /**
9130
9442
  * visualPlans.create input.
9131
9443
  *
@@ -9281,7 +9593,7 @@ export interface VisualPlansCreateOutput {
9281
9593
  *
9282
9594
  * Creates a visual plan. When `language` is omitted the organization's default language is used. Setting `transcription_enabled` to `true` requires the AI module, otherwise 403 MODULE_DISABLED is returned.
9283
9595
  */
9284
- export type VisualPlansCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9596
+ export type VisualPlansCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9285
9597
  /**
9286
9598
  * visualPlans.delete input.
9287
9599
  *
@@ -9306,7 +9618,7 @@ export interface VisualPlansDeleteOutput {
9306
9618
  *
9307
9619
  * Deletes a visual plan. Returns 409 DIALER_PLAN_IN_USE when the plan is still referenced by an active dialer campaign, and 404 PLAN_NOT_FOUND when it does not exist. Returns `{ success: true }` on success.
9308
9620
  */
9309
- export type VisualPlansDeleteErrorCode = "DIALER_PLAN_IN_USE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9621
+ export type VisualPlansDeleteErrorCode = "DIALER_PLAN_IN_USE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9310
9622
  /**
9311
9623
  * visualPlans.getById input.
9312
9624
  *
@@ -9383,7 +9695,7 @@ export interface VisualPlansGetByIdOutput {
9383
9695
  *
9384
9696
  * Returns the visual plan together with its working draft and published editor state. Returns 404 PLAN_NOT_FOUND when the plan does not exist or belongs to another organization.
9385
9697
  */
9386
- export type VisualPlansGetByIdErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9698
+ export type VisualPlansGetByIdErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9387
9699
  /**
9388
9700
  * visualPlans.importDraft input.
9389
9701
  *
@@ -9408,6 +9720,9 @@ export interface VisualPlansImportDraftInput {
9408
9720
  };
9409
9721
  id: string;
9410
9722
  label: string;
9723
+ origin?: {
9724
+ preset_id: string;
9725
+ };
9411
9726
  position: {
9412
9727
  x: number;
9413
9728
  y: number;
@@ -9465,11 +9780,11 @@ export interface VisualPlansImportDraftOutput {
9465
9780
  *
9466
9781
  * Replaces the visual plan's working draft with a serialized editor state. The state is stored as a draft and is not published; references that do not exist in the destination organization are reported when the plan is published, matching the editor import flow.
9467
9782
  */
9468
- export type VisualPlansImportDraftErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9783
+ export type VisualPlansImportDraftErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9469
9784
  /**
9470
9785
  * visualPlans.list input.
9471
9786
  *
9472
- * Returns a paginated list of visual plans, each including its recording/transcription/speech-analytics settings and the channels currently assigned to it.
9787
+ * 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.
9473
9788
  */
9474
9789
  export interface VisualPlansListInput {
9475
9790
  /**
@@ -9499,13 +9814,26 @@ export interface VisualPlansListInput {
9499
9814
  * @default "desc"
9500
9815
  */
9501
9816
  sort_order?: "asc" | "desc";
9817
+ /**
9818
+ * Filter by publication state; `published` returns only plans with a published version, `draft` only plans without one. Absent returns everything.
9819
+ */
9820
+ status?: "published" | "draft";
9502
9821
  }
9503
9822
  /**
9504
9823
  * visualPlans.list output.
9505
9824
  *
9506
- * Returns a paginated list of visual plans, each including its recording/transcription/speech-analytics settings and the channels currently assigned to it.
9825
+ * 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.
9507
9826
  */
9508
9827
  export interface VisualPlansListOutput {
9828
+ calls_7d_total: number | null;
9829
+ /**
9830
+ * Plan counts for the organization under the current search, ignoring the status filter.
9831
+ */
9832
+ counts: {
9833
+ all: number;
9834
+ draft: number;
9835
+ published: number;
9836
+ };
9509
9837
  items: {
9510
9838
  anonymize_enabled: boolean;
9511
9839
  assigned_channels: {
@@ -9516,18 +9844,35 @@ export interface VisualPlansListOutput {
9516
9844
  auto_analysis_enabled: boolean;
9517
9845
  auto_analysis_ids: string[];
9518
9846
  auto_analysis_inherit_org: boolean;
9847
+ calls_7d: {
9848
+ daily: number[];
9849
+ /**
9850
+ * Calls and conversations in the last 7 days.
9851
+ */
9852
+ total: number;
9853
+ } | null;
9519
9854
  created_at: string;
9520
9855
  description: string | null;
9856
+ /**
9857
+ * True when the working draft differs from the published version by the editor's own rules (labels, config and connections; positions never count). False when never published.
9858
+ */
9859
+ has_unpublished_changes: boolean;
9521
9860
  id: VisualPlanId;
9522
9861
  intent_detection_intents: string[];
9523
9862
  /**
9524
9863
  * maxLength: 10
9525
9864
  */
9526
9865
  language: string | null;
9866
+ last_edited_by: {
9867
+ avatar_url: string | null;
9868
+ id: UserId;
9869
+ name: string;
9870
+ } | null;
9527
9871
  /**
9528
9872
  * maxLength: 255
9529
9873
  */
9530
9874
  name: string;
9875
+ published_version: number | null;
9531
9876
  published_version_id: VisualPlanVersionId | null;
9532
9877
  recording_enabled: boolean;
9533
9878
  sampling_percentage: number;
@@ -9565,6 +9910,10 @@ export interface VisualPlansListOutput {
9565
9910
  */
9566
9911
  transcription_type: "post_call" | "live";
9567
9912
  updated_at: string;
9913
+ /**
9914
+ * How many other live plans of the organization use this plan as a sub-plan.
9915
+ */
9916
+ used_by_plans: number;
9568
9917
  }[];
9569
9918
  /**
9570
9919
  * Items per page used for this response.
@@ -9586,9 +9935,9 @@ export interface VisualPlansListOutput {
9586
9935
  /**
9587
9936
  * visualPlans.list error codes.
9588
9937
  *
9589
- * Returns a paginated list of visual plans, each including its recording/transcription/speech-analytics settings and the channels currently assigned to it.
9938
+ * 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.
9590
9939
  */
9591
- export type VisualPlansListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
9940
+ export type VisualPlansListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
9592
9941
  /**
9593
9942
  * visualPlans.listVersions input.
9594
9943
  *
@@ -9645,7 +9994,7 @@ export interface VisualPlansListVersionsOutput {
9645
9994
  *
9646
9995
  * Returns the plan's version history along with the id of the currently published version. Returns 404 PLAN_NOT_FOUND when the plan does not exist or belongs to another organization.
9647
9996
  */
9648
- export type VisualPlansListVersionsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9997
+ export type VisualPlansListVersionsErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9649
9998
  /**
9650
9999
  * visualPlans.publish input.
9651
10000
  *
@@ -9670,6 +10019,9 @@ export interface VisualPlansPublishInput {
9670
10019
  };
9671
10020
  id: string;
9672
10021
  label: string;
10022
+ origin?: {
10023
+ preset_id: string;
10024
+ };
9673
10025
  position: {
9674
10026
  x: number;
9675
10027
  y: number;
@@ -9738,7 +10090,7 @@ export interface VisualPlansPublishOutput {
9738
10090
  *
9739
10091
  * Validates the draft and creates a new immutable version that immediately starts answering calls and chats. Returns 422 PLAN_VALIDATION_FAILED when the plan has validation errors (including nodes that rely on modules the organization's license has disabled) and 409 DRAFT_STALE when `expectedRevision` no longer matches the current draft. Emits a `plan.published` webhook on success.
9740
10092
  */
9741
- export type VisualPlansPublishErrorCode = "DRAFT_STALE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "PLAN_VALIDATION_FAILED" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
10093
+ export type VisualPlansPublishErrorCode = "DRAFT_STALE" | "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "PLAN_VALIDATION_FAILED" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9742
10094
  /**
9743
10095
  * visualPlans.update input.
9744
10096
  *
@@ -9852,7 +10204,7 @@ export interface VisualPlansUpdateOutput {
9852
10204
  *
9853
10205
  * Partially updates a visual plan's metadata and capture settings. Setting `transcription_enabled` to `true` requires the AI module, otherwise 403 MODULE_DISABLED is returned. This does not modify the plan's node graph (see the draft/publish endpoints).
9854
10206
  */
9855
- export type VisualPlansUpdateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
10207
+ export type VisualPlansUpdateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9856
10208
  /**
9857
10209
  * visualPlans.validate input.
9858
10210
  *
@@ -9904,7 +10256,7 @@ export interface VisualPlansValidateOutput {
9904
10256
  *
9905
10257
  * Validates a plan supplied either by `planId` (the stored draft) or by an inline `execution_plan`, without persisting anything. Returns the overall `valid` flag and a list of issues; nodes that rely on modules disabled for the organization's license are reported as issues.
9906
10258
  */
9907
- export type VisualPlansValidateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
10259
+ export type VisualPlansValidateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "PLAN_NOT_FOUND" | "SIGNAL_NOT_FOUND" | "UNAUTHORIZED";
9908
10260
  /**
9909
10261
  * webhooks.deliveries.aggregates.get input.
9910
10262
  *
@@ -10014,7 +10366,7 @@ export interface WebhooksDeliveriesAggregatesGetOutput {
10014
10366
  *
10015
10367
  * Breaks one completed organization-local day down by endpoint, event type and HTTP class, with the raw endpoint/event/outcome/HTTP-class rows behind it. A day outside the aggregate retention window, or one whose individual logs have not been drained yet, returns 404 WEBHOOK_DELIVERY_AGGREGATE_NOT_FOUND. Requires the webhook:read scope.
10016
10368
  */
10017
- export type WebhooksDeliveriesAggregatesGetErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED" | "WEBHOOK_DELIVERY_AGGREGATE_NOT_FOUND";
10369
+ export type WebhooksDeliveriesAggregatesGetErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED" | "WEBHOOK_DELIVERY_AGGREGATE_NOT_FOUND";
10018
10370
  /**
10019
10371
  * webhooks.deliveries.aggregates.list input.
10020
10372
  *
@@ -10133,7 +10485,7 @@ export interface WebhooksDeliveriesAggregatesListOutput {
10133
10485
  *
10134
10486
  * Returns one compact result per completed organization-local day. REST query parameters use snake_case. Requires the webhook:read scope.
10135
10487
  */
10136
- export type WebhooksDeliveriesAggregatesListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED" | "WEBHOOK_DELIVERY_CURSOR_INVALID";
10488
+ export type WebhooksDeliveriesAggregatesListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED" | "WEBHOOK_DELIVERY_CURSOR_INVALID";
10137
10489
  /**
10138
10490
  * webhooks.deliveries.count input.
10139
10491
  *
@@ -10172,7 +10524,7 @@ export interface WebhooksDeliveriesCountOutput {
10172
10524
  *
10173
10525
  * Returns the exact filtered webhook delivery-log count. REST query parameters use snake_case. Requires the webhook:read scope.
10174
10526
  */
10175
- export type WebhooksDeliveriesCountErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
10527
+ export type WebhooksDeliveriesCountErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
10176
10528
  /**
10177
10529
  * webhooks.deliveries.getById input.
10178
10530
  *
@@ -10214,7 +10566,7 @@ export type WebhooksDeliveriesGetByIdOutput = {
10214
10566
  *
10215
10567
  * Fetches a single delivery attempt by id, including the payload, response status/body and retry metadata. A missing or cross-org id returns 200 with a null body. Requires the webhook:read scope.
10216
10568
  */
10217
- export type WebhooksDeliveriesGetByIdErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
10569
+ export type WebhooksDeliveriesGetByIdErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
10218
10570
  /**
10219
10571
  * webhooks.deliveries.list input.
10220
10572
  *
@@ -10328,7 +10680,7 @@ export interface WebhooksDeliveriesListOutput {
10328
10680
  *
10329
10681
  * Returns webhook delivery metadata with opaque keyset pagination. REST query parameters use snake_case; payload and response bodies are available only from the detail endpoint during the effective payload retention window. Requires the webhook:read scope.
10330
10682
  */
10331
- export type WebhooksDeliveriesListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED" | "WEBHOOK_DELIVERY_CURSOR_INVALID";
10683
+ export type WebhooksDeliveriesListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED" | "WEBHOOK_DELIVERY_CURSOR_INVALID";
10332
10684
  /**
10333
10685
  * webhooks.deliveries.retention input.
10334
10686
  *
@@ -10383,7 +10735,7 @@ export interface WebhooksDeliveriesRetentionOutput {
10383
10735
  *
10384
10736
  * Returns the effective installation retention windows for full payloads, individual delivery metadata, and daily aggregates. Requires the webhook:read scope.
10385
10737
  */
10386
- export type WebhooksDeliveriesRetentionErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
10738
+ export type WebhooksDeliveriesRetentionErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
10387
10739
  /**
10388
10740
  * webhooks.deliveries.retry input.
10389
10741
  *
@@ -10408,7 +10760,7 @@ export interface WebhooksDeliveriesRetryOutput {
10408
10760
  *
10409
10761
  * Re-queues a failed or pending delivery within the payload retention window for another attempt and returns { success: true }. Delivered events cannot be retried; deliveries whose payload has expired return 409 WEBHOOK_DELIVERY_RETENTION_EXPIRED. Requires the webhook:update scope.
10410
10762
  */
10411
- export type WebhooksDeliveriesRetryErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED" | "WEBHOOK_DELIVERY_NOT_RETRYABLE" | "WEBHOOK_DELIVERY_RETENTION_EXPIRED";
10763
+ export type WebhooksDeliveriesRetryErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED" | "WEBHOOK_DELIVERY_NOT_RETRYABLE" | "WEBHOOK_DELIVERY_RETENTION_EXPIRED";
10412
10764
  /**
10413
10765
  * webhooks.endpoints.create input.
10414
10766
  *
@@ -10458,7 +10810,7 @@ export interface WebhooksEndpointsCreateOutput {
10458
10810
  *
10459
10811
  * Creates a webhook endpoint subscribed to the given event types. Events whose required module is disabled in the license are silently stripped; if none remain the call returns 403 MODULE_DISABLED. The plaintext signing secret is returned once, only in this response. Requires the webhook:create scope.
10460
10812
  */
10461
- export type WebhooksEndpointsCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WEBHOOK_ENDPOINT_NOT_FOUND";
10813
+ export type WebhooksEndpointsCreateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WEBHOOK_ENDPOINT_NOT_FOUND";
10462
10814
  /**
10463
10815
  * webhooks.endpoints.delete input.
10464
10816
  *
@@ -10483,7 +10835,7 @@ export interface WebhooksEndpointsDeleteOutput {
10483
10835
  *
10484
10836
  * Soft-deletes a webhook endpoint and returns { success: true }. An unknown id returns 404 WEBHOOK_ENDPOINT_NOT_FOUND. Requires the webhook:delete scope.
10485
10837
  */
10486
- export type WebhooksEndpointsDeleteErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WEBHOOK_ENDPOINT_NOT_FOUND";
10838
+ export type WebhooksEndpointsDeleteErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WEBHOOK_ENDPOINT_NOT_FOUND";
10487
10839
  /**
10488
10840
  * webhooks.endpoints.getById input.
10489
10841
  *
@@ -10521,7 +10873,7 @@ export type WebhooksEndpointsGetByIdOutput = {
10521
10873
  *
10522
10874
  * Fetches a single webhook endpoint by id. A missing or cross-org id returns 200 with a null body; the signing secret is never included. Requires the webhook:read scope.
10523
10875
  */
10524
- export type WebhooksEndpointsGetByIdErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WEBHOOK_ENDPOINT_NOT_FOUND";
10876
+ export type WebhooksEndpointsGetByIdErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WEBHOOK_ENDPOINT_NOT_FOUND";
10525
10877
  /**
10526
10878
  * webhooks.endpoints.list input.
10527
10879
  *
@@ -10600,7 +10952,7 @@ export interface WebhooksEndpointsListOutput {
10600
10952
  *
10601
10953
  * Returns the org's webhook endpoints as a paginated envelope. The signing secret is never included. Requires the webhook:read scope.
10602
10954
  */
10603
- export type WebhooksEndpointsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
10955
+ export type WebhooksEndpointsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
10604
10956
  /**
10605
10957
  * webhooks.endpoints.rotateSecret input.
10606
10958
  *
@@ -10625,7 +10977,7 @@ export interface WebhooksEndpointsRotateSecretOutput {
10625
10977
  *
10626
10978
  * Generates a new signing secret for the endpoint, invalidating the previous one, and returns the new plaintext secret (shown only in this response). An unknown id returns 404 WEBHOOK_ENDPOINT_NOT_FOUND. Requires the webhook:update scope.
10627
10979
  */
10628
- export type WebhooksEndpointsRotateSecretErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WEBHOOK_ENDPOINT_NOT_FOUND";
10980
+ export type WebhooksEndpointsRotateSecretErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WEBHOOK_ENDPOINT_NOT_FOUND";
10629
10981
  /**
10630
10982
  * webhooks.endpoints.update input.
10631
10983
  *
@@ -10678,7 +11030,7 @@ export interface WebhooksEndpointsUpdateOutput {
10678
11030
  *
10679
11031
  * Partially updates a webhook endpoint. When events are supplied, those whose required module is disabled are stripped and an empty resulting set returns 403 MODULE_DISABLED. An unknown id returns 404 WEBHOOK_ENDPOINT_NOT_FOUND. Requires the webhook:update scope.
10680
11032
  */
10681
- export type WebhooksEndpointsUpdateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WEBHOOK_ENDPOINT_NOT_FOUND";
11033
+ export type WebhooksEndpointsUpdateErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "MODULE_DISABLED" | "UNAUTHORIZED" | "WEBHOOK_ENDPOINT_NOT_FOUND";
10682
11034
  /**
10683
11035
  * webhooks.events.list input.
10684
11036
  *
@@ -10708,13 +11060,13 @@ export type WebhooksEventsListOutput = {
10708
11060
  *
10709
11061
  * Returns the technical fields, required module metadata, and example payload for every webhook event. The call.analysis_completed schema documents one aggregate delivery containing all parallel analysis results, including per-analysis failures. Requires the webhook:read scope.
10710
11062
  */
10711
- export type WebhooksEventsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "UNAUTHORIZED";
11063
+ export type WebhooksEventsListErrorCode = "FORBIDDEN" | "INSUFFICIENT_PERMISSIONS" | "INSUFFICIENT_SCOPE" | "MEMBER_SUSPENDED" | "MFA_SETUP_REQUIRED" | "UNAUTHORIZED";
10712
11064
  /** Every distinct declared error code, referenced by index from OPERATIONS. */
10713
- export declare const ERROR_CODES: readonly ["ACTIVE_CALL_NOT_FOUND", "AI_INVALID_API_KEY", "AI_NOT_CONFIGURED", "AI_UNREACHABLE", "ALREADY_MEMBER", "API_KEY_EXPIRED", "API_KEY_NOT_FOUND", "ARCHIVE_ITEM_IN_USE", "ARCHIVE_ITEM_NOT_FOUND", "ARCHIVE_RESTORE_CONFLICT", "AUDIO_FILE_CONTENT_MISSING", "AUDIO_FILE_INVALID_FORMAT", "AUDIO_FILE_IN_USE", "AUDIO_FILE_NOT_FOUND", "AUDIO_FILE_NOT_TTS", "AUDIO_FILE_TOO_LARGE", "AUDIO_URL_BLOCKED", "AUDIO_URL_DECODE_FAILED", "AUDIO_URL_HTTP_ERROR", "AUDIO_URL_INVALID", "AUDIO_URL_TIMEOUT", "AUDIO_URL_TOO_LARGE", "AUDIO_URL_UNREACHABLE", "AUDIO_URL_UNSUPPORTED_FORMAT", "AUDIT_CURSOR_INVALID", "CALL_HAS_NO_TRANSCRIPTION_WINDOW", "CALL_NOT_FOUND", "CALL_RECORD_CURSOR_INVALID", "CANNOT_REMOVE_SELF", "CANNOT_SUSPEND_SELF", "CHANNEL_ALREADY_ASSIGNED", "CHANNEL_INVALID_CREDENTIALS", "CHANNEL_NOT_FOUND", "CHANNEL_WHATSAPP_ACCESS_TOKEN_INVALID", "CHANNEL_WHATSAPP_PHONE_NUMBER_NOT_FOUND", "CHANNEL_WHATSAPP_SYNC_CONFIRMATION_REQUIRED", "CHANNEL_WHATSAPP_WABA_INVALID", "CHANNEL_WHATSAPP_WEBHOOK_SYNC_FAILED", "CONTACT_NOT_FOUND", "DECISIONS_UNAVAILABLE", "DESTINATION_NOT_FOUND", "DIALER_CAMPAIGN_INVALID_TRANSITION", "DIALER_CAMPAIGN_NOT_FOUND", "DIALER_CAMPAIGN_NO_CONTACTS", "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED", "DIALER_CONTACT_DUPLICATE", "DIALER_CONTACT_NOT_EDITABLE", "DIALER_CONTACT_NOT_REQUEUEABLE", "DIALER_DNC_DUPLICATE", "DIALER_IMPORT_INVALID", "DIALER_IMPORT_JOB_NOT_FOUND", "DIALER_MODULE_DISABLED", "DIALER_PLAN_IN_USE", "DRAFT_STALE", "DUPLICATE_CHANNEL", "DUPLICATE_EMAIL", "DUPLICATE_SIGNAL_SLUG", "ESL_CONNECTION_ERROR", "FEATURE_DISABLED", "FORBIDDEN", "HANGUP_FAILED", "HOLIDAY_GROUP_NOT_FOUND", "HOLIDAY_NOT_FOUND", "INSIGHT_PERIOD_TOO_LONG", "INSUFFICIENT_PERMISSIONS", "INSUFFICIENT_SCOPE", "INVALID_EXPORT_COLUMNS", "LAST_ADMINISTRATOR", "MEMBER_NOT_FOUND", "MEMBER_SUSPENDED", "MODULE_DISABLED", "NAGER_API_ERROR", "NEW_USER_REQUIRES_PASSWORD", "NODE_NOT_IN_TRACE", "NODE_RANGE_INVALID", "OAUTH_GRANT_FORBIDDEN", "OAUTH_GRANT_NOT_FOUND", "ORIGINATE_CAPACITY_EXCEEDED", "ORIGINATE_DESTINATION_NOT_ROUTABLE", "ORIGINATE_FAILED", "ORIGINATE_PLAN_NOT_PUBLISHED", "PERMISSION_CEILING_EXCEEDED", "PLAN_NOT_FOUND", "PLAN_VALIDATION_FAILED", "RANGE_HAS_NO_AUDIO", "RANGE_NOT_APPLICABLE", "RANGE_NOT_SATISFIABLE", "RECORDING_CONTENT_MISSING", "RECORDING_NOT_FOUND", "ROLE_NOT_FOUND", "ROLE_SCOPE_MISMATCH", "SCHEDULE_NOT_FOUND", "SELF_ROTATION_FORBIDDEN", "SIGNAL_ALERT_OPTION_REMOVED", "SIGNAL_ARCHIVED", "SIGNAL_DEFINITION_INVALID", "SIGNAL_KIND_IMMUTABLE", "SIGNAL_NOT_FOUND", "SIGNAL_TEST_NO_TRANSCRIPTION", "SIGNAL_TEST_SOURCE_INVALID", "SIGNAL_VERSION_CONFLICT", "TRANSCRIPTION_NOT_FOUND", "TTS_VOICE_UNAVAILABLE", "UNAUTHORIZED", "WEBHOOK_DELIVERY_AGGREGATE_NOT_FOUND", "WEBHOOK_DELIVERY_CURSOR_INVALID", "WEBHOOK_DELIVERY_NOT_RETRYABLE", "WEBHOOK_DELIVERY_RETENTION_EXPIRED", "WEBHOOK_ENDPOINT_NOT_FOUND", "WHATSAPP_NOT_CONFIGURED"];
11065
+ export declare const ERROR_CODES: readonly ["ACCOUNT_TARGET_FORBIDDEN", "ACTIVE_CALL_NOT_FOUND", "AI_INVALID_API_KEY", "AI_NOT_CONFIGURED", "AI_UNREACHABLE", "ALREADY_MEMBER", "API_KEY_EXPIRED", "API_KEY_NOT_FOUND", "ARCHIVE_ITEM_IN_USE", "ARCHIVE_ITEM_NOT_FOUND", "ARCHIVE_RESTORE_CONFLICT", "AUDIO_FILE_CONTENT_MISSING", "AUDIO_FILE_INVALID_FORMAT", "AUDIO_FILE_IN_USE", "AUDIO_FILE_NOT_FOUND", "AUDIO_FILE_NOT_TTS", "AUDIO_FILE_TOO_LARGE", "AUDIO_URL_BLOCKED", "AUDIO_URL_DECODE_FAILED", "AUDIO_URL_HTTP_ERROR", "AUDIO_URL_INVALID", "AUDIO_URL_TIMEOUT", "AUDIO_URL_TOO_LARGE", "AUDIO_URL_UNREACHABLE", "AUDIO_URL_UNSUPPORTED_FORMAT", "AUDIT_CURSOR_INVALID", "CALL_HAS_NO_TRANSCRIPTION_WINDOW", "CALL_NOT_FOUND", "CALL_RECORD_CURSOR_INVALID", "CANNOT_MANAGE_OWN_ACCOUNT", "CANNOT_REMOVE_SELF", "CANNOT_SUSPEND_SELF", "CHANNEL_ALREADY_ASSIGNED", "CHANNEL_CONNECTOR_NOT_ALLOWED", "CHANNEL_CONNECTOR_REQUIRED", "CHANNEL_CONNECTOR_UNAVAILABLE", "CHANNEL_INVALID_CREDENTIALS", "CHANNEL_NOT_FOUND", "CHANNEL_WHATSAPP_NUMBER_NOT_IN_CONNECTOR", "CONTACT_NOT_FOUND", "DECISIONS_UNAVAILABLE", "DESTINATION_NOT_FOUND", "DIALER_CAMPAIGN_INVALID_TRANSITION", "DIALER_CAMPAIGN_NOT_FOUND", "DIALER_CAMPAIGN_NO_CONTACTS", "DIALER_CAMPAIGN_PLAN_NOT_PUBLISHED", "DIALER_CONTACT_DUPLICATE", "DIALER_CONTACT_NOT_EDITABLE", "DIALER_CONTACT_NOT_REQUEUEABLE", "DIALER_DNC_DUPLICATE", "DIALER_IMPORT_INVALID", "DIALER_IMPORT_JOB_NOT_FOUND", "DIALER_MODULE_DISABLED", "DIALER_PLAN_IN_USE", "DRAFT_STALE", "DUPLICATE_CHANNEL", "DUPLICATE_EMAIL", "DUPLICATE_SIGNAL_SLUG", "ESL_CONNECTION_ERROR", "FEATURE_DISABLED", "FORBIDDEN", "HANGUP_FAILED", "HOLIDAY_GROUP_NOT_FOUND", "HOLIDAY_NOT_FOUND", "INSIGHT_PERIOD_TOO_LONG", "INSUFFICIENT_PERMISSIONS", "INSUFFICIENT_SCOPE", "INVALID_EXPORT_COLUMNS", "LAST_ADMINISTRATOR", "MEMBER_NOT_FOUND", "MEMBER_SUSPENDED", "MFA_SETUP_REQUIRED", "MODULE_DISABLED", "NAGER_API_ERROR", "NEW_USER_REQUIRES_PASSWORD", "NODE_NOT_IN_TRACE", "NODE_RANGE_INVALID", "OAUTH_GRANT_FORBIDDEN", "OAUTH_GRANT_NOT_FOUND", "ORIGINATE_CAPACITY_EXCEEDED", "ORIGINATE_DESTINATION_NOT_ROUTABLE", "ORIGINATE_FAILED", "ORIGINATE_PLAN_NOT_PUBLISHED", "PERMISSION_CEILING_EXCEEDED", "PLAN_NOT_FOUND", "PLAN_VALIDATION_FAILED", "RANGE_HAS_NO_AUDIO", "RANGE_NOT_APPLICABLE", "RANGE_NOT_SATISFIABLE", "RECORDING_CONTENT_MISSING", "RECORDING_NOT_FOUND", "ROLE_NOT_FOUND", "ROLE_SCOPE_MISMATCH", "SCHEDULE_NOT_FOUND", "SELF_ROTATION_FORBIDDEN", "SIGNAL_ALERT_OPTION_REMOVED", "SIGNAL_ARCHIVED", "SIGNAL_DEFINITION_INVALID", "SIGNAL_KIND_IMMUTABLE", "SIGNAL_NOT_FOUND", "SIGNAL_TEST_NO_TRANSCRIPTION", "SIGNAL_TEST_SOURCE_INVALID", "SIGNAL_VERSION_CONFLICT", "SSO_REQUIRED", "TRANSCRIPTION_NOT_FOUND", "TTS_VOICE_UNAVAILABLE", "UNAUTHORIZED", "WEBHOOK_DELIVERY_AGGREGATE_NOT_FOUND", "WEBHOOK_DELIVERY_CURSOR_INVALID", "WEBHOOK_DELIVERY_NOT_RETRYABLE", "WEBHOOK_DELIVERY_RETENTION_EXPIRED", "WEBHOOK_ENDPOINT_NOT_FOUND"];
10714
11066
  /** Declared codes shared by every operation (indexes into ERROR_CODES). */
10715
- export declare const COMMON_ERROR_CODES: readonly [59, 69, 103];
11067
+ export declare const COMMON_ERROR_CODES: readonly [60, 70, 71, 106];
10716
11068
  /** Distinct per-operation code sets beyond COMMON_ERROR_CODES, as indexes into ERROR_CODES. */
10717
- export declare const ERROR_CODE_SETS: readonly [readonly [], readonly [64, 65], readonly [26, 64, 65], readonly [27, 64, 65], readonly [40, 64, 65], readonly [6, 64, 65], readonly [61, 64, 65], readonly [62, 64, 65], readonly [64, 65, 104], readonly [64, 65, 105], readonly [64, 65, 66], readonly [64, 65, 70], readonly [64, 65, 71], readonly [64, 65, 91], readonly [10, 13, 64, 65], readonly [11, 15, 64, 65], readonly [24, 64, 65, 70], readonly [38, 64, 65, 70], readonly [61, 64, 65, 71], readonly [63, 64, 65, 70], readonly [64, 65, 106, 107], readonly [64, 65, 68, 81], readonly [64, 65, 70, 108], readonly [64, 65, 75, 76], readonly [0, 57, 60, 64, 65], readonly [1, 2, 3, 64, 65], readonly [2, 3, 64, 65, 70], readonly [38, 47, 64, 65, 70], readonly [48, 49, 64, 65, 70], readonly [5, 6, 64, 65, 92], readonly [58, 64, 65, 70, 101], readonly [64, 65, 70, 82, 97], readonly [1, 2, 3, 64, 65, 102], readonly [26, 64, 65, 86, 87, 88], readonly [28, 64, 65, 67, 68, 81], readonly [29, 64, 65, 67, 68, 81], readonly [38, 42, 49, 64, 65, 70], readonly [42, 49, 50, 64, 65, 70], readonly [52, 64, 65, 70, 82, 97], readonly [7, 8, 9, 64, 65, 70], readonly [38, 45, 46, 49, 64, 65, 70], readonly [53, 64, 65, 70, 82, 83, 97], readonly [28, 64, 65, 67, 68, 81, 89, 90], readonly [4, 55, 64, 65, 72, 81, 89, 90], readonly [41, 42, 43, 44, 51, 64, 65, 70], readonly [1, 2, 3, 12, 13, 14, 64, 65, 102], readonly [41, 42, 43, 44, 51, 64, 65, 70, 82], readonly [57, 58, 64, 65, 77, 78, 79, 80, 82], readonly [16, 17, 18, 19, 20, 21, 22, 23, 64, 65], readonly [2, 25, 64, 65, 70, 73, 74, 84, 85, 88], readonly [30, 31, 32, 33, 34, 35, 36, 37, 54, 64, 65, 70, 109], readonly [26, 39, 56, 64, 65, 70, 82, 93, 94, 95, 96, 97, 98, 99, 100]];
11069
+ export declare const ERROR_CODE_SETS: readonly [readonly [], readonly [65, 66], readonly [27, 65, 66], readonly [28, 65, 66], readonly [41, 65, 66], readonly [62, 65, 66], readonly [63, 65, 66], readonly [65, 66, 107], readonly [65, 66, 108], readonly [65, 66, 67], readonly [65, 66, 72], readonly [65, 66, 73], readonly [65, 66, 93], readonly [7, 65, 66], readonly [11, 14, 65, 66], readonly [12, 16, 65, 66], readonly [25, 65, 66, 72], readonly [39, 65, 66, 72], readonly [62, 65, 66, 73], readonly [64, 65, 66, 72], readonly [65, 66, 109, 110], readonly [65, 66, 69, 83], readonly [65, 66, 72, 111], readonly [65, 66, 77, 78], readonly [1, 58, 61, 65, 66], readonly [2, 3, 4, 65, 66], readonly [3, 4, 65, 66, 72], readonly [39, 48, 65, 66, 72], readonly [49, 50, 65, 66, 72], readonly [59, 65, 66, 72, 104], readonly [6, 7, 65, 66, 94], readonly [65, 66, 72, 84, 99], readonly [0, 29, 65, 66, 69, 83], readonly [2, 3, 4, 65, 66, 105], readonly [27, 65, 66, 88, 89, 90], readonly [30, 65, 66, 68, 69, 83], readonly [31, 65, 66, 68, 69, 83], readonly [39, 43, 50, 65, 66, 72], readonly [43, 50, 51, 65, 66, 72], readonly [53, 65, 66, 72, 84, 99], readonly [8, 9, 10, 65, 66, 72], readonly [39, 46, 47, 50, 65, 66, 72], readonly [54, 65, 66, 72, 84, 85, 99], readonly [30, 65, 66, 68, 69, 83, 91, 92], readonly [42, 43, 44, 45, 52, 65, 66, 72], readonly [2, 3, 4, 13, 14, 15, 65, 66, 105], readonly [42, 43, 44, 45, 52, 65, 66, 72, 84], readonly [5, 56, 65, 66, 74, 83, 91, 92, 103], readonly [58, 59, 65, 66, 79, 80, 81, 82, 84], readonly [17, 18, 19, 20, 21, 22, 23, 24, 65, 66], readonly [3, 26, 65, 66, 72, 75, 76, 86, 87, 90], readonly [32, 33, 34, 35, 36, 37, 38, 55, 65, 66, 72], readonly [27, 40, 57, 65, 66, 72, 84, 95, 96, 97, 98, 99, 100, 101, 102]];
10718
11070
  /** Data-only operation table: transport metadata, no types. */
10719
11071
  export declare const OPERATIONS: {
10720
11072
  readonly "ai.getBudget": {
@@ -10724,7 +11076,7 @@ export declare const OPERATIONS: {
10724
11076
  readonly queryParams: readonly [];
10725
11077
  readonly bodyKind: "none";
10726
11078
  readonly responseKind: "json";
10727
- readonly codes: 11;
11079
+ readonly codes: 10;
10728
11080
  };
10729
11081
  readonly "ai.getBudgetOverview": {
10730
11082
  readonly method: "GET";
@@ -10733,7 +11085,7 @@ export declare const OPERATIONS: {
10733
11085
  readonly queryParams: readonly [];
10734
11086
  readonly bodyKind: "none";
10735
11087
  readonly responseKind: "json";
10736
- readonly codes: 11;
11088
+ readonly codes: 10;
10737
11089
  };
10738
11090
  readonly "ai.getCallAnalyses": {
10739
11091
  readonly method: "GET";
@@ -10760,7 +11112,7 @@ export declare const OPERATIONS: {
10760
11112
  readonly queryParams: readonly [];
10761
11113
  readonly bodyKind: "none";
10762
11114
  readonly responseKind: "json";
10763
- readonly codes: 11;
11115
+ readonly codes: 10;
10764
11116
  };
10765
11117
  readonly "ai.listAgents": {
10766
11118
  readonly method: "GET";
@@ -10778,7 +11130,7 @@ export declare const OPERATIONS: {
10778
11130
  readonly queryParams: readonly ["refresh"];
10779
11131
  readonly bodyKind: "none";
10780
11132
  readonly responseKind: "json";
10781
- readonly codes: 11;
11133
+ readonly codes: 10;
10782
11134
  };
10783
11135
  readonly "ai.runAnalysis": {
10784
11136
  readonly method: "POST";
@@ -10787,7 +11139,7 @@ export declare const OPERATIONS: {
10787
11139
  readonly queryParams: readonly [];
10788
11140
  readonly bodyKind: "json";
10789
11141
  readonly responseKind: "json";
10790
- readonly codes: 30;
11142
+ readonly codes: 29;
10791
11143
  };
10792
11144
  readonly "ai.runConfiguredAnalyses": {
10793
11145
  readonly method: "POST";
@@ -10796,7 +11148,7 @@ export declare const OPERATIONS: {
10796
11148
  readonly queryParams: readonly [];
10797
11149
  readonly bodyKind: "json";
10798
11150
  readonly responseKind: "json";
10799
- readonly codes: 30;
11151
+ readonly codes: 29;
10800
11152
  };
10801
11153
  readonly "ai.runSpeechAnalytics": {
10802
11154
  readonly method: "POST";
@@ -10805,7 +11157,7 @@ export declare const OPERATIONS: {
10805
11157
  readonly queryParams: readonly [];
10806
11158
  readonly bodyKind: "json";
10807
11159
  readonly responseKind: "json";
10808
- readonly codes: 11;
11160
+ readonly codes: 10;
10809
11161
  };
10810
11162
  readonly "ai.searchTranscriptions": {
10811
11163
  readonly method: "GET";
@@ -10814,7 +11166,7 @@ export declare const OPERATIONS: {
10814
11166
  readonly queryParams: readonly ["query", "limit", "threshold", "date_from", "date_to", "visual_plan_id"];
10815
11167
  readonly bodyKind: "none";
10816
11168
  readonly responseKind: "json";
10817
- readonly codes: 11;
11169
+ readonly codes: 10;
10818
11170
  };
10819
11171
  readonly "ai.transcribeNow": {
10820
11172
  readonly method: "POST";
@@ -10823,7 +11175,7 @@ export declare const OPERATIONS: {
10823
11175
  readonly queryParams: readonly [];
10824
11176
  readonly bodyKind: "json";
10825
11177
  readonly responseKind: "json";
10826
- readonly codes: 49;
11178
+ readonly codes: 50;
10827
11179
  };
10828
11180
  readonly "apiKeys.create": {
10829
11181
  readonly method: "POST";
@@ -10841,7 +11193,7 @@ export declare const OPERATIONS: {
10841
11193
  readonly queryParams: readonly [];
10842
11194
  readonly bodyKind: "none";
10843
11195
  readonly responseKind: "json";
10844
- readonly codes: 5;
11196
+ readonly codes: 13;
10845
11197
  };
10846
11198
  readonly "apiKeys.get": {
10847
11199
  readonly method: "GET";
@@ -10850,7 +11202,7 @@ export declare const OPERATIONS: {
10850
11202
  readonly queryParams: readonly [];
10851
11203
  readonly bodyKind: "none";
10852
11204
  readonly responseKind: "json";
10853
- readonly codes: 5;
11205
+ readonly codes: 13;
10854
11206
  };
10855
11207
  readonly "apiKeys.list": {
10856
11208
  readonly method: "GET";
@@ -10868,7 +11220,7 @@ export declare const OPERATIONS: {
10868
11220
  readonly queryParams: readonly [];
10869
11221
  readonly bodyKind: "none";
10870
11222
  readonly responseKind: "json";
10871
- readonly codes: 5;
11223
+ readonly codes: 13;
10872
11224
  };
10873
11225
  readonly "apiKeys.rotate": {
10874
11226
  readonly method: "POST";
@@ -10877,7 +11229,7 @@ export declare const OPERATIONS: {
10877
11229
  readonly queryParams: readonly [];
10878
11230
  readonly bodyKind: "json";
10879
11231
  readonly responseKind: "json";
10880
- readonly codes: 29;
11232
+ readonly codes: 30;
10881
11233
  };
10882
11234
  readonly "apiKeys.update": {
10883
11235
  readonly method: "PATCH";
@@ -10886,7 +11238,7 @@ export declare const OPERATIONS: {
10886
11238
  readonly queryParams: readonly [];
10887
11239
  readonly bodyKind: "json";
10888
11240
  readonly responseKind: "json";
10889
- readonly codes: 5;
11241
+ readonly codes: 13;
10890
11242
  };
10891
11243
  readonly "apiKeys.usage": {
10892
11244
  readonly method: "GET";
@@ -10895,7 +11247,7 @@ export declare const OPERATIONS: {
10895
11247
  readonly queryParams: readonly ["days"];
10896
11248
  readonly bodyKind: "none";
10897
11249
  readonly responseKind: "json";
10898
- readonly codes: 5;
11250
+ readonly codes: 13;
10899
11251
  };
10900
11252
  readonly "archive.listDeleted": {
10901
11253
  readonly method: "GET";
@@ -10904,7 +11256,7 @@ export declare const OPERATIONS: {
10904
11256
  readonly queryParams: readonly ["search", "page", "limit", "sort_by", "sort_order", "entity_type"];
10905
11257
  readonly bodyKind: "none";
10906
11258
  readonly responseKind: "json";
10907
- readonly codes: 39;
11259
+ readonly codes: 40;
10908
11260
  };
10909
11261
  readonly "archive.purge": {
10910
11262
  readonly method: "DELETE";
@@ -10913,7 +11265,7 @@ export declare const OPERATIONS: {
10913
11265
  readonly queryParams: readonly [];
10914
11266
  readonly bodyKind: "none";
10915
11267
  readonly responseKind: "json";
10916
- readonly codes: 39;
11268
+ readonly codes: 40;
10917
11269
  };
10918
11270
  readonly "archive.restore": {
10919
11271
  readonly method: "POST";
@@ -10922,7 +11274,7 @@ export declare const OPERATIONS: {
10922
11274
  readonly queryParams: readonly [];
10923
11275
  readonly bodyKind: "none";
10924
11276
  readonly responseKind: "json";
10925
- readonly codes: 39;
11277
+ readonly codes: 40;
10926
11278
  };
10927
11279
  readonly "archive.summary": {
10928
11280
  readonly method: "GET";
@@ -10931,7 +11283,7 @@ export declare const OPERATIONS: {
10931
11283
  readonly queryParams: readonly [];
10932
11284
  readonly bodyKind: "none";
10933
11285
  readonly responseKind: "json";
10934
- readonly codes: 39;
11286
+ readonly codes: 40;
10935
11287
  };
10936
11288
  readonly "audioFiles.content": {
10937
11289
  readonly method: "GET";
@@ -10985,7 +11337,7 @@ export declare const OPERATIONS: {
10985
11337
  readonly queryParams: readonly [];
10986
11338
  readonly bodyKind: "json";
10987
11339
  readonly responseKind: "binary";
10988
- readonly codes: 48;
11340
+ readonly codes: 49;
10989
11341
  };
10990
11342
  readonly "audioFiles.regenerateTts": {
10991
11343
  readonly method: "POST";
@@ -11021,7 +11373,7 @@ export declare const OPERATIONS: {
11021
11373
  readonly queryParams: readonly ["search", "action", "actions", "resource_type", "resource_types", "auth_kind", "credential_id", "retention_class", "date_from", "date_to"];
11022
11374
  readonly bodyKind: "none";
11023
11375
  readonly responseKind: "json";
11024
- readonly codes: 11;
11376
+ readonly codes: 10;
11025
11377
  };
11026
11378
  readonly "audit.exportCsv": {
11027
11379
  readonly method: "GET";
@@ -11030,7 +11382,7 @@ export declare const OPERATIONS: {
11030
11382
  readonly queryParams: readonly ["search", "action", "actions", "resource_type", "resource_types", "auth_kind", "credential_id", "retention_class", "date_from", "date_to"];
11031
11383
  readonly bodyKind: "none";
11032
11384
  readonly responseKind: "sse";
11033
- readonly codes: 11;
11385
+ readonly codes: 10;
11034
11386
  };
11035
11387
  readonly "audit.list": {
11036
11388
  readonly method: "GET";
@@ -11057,7 +11409,7 @@ export declare const OPERATIONS: {
11057
11409
  readonly queryParams: readonly ["date_from", "date_to", "visual_plan_id", "channel_id", "status", "search", "min_duration", "max_duration", "channel_type", "origin", "signal_id", "signal_triggered", "signal_value", "has_structured_analysis", "has_structured_analysis_error", "metadata", "apply_table_filters", "separator", "columns", "include_events"];
11058
11410
  readonly bodyKind: "none";
11059
11411
  readonly responseKind: "sse";
11060
- readonly codes: 10;
11412
+ readonly codes: 9;
11061
11413
  };
11062
11414
  readonly "callRecords.getById": {
11063
11415
  readonly method: "GET";
@@ -11111,7 +11463,7 @@ export declare const OPERATIONS: {
11111
11463
  readonly queryParams: readonly [];
11112
11464
  readonly bodyKind: "none";
11113
11465
  readonly responseKind: "binary";
11114
- readonly codes: 33;
11466
+ readonly codes: 34;
11115
11467
  };
11116
11468
  readonly "callRecords.retryRecording": {
11117
11469
  readonly method: "POST";
@@ -11138,7 +11490,7 @@ export declare const OPERATIONS: {
11138
11490
  readonly queryParams: readonly [];
11139
11491
  readonly bodyKind: "json";
11140
11492
  readonly responseKind: "json";
11141
- readonly codes: 47;
11493
+ readonly codes: 48;
11142
11494
  };
11143
11495
  readonly "capabilities.get": {
11144
11496
  readonly method: "GET";
@@ -11156,7 +11508,7 @@ export declare const OPERATIONS: {
11156
11508
  readonly queryParams: readonly [];
11157
11509
  readonly bodyKind: "json";
11158
11510
  readonly responseKind: "json";
11159
- readonly codes: 50;
11511
+ readonly codes: 51;
11160
11512
  };
11161
11513
  readonly "channels.delete": {
11162
11514
  readonly method: "DELETE";
@@ -11165,7 +11517,7 @@ export declare const OPERATIONS: {
11165
11517
  readonly queryParams: readonly [];
11166
11518
  readonly bodyKind: "none";
11167
11519
  readonly responseKind: "json";
11168
- readonly codes: 50;
11520
+ readonly codes: 51;
11169
11521
  };
11170
11522
  readonly "channels.getById": {
11171
11523
  readonly method: "GET";
@@ -11174,16 +11526,16 @@ export declare const OPERATIONS: {
11174
11526
  readonly queryParams: readonly [];
11175
11527
  readonly bodyKind: "none";
11176
11528
  readonly responseKind: "json";
11177
- readonly codes: 50;
11529
+ readonly codes: 51;
11178
11530
  };
11179
11531
  readonly "channels.list": {
11180
11532
  readonly method: "GET";
11181
11533
  readonly path: "/channels";
11182
11534
  readonly pathParams: readonly [];
11183
- readonly queryParams: readonly ["search", "page", "limit", "sort_by", "sort_order", "channel_type", "is_active"];
11535
+ readonly queryParams: readonly ["search", "page", "limit", "sort_by", "sort_order", "channel_type", "is_active", "alert"];
11184
11536
  readonly bodyKind: "none";
11185
11537
  readonly responseKind: "json";
11186
- readonly codes: 50;
11538
+ readonly codes: 51;
11187
11539
  };
11188
11540
  readonly "channels.testConnection": {
11189
11541
  readonly method: "POST";
@@ -11192,7 +11544,7 @@ export declare const OPERATIONS: {
11192
11544
  readonly queryParams: readonly [];
11193
11545
  readonly bodyKind: "json";
11194
11546
  readonly responseKind: "json";
11195
- readonly codes: 50;
11547
+ readonly codes: 51;
11196
11548
  };
11197
11549
  readonly "channels.toggle": {
11198
11550
  readonly method: "POST";
@@ -11201,7 +11553,7 @@ export declare const OPERATIONS: {
11201
11553
  readonly queryParams: readonly [];
11202
11554
  readonly bodyKind: "json";
11203
11555
  readonly responseKind: "json";
11204
- readonly codes: 50;
11556
+ readonly codes: 51;
11205
11557
  };
11206
11558
  readonly "channels.update": {
11207
11559
  readonly method: "PATCH";
@@ -11210,7 +11562,7 @@ export declare const OPERATIONS: {
11210
11562
  readonly queryParams: readonly [];
11211
11563
  readonly bodyKind: "json";
11212
11564
  readonly responseKind: "json";
11213
- readonly codes: 50;
11565
+ readonly codes: 51;
11214
11566
  };
11215
11567
  readonly "contacts.getById": {
11216
11568
  readonly method: "GET";
@@ -11228,7 +11580,7 @@ export declare const OPERATIONS: {
11228
11580
  readonly queryParams: readonly ["search", "page", "limit", "sort_by", "sort_order"];
11229
11581
  readonly bodyKind: "none";
11230
11582
  readonly responseKind: "json";
11231
- readonly codes: 11;
11583
+ readonly codes: 10;
11232
11584
  };
11233
11585
  readonly "contacts.update": {
11234
11586
  readonly method: "PATCH";
@@ -11309,7 +11661,7 @@ export declare const OPERATIONS: {
11309
11661
  readonly queryParams: readonly ["search", "page", "limit", "sort_by", "sort_order", "date_from", "date_to", "status", "contact_id"];
11310
11662
  readonly bodyKind: "none";
11311
11663
  readonly responseKind: "json";
11312
- readonly codes: 11;
11664
+ readonly codes: 10;
11313
11665
  };
11314
11666
  readonly "dialerCampaigns.control": {
11315
11667
  readonly method: "POST";
@@ -11354,7 +11706,7 @@ export declare const OPERATIONS: {
11354
11706
  readonly queryParams: readonly ["search", "page", "limit", "sort_by", "sort_order", "status"];
11355
11707
  readonly bodyKind: "none";
11356
11708
  readonly responseKind: "json";
11357
- readonly codes: 11;
11709
+ readonly codes: 10;
11358
11710
  };
11359
11711
  readonly "dialerCampaigns.liveStats": {
11360
11712
  readonly method: "GET";
@@ -11372,7 +11724,7 @@ export declare const OPERATIONS: {
11372
11724
  readonly queryParams: readonly [];
11373
11725
  readonly bodyKind: "none";
11374
11726
  readonly responseKind: "sse";
11375
- readonly codes: 11;
11727
+ readonly codes: 10;
11376
11728
  };
11377
11729
  readonly "dialerCampaigns.stats": {
11378
11730
  readonly method: "GET";
@@ -11390,7 +11742,7 @@ export declare const OPERATIONS: {
11390
11742
  readonly queryParams: readonly [];
11391
11743
  readonly bodyKind: "none";
11392
11744
  readonly responseKind: "json";
11393
- readonly codes: 11;
11745
+ readonly codes: 10;
11394
11746
  };
11395
11747
  readonly "dialerCampaigns.update": {
11396
11748
  readonly method: "PATCH";
@@ -11408,7 +11760,7 @@ export declare const OPERATIONS: {
11408
11760
  readonly queryParams: readonly [];
11409
11761
  readonly bodyKind: "json";
11410
11762
  readonly responseKind: "json";
11411
- readonly codes: 36;
11763
+ readonly codes: 37;
11412
11764
  };
11413
11765
  readonly "dialerContacts.bulkCancel": {
11414
11766
  readonly method: "POST";
@@ -11417,7 +11769,7 @@ export declare const OPERATIONS: {
11417
11769
  readonly queryParams: readonly [];
11418
11770
  readonly bodyKind: "json";
11419
11771
  readonly responseKind: "json";
11420
- readonly codes: 11;
11772
+ readonly codes: 10;
11421
11773
  };
11422
11774
  readonly "dialerContacts.bulkRequeue": {
11423
11775
  readonly method: "POST";
@@ -11426,7 +11778,7 @@ export declare const OPERATIONS: {
11426
11778
  readonly queryParams: readonly [];
11427
11779
  readonly bodyKind: "json";
11428
11780
  readonly responseKind: "json";
11429
- readonly codes: 11;
11781
+ readonly codes: 10;
11430
11782
  };
11431
11783
  readonly "dialerContacts.cancel": {
11432
11784
  readonly method: "POST";
@@ -11435,7 +11787,7 @@ export declare const OPERATIONS: {
11435
11787
  readonly queryParams: readonly [];
11436
11788
  readonly bodyKind: "none";
11437
11789
  readonly responseKind: "json";
11438
- readonly codes: 36;
11790
+ readonly codes: 37;
11439
11791
  };
11440
11792
  readonly "dialerContacts.exportCsv": {
11441
11793
  readonly method: "GET";
@@ -11444,7 +11796,7 @@ export declare const OPERATIONS: {
11444
11796
  readonly queryParams: readonly ["date_from", "date_to", "status", "search"];
11445
11797
  readonly bodyKind: "none";
11446
11798
  readonly responseKind: "sse";
11447
- readonly codes: 11;
11799
+ readonly codes: 10;
11448
11800
  };
11449
11801
  readonly "dialerContacts.get": {
11450
11802
  readonly method: "GET";
@@ -11462,7 +11814,7 @@ export declare const OPERATIONS: {
11462
11814
  readonly queryParams: readonly ["search", "page", "limit", "sort_by", "sort_order", "date_from", "date_to", "status"];
11463
11815
  readonly bodyKind: "none";
11464
11816
  readonly responseKind: "json";
11465
- readonly codes: 11;
11817
+ readonly codes: 10;
11466
11818
  };
11467
11819
  readonly "dialerContacts.remove": {
11468
11820
  readonly method: "POST";
@@ -11471,7 +11823,7 @@ export declare const OPERATIONS: {
11471
11823
  readonly queryParams: readonly [];
11472
11824
  readonly bodyKind: "json";
11473
11825
  readonly responseKind: "json";
11474
- readonly codes: 11;
11826
+ readonly codes: 10;
11475
11827
  };
11476
11828
  readonly "dialerContacts.requeue": {
11477
11829
  readonly method: "POST";
@@ -11489,7 +11841,7 @@ export declare const OPERATIONS: {
11489
11841
  readonly queryParams: readonly [];
11490
11842
  readonly bodyKind: "json";
11491
11843
  readonly responseKind: "json";
11492
- readonly codes: 11;
11844
+ readonly codes: 10;
11493
11845
  };
11494
11846
  readonly "dialerContacts.update": {
11495
11847
  readonly method: "PATCH";
@@ -11498,7 +11850,7 @@ export declare const OPERATIONS: {
11498
11850
  readonly queryParams: readonly [];
11499
11851
  readonly bodyKind: "json";
11500
11852
  readonly responseKind: "json";
11501
- readonly codes: 40;
11853
+ readonly codes: 41;
11502
11854
  };
11503
11855
  readonly "dialerDnc.add": {
11504
11856
  readonly method: "POST";
@@ -11516,7 +11868,7 @@ export declare const OPERATIONS: {
11516
11868
  readonly queryParams: readonly [];
11517
11869
  readonly bodyKind: "json";
11518
11870
  readonly responseKind: "json";
11519
- readonly codes: 11;
11871
+ readonly codes: 10;
11520
11872
  };
11521
11873
  readonly "dialerDnc.bulkRemove": {
11522
11874
  readonly method: "POST";
@@ -11525,7 +11877,7 @@ export declare const OPERATIONS: {
11525
11877
  readonly queryParams: readonly [];
11526
11878
  readonly bodyKind: "json";
11527
11879
  readonly responseKind: "json";
11528
- readonly codes: 11;
11880
+ readonly codes: 10;
11529
11881
  };
11530
11882
  readonly "dialerDnc.list": {
11531
11883
  readonly method: "GET";
@@ -11534,7 +11886,7 @@ export declare const OPERATIONS: {
11534
11886
  readonly queryParams: readonly ["search", "page", "limit", "sort_by", "sort_order"];
11535
11887
  readonly bodyKind: "none";
11536
11888
  readonly responseKind: "json";
11537
- readonly codes: 11;
11889
+ readonly codes: 10;
11538
11890
  };
11539
11891
  readonly "dialerDnc.remove": {
11540
11892
  readonly method: "DELETE";
@@ -11543,7 +11895,7 @@ export declare const OPERATIONS: {
11543
11895
  readonly queryParams: readonly [];
11544
11896
  readonly bodyKind: "none";
11545
11897
  readonly responseKind: "json";
11546
- readonly codes: 11;
11898
+ readonly codes: 10;
11547
11899
  };
11548
11900
  readonly "dialerImports.create": {
11549
11901
  readonly method: "POST";
@@ -11552,7 +11904,7 @@ export declare const OPERATIONS: {
11552
11904
  readonly queryParams: readonly [];
11553
11905
  readonly bodyKind: "json";
11554
11906
  readonly responseKind: "json";
11555
- readonly codes: 37;
11907
+ readonly codes: 38;
11556
11908
  };
11557
11909
  readonly "dialerImports.get": {
11558
11910
  readonly method: "GET";
@@ -11561,7 +11913,7 @@ export declare const OPERATIONS: {
11561
11913
  readonly queryParams: readonly [];
11562
11914
  readonly bodyKind: "none";
11563
11915
  readonly responseKind: "json";
11564
- readonly codes: 37;
11916
+ readonly codes: 38;
11565
11917
  };
11566
11918
  readonly "dialerImports.invalidRows": {
11567
11919
  readonly method: "GET";
@@ -11570,7 +11922,7 @@ export declare const OPERATIONS: {
11570
11922
  readonly queryParams: readonly [];
11571
11923
  readonly bodyKind: "none";
11572
11924
  readonly responseKind: "json";
11573
- readonly codes: 37;
11925
+ readonly codes: 38;
11574
11926
  };
11575
11927
  readonly "dialerImports.progress": {
11576
11928
  readonly method: "GET";
@@ -11579,7 +11931,7 @@ export declare const OPERATIONS: {
11579
11931
  readonly queryParams: readonly [];
11580
11932
  readonly bodyKind: "none";
11581
11933
  readonly responseKind: "sse";
11582
- readonly codes: 37;
11934
+ readonly codes: 38;
11583
11935
  };
11584
11936
  readonly "holidays.countries": {
11585
11937
  readonly method: "GET";
@@ -11588,7 +11940,7 @@ export declare const OPERATIONS: {
11588
11940
  readonly queryParams: readonly [];
11589
11941
  readonly bodyKind: "none";
11590
11942
  readonly responseKind: "json";
11591
- readonly codes: 12;
11943
+ readonly codes: 11;
11592
11944
  };
11593
11945
  readonly "holidays.create": {
11594
11946
  readonly method: "POST";
@@ -11606,7 +11958,7 @@ export declare const OPERATIONS: {
11606
11958
  readonly queryParams: readonly [];
11607
11959
  readonly bodyKind: "none";
11608
11960
  readonly responseKind: "json";
11609
- readonly codes: 7;
11961
+ readonly codes: 6;
11610
11962
  };
11611
11963
  readonly "holidays.groups.create": {
11612
11964
  readonly method: "POST";
@@ -11624,7 +11976,7 @@ export declare const OPERATIONS: {
11624
11976
  readonly queryParams: readonly [];
11625
11977
  readonly bodyKind: "none";
11626
11978
  readonly responseKind: "json";
11627
- readonly codes: 6;
11979
+ readonly codes: 5;
11628
11980
  };
11629
11981
  readonly "holidays.groups.getById": {
11630
11982
  readonly method: "GET";
@@ -11633,7 +11985,7 @@ export declare const OPERATIONS: {
11633
11985
  readonly queryParams: readonly [];
11634
11986
  readonly bodyKind: "none";
11635
11987
  readonly responseKind: "json";
11636
- readonly codes: 6;
11988
+ readonly codes: 5;
11637
11989
  };
11638
11990
  readonly "holidays.groups.list": {
11639
11991
  readonly method: "GET";
@@ -11651,7 +12003,7 @@ export declare const OPERATIONS: {
11651
12003
  readonly queryParams: readonly [];
11652
12004
  readonly bodyKind: "json";
11653
12005
  readonly responseKind: "json";
11654
- readonly codes: 6;
12006
+ readonly codes: 5;
11655
12007
  };
11656
12008
  readonly "holidays.import": {
11657
12009
  readonly method: "POST";
@@ -11678,7 +12030,7 @@ export declare const OPERATIONS: {
11678
12030
  readonly queryParams: readonly ["country_code", "year"];
11679
12031
  readonly bodyKind: "none";
11680
12032
  readonly responseKind: "json";
11681
- readonly codes: 12;
12033
+ readonly codes: 11;
11682
12034
  };
11683
12035
  readonly "holidays.update": {
11684
12036
  readonly method: "PATCH";
@@ -11687,7 +12039,7 @@ export declare const OPERATIONS: {
11687
12039
  readonly queryParams: readonly [];
11688
12040
  readonly bodyKind: "json";
11689
12041
  readonly responseKind: "json";
11690
- readonly codes: 7;
12042
+ readonly codes: 6;
11691
12043
  };
11692
12044
  readonly "insights.aggregate": {
11693
12045
  readonly method: "POST";
@@ -11716,6 +12068,24 @@ export declare const OPERATIONS: {
11716
12068
  readonly responseKind: "json";
11717
12069
  readonly codes: 1;
11718
12070
  };
12071
+ readonly "nodes.list": {
12072
+ readonly method: "GET";
12073
+ readonly path: "/nodes";
12074
+ readonly pathParams: readonly [];
12075
+ readonly queryParams: readonly [];
12076
+ readonly bodyKind: "none";
12077
+ readonly responseKind: "json";
12078
+ readonly codes: 0;
12079
+ };
12080
+ readonly "nodes.schema": {
12081
+ readonly method: "GET";
12082
+ readonly path: "/nodes/{node_type}/schema";
12083
+ readonly pathParams: readonly ["node_type"];
12084
+ readonly queryParams: readonly [];
12085
+ readonly bodyKind: "none";
12086
+ readonly responseKind: "json";
12087
+ readonly codes: 0;
12088
+ };
11719
12089
  readonly "oauthGrants.list": {
11720
12090
  readonly method: "GET";
11721
12091
  readonly path: "/oauth-grants";
@@ -11777,7 +12147,7 @@ export declare const OPERATIONS: {
11777
12147
  readonly queryParams: readonly [];
11778
12148
  readonly bodyKind: "none";
11779
12149
  readonly responseKind: "json";
11780
- readonly codes: 13;
12150
+ readonly codes: 12;
11781
12151
  };
11782
12152
  readonly "schedules.getById": {
11783
12153
  readonly method: "GET";
@@ -11786,7 +12156,7 @@ export declare const OPERATIONS: {
11786
12156
  readonly queryParams: readonly [];
11787
12157
  readonly bodyKind: "none";
11788
12158
  readonly responseKind: "json";
11789
- readonly codes: 13;
12159
+ readonly codes: 12;
11790
12160
  };
11791
12161
  readonly "schedules.list": {
11792
12162
  readonly method: "GET";
@@ -11804,7 +12174,7 @@ export declare const OPERATIONS: {
11804
12174
  readonly queryParams: readonly [];
11805
12175
  readonly bodyKind: "json";
11806
12176
  readonly responseKind: "json";
11807
- readonly codes: 13;
12177
+ readonly codes: 12;
11808
12178
  };
11809
12179
  readonly "secrets.list": {
11810
12180
  readonly method: "GET";
@@ -11831,7 +12201,7 @@ export declare const OPERATIONS: {
11831
12201
  readonly queryParams: readonly ["locale"];
11832
12202
  readonly bodyKind: "none";
11833
12203
  readonly responseKind: "json";
11834
- readonly codes: 51;
12204
+ readonly codes: 52;
11835
12205
  };
11836
12206
  readonly "signals.create": {
11837
12207
  readonly method: "POST";
@@ -11840,7 +12210,7 @@ export declare const OPERATIONS: {
11840
12210
  readonly queryParams: readonly [];
11841
12211
  readonly bodyKind: "json";
11842
12212
  readonly responseKind: "json";
11843
- readonly codes: 51;
12213
+ readonly codes: 52;
11844
12214
  };
11845
12215
  readonly "signals.delete": {
11846
12216
  readonly method: "DELETE";
@@ -11849,7 +12219,7 @@ export declare const OPERATIONS: {
11849
12219
  readonly queryParams: readonly [];
11850
12220
  readonly bodyKind: "none";
11851
12221
  readonly responseKind: "json";
11852
- readonly codes: 51;
12222
+ readonly codes: 52;
11853
12223
  };
11854
12224
  readonly "signals.get": {
11855
12225
  readonly method: "GET";
@@ -11858,7 +12228,7 @@ export declare const OPERATIONS: {
11858
12228
  readonly queryParams: readonly [];
11859
12229
  readonly bodyKind: "none";
11860
12230
  readonly responseKind: "json";
11861
- readonly codes: 51;
12231
+ readonly codes: 52;
11862
12232
  };
11863
12233
  readonly "signals.list": {
11864
12234
  readonly method: "GET";
@@ -11867,7 +12237,7 @@ export declare const OPERATIONS: {
11867
12237
  readonly queryParams: readonly ["search", "page", "limit", "sort_by", "sort_order", "include_archived"];
11868
12238
  readonly bodyKind: "none";
11869
12239
  readonly responseKind: "json";
11870
- readonly codes: 11;
12240
+ readonly codes: 10;
11871
12241
  };
11872
12242
  readonly "signals.overview": {
11873
12243
  readonly method: "GET";
@@ -11876,7 +12246,7 @@ export declare const OPERATIONS: {
11876
12246
  readonly queryParams: readonly [];
11877
12247
  readonly bodyKind: "none";
11878
12248
  readonly responseKind: "json";
11879
- readonly codes: 11;
12249
+ readonly codes: 10;
11880
12250
  };
11881
12251
  readonly "signals.presets": {
11882
12252
  readonly method: "GET";
@@ -11885,7 +12255,7 @@ export declare const OPERATIONS: {
11885
12255
  readonly queryParams: readonly ["locale"];
11886
12256
  readonly bodyKind: "none";
11887
12257
  readonly responseKind: "json";
11888
- readonly codes: 11;
12258
+ readonly codes: 10;
11889
12259
  };
11890
12260
  readonly "signals.test": {
11891
12261
  readonly method: "POST";
@@ -11894,7 +12264,7 @@ export declare const OPERATIONS: {
11894
12264
  readonly queryParams: readonly [];
11895
12265
  readonly bodyKind: "json";
11896
12266
  readonly responseKind: "json";
11897
- readonly codes: 51;
12267
+ readonly codes: 52;
11898
12268
  };
11899
12269
  readonly "signals.update": {
11900
12270
  readonly method: "PATCH";
@@ -11903,7 +12273,7 @@ export declare const OPERATIONS: {
11903
12273
  readonly queryParams: readonly [];
11904
12274
  readonly bodyKind: "json";
11905
12275
  readonly responseKind: "json";
11906
- readonly codes: 51;
12276
+ readonly codes: 52;
11907
12277
  };
11908
12278
  readonly "signals.upsertBySlug": {
11909
12279
  readonly method: "PUT";
@@ -11912,7 +12282,7 @@ export declare const OPERATIONS: {
11912
12282
  readonly queryParams: readonly [];
11913
12283
  readonly bodyKind: "json";
11914
12284
  readonly responseKind: "json";
11915
- readonly codes: 51;
12285
+ readonly codes: 52;
11916
12286
  };
11917
12287
  readonly "tts.listModels": {
11918
12288
  readonly method: "GET";
@@ -11939,7 +12309,7 @@ export declare const OPERATIONS: {
11939
12309
  readonly queryParams: readonly [];
11940
12310
  readonly bodyKind: "json";
11941
12311
  readonly responseKind: "binary";
11942
- readonly codes: 32;
12312
+ readonly codes: 33;
11943
12313
  };
11944
12314
  readonly "users.activateMember": {
11945
12315
  readonly method: "POST";
@@ -11957,7 +12327,7 @@ export declare const OPERATIONS: {
11957
12327
  readonly queryParams: readonly [];
11958
12328
  readonly bodyKind: "json";
11959
12329
  readonly responseKind: "json";
11960
- readonly codes: 43;
12330
+ readonly codes: 47;
11961
12331
  };
11962
12332
  readonly "users.listMembers": {
11963
12333
  readonly method: "GET";
@@ -11984,7 +12354,25 @@ export declare const OPERATIONS: {
11984
12354
  readonly queryParams: readonly [];
11985
12355
  readonly bodyKind: "none";
11986
12356
  readonly responseKind: "json";
11987
- readonly codes: 34;
12357
+ readonly codes: 35;
12358
+ };
12359
+ readonly "users.resetSecondFactor": {
12360
+ readonly method: "POST";
12361
+ readonly path: "/members/{user_id}/reset-second-factor";
12362
+ readonly pathParams: readonly ["user_id"];
12363
+ readonly queryParams: readonly [];
12364
+ readonly bodyKind: "none";
12365
+ readonly responseKind: "json";
12366
+ readonly codes: 32;
12367
+ };
12368
+ readonly "users.revokeMemberSessions": {
12369
+ readonly method: "POST";
12370
+ readonly path: "/members/{user_id}/revoke-sessions";
12371
+ readonly pathParams: readonly ["user_id"];
12372
+ readonly queryParams: readonly [];
12373
+ readonly bodyKind: "none";
12374
+ readonly responseKind: "json";
12375
+ readonly codes: 32;
11988
12376
  };
11989
12377
  readonly "users.suspendMember": {
11990
12378
  readonly method: "POST";
@@ -11993,7 +12381,25 @@ export declare const OPERATIONS: {
11993
12381
  readonly queryParams: readonly [];
11994
12382
  readonly bodyKind: "none";
11995
12383
  readonly responseKind: "json";
11996
- readonly codes: 35;
12384
+ readonly codes: 36;
12385
+ };
12386
+ readonly "users.unlockMember": {
12387
+ readonly method: "POST";
12388
+ readonly path: "/members/{user_id}/unlock";
12389
+ readonly pathParams: readonly ["user_id"];
12390
+ readonly queryParams: readonly [];
12391
+ readonly bodyKind: "none";
12392
+ readonly responseKind: "json";
12393
+ readonly codes: 32;
12394
+ };
12395
+ readonly "users.updateMyNotificationEmail": {
12396
+ readonly method: "PUT";
12397
+ readonly path: "/users/me/notification-email";
12398
+ readonly pathParams: readonly [];
12399
+ readonly queryParams: readonly [];
12400
+ readonly bodyKind: "json";
12401
+ readonly responseKind: "json";
12402
+ readonly codes: 0;
11997
12403
  };
11998
12404
  readonly "users.updateMyNotificationToast": {
11999
12405
  readonly method: "PUT";
@@ -12011,7 +12417,7 @@ export declare const OPERATIONS: {
12011
12417
  readonly queryParams: readonly [];
12012
12418
  readonly bodyKind: "json";
12013
12419
  readonly responseKind: "json";
12014
- readonly codes: 42;
12420
+ readonly codes: 43;
12015
12421
  };
12016
12422
  readonly "visualPlans.clone": {
12017
12423
  readonly method: "POST";
@@ -12038,7 +12444,7 @@ export declare const OPERATIONS: {
12038
12444
  readonly queryParams: readonly [];
12039
12445
  readonly bodyKind: "none";
12040
12446
  readonly responseKind: "json";
12041
- readonly codes: 38;
12447
+ readonly codes: 39;
12042
12448
  };
12043
12449
  readonly "visualPlans.getById": {
12044
12450
  readonly method: "GET";
@@ -12062,7 +12468,7 @@ export declare const OPERATIONS: {
12062
12468
  readonly method: "GET";
12063
12469
  readonly path: "/visual-plans";
12064
12470
  readonly pathParams: readonly [];
12065
- readonly queryParams: readonly ["search", "page", "limit", "sort_by", "sort_order"];
12471
+ readonly queryParams: readonly ["search", "page", "limit", "sort_by", "sort_order", "status"];
12066
12472
  readonly bodyKind: "none";
12067
12473
  readonly responseKind: "json";
12068
12474
  readonly codes: 1;
@@ -12083,7 +12489,7 @@ export declare const OPERATIONS: {
12083
12489
  readonly queryParams: readonly [];
12084
12490
  readonly bodyKind: "json";
12085
12491
  readonly responseKind: "json";
12086
- readonly codes: 41;
12492
+ readonly codes: 42;
12087
12493
  };
12088
12494
  readonly "visualPlans.update": {
12089
12495
  readonly method: "PATCH";
@@ -12110,7 +12516,7 @@ export declare const OPERATIONS: {
12110
12516
  readonly queryParams: readonly ["webhook_endpoint_id"];
12111
12517
  readonly bodyKind: "none";
12112
12518
  readonly responseKind: "json";
12113
- readonly codes: 8;
12519
+ readonly codes: 7;
12114
12520
  };
12115
12521
  readonly "webhooks.deliveries.aggregates.list": {
12116
12522
  readonly method: "GET";
@@ -12119,7 +12525,7 @@ export declare const OPERATIONS: {
12119
12525
  readonly queryParams: readonly ["limit", "cursor", "sort_order", "webhook_endpoint_id", "event_type", "outcome", "http_class", "date_from", "date_to"];
12120
12526
  readonly bodyKind: "none";
12121
12527
  readonly responseKind: "json";
12122
- readonly codes: 9;
12528
+ readonly codes: 8;
12123
12529
  };
12124
12530
  readonly "webhooks.deliveries.count": {
12125
12531
  readonly method: "GET";
@@ -12146,7 +12552,7 @@ export declare const OPERATIONS: {
12146
12552
  readonly queryParams: readonly ["limit", "cursor", "sort_order", "webhook_endpoint_id", "event_type", "status", "date_from", "date_to"];
12147
12553
  readonly bodyKind: "none";
12148
12554
  readonly responseKind: "json";
12149
- readonly codes: 9;
12555
+ readonly codes: 8;
12150
12556
  };
12151
12557
  readonly "webhooks.deliveries.retention": {
12152
12558
  readonly method: "GET";
@@ -12343,6 +12749,8 @@ export type NivaErrorCodes = {
12343
12749
  "insights.aggregate": InsightsAggregateErrorCode;
12344
12750
  "license.modules": LicenseModulesErrorCode;
12345
12751
  "license.status": LicenseStatusErrorCode;
12752
+ "nodes.list": NodesListErrorCode;
12753
+ "nodes.schema": NodesSchemaErrorCode;
12346
12754
  "oauthGrants.list": OauthGrantsListErrorCode;
12347
12755
  "oauthGrants.revoke": OauthGrantsRevokeErrorCode;
12348
12756
  "oauthGrants.usage": OauthGrantsUsageErrorCode;
@@ -12373,7 +12781,11 @@ export type NivaErrorCodes = {
12373
12781
  "users.listMembers": UsersListMembersErrorCode;
12374
12782
  "users.me": UsersMeErrorCode;
12375
12783
  "users.removeMember": UsersRemoveMemberErrorCode;
12784
+ "users.resetSecondFactor": UsersResetSecondFactorErrorCode;
12785
+ "users.revokeMemberSessions": UsersRevokeMemberSessionsErrorCode;
12376
12786
  "users.suspendMember": UsersSuspendMemberErrorCode;
12787
+ "users.unlockMember": UsersUnlockMemberErrorCode;
12788
+ "users.updateMyNotificationEmail": UsersUpdateMyNotificationEmailErrorCode;
12377
12789
  "users.updateMyNotificationToast": UsersUpdateMyNotificationToastErrorCode;
12378
12790
  "users.updateRole": UsersUpdateRoleErrorCode;
12379
12791
  "visualPlans.clone": VisualPlansCloneErrorCode;
@@ -12958,6 +13370,16 @@ export interface OperationTypes {
12958
13370
  output: LicenseStatusOutput;
12959
13371
  kind: "json";
12960
13372
  };
13373
+ "nodes.list": {
13374
+ input: NodesListInput;
13375
+ output: NodesListOutput;
13376
+ kind: "json";
13377
+ };
13378
+ "nodes.schema": {
13379
+ input: NodesSchemaInput;
13380
+ output: NodesSchemaOutput;
13381
+ kind: "json";
13382
+ };
12961
13383
  "oauthGrants.list": {
12962
13384
  input: OauthGrantsListInput;
12963
13385
  output: OauthGrantsListOutput;
@@ -13108,11 +13530,31 @@ export interface OperationTypes {
13108
13530
  output: UsersRemoveMemberOutput;
13109
13531
  kind: "json";
13110
13532
  };
13533
+ "users.resetSecondFactor": {
13534
+ input: UsersResetSecondFactorInput;
13535
+ output: UsersResetSecondFactorOutput;
13536
+ kind: "json";
13537
+ };
13538
+ "users.revokeMemberSessions": {
13539
+ input: UsersRevokeMemberSessionsInput;
13540
+ output: UsersRevokeMemberSessionsOutput;
13541
+ kind: "json";
13542
+ };
13111
13543
  "users.suspendMember": {
13112
13544
  input: UsersSuspendMemberInput;
13113
13545
  output: UsersSuspendMemberOutput;
13114
13546
  kind: "json";
13115
13547
  };
13548
+ "users.unlockMember": {
13549
+ input: UsersUnlockMemberInput;
13550
+ output: UsersUnlockMemberOutput;
13551
+ kind: "json";
13552
+ };
13553
+ "users.updateMyNotificationEmail": {
13554
+ input: UsersUpdateMyNotificationEmailInput;
13555
+ output: UsersUpdateMyNotificationEmailOutput;
13556
+ kind: "json";
13557
+ };
13116
13558
  "users.updateMyNotificationToast": {
13117
13559
  input: UsersUpdateMyNotificationToastInput;
13118
13560
  output: UsersUpdateMyNotificationToastOutput;