@talqing/sdk 0.4.1 → 0.4.2

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.
@@ -1,5 +1,5 @@
1
1
  import { type Client, type ClientMeta, type Options as Options2, type RequestResult, type ServerSentEventsResult, type TDataShape } from './client/index.js';
2
- import type { AddRecipientsRequest, AddVoiceRequest, AgentsCreateErrors, AgentsCreateResults, AgentsDeleteErrors, AgentsDeleteResults, AgentsGetErrors, AgentsGetResults, AgentsListErrors, AgentsListResults, AgentsPublishErrors, AgentsPublishResults, AgentsUpdateErrors, AgentsUpdateResults, AgentsValidateErrors, AgentsValidateResults, AgentsVersionsGetErrors, AgentsVersionsGetResults, AgentsVersionsRollbackErrors, AgentsVersionsRollbackResults, AssignPhoneNumberRequest, BackfillAnalysisRequest, BillingCreditsCheckoutErrors, BillingCreditsCheckoutResults, BillingCreditsGetErrors, BillingCreditsGetResults, BillingCreditsLedgerErrors, BillingCreditsLedgerResults, BuildKBRequest, CallsAnalysisBackfillErrors, CallsAnalysisBackfillResults, CallsAnalysisPreviewErrors, CallsAnalysisPreviewResults, CallsBatchesCancelErrors, CallsBatchesCancelResults, CallsBatchesCreateErrors, CallsBatchesCreateResults, CallsBatchesGetErrors, CallsBatchesGetResults, CallsBatchesListErrors, CallsBatchesListResults, CallsBatchesPauseErrors, CallsBatchesPauseResults, CallsBatchesRecipientsAddErrors, CallsBatchesRecipientsAddResults, CallsBatchesRecipientsListErrors, CallsBatchesRecipientsListResults, CallsBatchesResumeErrors, CallsBatchesResumeResults, CallsBatchesUpdateErrors, CallsBatchesUpdateResults, CallsDeleteErrors, CallsDeleteResults, CallsGetErrors, CallsGetResults, CallsListErrors, CallsListResults, CallsOutboundErrors, CallsOutboundResults, CallsRecordingDeleteErrors, CallsRecordingDeleteResults, CallsRecordingGetErrors, CallsRecordingGetResults, CallsScreenRecordingGetErrors, CallsScreenRecordingGetResults, CallsStatsErrors, CallsStatsResults, CallsTokenErrors, CallsTokenResults, CatalogAvatarsListErrors, CatalogAvatarsListResults, CatalogGetErrors, CatalogGetResults, CatalogVoicesElevenlabsAddErrors, CatalogVoicesElevenlabsAddResults, CatalogVoicesElevenlabsSettingsErrors, CatalogVoicesElevenlabsSettingsResults, CatalogVoicesListErrors, CatalogVoicesListResults, ConversationsCreateErrors, ConversationsCreateResults, ConversationsEventsResult, ConversationsEventsResults, ConversationsGetErrors, ConversationsGetResults, ConversationsItemsListErrors, ConversationsItemsListResults, ConversationsListErrors, ConversationsListResults, ConversationsMessagesCreateErrors, ConversationsMessagesCreateResults, ConversationsSessionsListErrors, ConversationsSessionsListResults, ConversationsSnapshotErrors, ConversationsSnapshotResults, ConversationsUpdateErrors, ConversationsUpdateResults, CopilotAgentsSendErrors, CopilotAgentsSendResults, CopilotAgentsStreamResult, CopilotAgentsStreamResults, CopilotKnowledgeSendErrors, CopilotKnowledgeSendResults, CopilotKnowledgeStreamResult, CopilotKnowledgeStreamResults, CopilotTasksSendErrors, CopilotTasksSendResults, CopilotTasksStreamResult, CopilotTasksStreamResults, CopilotToolsSendErrors, CopilotToolsSendResults, CopilotToolsStreamResult, CopilotToolsStreamResults, CreateAgentRequest, CreateCallBatchRequest, CreateEmailBatchRequest, CreateEmailSendRequest, CreateIntegrationRequest, CreateIntegrationTriggerRequest, CreateKBRequest, CreateSecretRequest, CreateTaskRequest, CreateTelephonyAccountRequest, CreateTextConversationRequest, CreateToolRequest, CreateWebhookRequest, CreditCheckoutRequest, EmailBatchesCancelErrors, EmailBatchesCancelResults, EmailBatchesCreateErrors, EmailBatchesCreateResults, EmailBatchesGetErrors, EmailBatchesGetResults, EmailBatchesListErrors, EmailBatchesListResults, EmailBatchesPauseErrors, EmailBatchesPauseResults, EmailBatchesRecipientsListErrors, EmailBatchesRecipientsListResults, EmailBatchesRecipientsRedraftErrors, EmailBatchesRecipientsRedraftResults, EmailBatchesRecipientsRestoreErrors, EmailBatchesRecipientsRestoreResults, EmailBatchesRecipientsSkipErrors, EmailBatchesRecipientsSkipResults, EmailBatchesRecipientsUpdateErrors, EmailBatchesRecipientsUpdateResults, EmailBatchesResumeErrors, EmailBatchesResumeResults, EmailBatchesSendsCancelErrors, EmailBatchesSendsCancelResults, EmailBatchesSendsCreateErrors, EmailBatchesSendsCreateResults, EmailBatchesSendsGetErrors, EmailBatchesSendsGetResults, EmailBatchesSendsListErrors, EmailBatchesSendsListResults, EmailBatchesSendsPauseErrors, EmailBatchesSendsPauseResults, EmailBatchesSendsResumeErrors, EmailBatchesSendsResumeResults, EmailBatchesSendsUpdateErrors, EmailBatchesSendsUpdateResults, EmailBatchesUpdateErrors, EmailBatchesUpdateResults, EmailSendersListErrors, EmailSendersListResults, HealthErrors, HealthResults, ImportPhoneNumbersRequest, IntegrationsCatalogErrors, IntegrationsCatalogResults, IntegrationsCreateErrors, IntegrationsCreateResults, IntegrationsDeleteErrors, IntegrationsDeleteResults, IntegrationsGetErrors, IntegrationsGetResults, IntegrationsListErrors, IntegrationsListResults, IntegrationsMcpToolsListErrors, IntegrationsMcpToolsListResults, IntegrationsTriggersCreateErrors, IntegrationsTriggersCreateResults, IntegrationsTriggersDeleteErrors, IntegrationsTriggersDeleteResults, IntegrationsTriggersListErrors, IntegrationsTriggersListResults, IntegrationsTriggersUpdateErrors, IntegrationsTriggersUpdateResults, IntegrationsUpdateErrors, IntegrationsUpdateResults, KnowledgeBuildErrors, KnowledgeBuildResults, KnowledgeCreateErrors, KnowledgeCreateResults, KnowledgeDeleteErrors, KnowledgeDeleteResults, KnowledgeEventsResult, KnowledgeEventsResults, KnowledgeGetErrors, KnowledgeGetResults, KnowledgeListErrors, KnowledgeListResults, KnowledgeNodesDeleteErrors, KnowledgeNodesDeleteResults, KnowledgeNodesGetErrors, KnowledgeNodesGetResults, KnowledgeNodesUpdateErrors, KnowledgeNodesUpdateResults, KnowledgePagesListErrors, KnowledgePagesListResults, KnowledgePromptErrors, KnowledgePromptResults, KnowledgeRegenerateTocErrors, KnowledgeRegenerateTocResults, ObservabilityGetErrors, ObservabilityGetResults, OutboundCallRequest, PatchCallBatchRequest, PatchConversationRequest, PatchEmailBatchRequest, PatchEmailRecipientRequest, PatchEmailSendRequest, PatchIntegrationRequest, PatchIntegrationTriggerRequest, PatchNodeRequest, PatchPhoneNumberRequest, PatchTaskRequest, PatchTelephonyAccountRequest, PatchToolRequest, PatchWebhookRequest, PreviewAnalysisRequest, ProviderKeysDeleteErrors, ProviderKeysDeleteResults, ProviderKeysListErrors, ProviderKeysListResults, ProviderKeysSetErrors, ProviderKeysSetResults, PublishToolRequest, RedraftRequest, RunTaskRequest, RunToolRequest, SchemasFunctionsGetErrors, SchemasFunctionsGetResults, SchemasGetErrors, SchemasGetResults, SecretsCreateErrors, SecretsCreateResults, SecretsDeleteErrors, SecretsDeleteResults, SecretsListErrors, SecretsListResults, SelectRecipientsRequest, SendMessageRequest, SetProviderKeyRequest, TasksCreateErrors, TasksCreateResults, TasksDeleteErrors, TasksDeleteResults, TasksGetErrors, TasksGetResults, TasksListErrors, TasksListResults, TasksPublishErrors, TasksPublishResults, TasksRunsCreateErrors, TasksRunsCreateResults, TasksRunsGetErrors, TasksRunsGetResults, TasksRunsListErrors, TasksRunsListResults, TasksUpdateErrors, TasksUpdateResults, TasksValidateErrors, TasksValidateResults, TasksVersionsGetErrors, TasksVersionsGetResults, TasksVersionsRollbackErrors, TasksVersionsRollbackResults, TelephonyAccountsCreateErrors, TelephonyAccountsCreateResults, TelephonyAccountsDeleteErrors, TelephonyAccountsDeleteResults, TelephonyAccountsGetErrors, TelephonyAccountsGetResults, TelephonyAccountsListErrors, TelephonyAccountsListResults, TelephonyAccountsProvisionErrors, TelephonyAccountsProvisionResults, TelephonyAccountsRemoteNumbersErrors, TelephonyAccountsRemoteNumbersResults, TelephonyAccountsUpdateErrors, TelephonyAccountsUpdateResults, TelephonyPhoneNumbersAssignErrors, TelephonyPhoneNumbersAssignResults, TelephonyPhoneNumbersGetErrors, TelephonyPhoneNumbersGetResults, TelephonyPhoneNumbersImportErrors, TelephonyPhoneNumbersImportResults, TelephonyPhoneNumbersListErrors, TelephonyPhoneNumbersListResults, TelephonyPhoneNumbersProvisionErrors, TelephonyPhoneNumbersProvisionResults, TelephonyPhoneNumbersUnassignErrors, TelephonyPhoneNumbersUnassignResults, TelephonyPhoneNumbersUpdateErrors, TelephonyPhoneNumbersUpdateResults, TelephonyProvidersListErrors, TelephonyProvidersListResults, TextMessageRequest, TokenRequest, ToolsCreateErrors, ToolsCreateResults, ToolsDeleteErrors, ToolsDeleteResults, ToolsGetErrors, ToolsGetResults, ToolsListErrors, ToolsListResults, ToolsPublishErrors, ToolsPublishResults, ToolsRunErrors, ToolsRunResults, ToolsUpdateErrors, ToolsUpdateResults, ToolsValidateErrors, ToolsValidateResults, ToolsVersionsGetErrors, ToolsVersionsGetResults, ToolsVersionsRollbackErrors, ToolsVersionsRollbackResults, UpdateAgentRequest, WebhooksCreateErrors, WebhooksCreateResults, WebhooksDeleteErrors, WebhooksDeleteResults, WebhooksDeliveriesErrors, WebhooksDeliveriesResults, WebhooksEventTypesErrors, WebhooksEventTypesResults, WebhooksListErrors, WebhooksListResults, WebhooksRotateSecretErrors, WebhooksRotateSecretResults, WebhooksTestErrors, WebhooksTestResults, WebhooksUpdateErrors, WebhooksUpdateResults } from './types.gen.js';
2
+ import type { AddRecipientsRequest, AddVoiceRequest, AgentsCreateErrors, AgentsCreateResults, AgentsDeleteErrors, AgentsDeleteResults, AgentsGetErrors, AgentsGetResults, AgentsListErrors, AgentsListResults, AgentsPublishErrors, AgentsPublishResults, AgentsUpdateErrors, AgentsUpdateResults, AgentsValidateErrors, AgentsValidateResults, AgentsVersionsGetErrors, AgentsVersionsGetResults, AgentsVersionsRollbackErrors, AgentsVersionsRollbackResults, AssignPhoneNumberRequest, BackfillAnalysisRequest, BillingCreditsCheckoutErrors, BillingCreditsCheckoutResults, BillingCreditsGetErrors, BillingCreditsGetResults, BillingCreditsLedgerErrors, BillingCreditsLedgerResults, BuildKBRequest, CallsAnalysisBackfillErrors, CallsAnalysisBackfillResults, CallsAnalysisPreviewErrors, CallsAnalysisPreviewResults, CallsBatchesCancelErrors, CallsBatchesCancelResults, CallsBatchesCreateErrors, CallsBatchesCreateResults, CallsBatchesGetErrors, CallsBatchesGetResults, CallsBatchesListErrors, CallsBatchesListResults, CallsBatchesPauseErrors, CallsBatchesPauseResults, CallsBatchesRecipientsAddErrors, CallsBatchesRecipientsAddResults, CallsBatchesRecipientsListErrors, CallsBatchesRecipientsListResults, CallsBatchesResumeErrors, CallsBatchesResumeResults, CallsBatchesUpdateErrors, CallsBatchesUpdateResults, CallsDeleteErrors, CallsDeleteResults, CallsGetErrors, CallsGetResults, CallsListErrors, CallsListResults, CallsOutboundErrors, CallsOutboundResults, CallsRecordingDeleteErrors, CallsRecordingDeleteResults, CallsRecordingGetErrors, CallsRecordingGetResults, CallsScreenRecordingGetErrors, CallsScreenRecordingGetResults, CallsStatsErrors, CallsStatsResults, CallsTokenErrors, CallsTokenResults, CatalogAvatarsListErrors, CatalogAvatarsListResults, CatalogGetErrors, CatalogGetResults, CatalogModelsSearchErrors, CatalogModelsSearchResults, CatalogVoicesElevenlabsAddErrors, CatalogVoicesElevenlabsAddResults, CatalogVoicesElevenlabsSettingsErrors, CatalogVoicesElevenlabsSettingsResults, CatalogVoicesListErrors, CatalogVoicesListResults, ConversationsCreateErrors, ConversationsCreateResults, ConversationsEventsResult, ConversationsEventsResults, ConversationsGetErrors, ConversationsGetResults, ConversationsItemsListErrors, ConversationsItemsListResults, ConversationsListErrors, ConversationsListResults, ConversationsMessagesCreateErrors, ConversationsMessagesCreateResults, ConversationsSessionsListErrors, ConversationsSessionsListResults, ConversationsSnapshotErrors, ConversationsSnapshotResults, ConversationsUpdateErrors, ConversationsUpdateResults, CopilotAgentsSendErrors, CopilotAgentsSendResults, CopilotAgentsStreamResult, CopilotAgentsStreamResults, CopilotKnowledgeSendErrors, CopilotKnowledgeSendResults, CopilotKnowledgeStreamResult, CopilotKnowledgeStreamResults, CopilotTasksSendErrors, CopilotTasksSendResults, CopilotTasksStreamResult, CopilotTasksStreamResults, CopilotToolsSendErrors, CopilotToolsSendResults, CopilotToolsStreamResult, CopilotToolsStreamResults, CreateAgentRequest, CreateCallBatchRequest, CreateEmailBatchRequest, CreateEmailSendRequest, CreateIntegrationRequest, CreateIntegrationTriggerRequest, CreateKBRequest, CreateSecretRequest, CreateStreamConnectionRequest, CreateTaskRequest, CreateTelephonyAccountRequest, CreateTextConversationRequest, CreateToolRequest, CreateWebhookRequest, CreditCheckoutRequest, EmailBatchesCancelErrors, EmailBatchesCancelResults, EmailBatchesCreateErrors, EmailBatchesCreateResults, EmailBatchesGetErrors, EmailBatchesGetResults, EmailBatchesListErrors, EmailBatchesListResults, EmailBatchesPauseErrors, EmailBatchesPauseResults, EmailBatchesRecipientsListErrors, EmailBatchesRecipientsListResults, EmailBatchesRecipientsRedraftErrors, EmailBatchesRecipientsRedraftResults, EmailBatchesRecipientsRestoreErrors, EmailBatchesRecipientsRestoreResults, EmailBatchesRecipientsSkipErrors, EmailBatchesRecipientsSkipResults, EmailBatchesRecipientsUpdateErrors, EmailBatchesRecipientsUpdateResults, EmailBatchesResumeErrors, EmailBatchesResumeResults, EmailBatchesSendsCancelErrors, EmailBatchesSendsCancelResults, EmailBatchesSendsCreateErrors, EmailBatchesSendsCreateResults, EmailBatchesSendsGetErrors, EmailBatchesSendsGetResults, EmailBatchesSendsListErrors, EmailBatchesSendsListResults, EmailBatchesSendsPauseErrors, EmailBatchesSendsPauseResults, EmailBatchesSendsResumeErrors, EmailBatchesSendsResumeResults, EmailBatchesSendsUpdateErrors, EmailBatchesSendsUpdateResults, EmailBatchesUpdateErrors, EmailBatchesUpdateResults, EmailSendersListErrors, EmailSendersListResults, HealthErrors, HealthResults, ImportPhoneNumbersRequest, IntegrationsCatalogErrors, IntegrationsCatalogResults, IntegrationsCreateErrors, IntegrationsCreateResults, IntegrationsDeleteErrors, IntegrationsDeleteResults, IntegrationsGetErrors, IntegrationsGetResults, IntegrationsListErrors, IntegrationsListResults, IntegrationsMcpToolsListErrors, IntegrationsMcpToolsListResults, IntegrationsTriggersCreateErrors, IntegrationsTriggersCreateResults, IntegrationsTriggersDeleteErrors, IntegrationsTriggersDeleteResults, IntegrationsTriggersListErrors, IntegrationsTriggersListResults, IntegrationsTriggersUpdateErrors, IntegrationsTriggersUpdateResults, IntegrationsUpdateErrors, IntegrationsUpdateResults, KnowledgeBuildErrors, KnowledgeBuildResults, KnowledgeCreateErrors, KnowledgeCreateResults, KnowledgeDeleteErrors, KnowledgeDeleteResults, KnowledgeEventsResult, KnowledgeEventsResults, KnowledgeGetErrors, KnowledgeGetResults, KnowledgeListErrors, KnowledgeListResults, KnowledgeNodesDeleteErrors, KnowledgeNodesDeleteResults, KnowledgeNodesGetErrors, KnowledgeNodesGetResults, KnowledgeNodesUpdateErrors, KnowledgeNodesUpdateResults, KnowledgePagesListErrors, KnowledgePagesListResults, KnowledgePromptErrors, KnowledgePromptResults, KnowledgeRegenerateTocErrors, KnowledgeRegenerateTocResults, ObservabilityGetErrors, ObservabilityGetResults, OutboundCallRequest, PatchCallBatchRequest, PatchConversationRequest, PatchEmailBatchRequest, PatchEmailRecipientRequest, PatchEmailSendRequest, PatchIntegrationRequest, PatchIntegrationTriggerRequest, PatchNodeRequest, PatchPhoneNumberRequest, PatchStreamConnectionRequest, PatchTaskRequest, PatchTelephonyAccountRequest, PatchToolRequest, PatchWebhookRequest, PreviewAnalysisRequest, ProviderKeysDeleteErrors, ProviderKeysDeleteResults, ProviderKeysListErrors, ProviderKeysListResults, ProviderKeysSetErrors, ProviderKeysSetResults, PublishToolRequest, RedraftRequest, RunTaskRequest, RunToolRequest, SchemasFunctionsGetErrors, SchemasFunctionsGetResults, SchemasGetErrors, SchemasGetResults, SecretsCreateErrors, SecretsCreateResults, SecretsDeleteErrors, SecretsDeleteResults, SecretsListErrors, SecretsListResults, SelectRecipientsRequest, SendMessageRequest, SetProviderKeyRequest, TasksCreateErrors, TasksCreateResults, TasksDeleteErrors, TasksDeleteResults, TasksGetErrors, TasksGetResults, TasksListErrors, TasksListResults, TasksPublishErrors, TasksPublishResults, TasksRunsCreateErrors, TasksRunsCreateResults, TasksRunsGetErrors, TasksRunsGetResults, TasksRunsListErrors, TasksRunsListResults, TasksUpdateErrors, TasksUpdateResults, TasksValidateErrors, TasksValidateResults, TasksVersionsGetErrors, TasksVersionsGetResults, TasksVersionsRollbackErrors, TasksVersionsRollbackResults, TelephonyAccountsCreateErrors, TelephonyAccountsCreateResults, TelephonyAccountsDeleteErrors, TelephonyAccountsDeleteResults, TelephonyAccountsGetErrors, TelephonyAccountsGetResults, TelephonyAccountsListErrors, TelephonyAccountsListResults, TelephonyAccountsProvisionErrors, TelephonyAccountsProvisionResults, TelephonyAccountsRemoteNumbersErrors, TelephonyAccountsRemoteNumbersResults, TelephonyAccountsUpdateErrors, TelephonyAccountsUpdateResults, TelephonyPhoneNumbersAssignErrors, TelephonyPhoneNumbersAssignResults, TelephonyPhoneNumbersGetErrors, TelephonyPhoneNumbersGetResults, TelephonyPhoneNumbersImportErrors, TelephonyPhoneNumbersImportResults, TelephonyPhoneNumbersListErrors, TelephonyPhoneNumbersListResults, TelephonyPhoneNumbersProvisionErrors, TelephonyPhoneNumbersProvisionResults, TelephonyPhoneNumbersUnassignErrors, TelephonyPhoneNumbersUnassignResults, TelephonyPhoneNumbersUpdateErrors, TelephonyPhoneNumbersUpdateResults, TelephonyProvidersListErrors, TelephonyProvidersListResults, TelephonyStreamsCreateErrors, TelephonyStreamsCreateResults, TelephonyStreamsDeleteErrors, TelephonyStreamsDeleteResults, TelephonyStreamsGetErrors, TelephonyStreamsGetResults, TelephonyStreamsListErrors, TelephonyStreamsListResults, TelephonyStreamsUpdateErrors, TelephonyStreamsUpdateResults, TextMessageRequest, TokenRequest, ToolsCreateErrors, ToolsCreateResults, ToolsDeleteErrors, ToolsDeleteResults, ToolsGetErrors, ToolsGetResults, ToolsListErrors, ToolsListResults, ToolsPublishErrors, ToolsPublishResults, ToolsRunErrors, ToolsRunResults, ToolsUpdateErrors, ToolsUpdateResults, ToolsValidateErrors, ToolsValidateResults, ToolsVersionsGetErrors, ToolsVersionsGetResults, ToolsVersionsRollbackErrors, ToolsVersionsRollbackResults, UpdateAgentRequest, WebhooksCreateErrors, WebhooksCreateResults, WebhooksDeleteErrors, WebhooksDeleteResults, WebhooksDeliveriesErrors, WebhooksDeliveriesResults, WebhooksEventTypesErrors, WebhooksEventTypesResults, WebhooksListErrors, WebhooksListResults, WebhooksRotateSecretErrors, WebhooksRotateSecretResults, WebhooksTestErrors, WebhooksTestResults, WebhooksUpdateErrors, WebhooksUpdateResults } from './types.gen.js';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -487,7 +487,7 @@ export declare class Calls extends HeyApiClient {
487
487
  start?: string | null;
488
488
  end?: string | null;
489
489
  agent_id?: string | null;
490
- type?: 'WEB' | 'SIP_INBOUND' | 'SIP_OUTBOUND' | null;
490
+ type?: 'WEB' | 'SIP_INBOUND' | 'SIP_OUTBOUND' | 'STREAM' | null;
491
491
  status?: string | null;
492
492
  outcome?: string | null;
493
493
  contact_key?: string | null;
@@ -623,6 +623,23 @@ export declare class Avatars extends HeyApiClient {
623
623
  limit?: number;
624
624
  }, options?: Options<never, ThrowOnError>): RequestResult<CatalogAvatarsListResults, CatalogAvatarsListErrors, ThrowOnError, 'data'>;
