@talqing/sdk 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { client } from './client.gen.js';
4
4
  import { buildClientParams, type Client, type ClientMeta, type Options as Options2, type RequestResult, type ServerSentEventsResult, type TDataShape } from './client/index.js';
5
- import type { AddEmailRecipientsRequest, AddRecipientsRequest, AddVoiceRequest, AddWhatsAppRecipientsRequest, 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, CallsBatchesDeleteErrors, CallsBatchesDeleteResults, 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, CatalogModelsHostsErrors, CatalogModelsHostsResults, CatalogModelsSearchErrors, CatalogModelsSearchResults, CatalogVoicesElevenlabsAddErrors, CatalogVoicesElevenlabsAddResults, CatalogVoicesElevenlabsSettingsErrors, CatalogVoicesElevenlabsSettingsResults, CatalogVoicesListErrors, CatalogVoicesListResults, ChatMessageRequest, ChatsAnalysisPreviewErrors, ChatsAnalysisPreviewResults, ChatsAnalysisRerunErrors, ChatsAnalysisRerunResults, ChatsCreateErrors, ChatsCreateResults, ChatsDeleteErrors, ChatsDeleteResults, ChatsDetailErrors, ChatsDetailResults, ChatsEndErrors, ChatsEndResults, ChatsGetErrors, ChatsGetResults, ChatsItemsListErrors, ChatsItemsListResults, ChatsListErrors, ChatsListResults, ChatsMessagesCreateErrors, ChatsMessagesCreateResults, ChatsTokensCreateErrors, ChatsTokensCreateResults, ConversationsEventsErrors, ConversationsEventsResult, ConversationsEventsResults, ConversationsGetErrors, ConversationsGetResults, ConversationsItemsListErrors, ConversationsItemsListResults, ConversationsListErrors, ConversationsListResults, ConversationsSessionsListErrors, ConversationsSessionsListResults, ConversationsSnapshotErrors, ConversationsSnapshotResults, ConversationsTraceErrors, ConversationsTraceResults, ConversationsUpdateErrors, ConversationsUpdateResults, CopilotAgentsSendErrors, CopilotAgentsSendResults, CopilotAgentsStreamErrors, CopilotAgentsStreamResult, CopilotAgentsStreamResults, CopilotKnowledgeSendErrors, CopilotKnowledgeSendResults, CopilotKnowledgeStreamErrors, CopilotKnowledgeStreamResult, CopilotKnowledgeStreamResults, CopilotTasksSendErrors, CopilotTasksSendResults, CopilotTasksStreamErrors, CopilotTasksStreamResult, CopilotTasksStreamResults, CopilotToolsSendErrors, CopilotToolsSendResults, CopilotToolsStreamErrors, CopilotToolsStreamResult, CopilotToolsStreamResults, CreateAgentRequest, CreateCallBatchRequest, CreateChatRequest, CreateEmailBatchRequest, CreateEmailSendRequest, CreateIntegrationRequest, CreateIntegrationTriggerRequest, CreateKBRequest, CreateSecretRequest, CreateStreamConnectionRequest, CreateTaskRequest, CreateTelephonyAccountRequest, CreateToolRequest, CreateWebhookRequest, CreateWhatsAppBatchRequest, CreditCheckoutRequest, EmailBatchesCancelErrors, EmailBatchesCancelResults, EmailBatchesCreateErrors, EmailBatchesCreateResults, EmailBatchesDeleteErrors, EmailBatchesDeleteResults, EmailBatchesGetErrors, EmailBatchesGetResults, EmailBatchesListErrors, EmailBatchesListResults, EmailBatchesPauseErrors, EmailBatchesPauseResults, EmailBatchesRecipientsAddErrors, EmailBatchesRecipientsAddResults, 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, KnowledgeEventsErrors, 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, PatchWhatsAppBatchRequest, PatchWhatsAppRecipientRequest, PreviewAnalysisRequest, ProviderKeysDeleteErrors, ProviderKeysDeleteResults, ProviderKeysListErrors, ProviderKeysListResults, ProviderKeysSetErrors, ProviderKeysSetResults, PublishToolRequest, RedraftRequest, RunTaskRequest, RunToolRequest, SchemasFunctionsGetErrors, SchemasFunctionsGetResults, SchemasGetErrors, SchemasGetResults, SecretsCreateErrors, SecretsCreateResults, SecretsDeleteErrors, SecretsDeleteResults, SecretsListErrors, SecretsListResults, SelectRecipientsRequest, SendMessageRequest, SendWhatsAppBatchRequest, 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, TokenRequest, ToolsCreateErrors, ToolsCreateResults, ToolsDeleteErrors, ToolsDeleteResults, ToolsGetErrors, ToolsGetResults, ToolsListErrors, ToolsListResults, ToolsPublishErrors, ToolsPublishResults, ToolsRunErrors, ToolsRunResults, ToolsUpdateErrors, ToolsUpdateResults, ToolsValidateErrors, ToolsValidateResults, ToolsVersionsGetErrors, ToolsVersionsGetResults, ToolsVersionsRollbackErrors, ToolsVersionsRollbackResults, TwilioSendersRequest, UpdateAgentRequest, WebhooksCreateErrors, WebhooksCreateResults, WebhooksDeleteErrors, WebhooksDeleteResults, WebhooksDeliveriesErrors, WebhooksDeliveriesResults, WebhooksEventTypesErrors, WebhooksEventTypesResults, WebhooksListErrors, WebhooksListResults, WebhooksRotateSecretErrors, WebhooksRotateSecretResults, WebhooksTestErrors, WebhooksTestResults, WebhooksUpdateErrors, WebhooksUpdateResults, WhatsappBatchesCancelErrors, WhatsappBatchesCancelResults, WhatsappBatchesCreateErrors, WhatsappBatchesCreateResults, WhatsappBatchesDeleteErrors, WhatsappBatchesDeleteResults, WhatsappBatchesGetErrors, WhatsappBatchesGetResults, WhatsappBatchesListErrors, WhatsappBatchesListResults, WhatsappBatchesPauseErrors, WhatsappBatchesPauseResults, WhatsappBatchesRecipientsAddErrors, WhatsappBatchesRecipientsAddResults, WhatsappBatchesRecipientsListErrors, WhatsappBatchesRecipientsListResults, WhatsappBatchesRecipientsRestoreErrors, WhatsappBatchesRecipientsRestoreResults, WhatsappBatchesRecipientsSkipErrors, WhatsappBatchesRecipientsSkipResults, WhatsappBatchesRecipientsUpdateErrors, WhatsappBatchesRecipientsUpdateResults, WhatsappBatchesResumeErrors, WhatsappBatchesResumeResults, WhatsappBatchesSendErrors, WhatsappBatchesSendResults, WhatsappBatchesUpdateErrors, WhatsappBatchesUpdateResults, WhatsappTemplatesListErrors, WhatsappTemplatesListResults, WhatsappTwilioSendersListErrors, WhatsappTwilioSendersListResults } from './types.gen.js';
5
+ import type { AddEmailRecipientsRequest, AddRecipientsRequest, AddVoiceRequest, AddWhatsAppRecipientsRequest, 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, CallsAnalysisBackfillErrors, CallsAnalysisBackfillResults, CallsAnalysisPreviewErrors, CallsAnalysisPreviewResults, CallsBatchesCancelErrors, CallsBatchesCancelResults, CallsBatchesCreateErrors, CallsBatchesCreateResults, CallsBatchesDeleteErrors, CallsBatchesDeleteResults, 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, CatalogModelsHostsErrors, CatalogModelsHostsResults, CatalogModelsSearchErrors, CatalogModelsSearchResults, CatalogVoicesElevenlabsAddErrors, CatalogVoicesElevenlabsAddResults, CatalogVoicesElevenlabsSettingsErrors, CatalogVoicesElevenlabsSettingsResults, CatalogVoicesListErrors, CatalogVoicesListResults, ChatMessageRequest, ChatsAnalysisPreviewErrors, ChatsAnalysisPreviewResults, ChatsAnalysisRerunErrors, ChatsAnalysisRerunResults, ChatsCreateErrors, ChatsCreateResults, ChatsDeleteErrors, ChatsDeleteResults, ChatsDetailErrors, ChatsDetailResults, ChatsEndErrors, ChatsEndResults, ChatsGetErrors, ChatsGetResults, ChatsItemsListErrors, ChatsItemsListResults, ChatsListErrors, ChatsListResults, ChatsMessagesCreateErrors, ChatsMessagesCreateResults, ChatsTokensCreateErrors, ChatsTokensCreateResults, ConversationsEventsErrors, ConversationsEventsResult, ConversationsEventsResults, ConversationsGetErrors, ConversationsGetResults, ConversationsItemsListErrors, ConversationsItemsListResults, ConversationsListErrors, ConversationsListResults, ConversationsSessionsListErrors, ConversationsSessionsListResults, ConversationsSnapshotErrors, ConversationsSnapshotResults, ConversationsTraceErrors, ConversationsTraceResults, ConversationsUpdateErrors, ConversationsUpdateResults, CopilotAgentsSendErrors, CopilotAgentsSendResults, CopilotAgentsStreamErrors, CopilotAgentsStreamResult, CopilotAgentsStreamResults, CopilotTasksSendErrors, CopilotTasksSendResults, CopilotTasksStreamErrors, CopilotTasksStreamResult, CopilotTasksStreamResults, CopilotToolsSendErrors, CopilotToolsSendResults, CopilotToolsStreamErrors, CopilotToolsStreamResult, CopilotToolsStreamResults, CreateAgentRequest, CreateCallBatchRequest, CreateChatRequest, CreateEmailBatchRequest, CreateEmailSendRequest, CreateFaqEntriesRequest, CreateIntegrationRequest, CreateIntegrationTriggerRequest, CreateSecretRequest, CreateStreamConnectionRequest, CreateTaskRequest, CreateTelephonyAccountRequest, CreateToolRequest, CreateWebhookRequest, CreateWhatsAppBatchRequest, CreditCheckoutRequest, EmailBatchesCancelErrors, EmailBatchesCancelResults, EmailBatchesCreateErrors, EmailBatchesCreateResults, EmailBatchesDeleteErrors, EmailBatchesDeleteResults, EmailBatchesGetErrors, EmailBatchesGetResults, EmailBatchesListErrors, EmailBatchesListResults, EmailBatchesPauseErrors, EmailBatchesPauseResults, EmailBatchesRecipientsAddErrors, EmailBatchesRecipientsAddResults, 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, FaqDefinition, FaqsCreateErrors, FaqsCreateResults, FaqsDeleteErrors, FaqsDeleteResults, FaqsEntriesCreateErrors, FaqsEntriesCreateResults, FaqsEntriesDeleteErrors, FaqsEntriesDeleteResults, FaqsEntriesUpdateErrors, FaqsEntriesUpdateResults, FaqsGetErrors, FaqsGetResults, FaqsListErrors, FaqsListResults, FaqsUpdateErrors, FaqsUpdateResults, 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, ObservabilityGetErrors, ObservabilityGetResults, OutboundCallRequest, PatchCallBatchRequest, PatchConversationRequest, PatchEmailBatchRequest, PatchEmailRecipientRequest, PatchEmailSendRequest, PatchIntegrationRequest, PatchIntegrationTriggerRequest, PatchPhoneNumberRequest, PatchStreamConnectionRequest, PatchTaskRequest, PatchTelephonyAccountRequest, PatchToolRequest, PatchWebhookRequest, PatchWhatsAppBatchRequest, PatchWhatsAppRecipientRequest, PreviewAnalysisRequest, ProviderKeysDeleteErrors, ProviderKeysDeleteResults, ProviderKeysListErrors, ProviderKeysListResults, ProviderKeysSetErrors, ProviderKeysSetResults, PublishToolRequest, RedraftRequest, RunTaskRequest, RunToolRequest, SchemasFunctionsGetErrors, SchemasFunctionsGetResults, SchemasGetErrors, SchemasGetResults, SecretsCreateErrors, SecretsCreateResults, SecretsDeleteErrors, SecretsDeleteResults, SecretsListErrors, SecretsListResults, SelectRecipientsRequest, SendMessageRequest, SendWhatsAppBatchRequest, 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, TokenRequest, ToolsCreateErrors, ToolsCreateResults, ToolsDeleteErrors, ToolsDeleteResults, ToolsGetErrors, ToolsGetResults, ToolsListErrors, ToolsListResults, ToolsPublishErrors, ToolsPublishResults, ToolsRunErrors, ToolsRunResults, ToolsUpdateErrors, ToolsUpdateResults, ToolsValidateErrors, ToolsValidateResults, ToolsVersionsGetErrors, ToolsVersionsGetResults, ToolsVersionsRollbackErrors, ToolsVersionsRollbackResults, TwilioSendersRequest, UpdateAgentRequest, UpdateFaqEntryRequest, UpdateFaqRequest, WebhooksCreateErrors, WebhooksCreateResults, WebhooksDeleteErrors, WebhooksDeleteResults, WebhooksDeliveriesErrors, WebhooksDeliveriesResults, WebhooksEventTypesErrors, WebhooksEventTypesResults, WebhooksListErrors, WebhooksListResults, WebhooksRotateSecretErrors, WebhooksRotateSecretResults, WebhooksTestErrors, WebhooksTestResults, WebhooksUpdateErrors, WebhooksUpdateResults, WhatsappBatchesCancelErrors, WhatsappBatchesCancelResults, WhatsappBatchesCreateErrors, WhatsappBatchesCreateResults, WhatsappBatchesDeleteErrors, WhatsappBatchesDeleteResults, WhatsappBatchesGetErrors, WhatsappBatchesGetResults, WhatsappBatchesListErrors, WhatsappBatchesListResults, WhatsappBatchesPauseErrors, WhatsappBatchesPauseResults, WhatsappBatchesRecipientsAddErrors, WhatsappBatchesRecipientsAddResults, WhatsappBatchesRecipientsListErrors, WhatsappBatchesRecipientsListResults, WhatsappBatchesRecipientsRestoreErrors, WhatsappBatchesRecipientsRestoreResults, WhatsappBatchesRecipientsSkipErrors, WhatsappBatchesRecipientsSkipResults, WhatsappBatchesRecipientsUpdateErrors, WhatsappBatchesRecipientsUpdateResults, WhatsappBatchesResumeErrors, WhatsappBatchesResumeResults, WhatsappBatchesSendErrors, WhatsappBatchesSendResults, WhatsappBatchesUpdateErrors, WhatsappBatchesUpdateResults, WhatsappTemplatesListErrors, WhatsappTemplatesListResults, WhatsappTwilioSendersListErrors, WhatsappTwilioSendersListResults } from './types.gen.js';
6
6
 