625
625
  }
626
+ export declare class Models extends HeyApiClient {
627
+ /**
628
+ * Search Models
629
+ *
630
+ * Search the language models a provider offers too many of to list.
631
+ *
632
+ * `GET /catalog` carries every model except these. A provider marked
633
+ * `browse: "search"` there — OpenRouter — reaches hundreds of models through
634
+ * one key, so they are searched a page at a time instead. With no `q` the order
635
+ * is real-world popularity. Everything returned is a valid `llm.model`.
636
+ */
637
+ search<ThrowOnError extends boolean = false>(parameters?: {
638
+ q?: string;
639
+ limit?: number;
640
+ cursor?: string;
641
+ }, options?: Options<never, ThrowOnError>): RequestResult<CatalogModelsSearchResults, CatalogModelsSearchErrors, ThrowOnError, 'data'>;
642
+ }
626
643
  export declare class Elevenlabs extends HeyApiClient {
627
644
  /**
628
645
  * Add Elevenlabs Voice
@@ -695,10 +712,16 @@ export declare class Catalog extends HeyApiClient {
695
712
  * `realtime` lists the speech-to-speech models. One of those replaces `stt`,
696
713
  * `llm` and `tts` together, so an agent sets either `realtime` or the three
697
714
  * cascade slots, never both.
715
+ *
716
+ * One provider's models are NOT here: a `providers` entry whose `browse` is
717
+ * `search` reaches hundreds of them through one key, and they are searched
718
+ * through `GET /catalog/models` instead.
698
719
  */
699
720
  get<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<CatalogGetResults, CatalogGetErrors, ThrowOnError, 'data'>;
700
721
  private _avatars?;
701
722
  get avatars(): Avatars;
723
+ private _models?;
724
+ get models(): Models;
702
725
  private _voices?;
703
726
  get voices(): Voices;
704
727
  }
@@ -1008,7 +1031,8 @@ export declare class Recipients2 extends HeyApiClient {
1008
1031
  * every row it refuses. Rows already sent or queued are never redrafted.
1009
1032
  *
1010
1033
  * This revives a batch that had finished drafting, and a person's edited cells
1011
- * survive unless you pass `clear_overrides`.
1034
+ * survive unless you pass `clear_overrides` — and are what the task is given.
1035
+ * Refused on a canceled batch, whose rows can never draft again.
1012
1036
  */
1013
1037
  redraft<ThrowOnError extends boolean = false>(parameters: {
1014
1038
  batch_id: string;
@@ -1026,11 +1050,10 @@ export declare class Recipients2 extends HeyApiClient {
1026
1050
  /**
1027
1051
  * Skip Email Batch Recipients
1028
1052
  *
1029
- * Take drafted rows out of consideration. Reversible with `restore`.
1053
+ * Take rows out of consideration. Reversible with `restore`.
1030
1054
  *
1031
- * Takes either `recipient_ids` or `selection: "all_eligible"`, which here means
1032
- * every row that has a draft. The reversible verbs keep that shorthand while
1033
- * `send` does not, because the rule is about irreversibility rather than bulk.
1055
+ * Accepts drafted rows and rows whose drafting failed. Takes either
1056
+ * `recipient_ids` or `selection: "all_eligible"`, which here means both.
1034
1057
  */
1035
1058
  skip<ThrowOnError extends boolean = false>(parameters: {
1036
1059
  batch_id: string;
@@ -1071,8 +1094,8 @@ export declare class Sends extends HeyApiClient {
1071
1094
  *
1072
1095
  * One send: where its rows are, and when it next does something.
1073
1096
  *
1074
- * `next_send_at` covers all three reasons a send waits a start time, a closed
1075
- * window, and a daily cap already spent.
1097
+ * `next_send_reason` says which gate is holding it`start`, `window`,
1098
+ * `daily_cap`, `retry` or `gap`.
1076
1099
  */
1077
1100
  get<ThrowOnError extends boolean = false>(parameters: {
1078
1101
  batch_id: string;
@@ -1669,172 +1692,55 @@ export declare class Secrets extends HeyApiClient {
1669
1692
  secret_id: string;
1670
1693
  }, options?: Options<never, ThrowOnError>): RequestResult<SecretsDeleteResults, SecretsDeleteErrors, ThrowOnError, 'data'>;
1671
1694
  }
1672
- export declare class Runs extends HeyApiClient {
1673
- /**
1674
- * List Task Runs
1675
- *
1676
- * This task's runs, newest first, each with its output, trace and cost.
1677
- *
1678
- * `task_version` says which published definition each one ran, and is null for
1679
- * a run of the draft.
1680
- */
1681
- list<ThrowOnError extends boolean = false>(parameters: {
1682
- task_id: string;
1683
- limit?: number;
1684
- offset?: number;
1685
- }, options?: Options<never, ThrowOnError>): RequestResult<TasksRunsListResults, TasksRunsListErrors, ThrowOnError, 'data'>;
1686
- /**
1687
- * Run Task
1688
- *
1689
- * Run the task once with the variables you supply, and wait for the result.
1690
- *
1691
- * **This executes for real**: the tools call your endpoints with your secrets,
1692
- * the MCP servers spend your credits, and the model spends your tokens. A task
1693
- * that books a slot, charges a card or sends a message will do so.
1694
- *
1695
- * Runs the published version unless `version` names another one, or `"draft"`
1696
- * to run the unpublished config. `vars` must match what that version declares
1697
- * — an unknown name is refused rather than dropped. The response is the whole
1698
- * run: the structured `output`, a `trace` of every tool call, the steps used
1699
- * and what the tokens cost. On failure `error.type` says whose problem it is.
1700
- * Secrets are redacted.
1701
- */
1702
- create<ThrowOnError extends boolean = false>(parameters: {
1703
- task_id: string;
1704
- runTaskRequest: RunTaskRequest;
1705
- }, options?: Options<never, ThrowOnError>): RequestResult<TasksRunsCreateResults, TasksRunsCreateErrors, ThrowOnError, 'data'>;
1706
- /**
1707
- * Get Task Run
1708
- *
1709
- * One run in full: what it produced, every tool it called on the way, and
1710
- * what it cost.
1711
- *
1712
- * This is what answers "why did it write that" for a caller holding one run id
1713
- * — an email batch's review table links each drafted row here. Secret values
1714
- * are redacted from the trace, and a trace that was cut reports it.
1715
- */
1716
- get<ThrowOnError extends boolean = false>(parameters: {
1717
- task_id: string;
1718
- run_id: string;
1719
- }, options?: Options<never, ThrowOnError>): RequestResult<TasksRunsGetResults, TasksRunsGetErrors, ThrowOnError, 'data'>;
1720
- }
1721
- export declare class Versions2 extends HeyApiClient {
1722
- /**
1723
- * Get Task Version
1724
- *
1725
- * Fetch what one published version of a task actually contains.
1726
- *
1727
- * `get_task` lists the versions and when each was published; this returns the
1728
- * frozen definition itself — prompt, model, output fields and the tool
1729
- * versions it pinned, exactly as they were at that publish.
1730
- */
1731
- get<ThrowOnError extends boolean = false>(parameters: {
1732
- task_id: string;
1733
- version: number;
1734
- }, options?: Options<never, ThrowOnError>): RequestResult<TasksVersionsGetResults, TasksVersionsGetErrors, ThrowOnError, 'data'>;
1735
- /**
1736
- * Rollback Task Version
1737
- *
1738
- * Put an earlier published version of a task back into production.
1739
- *
1740
- * That version becomes live **immediately** and **replaces the current draft**,
1741
- * so any unpublished edits are lost. No new version is created. The restored
1742
- * draft tracks each tool's latest published version, not the ones this version
1743
- * pinned.
1744
- */
1745
- rollback<ThrowOnError extends boolean = false>(parameters: {
1746
- task_id: string;
1747
- version: number;
1748
- }, options?: Options<never, ThrowOnError>): RequestResult<TasksVersionsRollbackResults, TasksVersionsRollbackErrors, ThrowOnError, 'data'>;
1749
- }
1750
- export declare class Tasks2 extends HeyApiClient {
1695
+ export declare class Streams extends HeyApiClient {
1751
1696
  /**
1752
- * List Tasks
1697
+ * List Stream Connections
1753
1698
  *
1754
- * List the workspace's agent tasks.
1755
- *
1756
- * A task is an agent nobody talks to: a prompt, one LLM, tools and MCP
1757
- * servers, the variables it takes as input, and the typed result it must
1758
- * produce. Each item carries the full draft config, the published version
1759
- * number (null while it has never been published), and `last_run`.
1699
+ * List WebSocket media-stream connections a partner can dial.
1760
1700
  */
1761
1701
  list<ThrowOnError extends boolean = false>(parameters?: {
1762
1702
  limit?: number;
1763
1703
  offset?: number;
1764
- }, options?: Options<never, ThrowOnError>): RequestResult<TasksListResults, TasksListErrors, ThrowOnError, 'data'>;
1704
+ }, options?: Options<never, ThrowOnError>): RequestResult<TelephonyStreamsListResults, TelephonyStreamsListErrors, ThrowOnError, 'data'>;
1765
1705
  /**
1766
- * Create Task
1706
+ * Create Stream Connection
1767
1707
  *
1768
- * Create an agent task: an agent nobody talks to, which takes named inputs
1769
- * and returns a typed result.
1708
+ * Create a connection a streaming partner can dial.
1770
1709
  *
1771
- * `output` is what makes this a task rather than a chat agent declare the
1772
- * fields the model must produce and it is given a `submit_result` tool built
1773
- * from them. `vars` are its inputs, read as `{{vars.name}}`. The task starts
1774
- * unpublished; publish it before running it.
1710
+ * One connection per agent per dialect: the URL names both, so a second would
1711
+ * only be the same URL again.
1775
1712
  */
1776
1713
  create<ThrowOnError extends boolean = false>(parameters: {
1777
- createTaskRequest: CreateTaskRequest;
1778
- }, options?: Options<never, ThrowOnError>): RequestResult<TasksCreateResults, TasksCreateErrors, ThrowOnError, 'data'>;
1714
+ createStreamConnectionRequest: CreateStreamConnectionRequest;
1715
+ }, options?: Options<never, ThrowOnError>): RequestResult<TelephonyStreamsCreateResults, TelephonyStreamsCreateErrors, ThrowOnError, 'data'>;
1779
1716
  /**
1780
- * Delete Task
1717
+ * Delete Stream Connection
1781
1718
  *
1782
- * Delete a task and its published versions. Its runs survive, still named
1783
- * after it.
1719
+ * Delete a stream connection. Calls it already carried are kept.
1784
1720
  */
1785
1721
  delete<ThrowOnError extends boolean = false>(parameters: {
1786
- task_id: string;
1787
- }, options?: Options<never, ThrowOnError>): RequestResult<TasksDeleteResults, TasksDeleteErrors, ThrowOnError, 'data'>;
1722
+ connection_id: string;
1723
+ }, options?: Options<never, ThrowOnError>): RequestResult<TelephonyStreamsDeleteResults, TelephonyStreamsDeleteErrors, ThrowOnError, 'data'>;
1788
1724
  /**
1789
- * Get Task
1725
+ * Get Stream Connection
1790
1726
  *
1791
- * Fetch one task's draft config, published version, history and last run.
1727
+ * One stream connection, with the URL to hand the partner.
1792
1728
  */
1793
1729
  get<ThrowOnError extends boolean = false>(parameters: {
1794
- task_id: string;
1795
- }, options?: Options<never, ThrowOnError>): RequestResult<TasksGetResults, TasksGetErrors, ThrowOnError, 'data'>;
1730
+ connection_id: string;
1731
+ }, options?: Options<never, ThrowOnError>): RequestResult<TelephonyStreamsGetResults, TelephonyStreamsGetErrors, ThrowOnError, 'data'>;
1796
1732
  /**
1797
- * Update Task
1733
+ * Patch Stream Connection
1798
1734
  *
1799
- * Replace the task's draft config with the one supplied.
1735
+ * Rename a connection, point it at another agent, or disable it.
1800
1736
  *
1801
- * The whole config is sent, so include every field you mean to keep. Writes
1802
- * land on the draft only — runs and email batches keep using the published
1803
- * version until you publish again.
1737
+ * Disabling refuses new calls immediately and is the only way to stop a URL
1738
+ * answering; calls already running are untouched.
1804
1739
  */
1805
1740
  update<ThrowOnError extends boolean = false>(parameters: {
1806
- task_id: string;
1807
- patchTaskRequest: PatchTaskRequest;
1808
- }, options?: Options<never, ThrowOnError>): RequestResult<TasksUpdateResults, TasksUpdateErrors, ThrowOnError, 'data'>;
1809
- /**
1810
- * Publish Task
1811
- *
1812
- * Freeze the current draft as a new immutable version and make it live.
1813
- *
1814
- * Validation must pass. Publishing pins every attached tool to the tool
1815
- * version live right now, so republishing a tool does not change this task
1816
- * until the task is published again.
1817
- */
1818
- publish<ThrowOnError extends boolean = false>(parameters: {
1819
- task_id: string;
1820
- }, options?: Options<never, ThrowOnError>): RequestResult<TasksPublishResults, TasksPublishErrors, ThrowOnError, 'data'>;
1821
- /**
1822
- * Validate Task
1823
- *
1824
- * Run publish-grade validation on the draft without publishing it.
1825
- *
1826
- * Covers everything a draft write checks plus what publishing adds: a
1827
- * workspace API key for the model, at least one output field, the operation
1828
- * trees of the attached tools, and the email batches already drafting with
1829
- * this task. Returns errors (blocking) and warnings (advisory).
1830
- */
1831
- validate<ThrowOnError extends boolean = false>(parameters: {
1832
- task_id: string;
1833
- }, options?: Options<never, ThrowOnError>): RequestResult<TasksValidateResults, TasksValidateErrors, ThrowOnError, 'data'>;
1834
- private _runs?;
1835
- get runs(): Runs;
1836
- private _versions?;
1837
- get versions(): Versions2;
1741
+ connection_id: string;
1742
+ patchStreamConnectionRequest: PatchStreamConnectionRequest;
1743
+ }, options?: Options<never, ThrowOnError>): RequestResult<TelephonyStreamsUpdateResults, TelephonyStreamsUpdateErrors, ThrowOnError, 'data'>;
1838
1744
  }