7
7
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
8
8
  /**
@@ -634,8 +634,9 @@ export class Batches extends HeyApiClient {
634
634
  *
635
635
  * List outbound calling batches, newest first, with live progress.
636
636
  *
637
- * `counts` breaks the recipient list down by outcome and `next_dial_at` says
638
- * when a batch that is not dialling will start again — the clock, not a fault.
637
+ * `counts` breaks the recipient list down by outcome; `next_dial_at` and
638
+ * `next_dial_reason` say when a batch that is not dialling will start again and
639
+ * why — its start time, its window or today's limit, not a fault.
639
640
  * A `failed` batch carries `failure_reason`: the circuit breaker stopped it
640
641
  * after ten consecutive setup failures.
641
642
  */
@@ -676,8 +677,9 @@ export class Batches extends HeyApiClient {
676
677
  * greeting. A number that appears twice is refused with both row numbers.
677
678
  *
678
679
  * `start_at` and `calling_window` schedule it in the timezone you give;
679
- * `max_concurrency` and `max_attempts` pace it. A number that was reached is
680
- * never called twice.
680
+ * `max_concurrency`, `max_attempts`, `dial_gap_seconds` and `dial_daily_cap`
681
+ * (a fixed limit or a ramp) pace it. A number that was reached is never
682
+ * called twice.
681
683
  *
682
684
  * Two things you would otherwise learn from an invoice:
683
685
  *
@@ -2144,65 +2146,6 @@ export class Agents2 extends HeyApiClient {
2144
2146
  }
2145
2147
  }
2146
2148
 
2147
- export class Knowledge extends HeyApiClient {
2148
- /**
2149
- * Knowledge Copilot Send Message
2150
- *
2151
- * Say something to KnowledgeCoPilot. The reply arrives on the stream, not here.
2152
- *
2153
- * Returns as soon as the turn is queued; watch `turn` and `message` frames
2154
- * on the matching `/stream` for what it does.
2155
- */
2156
- public send<ThrowOnError extends boolean = false>(parameters: {
2157
- kb_id: string;
2158
- sendMessageRequest: SendMessageRequest;
2159
- }, options?: Options<never, ThrowOnError>): RequestResult<CopilotKnowledgeSendResults, CopilotKnowledgeSendErrors, ThrowOnError, 'data'> {
2160
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }, { key: 'sendMessageRequest', map: 'body' }] }]);
2161
- return (options?.client ?? this.client).post<CopilotKnowledgeSendResults, CopilotKnowledgeSendErrors, ThrowOnError, 'data'>({
2162
- responseStyle: 'data',
2163
- security: [{ scheme: 'bearer', type: 'http' }, {
2164
- in: 'cookie',
2165
- name: 'talqing_session',
2166
- type: 'apiKey'
2167
- }],
2168
- url: '/v1/copilot/knowledge/{kb_id}/messages',
2169
- ...options,
2170
- ...params,
2171
- headers: {
2172
- 'Content-Type': 'application/json',
2173
- ...options?.headers,
2174
- ...params.headers
2175
- }
2176
- });
2177
- }
2178
-
2179
- /**
2180
- * Knowledge Copilot Stream
2181
- *
2182
- * KnowledgeCoPilot's curation chat for one knowledge base.
2183
- *
2184
- * Frames: `snapshot` (the whole conversation, sent first and on every
2185
- * reconnect), `message` (one new message), `turn` (that turn's lifecycle —
2186
- * `running`, `done`, `error`, `canceled`).
2187
- */
2188
- public stream<ThrowOnError extends boolean = false>(parameters: {
2189
- kb_id: string;
2190
- }, options?: Options<never, ThrowOnError, CopilotKnowledgeStreamResult>): Promise<ServerSentEventsResult<CopilotKnowledgeStreamResults>> {
2191
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
2192
- return (options?.client ?? this.client).sse.get<CopilotKnowledgeStreamResults, CopilotKnowledgeStreamErrors, ThrowOnError, 'data'>({
2193
- responseStyle: 'data',
2194
- security: [{ scheme: 'bearer', type: 'http' }, {
2195
- in: 'cookie',
2196
- name: 'talqing_session',
2197
- type: 'apiKey'
2198
- }],
2199
- url: '/v1/copilot/knowledge/{kb_id}/stream',
2200
- ...options,
2201
- ...params
2202
- });
2203
- }
2204
- }
2205
-
2206
2149
  export class Tasks extends HeyApiClient {
2207
2150
  /**
2208
2151
  * Task Copilot Send Message
@@ -2327,11 +2270,6 @@ export class Copilot extends HeyApiClient {
2327
2270
  return this._agents ??= new Agents2({ client: this.client });
2328
2271
  }
2329
2272
 
2330
- private _knowledge?: Knowledge;
2331
- get knowledge(): Knowledge {
2332
- return this._knowledge ??= new Knowledge({ client: this.client });
2333
- }
2334
-
2335
2273
  private _tasks?: Tasks;
2336
2274
  get tasks(): Tasks {
2337
2275
  return this._tasks ??= new Tasks({ client: this.client });
@@ -2587,7 +2525,8 @@ export class Sends extends HeyApiClient {
2587
2525
  * drafting runs. It cannot be live beside another send of the batch (409).
2588
2526
  *
2589
2527
  * `start_at` schedules it, `window` holds it to business hours, and
2590
- * `send_gap_seconds` and `send_daily_cap` pace the whole batch. Everything
2528
+ * `send_gap_seconds` and `send_daily_cap` (a fixed limit or a ramp) pace the
2529
+ * whole batch. Everything
2591
2530
  * omitted comes from the batch. Cancelling it leaves the unsent rows as drafts.
2592
2531
  */
2593
2532
  public create<ThrowOnError extends boolean = false>(parameters: {
@@ -2859,7 +2798,7 @@ export class Batches2 extends HeyApiClient {
2859
2798
  * One batch: its policy, its per-status counts and what drafting has cost.
2860
2799
  *
2861
2800
  * `drafted_versions` says which published version of the task wrote how many
2862
- * rows, and `sent_today` how much of `send_daily_cap` is left today.
2801
+ * rows, and `sent_today` how much of `send_daily_cap_today` is left.
2863
2802
  */
2864
2803
  public get<ThrowOnError extends boolean = false>(parameters: {
2865
2804
  batch_id: string;
@@ -3038,6 +2977,223 @@ export class Email extends HeyApiClient {
3038
2977
  }
3039
2978
  }
3040
2979
 
2980
+ export class Entries extends HeyApiClient {
2981
+ /**
2982
+ * Create Faq Entries
2983
+ *
2984
+ * Append question/answer entries to an FAQ, all or nothing. Live at once:
2985
+ * agents using the FAQ read them from their next session.
2986
+ */
2987
+ public create<ThrowOnError extends boolean = false>(parameters: {
2988
+ faq_id: string;
2989
+ createFaqEntriesRequest: CreateFaqEntriesRequest;
2990
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsEntriesCreateResults, FaqsEntriesCreateErrors, ThrowOnError, 'data'> {
2991
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'faq_id' }, { key: 'createFaqEntriesRequest', map: 'body' }] }]);
2992
+ return (options?.client ?? this.client).post<FaqsEntriesCreateResults, FaqsEntriesCreateErrors, ThrowOnError, 'data'>({
2993
+ responseStyle: 'data',
2994
+ security: [{ scheme: 'bearer', type: 'http' }, {
2995
+ in: 'cookie',
2996
+ name: 'talqing_session',
2997
+ type: 'apiKey'
2998
+ }],
2999
+ url: '/v1/faqs/{faq_id}/entries',
3000
+ ...options,
3001
+ ...params,
3002
+ headers: {
3003
+ 'Content-Type': 'application/json',
3004
+ ...options?.headers,
3005
+ ...params.headers
3006
+ }
3007
+ });
3008
+ }
3009
+
3010
+ /**
3011
+ * Delete Faq Entry
3012
+ *
3013
+ * Delete one entry from an FAQ.
3014
+ */
3015
+ public delete<ThrowOnError extends boolean = false>(parameters: {
3016
+ faq_id: string;
3017
+ entry_id: string;
3018
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsEntriesDeleteResults, FaqsEntriesDeleteErrors, ThrowOnError, 'data'> {
3019
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'faq_id' }, { in: 'path', key: 'entry_id' }] }]);
3020
+ return (options?.client ?? this.client).delete<FaqsEntriesDeleteResults, FaqsEntriesDeleteErrors, ThrowOnError, 'data'>({
3021
+ responseStyle: 'data',
3022
+ security: [{ scheme: 'bearer', type: 'http' }, {
3023
+ in: 'cookie',
3024
+ name: 'talqing_session',
3025
+ type: 'apiKey'
3026
+ }],
3027
+ url: '/v1/faqs/{faq_id}/entries/{entry_id}',
3028
+ ...options,
3029
+ ...params
3030
+ });
3031
+ }
3032
+
3033
+ /**
3034
+ * Update Faq Entry
3035
+ *
3036
+ * Change one entry's question, answer or both. Live from the next session.
3037
+ */
3038
+ public update<ThrowOnError extends boolean = false>(parameters: {
3039
+ faq_id: string;
3040
+ entry_id: string;
3041
+ updateFaqEntryRequest: UpdateFaqEntryRequest;
3042
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsEntriesUpdateResults, FaqsEntriesUpdateErrors, ThrowOnError, 'data'> {
3043
+ const params = buildClientParams([parameters], [{ args: [
3044
+ { in: 'path', key: 'faq_id' },
3045
+ { in: 'path', key: 'entry_id' },
3046
+ { key: 'updateFaqEntryRequest', map: 'body' }
3047
+ ] }]);
3048
+ return (options?.client ?? this.client).patch<FaqsEntriesUpdateResults, FaqsEntriesUpdateErrors, ThrowOnError, 'data'>({
3049
+ responseStyle: 'data',
3050
+ security: [{ scheme: 'bearer', type: 'http' }, {
3051
+ in: 'cookie',
3052
+ name: 'talqing_session',
3053
+ type: 'apiKey'
3054
+ }],
3055
+ url: '/v1/faqs/{faq_id}/entries/{entry_id}',
3056
+ ...options,
3057
+ ...params,
3058
+ headers: {
3059
+ 'Content-Type': 'application/json',
3060
+ ...options?.headers,
3061
+ ...params.headers
3062
+ }
3063
+ });
3064
+ }
3065
+ }
3066
+
3067
+ export class Faqs extends HeyApiClient {
3068
+ /**
3069
+ * List Faqs
3070
+ *
3071
+ * List the workspace's FAQs by name, with how many questions each holds.
3072
+ */
3073
+ public list<ThrowOnError extends boolean = false>(parameters?: {
3074
+ limit?: number;
3075
+ offset?: number;
3076
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsListResults, FaqsListErrors, ThrowOnError, 'data'> {
3077
+ const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
3078
+ return (options?.client ?? this.client).get<FaqsListResults, FaqsListErrors, ThrowOnError, 'data'>({
3079
+ responseStyle: 'data',
3080
+ security: [{ scheme: 'bearer', type: 'http' }, {
3081
+ in: 'cookie',
3082
+ name: 'talqing_session',
3083
+ type: 'apiKey'
3084
+ }],
3085
+ url: '/v1/faqs',
3086
+ ...options,
3087
+ ...params
3088
+ });
3089
+ }
3090
+
3091
+ /**
3092
+ * Create Faq
3093
+ *
3094
+ * Create an FAQ, optionally with its first question/answer entries.
3095
+ */
3096
+ public create<ThrowOnError extends boolean = false>(parameters: {
3097
+ faqDefinition: FaqDefinition;
3098
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsCreateResults, FaqsCreateErrors, ThrowOnError, 'data'> {
3099
+ const params = buildClientParams([parameters], [{ args: [{ key: 'faqDefinition', map: 'body' }] }]);
3100
+ return (options?.client ?? this.client).post<FaqsCreateResults, FaqsCreateErrors, ThrowOnError, 'data'>({
3101
+ responseStyle: 'data',
3102
+ security: [{ scheme: 'bearer', type: 'http' }, {
3103
+ in: 'cookie',
3104
+ name: 'talqing_session',
3105
+ type: 'apiKey'
3106
+ }],
3107
+ url: '/v1/faqs',
3108
+ ...options,
3109
+ ...params,
3110
+ headers: {
3111
+ 'Content-Type': 'application/json',
3112
+ ...options?.headers,
3113
+ ...params.headers
3114
+ }
3115
+ });
3116
+ }
3117
+
3118
+ /**
3119
+ * Delete Faq
3120
+ *
3121
+ * Delete an FAQ and its entries. Refused with 409 while an agent or task
3122
+ * still attaches it.
3123
+ */
3124
+ public delete<ThrowOnError extends boolean = false>(parameters: {
3125
+ faq_id: string;
3126
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsDeleteResults, FaqsDeleteErrors, ThrowOnError, 'data'> {
3127
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'faq_id' }] }]);
3128
+ return (options?.client ?? this.client).delete<FaqsDeleteResults, FaqsDeleteErrors, ThrowOnError, 'data'>({
3129
+ responseStyle: 'data',
3130
+ security: [{ scheme: 'bearer', type: 'http' }, {
3131
+ in: 'cookie',
3132
+ name: 'talqing_session',
3133
+ type: 'apiKey'
3134
+ }],
3135
+ url: '/v1/faqs/{faq_id}',
3136
+ ...options,
3137
+ ...params
3138
+ });
3139
+ }
3140
+
3141
+ /**
3142
+ * Get Faq
3143
+ *
3144
+ * Get one FAQ with every entry, in the order they were added.
3145
+ */
3146
+ public get<ThrowOnError extends boolean = false>(parameters: {
3147
+ faq_id: string;
3148
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsGetResults, FaqsGetErrors, ThrowOnError, 'data'> {
3149
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'faq_id' }] }]);
3150
+ return (options?.client ?? this.client).get<FaqsGetResults, FaqsGetErrors, ThrowOnError, 'data'>({
3151
+ responseStyle: 'data',
3152
+ security: [{ scheme: 'bearer', type: 'http' }, {
3153
+ in: 'cookie',
3154
+ name: 'talqing_session',
3155
+ type: 'apiKey'
3156
+ }],
3157
+ url: '/v1/faqs/{faq_id}',
3158
+ ...options,
3159
+ ...params
3160
+ });
3161
+ }
3162
+
3163
+ /**
3164
+ * Update Faq
3165
+ *
3166
+ * Rename an FAQ.
3167
+ */
3168
+ public update<ThrowOnError extends boolean = false>(parameters: {
3169
+ faq_id: string;
3170
+ updateFaqRequest: UpdateFaqRequest;
3171
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsUpdateResults, FaqsUpdateErrors, ThrowOnError, 'data'> {
3172
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'faq_id' }, { key: 'updateFaqRequest', map: 'body' }] }]);
3173
+ return (options?.client ?? this.client).patch<FaqsUpdateResults, FaqsUpdateErrors, ThrowOnError, 'data'>({
3174
+ responseStyle: 'data',
3175
+ security: [{ scheme: 'bearer', type: 'http' }, {
3176
+ in: 'cookie',
3177
+ name: 'talqing_session',
3178
+ type: 'apiKey'
3179
+ }],
3180
+ url: '/v1/faqs/{faq_id}',
3181
+ ...options,
3182
+ ...params,
3183
+ headers: {
3184
+ 'Content-Type': 'application/json',
3185
+ ...options?.headers,
3186
+ ...params.headers
3187
+ }
3188
+ });
3189
+ }
3190
+
3191
+ private _entries?: Entries;
3192
+ get entries(): Entries {
3193
+ return this._entries ??= new Entries({ client: this.client });
3194
+ }
3195
+ }
3196
+
3041
3197
  export class McpTools extends HeyApiClient {
3042
3198
  /**
3043
3199
  * List Integration Mcp Tools
@@ -3378,367 +3534,6 @@ export class Integrations extends HeyApiClient {
3378
3534
  }
3379
3535
  }
3380
3536
 
3381
- export class Nodes extends HeyApiClient {
3382
- /**
3383
- * Delete Node
3384
- *
3385
- * Drop one entry from the table of contents, permanently.
3386
- *
3387
- * Its children go with it, and agents can no longer retrieve any of it.
3388
- */
3389
- public delete<ThrowOnError extends boolean = false>(parameters: {
3390
- kb_id: string;
3391
- node_id: string;
3392
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeNodesDeleteResults, KnowledgeNodesDeleteErrors, ThrowOnError, 'data'> {
3393
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }, { in: 'path', key: 'node_id' }] }]);
3394
- return (options?.client ?? this.client).delete<KnowledgeNodesDeleteResults, KnowledgeNodesDeleteErrors, ThrowOnError, 'data'>({
3395
- responseStyle: 'data',
3396
- security: [{ scheme: 'bearer', type: 'http' }, {
3397
- in: 'cookie',
3398
- name: 'talqing_session',
3399
- type: 'apiKey'
3400
- }],
3401
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}',
3402
- ...options,
3403
- ...params
3404
- });
3405
- }
3406
-
3407
- /**
3408
- * Get Node
3409
- *
3410
- * Read one entry of the table of contents, with its full content.
3411
- *
3412
- * This is the text an agent retrieves when it fetches this node. `version` is
3413
- * what `patch_node` needs for a safe edit.
3414
- */
3415
- public get<ThrowOnError extends boolean = false>(parameters: {
3416
- kb_id: string;
3417
- node_id: string;
3418
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeNodesGetResults, KnowledgeNodesGetErrors, ThrowOnError, 'data'> {
3419
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }, { in: 'path', key: 'node_id' }] }]);
3420
- return (options?.client ?? this.client).get<KnowledgeNodesGetResults, KnowledgeNodesGetErrors, ThrowOnError, 'data'>({
3421
- responseStyle: 'data',
3422
- security: [{ scheme: 'bearer', type: 'http' }, {
3423
- in: 'cookie',
3424
- name: 'talqing_session',
3425
- type: 'apiKey'
3426
- }],
3427
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}',
3428
- ...options,
3429
- ...params
3430
- });
3431
- }
3432
-
3433
- /**
3434
- * Patch Node
3435
- *
3436
- * Correct one entry's title, summary or content by hand — the way to fix a
3437
- * fact the crawl got wrong without rebuilding.
3438
- *
3439
- * `title` and `summary` are what the agent sees in the table of contents and
3440
- * decide whether it ever fetches this node, so keep them accurate.
3441
- *
3442
- * Send the `version` you read from `get_node`; a mismatch is rejected rather
3443
- * than overwriting someone else's edit.
3444
- */
3445
- public update<ThrowOnError extends boolean = false>(parameters: {
3446
- kb_id: string;
3447
- node_id: string;
3448
- patchNodeRequest: PatchNodeRequest;
3449
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeNodesUpdateResults, KnowledgeNodesUpdateErrors, ThrowOnError, 'data'> {
3450
- const params = buildClientParams([parameters], [{ args: [
3451
- { in: 'path', key: 'kb_id' },
3452
- { in: 'path', key: 'node_id' },
3453
- { key: 'patchNodeRequest', map: 'body' }
3454
- ] }]);
3455
- return (options?.client ?? this.client).patch<KnowledgeNodesUpdateResults, KnowledgeNodesUpdateErrors, ThrowOnError, 'data'>({
3456
- responseStyle: 'data',
3457
- security: [{ scheme: 'bearer', type: 'http' }, {
3458
- in: 'cookie',
3459
- name: 'talqing_session',
3460
- type: 'apiKey'
3461
- }],
3462
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}',
3463
- ...options,
3464
- ...params,
3465
- headers: {
3466
- 'Content-Type': 'application/json',
3467
- ...options?.headers,
3468
- ...params.headers
3469
- }
3470
- });
3471
- }
3472
- }
3473
-
3474
- export class Pages extends HeyApiClient {
3475
- /**
3476
- * List Pages
3477
- *
3478
- * List the crawled pages and how each one transcribed.
3479
- *
3480
- * Where you look when a knowledge base is missing something: a page with a
3481
- * non-`done` status and an `error` never made it in, and `content_len` of 0
3482
- * means the URL yielded nothing worth indexing.
3483
- */
3484
- public list<ThrowOnError extends boolean = false>(parameters: {
3485
- kb_id: string;
3486
- limit?: number;
3487
- offset?: number;
3488
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgePagesListResults, KnowledgePagesListErrors, ThrowOnError, 'data'> {
3489
- const params = buildClientParams([parameters], [{ args: [
3490
- { in: 'path', key: 'kb_id' },
3491
- { in: 'query', key: 'limit' },
3492
- { in: 'query', key: 'offset' }
3493
- ] }]);
3494
- return (options?.client ?? this.client).get<KnowledgePagesListResults, KnowledgePagesListErrors, ThrowOnError, 'data'>({
3495
- responseStyle: 'data',
3496
- security: [{ scheme: 'bearer', type: 'http' }, {
3497
- in: 'cookie',
3498
- name: 'talqing_session',
3499
- type: 'apiKey'
3500
- }],
3501
- url: '/v1/knowledge/{kb_id}/pages',
3502
- ...options,
3503
- ...params
3504
- });
3505
- }
3506
- }
3507
-
3508
- export class Knowledge2 extends HeyApiClient {
3509
- /**
3510
- * List Kbs
3511
- *
3512
- * List the workspace's knowledge bases with their build status.
3513
- *
3514
- * A knowledge base gives an agent grounded answers over crawled content. Only
3515
- * one with status `ready` can be attached to an agent, through the agent
3516
- * config's `kb_ids`.
3517
- */
3518
- public list<ThrowOnError extends boolean = false>(parameters?: {
3519
- limit?: number;
3520
- offset?: number;
3521
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeListResults, KnowledgeListErrors, ThrowOnError, 'data'> {
3522
- const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
3523
- return (options?.client ?? this.client).get<KnowledgeListResults, KnowledgeListErrors, ThrowOnError, 'data'>({
3524
- responseStyle: 'data',
3525
- security: [{ scheme: 'bearer', type: 'http' }, {
3526
- in: 'cookie',
3527
- name: 'talqing_session',
3528
- type: 'apiKey'
3529
- }],
3530
- url: '/v1/knowledge',
3531
- ...options,
3532
- ...params
3533
- });
3534
- }
3535
-
3536
- /**
3537
- * Create Kb
3538
- *
3539
- * Start a knowledge base by crawling one or more websites.
3540
- *
3541
- * Returns immediately with `status: discovering` — crawling takes minutes.
3542
- * Poll `get_kb` until `review`, then pass the URLs worth indexing to
3543
- * `build_kb`. `max_pages` caps how many discovery may find (default 1000) and
3544
- * `notes` guides how the content is transcribed and organized.
3545
- */
3546
- public create<ThrowOnError extends boolean = false>(parameters: {
3547
- createKbRequest: CreateKBRequest;
3548
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeCreateResults, KnowledgeCreateErrors, ThrowOnError, 'data'> {
3549
- const params = buildClientParams([parameters], [{ args: [{ key: 'createKbRequest', map: 'body' }] }]);
3550
- return (options?.client ?? this.client).post<KnowledgeCreateResults, KnowledgeCreateErrors, ThrowOnError, 'data'>({
3551
- responseStyle: 'data',
3552
- security: [{ scheme: 'bearer', type: 'http' }, {
3553
- in: 'cookie',
3554
- name: 'talqing_session',
3555
- type: 'apiKey'
3556
- }],
3557
- url: '/v1/knowledge',
3558
- ...options,
3559
- ...params,
3560
- headers: {
3561
- 'Content-Type': 'application/json',
3562
- ...options?.headers,
3563
- ...params.headers
3564
- }
3565
- });
3566
- }
3567
-
3568
- /**
3569
- * Delete Kb
3570
- *
3571
- * Delete a knowledge base and everything crawled into it, permanently.
3572
- *
3573
- * Rebuilding means crawling the site again. Agents that list it in `kb_ids`
3574
- * lose those grounded answers, so detach it there first.
3575
- */
3576
- public delete<ThrowOnError extends boolean = false>(parameters: {
3577
- kb_id: string;
3578
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeDeleteResults, KnowledgeDeleteErrors, ThrowOnError, 'data'> {
3579
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3580
- return (options?.client ?? this.client).delete<KnowledgeDeleteResults, KnowledgeDeleteErrors, ThrowOnError, 'data'>({
3581
- responseStyle: 'data',
3582
- security: [{ scheme: 'bearer', type: 'http' }, {
3583
- in: 'cookie',
3584
- name: 'talqing_session',
3585
- type: 'apiKey'
3586
- }],
3587
- url: '/v1/knowledge/{kb_id}',
3588
- ...options,
3589
- ...params
3590
- });
3591
- }
3592
-
3593
- /**
3594
- * Get Kb
3595
- *
3596
- * Read one knowledge base: build status, progress and content tree.
3597
- *
3598
- * `status` walks `discovering` -> `review` -> `transcribing` -> `generating`
3599
- * -> `ready`, with `error` set if it stopped. At `review`, `discovered` holds
3600
- * the crawled URLs awaiting your selection; once ready, `tree` is the table of
3601
- * contents. This is the endpoint to poll while a build runs.
3602
- */
3603
- public get<ThrowOnError extends boolean = false>(parameters: {
3604
- kb_id: string;
3605
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeGetResults, KnowledgeGetErrors, ThrowOnError, 'data'> {
3606
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3607
- return (options?.client ?? this.client).get<KnowledgeGetResults, KnowledgeGetErrors, ThrowOnError, 'data'>({
3608
- responseStyle: 'data',
3609
- security: [{ scheme: 'bearer', type: 'http' }, {
3610
- in: 'cookie',
3611
- name: 'talqing_session',
3612
- type: 'apiKey'
3613
- }],
3614
- url: '/v1/knowledge/{kb_id}',
3615
- ...options,
3616
- ...params
3617
- });
3618
- }
3619
-
3620
- /**
3621
- * Build Kb
3622
- *
3623
- * Index the chosen pages, then write the table of contents.
3624
- *
3625
- * Call this once the knowledge base reaches `review`, passing the subset of
3626
- * `discovered` URLs worth indexing — the KB is only as good as that choice.
3627
- * Returns as soon as the work is queued; poll `get_kb` until `ready`, which is
3628
- * when it can be attached to an agent.
3629
- */
3630
- public build<ThrowOnError extends boolean = false>(parameters: {
3631
- kb_id: string;
3632
- buildKbRequest: BuildKBRequest;
3633
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeBuildResults, KnowledgeBuildErrors, ThrowOnError, 'data'> {
3634
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }, { key: 'buildKbRequest', map: 'body' }] }]);
3635
- return (options?.client ?? this.client).post<KnowledgeBuildResults, KnowledgeBuildErrors, ThrowOnError, 'data'>({
3636
- responseStyle: 'data',
3637
- security: [{ scheme: 'bearer', type: 'http' }, {
3638
- in: 'cookie',
3639
- name: 'talqing_session',
3640
- type: 'apiKey'
3641
- }],
3642
- url: '/v1/knowledge/{kb_id}/build',
3643
- ...options,
3644
- ...params,
3645
- headers: {
3646
- 'Content-Type': 'application/json',
3647
- ...options?.headers,
3648
- ...params.headers
3649
- }
3650
- });
3651
- }
3652
-
3653
- /**
3654
- * Events
3655
- *
3656
- * Watch one knowledge base build: `snapshot` first, then `progress` and `status`.
3657
- *
3658
- * `progress` carries the per-stage counts, `status` the terminal verdict
3659
- * (`ready`, or an `error`). The same state is readable at any time with
3660
- * `get_kb`; this is the live view of it.
3661
- */
3662
- public events<ThrowOnError extends boolean = false>(parameters: {
3663
- kb_id: string;
3664
- }, options?: Options<never, ThrowOnError, KnowledgeEventsResult>): Promise<ServerSentEventsResult<KnowledgeEventsResults>> {
3665
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3666
- return (options?.client ?? this.client).sse.get<KnowledgeEventsResults, KnowledgeEventsErrors, ThrowOnError, 'data'>({
3667
- responseStyle: 'data',
3668
- security: [{ scheme: 'bearer', type: 'http' }, {
3669
- in: 'cookie',
3670
- name: 'talqing_session',
3671
- type: 'apiKey'
3672
- }],
3673
- url: '/v1/knowledge/{kb_id}/events',
3674
- ...options,
3675
- ...params
3676
- });
3677
- }
3678
-
3679
- /**
3680
- * Get Kb Prompt
3681
- *
3682
- * The table of contents exactly as an agent using this KB is given it.
3683
- *
3684
- * Read it to judge what the agent can actually find — if a topic reads
3685
- * vaguely here, the agent will not know to fetch it. `chars` is how much of
3686
- * the agent's context this KB occupies.
3687
- */
3688
- public prompt<ThrowOnError extends boolean = false>(parameters: {
3689
- kb_id: string;
3690
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgePromptResults, KnowledgePromptErrors, ThrowOnError, 'data'> {
3691
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3692
- return (options?.client ?? this.client).get<KnowledgePromptResults, KnowledgePromptErrors, ThrowOnError, 'data'>({
3693
- responseStyle: 'data',
3694
- security: [{ scheme: 'bearer', type: 'http' }, {
3695
- in: 'cookie',
3696
- name: 'talqing_session',
3697
- type: 'apiKey'
3698
- }],
3699
- url: '/v1/knowledge/{kb_id}/prompt',
3700
- ...options,
3701
- ...params
3702
- });
3703
- }
3704
-
3705
- /**
3706
- * Regenerate Toc
3707
- *
3708
- * Rewrite the table of contents from the pages already indexed.
3709
- *
3710
- * The repair for a knowledge base whose structure came out wrong, or whose
3711
- * build failed at the last stage: it re-runs only that stage, so the site is
3712
- * not crawled or transcribed again.
3713
- */
3714
- public regenerateToc<ThrowOnError extends boolean = false>(parameters: {
3715
- kb_id: string;
3716
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeRegenerateTocResults, KnowledgeRegenerateTocErrors, ThrowOnError, 'data'> {
3717
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3718
- return (options?.client ?? this.client).post<KnowledgeRegenerateTocResults, KnowledgeRegenerateTocErrors, ThrowOnError, 'data'>({
3719
- responseStyle: 'data',
3720
- security: [{ scheme: 'bearer', type: 'http' }, {
3721
- in: 'cookie',
3722
- name: 'talqing_session',
3723
- type: 'apiKey'
3724
- }],
3725
- url: '/v1/knowledge/{kb_id}/toc',
3726
- ...options,
3727
- ...params
3728
- });
3729
- }
3730
-
3731
- private _nodes?: Nodes;
3732
- get nodes(): Nodes {
3733
- return this._nodes ??= new Nodes({ client: this.client });
3734
- }
3735
-
3736
- private _pages?: Pages;
3737
- get pages(): Pages {
3738
- return this._pages ??= new Pages({ client: this.client });
3739
- }
3740
- }
3741
-
3742
3537
  export class Observability extends HeyApiClient {
3743
3538
  /**
3744
3539
  * Get Observability
@@ -5755,8 +5550,8 @@ export class Batches3 extends HeyApiClient {
5755
5550
  * Send every ready row. **This messages real people and cannot be undone.**
5756
5551
  *
5757
5552
  * `start_at` schedules it, `window` holds it to business hours, and
5758
- * `send_daily_cap` (default 250, Meta's lowest tier) and `send_gap_seconds`
5759
- * pace it.
5553
+ * `send_daily_cap` (default a fixed 250, Meta's lowest tier; or a ramp) and
5554
+ * `send_gap_seconds` pace it.
5760
5555
  */
5761
5556
  public send<ThrowOnError extends boolean = false>(parameters: {
5762
5557
  batch_id: string;
@@ -5933,16 +5728,16 @@ export class TalqingApi extends HeyApiClient {
5933
5728
  return this._email ??= new Email({ client: this.client });
5934
5729
  }
5935
5730
 
5731
+ private _faqs?: Faqs;
5732
+ get faqs(): Faqs {
5733
+ return this._faqs ??= new Faqs({ client: this.client });
5734
+ }
5735
+
5936
5736
  private _integrations?: Integrations;
5937
5737
  get integrations(): Integrations {
5938
5738
  return this._integrations ??= new Integrations({ client: this.client });
5939
5739
  }
5940
5740
 
5941
- private _knowledge?: Knowledge2;
5942
- get knowledge(): Knowledge2 {
5943
- return this._knowledge ??= new Knowledge2({ client: this.client });
5944
- }
5945
-
5946
5741
  private _observability?: Observability;
5947
5742
  get observability(): Observability {
5948
5743
  return this._observability ??= new Observability({ client: this.client });