1839
1745
  export declare class Accounts extends HeyApiClient {
1840
1746
  /**
@@ -2037,6 +1943,8 @@ export declare class Providers extends HeyApiClient {
2037
1943
  }, options?: Options<never, ThrowOnError>): RequestResult<TelephonyProvidersListResults, TelephonyProvidersListErrors, ThrowOnError, 'data'>;
2038
1944
  }
2039
1945
  export declare class Telephony extends HeyApiClient {
1946
+ private _streams?;
1947
+ get streams(): Streams;
2040
1948
  private _accounts?;
2041
1949
  get accounts(): Accounts;
2042
1950
  private _phoneNumbers?;
@@ -2044,6 +1952,173 @@ export declare class Telephony extends HeyApiClient {
2044
1952
  private _providers?;
2045
1953
  get providers(): Providers;
2046
1954
  }
1955
+ export declare class Runs extends HeyApiClient {
1956
+ /**
1957
+ * List Task Runs
1958
+ *
1959
+ * This task's runs, newest first, each with its output, trace and cost.
1960
+ *
1961
+ * `task_version` says which published definition each one ran, and is null for
1962
+ * a run of the draft.
1963
+ */
1964
+ list<ThrowOnError extends boolean = false>(parameters: {
1965
+ task_id: string;
1966
+ limit?: number;
1967
+ offset?: number;
1968
+ }, options?: Options<never, ThrowOnError>): RequestResult<TasksRunsListResults, TasksRunsListErrors, ThrowOnError, 'data'>;
1969
+ /**
1970
+ * Run Task
1971
+ *
1972
+ * Run the task once with the variables you supply, and wait for the result.
1973
+ *
1974
+ * **This executes for real**: the tools call your endpoints with your secrets,
1975
+ * the MCP servers spend your credits, and the model spends your tokens. A task
1976
+ * that books a slot, charges a card or sends a message will do so.
1977
+ *
1978
+ * Runs the published version unless `version` names another one, or `"draft"`
1979
+ * to run the unpublished config. `vars` must match what that version declares
1980
+ * — an unknown name is refused rather than dropped. The response is the whole
1981
+ * run: the structured `output`, a `trace` of every tool call, the steps used
1982
+ * and what the tokens cost. On failure `error.type` says whose problem it is.
1983
+ * Secrets are redacted.
1984
+ */
1985
+ create<ThrowOnError extends boolean = false>(parameters: {
1986
+ task_id: string;
1987
+ runTaskRequest: RunTaskRequest;
1988
+ }, options?: Options<never, ThrowOnError>): RequestResult<TasksRunsCreateResults, TasksRunsCreateErrors, ThrowOnError, 'data'>;
1989
+ /**
1990
+ * Get Task Run
1991
+ *
1992
+ * One run in full: what it produced, every tool it called on the way, and
1993
+ * what it cost.
1994
+ *
1995
+ * This is what answers "why did it write that" for a caller holding one run id
1996
+ * — an email batch's review table links each drafted row here. Secret values
1997
+ * are redacted from the trace, and a trace that was cut reports it.
1998
+ */
1999
+ get<ThrowOnError extends boolean = false>(parameters: {
2000
+ task_id: string;
2001
+ run_id: string;
2002
+ }, options?: Options<never, ThrowOnError>): RequestResult<TasksRunsGetResults, TasksRunsGetErrors, ThrowOnError, 'data'>;
2003
+ }
2004
+ export declare class Versions2 extends HeyApiClient {
2005
+ /**
2006
+ * Get Task Version
2007
+ *
2008
+ * Fetch what one published version of a task actually contains.
2009
+ *
2010
+ * `get_task` lists the versions and when each was published; this returns the
2011
+ * frozen definition itself — prompt, model, output fields and the tool
2012
+ * versions it pinned, exactly as they were at that publish.
2013
+ */
2014
+ get<ThrowOnError extends boolean = false>(parameters: {
2015
+ task_id: string;
2016
+ version: number;
2017
+ }, options?: Options<never, ThrowOnError>): RequestResult<TasksVersionsGetResults, TasksVersionsGetErrors, ThrowOnError, 'data'>;
2018
+ /**
2019
+ * Rollback Task Version
2020
+ *
2021
+ * Put an earlier published version of a task back into production.
2022
+ *
2023
+ * That version becomes live **immediately** and **replaces the current draft**,
2024
+ * so any unpublished edits are lost. No new version is created. The restored
2025
+ * draft tracks each tool's latest published version, not the ones this version
2026
+ * pinned.
2027
+ */
2028
+ rollback<ThrowOnError extends boolean = false>(parameters: {
2029
+ task_id: string;
2030
+ version: number;
2031
+ }, options?: Options<never, ThrowOnError>): RequestResult<TasksVersionsRollbackResults, TasksVersionsRollbackErrors, ThrowOnError, 'data'>;
2032
+ }
2033
+ export declare class Tasks2 extends HeyApiClient {
2034
+ /**
2035
+ * List Tasks
2036
+ *
2037
+ * List the workspace's agent tasks.
2038
+ *
2039
+ * A task is an agent nobody talks to: a prompt, one LLM, tools and MCP
2040
+ * servers, the variables it takes as input, and the typed result it must
2041
+ * produce. Each item carries the full draft config, the published version
2042
+ * number (null while it has never been published), and `last_run`.
2043
+ */
2044
+ list<ThrowOnError extends boolean = false>(parameters?: {
2045
+ limit?: number;
2046
+ offset?: number;
2047
+ }, options?: Options<never, ThrowOnError>): RequestResult<TasksListResults, TasksListErrors, ThrowOnError, 'data'>;
2048
+ /**
2049
+ * Create Task
2050
+ *
2051
+ * Create an agent task: an agent nobody talks to, which takes named inputs
2052
+ * and returns a typed result.
2053
+ *
2054
+ * `output` is what makes this a task rather than a chat agent — declare the
2055
+ * fields the model must produce and it is given a `submit_result` tool built
2056
+ * from them. `vars` are its inputs, read as `{{vars.name}}`. The task starts
2057
+ * unpublished; publish it before running it.
2058
+ */
2059
+ create<ThrowOnError extends boolean = false>(parameters: {
2060
+ createTaskRequest: CreateTaskRequest;
2061
+ }, options?: Options<never, ThrowOnError>): RequestResult<TasksCreateResults, TasksCreateErrors, ThrowOnError, 'data'>;
2062
+ /**
2063
+ * Delete Task
2064
+ *
2065
+ * Delete a task and its published versions. Its runs survive, still named
2066
+ * after it.
2067
+ */
2068
+ delete<ThrowOnError extends boolean = false>(parameters: {
2069
+ task_id: string;
2070
+ }, options?: Options<never, ThrowOnError>): RequestResult<TasksDeleteResults, TasksDeleteErrors, ThrowOnError, 'data'>;
2071
+ /**
2072
+ * Get Task
2073
+ *
2074
+ * Fetch one task's draft config, published version, history and last run.
2075
+ */
2076
+ get<ThrowOnError extends boolean = false>(parameters: {
2077
+ task_id: string;
2078
+ }, options?: Options<never, ThrowOnError>): RequestResult<TasksGetResults, TasksGetErrors, ThrowOnError, 'data'>;
2079
+ /**
2080
+ * Update Task
2081
+ *
2082
+ * Replace the task's draft config with the one supplied.
2083
+ *
2084
+ * The whole config is sent, so include every field you mean to keep. Writes
2085
+ * land on the draft only — runs and email batches keep using the published
2086
+ * version until you publish again.
2087
+ */
2088
+ update<ThrowOnError extends boolean = false>(parameters: {
2089
+ task_id: string;
2090
+ patchTaskRequest: PatchTaskRequest;
2091
+ }, options?: Options<never, ThrowOnError>): RequestResult<TasksUpdateResults, TasksUpdateErrors, ThrowOnError, 'data'>;
2092
+ /**
2093
+ * Publish Task
2094
+ *
2095
+ * Freeze the current draft as a new immutable version and make it live.
2096
+ *
2097
+ * Validation must pass. Publishing pins every attached tool to the tool
2098
+ * version live right now, so republishing a tool does not change this task
2099
+ * until the task is published again.
2100
+ */
2101
+ publish<ThrowOnError extends boolean = false>(parameters: {
2102
+ task_id: string;
2103
+ }, options?: Options<never, ThrowOnError>): RequestResult<TasksPublishResults, TasksPublishErrors, ThrowOnError, 'data'>;
2104
+ /**
2105
+ * Validate Task
2106
+ *
2107
+ * Run publish-grade validation on the draft without publishing it.
2108
+ *
2109
+ * Covers everything a draft write checks plus what publishing adds: a
2110
+ * workspace API key for the model, at least one output field, the operation
2111
+ * trees of the attached tools, and the email batches already drafting with
2112
+ * this task. Returns errors (blocking) and warnings (advisory).
2113
+ */
2114
+ validate<ThrowOnError extends boolean = false>(parameters: {
2115
+ task_id: string;
2116
+ }, options?: Options<never, ThrowOnError>): RequestResult<TasksValidateResults, TasksValidateErrors, ThrowOnError, 'data'>;
2117
+ private _runs?;
2118
+ get runs(): Runs;
2119
+ private _versions?;
2120
+ get versions(): Versions2;
2121
+ }
2047
2122
  export declare class Versions3 extends HeyApiClient {
2048
2123
  /**
2049
2124
  * Get Tool Version
@@ -2269,7 +2344,9 @@ export declare class TalqingApi extends HeyApiClient {
2269
2344
  * Liveness probe: `200` once this process is serving. Unauthenticated.
2270
2345
  *
2271
2346
  * It answers for the API process, not its dependencies — a `200` here does
2272
- * not promise Postgres, Redis or LiveKit are reachable.
2347
+ * not promise Postgres, Redis or LiveKit are reachable. The one thing it
2348
+ * does report is `model_registry`, because that snapshot lives in this
2349
+ * process's memory and nothing else can see how old it is.
2273
2350
  */
2274
2351
  health<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<HealthResults, HealthErrors, ThrowOnError, 'data'>;
2275
2352
  private _agents?;
@@ -2298,10 +2375,10 @@ export declare class TalqingApi extends HeyApiClient {
2298
2375
  get schemas(): Schemas;
2299
2376
  private _secrets?;
2300
2377
  get secrets(): Secrets;
2301
- private _tasks?;
2302
- get tasks(): Tasks2;
2303
2378
  private _telephony?;
2304
2379
  get telephony(): Telephony;
2380
+ private _tasks?;
2381
+ get tasks(): Tasks2;
2305
2382
  private _tools?;
2306
2383
  get tools(): Tools2;
2307
2384
  private _webhooks?;