@talqing/sdk 0.8.0 → 0.9.1

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, CallsBatchesRecipientsDeleteErrors, CallsBatchesRecipientsDeleteResults, 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, DeleteRecipientsRequest, EmailBatchesCancelErrors, EmailBatchesCancelResults, EmailBatchesCreateErrors, EmailBatchesCreateResults, EmailBatchesDeleteErrors, EmailBatchesDeleteResults, EmailBatchesGetErrors, EmailBatchesGetResults, EmailBatchesListErrors, EmailBatchesListResults, EmailBatchesPauseErrors, EmailBatchesPauseResults, EmailBatchesRecipientsAddErrors, EmailBatchesRecipientsAddResults, EmailBatchesRecipientsDeleteErrors, EmailBatchesRecipientsDeleteResults, EmailBatchesRecipientsListErrors, EmailBatchesRecipientsListResults, EmailBatchesRecipientsRedraftErrors, EmailBatchesRecipientsRedraftResults, 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, 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, WhatsappBatchesRecipientsDeleteErrors, WhatsappBatchesRecipientsDeleteResults, WhatsappBatchesRecipientsListErrors, WhatsappBatchesRecipientsListResults, 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
  /**
@@ -312,20 +312,10 @@ export class Credits extends HeyApiClient {
312
312
  /**
313
313
  * Get Credits
314
314
  *
315
- * This workspace's credit balance in this region, what it buys, and what a
316
- * top-up costs.
315
+ * This workspace's credit balance, what it buys, and what a top-up costs.
317
316
  *
318
317
  * Readable by every role: a VIEWER can start a web call, so a VIEWER must be
319
318
  * able to see why one was refused.
320
- *
321
- * This is also where credit the control plane could not deliver lands. Anything
322
- * it has issued for this workspace here — a purchase, a signup grant, a
323
- * reversal — that this region has not written yet is applied before the balance
324
- * is read. That is the backstop for a failed push, and it is a reconcile on
325
- * demand rather than a timer: the moment someone cares is the moment this page
326
- * loads, whether they arrived from the payment processor or from the "out of
327
- * credits" banner. It costs nothing when there is nothing to apply, which is
328
- * almost always.
329
319
  */
330
320
  public get<ThrowOnError extends boolean = false>(parameters?: {
331
321
  topup?: string | null;
@@ -351,11 +341,6 @@ export class Credits extends HeyApiClient {
351
341
  *
352
342
  * Organization admins only — spending the workspace's money is an admin act,
353
343
  * the same as storing a secret or a provider key.
354
- *
355
- * The credit lands in THIS region, and that is decided by which region's API
356
- * you called rather than by anything in the request. A slug in a body could be
357
- * pointed at the other region, where the money would then be stuck: balances
358
- * are per region and there is no transfer between them.
359
344
  */
360
345
  public checkout<ThrowOnError extends boolean = false>(parameters: {
361
346
  creditCheckoutRequest: CreditCheckoutRequest;
@@ -382,7 +367,7 @@ export class Credits extends HeyApiClient {
382
367
  /**
383
368
  * List Credit Ledger
384
369
  *
385
- * Every movement of this region's balance, newest first, with what caused each.
370
+ * Every movement of this workspace's balance, newest first, with what caused each.
386
371
  */
387
372
  public ledger<ThrowOnError extends boolean = false>(parameters?: {
388
373
  limit?: number;
@@ -626,6 +611,34 @@ export class Recipients extends HeyApiClient {
626
611
  }
627
612
  });
628
613
  }
614
+
615
+ /**
616
+ * Delete Call Batch Recipients
617
+ *
618
+ * Remove rows that were never dialled. Not reversible; a dialled row is refused in `rejected`.
619
+ */
620
+ public delete<ThrowOnError extends boolean = false>(parameters: {
621
+ batch_id: string;
622
+ deleteRecipientsRequest: DeleteRecipientsRequest;
623
+ }, options?: Options<never, ThrowOnError>): RequestResult<CallsBatchesRecipientsDeleteResults, CallsBatchesRecipientsDeleteErrors, ThrowOnError, 'data'> {
624
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'deleteRecipientsRequest', map: 'body' }] }]);
625
+ return (options?.client ?? this.client).post<CallsBatchesRecipientsDeleteResults, CallsBatchesRecipientsDeleteErrors, ThrowOnError, 'data'>({
626
+ responseStyle: 'data',
627
+ security: [{ scheme: 'bearer', type: 'http' }, {
628
+ in: 'cookie',
629
+ name: 'talqing_session',
630
+ type: 'apiKey'
631
+ }],
632
+ url: '/v1/calls/batches/{batch_id}/recipients/delete',
633
+ ...options,
634
+ ...params,
635
+ headers: {
636
+ 'Content-Type': 'application/json',
637
+ ...options?.headers,
638
+ ...params.headers
639
+ }
640
+ });
641
+ }
629
642
  }
630
643
 
631
644
  export class Batches extends HeyApiClient {
@@ -2146,65 +2159,6 @@ export class Agents2 extends HeyApiClient {
2146
2159
  }
2147
2160
  }
2148
2161
 
2149
- export class Knowledge extends HeyApiClient {
2150
- /**
2151
- * Knowledge Copilot Send Message
2152
- *
2153
- * Say something to KnowledgeCoPilot. The reply arrives on the stream, not here.
2154
- *
2155
- * Returns as soon as the turn is queued; watch `turn` and `message` frames
2156
- * on the matching `/stream` for what it does.
2157
- */
2158
- public send<ThrowOnError extends boolean = false>(parameters: {
2159
- kb_id: string;
2160
- sendMessageRequest: SendMessageRequest;
2161
- }, options?: Options<never, ThrowOnError>): RequestResult<CopilotKnowledgeSendResults, CopilotKnowledgeSendErrors, ThrowOnError, 'data'> {
2162
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }, { key: 'sendMessageRequest', map: 'body' }] }]);
2163
- return (options?.client ?? this.client).post<CopilotKnowledgeSendResults, CopilotKnowledgeSendErrors, ThrowOnError, 'data'>({
2164
- responseStyle: 'data',
2165
- security: [{ scheme: 'bearer', type: 'http' }, {
2166
- in: 'cookie',
2167
- name: 'talqing_session',
2168
- type: 'apiKey'
2169
- }],
2170
- url: '/v1/copilot/knowledge/{kb_id}/messages',
2171
- ...options,
2172
- ...params,
2173
- headers: {
2174
- 'Content-Type': 'application/json',
2175
- ...options?.headers,
2176
- ...params.headers
2177
- }
2178
- });
2179
- }
2180
-
2181
- /**
2182
- * Knowledge Copilot Stream
2183
- *
2184
- * KnowledgeCoPilot's curation chat for one knowledge base.
2185
- *
2186
- * Frames: `snapshot` (the whole conversation, sent first and on every
2187
- * reconnect), `message` (one new message), `turn` (that turn's lifecycle —
2188
- * `running`, `done`, `error`, `canceled`).
2189
- */
2190
- public stream<ThrowOnError extends boolean = false>(parameters: {
2191
- kb_id: string;
2192
- }, options?: Options<never, ThrowOnError, CopilotKnowledgeStreamResult>): Promise<ServerSentEventsResult<CopilotKnowledgeStreamResults>> {
2193
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
2194
- return (options?.client ?? this.client).sse.get<CopilotKnowledgeStreamResults, CopilotKnowledgeStreamErrors, ThrowOnError, 'data'>({
2195
- responseStyle: 'data',
2196
- security: [{ scheme: 'bearer', type: 'http' }, {
2197
- in: 'cookie',
2198
- name: 'talqing_session',
2199
- type: 'apiKey'
2200
- }],
2201
- url: '/v1/copilot/knowledge/{kb_id}/stream',
2202
- ...options,
2203
- ...params
2204
- });
2205
- }
2206
- }
2207
-
2208
2162
  export class Tasks extends HeyApiClient {
2209
2163
  /**
2210
2164
  * Task Copilot Send Message
@@ -2329,11 +2283,6 @@ export class Copilot extends HeyApiClient {
2329
2283
  return this._agents ??= new Agents2({ client: this.client });
2330
2284
  }
2331
2285
 
2332
- private _knowledge?: Knowledge;
2333
- get knowledge(): Knowledge {
2334
- return this._knowledge ??= new Knowledge({ client: this.client });
2335
- }
2336
-
2337
2286
  private _tasks?: Tasks;
2338
2287
  get tasks(): Tasks {
2339
2288
  return this._tasks ??= new Tasks({ client: this.client });
@@ -2412,6 +2361,34 @@ export class Recipients2 extends HeyApiClient {
2412
2361
  });
2413
2362
  }
2414
2363
 
2364
+ /**
2365
+ * Delete Email Batch Recipients
2366
+ *
2367
+ * Remove rows that were never sent. Not reversible; a sent row is refused in `rejected`.
2368
+ */
2369
+ public delete<ThrowOnError extends boolean = false>(parameters: {
2370
+ batch_id: string;
2371
+ deleteRecipientsRequest: DeleteRecipientsRequest;
2372
+ }, options?: Options<never, ThrowOnError>): RequestResult<EmailBatchesRecipientsDeleteResults, EmailBatchesRecipientsDeleteErrors, ThrowOnError, 'data'> {
2373
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'deleteRecipientsRequest', map: 'body' }] }]);
2374
+ return (options?.client ?? this.client).post<EmailBatchesRecipientsDeleteResults, EmailBatchesRecipientsDeleteErrors, ThrowOnError, 'data'>({
2375
+ responseStyle: 'data',
2376
+ security: [{ scheme: 'bearer', type: 'http' }, {
2377
+ in: 'cookie',
2378
+ name: 'talqing_session',
2379
+ type: 'apiKey'
2380
+ }],
2381
+ url: '/v1/email/batches/{batch_id}/recipients/delete',
2382
+ ...options,
2383
+ ...params,
2384
+ headers: {
2385
+ 'Content-Type': 'application/json',
2386
+ ...options?.headers,
2387
+ ...params.headers
2388
+ }
2389
+ });
2390
+ }
2391
+
2415
2392
  /**
2416
2393
  * Patch Email Batch Recipient
2417
2394
  *
@@ -2487,66 +2464,6 @@ export class Recipients2 extends HeyApiClient {
2487
2464
  }
2488
2465
  });
2489
2466
  }
2490
-
2491
- /**
2492
- * Restore Email Batch Recipients
2493
- *
2494
- * Put skipped rows back. `selection: "all_eligible"` means every row a person
2495
- * skipped; an `unfillable` row is restored by filling in its cell instead.
2496
- */
2497
- public restore<ThrowOnError extends boolean = false>(parameters: {
2498
- batch_id: string;
2499
- selectRecipientsRequest: SelectRecipientsRequest;
2500
- }, options?: Options<never, ThrowOnError>): RequestResult<EmailBatchesRecipientsRestoreResults, EmailBatchesRecipientsRestoreErrors, ThrowOnError, 'data'> {
2501
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'selectRecipientsRequest', map: 'body' }] }]);
2502
- return (options?.client ?? this.client).post<EmailBatchesRecipientsRestoreResults, EmailBatchesRecipientsRestoreErrors, ThrowOnError, 'data'>({
2503
- responseStyle: 'data',
2504
- security: [{ scheme: 'bearer', type: 'http' }, {
2505
- in: 'cookie',
2506
- name: 'talqing_session',
2507
- type: 'apiKey'
2508
- }],
2509
- url: '/v1/email/batches/{batch_id}/restore',
2510
- ...options,
2511
- ...params,
2512
- headers: {
2513
- 'Content-Type': 'application/json',
2514
- ...options?.headers,
2515
- ...params.headers
2516
- }
2517
- });
2518
- }
2519
-
2520
- /**
2521
- * Skip Email Batch Recipients
2522
- *
2523
- * Take rows out of consideration. Reversible with `restore`.
2524
- *
2525
- * Accepts drafted rows and rows whose drafting failed. Takes either
2526
- * `recipient_ids` or `selection: "all_eligible"`, which here means both.
2527
- */
2528
- public skip<ThrowOnError extends boolean = false>(parameters: {
2529
- batch_id: string;
2530
- selectRecipientsRequest: SelectRecipientsRequest;
2531
- }, options?: Options<never, ThrowOnError>): RequestResult<EmailBatchesRecipientsSkipResults, EmailBatchesRecipientsSkipErrors, ThrowOnError, 'data'> {
2532
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'selectRecipientsRequest', map: 'body' }] }]);
2533
- return (options?.client ?? this.client).post<EmailBatchesRecipientsSkipResults, EmailBatchesRecipientsSkipErrors, ThrowOnError, 'data'>({
2534
- responseStyle: 'data',
2535
- security: [{ scheme: 'bearer', type: 'http' }, {
2536
- in: 'cookie',
2537
- name: 'talqing_session',
2538
- type: 'apiKey'
2539
- }],
2540
- url: '/v1/email/batches/{batch_id}/skip',
2541
- ...options,
2542
- ...params,
2543
- headers: {
2544
- 'Content-Type': 'application/json',
2545
- ...options?.headers,
2546
- ...params.headers
2547
- }
2548
- });
2549
- }
2550
2467
  }
2551
2468
 
2552
2469
  export class Sends extends HeyApiClient {
@@ -3041,93 +2958,26 @@ export class Email extends HeyApiClient {
3041
2958
  }
3042
2959
  }
3043
2960
 
3044
- export class McpTools extends HeyApiClient {
3045
- /**
3046
- * List Integration Mcp Tools
3047
- *
3048
- * Connect to the integration's MCP server and list every tool it offers.
3049
- *
3050
- * A live call to the provider, so it also proves the connection works. The
3051
- * list is unfiltered — it is what tool approval is chosen from. Which of these
3052
- * an attached agent can actually call is the integration's `allowed_tools`
3053
- * (null there means all of them). Fails if the integration is not active or
3054
- * the server is unreachable.
3055
- */
3056
- public list<ThrowOnError extends boolean = false>(parameters: {
3057
- integration_id: string;
3058
- }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsMcpToolsListResults, IntegrationsMcpToolsListErrors, ThrowOnError, 'data'> {
3059
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'integration_id' }] }]);
3060
- return (options?.client ?? this.client).get<IntegrationsMcpToolsListResults, IntegrationsMcpToolsListErrors, ThrowOnError, 'data'>({
3061
- responseStyle: 'data',
3062
- security: [{ scheme: 'bearer', type: 'http' }, {
3063
- in: 'cookie',
3064
- name: 'talqing_session',
3065
- type: 'apiKey'
3066
- }],
3067
- url: '/v1/integrations/{integration_id}/mcp-tools',
3068
- ...options,
3069
- ...params
3070
- });
3071
- }
3072
- }
3073
-
3074
- export class Triggers extends HeyApiClient {
3075
- /**
3076
- * List Integration Triggers
3077
- *
3078
- * List the trigger deployments under an integration.
3079
- *
3080
- * A trigger binds an inbound provider event — a Telegram message — to a
3081
- * published agent version.
3082
- */
3083
- public list<ThrowOnError extends boolean = false>(parameters: {
3084
- integration_id: string;
3085
- limit?: number;
3086
- offset?: number;
3087
- }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsTriggersListResults, IntegrationsTriggersListErrors, ThrowOnError, 'data'> {
3088
- const params = buildClientParams([parameters], [{ args: [
3089
- { in: 'path', key: 'integration_id' },
3090
- { in: 'query', key: 'limit' },
3091
- { in: 'query', key: 'offset' }
3092
- ] }]);
3093
- return (options?.client ?? this.client).get<IntegrationsTriggersListResults, IntegrationsTriggersListErrors, ThrowOnError, 'data'>({
3094
- responseStyle: 'data',
3095
- security: [{ scheme: 'bearer', type: 'http' }, {
3096
- in: 'cookie',
3097
- name: 'talqing_session',
3098
- type: 'apiKey'
3099
- }],
3100
- url: '/v1/integrations/{integration_id}/triggers',
3101
- ...options,
3102
- ...params
3103
- });
3104
- }
3105
-
2961
+ export class Entries extends HeyApiClient {
3106
2962
  /**
3107
- * Create Integration Trigger
3108
- *
3109
- * Deploy an agent to an inbound provider event.
3110
- *
3111
- * `reply_mode` decides what happens with the agent's answer: `public_reply`
3112
- * sends it to the customer, `internal_note` posts it privately where the
3113
- * provider supports that, `none` generates without sending.
2963
+ * Create Faq Entries
3114
2964
  *
3115
- * Enabling validates that the integration is active and the assigned agent is
3116
- * a published text agent, so create disabled while still wiring things up.
2965
+ * Append question/answer entries to an FAQ, all or nothing. Live at once:
2966
+ * agents using the FAQ read them from their next session.
3117
2967
  */
3118
2968
  public create<ThrowOnError extends boolean = false>(parameters: {
3119
- integration_id: string;
3120
- createIntegrationTriggerRequest: CreateIntegrationTriggerRequest;
3121
- }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsTriggersCreateResults, IntegrationsTriggersCreateErrors, ThrowOnError, 'data'> {
3122
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'integration_id' }, { key: 'createIntegrationTriggerRequest', map: 'body' }] }]);
3123
- return (options?.client ?? this.client).post<IntegrationsTriggersCreateResults, IntegrationsTriggersCreateErrors, ThrowOnError, 'data'>({
2969
+ faq_id: string;
2970
+ createFaqEntriesRequest: CreateFaqEntriesRequest;
2971
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsEntriesCreateResults, FaqsEntriesCreateErrors, ThrowOnError, 'data'> {
2972
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'faq_id' }, { key: 'createFaqEntriesRequest', map: 'body' }] }]);
2973
+ return (options?.client ?? this.client).post<FaqsEntriesCreateResults, FaqsEntriesCreateErrors, ThrowOnError, 'data'>({
3124
2974
  responseStyle: 'data',
3125
2975
  security: [{ scheme: 'bearer', type: 'http' }, {
3126
2976
  in: 'cookie',
3127
2977
  name: 'talqing_session',
3128
2978
  type: 'apiKey'
3129
2979
  }],
3130
- url: '/v1/integrations/{integration_id}/triggers',
2980
+ url: '/v1/faqs/{faq_id}/entries',
3131
2981
  ...options,
3132
2982
  ...params,
3133
2983
  headers: {
@@ -3139,55 +2989,51 @@ export class Triggers extends HeyApiClient {
3139
2989
  }
3140
2990
 
3141
2991
  /**
3142
- * Delete Integration Trigger
2992
+ * Delete Faq Entry
3143
2993
  *
3144
- * Delete a trigger permanently. The agent stops receiving that event.
2994
+ * Delete one entry from an FAQ.
3145
2995
  */
3146
2996
  public delete<ThrowOnError extends boolean = false>(parameters: {
3147
- integration_id: string;
3148
- trigger_id: string;
3149
- }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsTriggersDeleteResults, IntegrationsTriggersDeleteErrors, ThrowOnError, 'data'> {
3150
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'integration_id' }, { in: 'path', key: 'trigger_id' }] }]);
3151
- return (options?.client ?? this.client).delete<IntegrationsTriggersDeleteResults, IntegrationsTriggersDeleteErrors, ThrowOnError, 'data'>({
2997
+ faq_id: string;
2998
+ entry_id: string;
2999
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsEntriesDeleteResults, FaqsEntriesDeleteErrors, ThrowOnError, 'data'> {
3000
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'faq_id' }, { in: 'path', key: 'entry_id' }] }]);
3001
+ return (options?.client ?? this.client).delete<FaqsEntriesDeleteResults, FaqsEntriesDeleteErrors, ThrowOnError, 'data'>({
3152
3002
  responseStyle: 'data',
3153
3003
  security: [{ scheme: 'bearer', type: 'http' }, {
3154
3004
  in: 'cookie',
3155
3005
  name: 'talqing_session',
3156
3006
  type: 'apiKey'
3157
3007
  }],
3158
- url: '/v1/integrations/{integration_id}/triggers/{trigger_id}',
3008
+ url: '/v1/faqs/{faq_id}/entries/{entry_id}',
3159
3009
  ...options,
3160
3010
  ...params
3161
3011
  });
3162
3012
  }
3163
3013
 
3164
3014
  /**
3165
- * Patch Integration Trigger
3166
- *
3167
- * Update a trigger: reassign the agent, change reply mode, enable or
3168
- * disable it.
3015
+ * Update Faq Entry
3169
3016
  *
3170
- * Omitted fields are left unchanged, and enabling one runs the same checks
3171
- * creating it did.
3017
+ * Change one entry's question, answer or both. Live from the next session.
3172
3018
  */
3173
3019
  public update<ThrowOnError extends boolean = false>(parameters: {
3174
- integration_id: string;
3175
- trigger_id: string;
3176
- patchIntegrationTriggerRequest: PatchIntegrationTriggerRequest;
3177
- }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsTriggersUpdateResults, IntegrationsTriggersUpdateErrors, ThrowOnError, 'data'> {
3020
+ faq_id: string;
3021
+ entry_id: string;
3022
+ updateFaqEntryRequest: UpdateFaqEntryRequest;
3023
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsEntriesUpdateResults, FaqsEntriesUpdateErrors, ThrowOnError, 'data'> {
3178
3024
  const params = buildClientParams([parameters], [{ args: [
3179
- { in: 'path', key: 'integration_id' },
3180
- { in: 'path', key: 'trigger_id' },
3181
- { key: 'patchIntegrationTriggerRequest', map: 'body' }
3025
+ { in: 'path', key: 'faq_id' },
3026
+ { in: 'path', key: 'entry_id' },
3027
+ { key: 'updateFaqEntryRequest', map: 'body' }
3182
3028
  ] }]);
3183
- return (options?.client ?? this.client).patch<IntegrationsTriggersUpdateResults, IntegrationsTriggersUpdateErrors, ThrowOnError, 'data'>({
3029
+ return (options?.client ?? this.client).patch<FaqsEntriesUpdateResults, FaqsEntriesUpdateErrors, ThrowOnError, 'data'>({
3184
3030
  responseStyle: 'data',
3185
3031
  security: [{ scheme: 'bearer', type: 'http' }, {
3186
3032
  in: 'cookie',
3187
3033
  name: 'talqing_session',
3188
3034
  type: 'apiKey'
3189
3035
  }],
3190
- url: '/v1/integrations/{integration_id}/triggers/{trigger_id}',
3036
+ url: '/v1/faqs/{faq_id}/entries/{entry_id}',
3191
3037
  ...options,
3192
3038
  ...params,
3193
3039
  headers: {
@@ -3199,58 +3045,47 @@ export class Triggers extends HeyApiClient {
3199
3045
  }
3200
3046
  }
3201
3047
 
3202
- export class Integrations extends HeyApiClient {
3048
+ export class Faqs extends HeyApiClient {
3203
3049
  /**
3204
- * List Integrations
3205
- *
3206
- * List the workspace's integrations with their provider, status and config.
3050
+ * List Faqs
3207
3051
  *
3208
- * Secret values are never returned — credential fields come back as
3209
- * `{{secrets.NAME}}` references.
3052
+ * List the workspace's FAQs by name, with how many questions each holds.
3210
3053
  */
3211
3054
  public list<ThrowOnError extends boolean = false>(parameters?: {
3212
3055
  limit?: number;
3213
3056
  offset?: number;
3214
- }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsListResults, IntegrationsListErrors, ThrowOnError, 'data'> {
3057
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsListResults, FaqsListErrors, ThrowOnError, 'data'> {
3215
3058
  const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
3216
- return (options?.client ?? this.client).get<IntegrationsListResults, IntegrationsListErrors, ThrowOnError, 'data'>({
3059
+ return (options?.client ?? this.client).get<FaqsListResults, FaqsListErrors, ThrowOnError, 'data'>({
3217
3060
  responseStyle: 'data',
3218
3061
  security: [{ scheme: 'bearer', type: 'http' }, {
3219
3062
  in: 'cookie',
3220
3063
  name: 'talqing_session',
3221
3064
  type: 'apiKey'
3222
3065
  }],
3223
- url: '/v1/integrations',
3066
+ url: '/v1/faqs',
3224
3067
  ...options,
3225
3068
  ...params
3226
3069
  });
3227
3070
  }
3228
3071
 
3229
3072
  /**
3230
- * Create Integration
3231
- *
3232
- * Create a manual integration, fully configured.
3233
- *
3234
- * Which of `credentials_ref`, `provider_account_info`, `mcp_config` and
3235
- * `webhook_config` a provider needs is described by its `setup_fields` in the
3236
- * integration catalog. Secret-bearing fields take a plaintext value — stored
3237
- * as a workspace secret — or an existing `{{secrets.NAME}}` reference.
3073
+ * Create Faq
3238
3074
  *
3239
- * Leave `allowed_tools` unset to expose every tool the server lists. OAuth
3240
- * providers are connected from the dashboard instead.
3075
+ * Create an FAQ, optionally with its first question/answer entries.
3241
3076
  */
3242
3077
  public create<ThrowOnError extends boolean = false>(parameters: {
3243
- createIntegrationRequest: CreateIntegrationRequest;
3244
- }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsCreateResults, IntegrationsCreateErrors, ThrowOnError, 'data'> {
3245
- const params = buildClientParams([parameters], [{ args: [{ key: 'createIntegrationRequest', map: 'body' }] }]);
3246
- return (options?.client ?? this.client).post<IntegrationsCreateResults, IntegrationsCreateErrors, ThrowOnError, 'data'>({
3078
+ faqDefinition: FaqDefinition;
3079
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsCreateResults, FaqsCreateErrors, ThrowOnError, 'data'> {
3080
+ const params = buildClientParams([parameters], [{ args: [{ key: 'faqDefinition', map: 'body' }] }]);
3081
+ return (options?.client ?? this.client).post<FaqsCreateResults, FaqsCreateErrors, ThrowOnError, 'data'>({
3247
3082
  responseStyle: 'data',
3248
3083
  security: [{ scheme: 'bearer', type: 'http' }, {
3249
3084
  in: 'cookie',
3250
3085
  name: 'talqing_session',
3251
3086
  type: 'apiKey'
3252
3087
  }],
3253
- url: '/v1/integrations',
3088
+ url: '/v1/faqs',
3254
3089
  ...options,
3255
3090
  ...params,
3256
3091
  headers: {
@@ -3262,104 +3097,68 @@ export class Integrations extends HeyApiClient {
3262
3097
  }
3263
3098
 
3264
3099
  /**
3265
- * Integration Catalog
3100
+ * Delete Faq
3266
3101
  *
3267
- * List the providers that can be integrated, and how to connect each one.
3268
- *
3269
- * `auth_type` says which path a provider takes: `manual` through this API,
3270
- * `oauth` from the dashboard. `setup_fields` is the authoritative list of what
3271
- * each manual provider requires — read it rather than guessing. `capabilities`
3272
- * says whether it serves tools (MCP) or a messaging channel (triggers).
3273
- */
3274
- public catalog<ThrowOnError extends boolean = false>(parameters?: {
3275
- limit?: number;
3276
- offset?: number;
3277
- }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsCatalogResults, IntegrationsCatalogErrors, ThrowOnError, 'data'> {
3278
- const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
3279
- return (options?.client ?? this.client).get<IntegrationsCatalogResults, IntegrationsCatalogErrors, ThrowOnError, 'data'>({
3280
- responseStyle: 'data',
3281
- security: [{ scheme: 'bearer', type: 'http' }, {
3282
- in: 'cookie',
3283
- name: 'talqing_session',
3284
- type: 'apiKey'
3285
- }],
3286
- url: '/v1/integrations/catalog',
3287
- ...options,
3288
- ...params
3289
- });
3290
- }
3291
-
3292
- /**
3293
- * Delete Integration
3294
- *
3295
- * Delete an integration and its triggers permanently.
3102
+ * Delete an FAQ and its entries. Refused with 409 while an agent or task
3103
+ * still attaches it.
3296
3104
  */
3297
3105
  public delete<ThrowOnError extends boolean = false>(parameters: {
3298
- integration_id: string;
3299
- }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsDeleteResults, IntegrationsDeleteErrors, ThrowOnError, 'data'> {
3300
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'integration_id' }] }]);
3301
- return (options?.client ?? this.client).delete<IntegrationsDeleteResults, IntegrationsDeleteErrors, ThrowOnError, 'data'>({
3106
+ faq_id: string;
3107
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsDeleteResults, FaqsDeleteErrors, ThrowOnError, 'data'> {
3108
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'faq_id' }] }]);
3109
+ return (options?.client ?? this.client).delete<FaqsDeleteResults, FaqsDeleteErrors, ThrowOnError, 'data'>({
3302
3110
  responseStyle: 'data',
3303
3111
  security: [{ scheme: 'bearer', type: 'http' }, {
3304
3112
  in: 'cookie',
3305
3113
  name: 'talqing_session',
3306
3114
  type: 'apiKey'
3307
3115
  }],
3308
- url: '/v1/integrations/{integration_id}',
3116
+ url: '/v1/faqs/{faq_id}',
3309
3117
  ...options,
3310
3118
  ...params
3311
3119
  });
3312
3120
  }
3313
3121
 
3314
3122
  /**
3315
- * Get Integration
3123
+ * Get Faq
3316
3124
  *
3317
- * Fetch one integration: provider, status, structured config, trigger
3318
- * capabilities and inbound webhook setup state.
3125
+ * Get one FAQ with every entry, in the order they were added.
3319
3126
  */
3320
3127
  public get<ThrowOnError extends boolean = false>(parameters: {
3321
- integration_id: string;
3322
- }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsGetResults, IntegrationsGetErrors, ThrowOnError, 'data'> {
3323
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'integration_id' }] }]);
3324
- return (options?.client ?? this.client).get<IntegrationsGetResults, IntegrationsGetErrors, ThrowOnError, 'data'>({
3128
+ faq_id: string;
3129
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsGetResults, FaqsGetErrors, ThrowOnError, 'data'> {
3130
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'faq_id' }] }]);
3131
+ return (options?.client ?? this.client).get<FaqsGetResults, FaqsGetErrors, ThrowOnError, 'data'>({
3325
3132
  responseStyle: 'data',
3326
3133
  security: [{ scheme: 'bearer', type: 'http' }, {
3327
3134
  in: 'cookie',
3328
3135
  name: 'talqing_session',
3329
3136
  type: 'apiKey'
3330
3137
  }],
3331
- url: '/v1/integrations/{integration_id}',
3138
+ url: '/v1/faqs/{faq_id}',
3332
3139
  ...options,
3333
3140
  ...params
3334
3141
  });
3335
3142
  }
3336
3143
 
3337
3144
  /**
3338
- * Patch Integration
3339
- *
3340
- * Update an integration. Omitted fields are left unchanged.
3145
+ * Update Faq
3341
3146
  *
3342
- * Sending `credentials_ref` rotates the credential. Only `active` integrations
3343
- * can be attached to agents or serve triggers.
3344
- *
3345
- * `allowed_tools` replaces the approved list wholesale: exactly those tools
3346
- * become callable by every agent this integration is attached to. It cannot be
3347
- * emptied — an agent that should call nothing is an integration that should be
3348
- * disabled.
3147
+ * Rename an FAQ.
3349
3148
  */
3350
3149
  public update<ThrowOnError extends boolean = false>(parameters: {
3351
- integration_id: string;
3352
- patchIntegrationRequest: PatchIntegrationRequest;
3353
- }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsUpdateResults, IntegrationsUpdateErrors, ThrowOnError, 'data'> {
3354
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'integration_id' }, { key: 'patchIntegrationRequest', map: 'body' }] }]);
3355
- return (options?.client ?? this.client).patch<IntegrationsUpdateResults, IntegrationsUpdateErrors, ThrowOnError, 'data'>({
3150
+ faq_id: string;
3151
+ updateFaqRequest: UpdateFaqRequest;
3152
+ }, options?: Options<never, ThrowOnError>): RequestResult<FaqsUpdateResults, FaqsUpdateErrors, ThrowOnError, 'data'> {
3153
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'faq_id' }, { key: 'updateFaqRequest', map: 'body' }] }]);
3154
+ return (options?.client ?? this.client).patch<FaqsUpdateResults, FaqsUpdateErrors, ThrowOnError, 'data'>({
3356
3155
  responseStyle: 'data',
3357
3156
  security: [{ scheme: 'bearer', type: 'http' }, {
3358
3157
  in: 'cookie',
3359
3158
  name: 'talqing_session',
3360
3159
  type: 'apiKey'
3361
3160
  }],
3362
- url: '/v1/integrations/{integration_id}',
3161
+ url: '/v1/faqs/{faq_id}',
3363
3162
  ...options,
3364
3163
  ...params,
3365
3164
  headers: {
@@ -3370,99 +3169,99 @@ export class Integrations extends HeyApiClient {
3370
3169
  });
3371
3170
  }
3372
3171
 
3373
- private _mcpTools?: McpTools;
3374
- get mcpTools(): McpTools {
3375
- return this._mcpTools ??= new McpTools({ client: this.client });
3376
- }
3377
-
3378
- private _triggers?: Triggers;
3379
- get triggers(): Triggers {
3380
- return this._triggers ??= new Triggers({ client: this.client });
3172
+ private _entries?: Entries;
3173
+ get entries(): Entries {
3174
+ return this._entries ??= new Entries({ client: this.client });
3381
3175
  }
3382
3176
  }
3383
3177
 
3384
- export class Nodes extends HeyApiClient {
3178
+ export class McpTools extends HeyApiClient {
3385
3179
  /**
3386
- * Delete Node
3180
+ * List Integration Mcp Tools
3387
3181
  *
3388
- * Drop one entry from the table of contents, permanently.
3182
+ * Connect to the integration's MCP server and list every tool it offers.
3389
3183
  *
3390
- * Its children go with it, and agents can no longer retrieve any of it.
3184
+ * A live call to the provider, so it also proves the connection works. The
3185
+ * list is unfiltered — it is what tool approval is chosen from. Which of these
3186
+ * an attached agent can actually call is the integration's `allowed_tools`
3187
+ * (null there means all of them). Fails if the integration is not active or
3188
+ * the server is unreachable.
3391
3189
  */
3392
- public delete<ThrowOnError extends boolean = false>(parameters: {
3393
- kb_id: string;
3394
- node_id: string;
3395
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeNodesDeleteResults, KnowledgeNodesDeleteErrors, ThrowOnError, 'data'> {
3396
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }, { in: 'path', key: 'node_id' }] }]);
3397
- return (options?.client ?? this.client).delete<KnowledgeNodesDeleteResults, KnowledgeNodesDeleteErrors, ThrowOnError, 'data'>({
3190
+ public list<ThrowOnError extends boolean = false>(parameters: {
3191
+ integration_id: string;
3192
+ }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsMcpToolsListResults, IntegrationsMcpToolsListErrors, ThrowOnError, 'data'> {
3193
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'integration_id' }] }]);
3194
+ return (options?.client ?? this.client).get<IntegrationsMcpToolsListResults, IntegrationsMcpToolsListErrors, ThrowOnError, 'data'>({
3398
3195
  responseStyle: 'data',
3399
3196
  security: [{ scheme: 'bearer', type: 'http' }, {
3400
3197
  in: 'cookie',
3401
3198
  name: 'talqing_session',
3402
3199
  type: 'apiKey'
3403
3200
  }],
3404
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}',
3201
+ url: '/v1/integrations/{integration_id}/mcp-tools',
3405
3202
  ...options,
3406
3203
  ...params
3407
3204
  });
3408
3205
  }
3409
-
3206
+ }
3207
+
3208
+ export class Triggers extends HeyApiClient {
3410
3209
  /**
3411
- * Get Node
3210
+ * List Integration Triggers
3412
3211
  *
3413
- * Read one entry of the table of contents, with its full content.
3212
+ * List the trigger deployments under an integration.
3414
3213
  *
3415
- * This is the text an agent retrieves when it fetches this node. `version` is
3416
- * what `patch_node` needs for a safe edit.
3214
+ * A trigger binds an inbound provider event — a Telegram message — to a
3215
+ * published agent version.
3417
3216
  */
3418
- public get<ThrowOnError extends boolean = false>(parameters: {
3419
- kb_id: string;
3420
- node_id: string;
3421
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeNodesGetResults, KnowledgeNodesGetErrors, ThrowOnError, 'data'> {
3422
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }, { in: 'path', key: 'node_id' }] }]);
3423
- return (options?.client ?? this.client).get<KnowledgeNodesGetResults, KnowledgeNodesGetErrors, ThrowOnError, 'data'>({
3217
+ public list<ThrowOnError extends boolean = false>(parameters: {
3218
+ integration_id: string;
3219
+ limit?: number;
3220
+ offset?: number;
3221
+ }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsTriggersListResults, IntegrationsTriggersListErrors, ThrowOnError, 'data'> {
3222
+ const params = buildClientParams([parameters], [{ args: [
3223
+ { in: 'path', key: 'integration_id' },
3224
+ { in: 'query', key: 'limit' },
3225
+ { in: 'query', key: 'offset' }
3226
+ ] }]);
3227
+ return (options?.client ?? this.client).get<IntegrationsTriggersListResults, IntegrationsTriggersListErrors, ThrowOnError, 'data'>({
3424
3228
  responseStyle: 'data',
3425
3229
  security: [{ scheme: 'bearer', type: 'http' }, {
3426
3230
  in: 'cookie',
3427
3231
  name: 'talqing_session',
3428
3232
  type: 'apiKey'
3429
3233
  }],
3430
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}',
3234
+ url: '/v1/integrations/{integration_id}/triggers',
3431
3235
  ...options,
3432
3236
  ...params
3433
3237
  });
3434
3238
  }
3435
3239
 
3436
3240
  /**
3437
- * Patch Node
3241
+ * Create Integration Trigger
3438
3242
  *
3439
- * Correct one entry's title, summary or content by hand — the way to fix a
3440
- * fact the crawl got wrong without rebuilding.
3243
+ * Deploy an agent to an inbound provider event.
3441
3244
  *
3442
- * `title` and `summary` are what the agent sees in the table of contents and
3443
- * decide whether it ever fetches this node, so keep them accurate.
3245
+ * `reply_mode` decides what happens with the agent's answer: `public_reply`
3246
+ * sends it to the customer, `internal_note` posts it privately where the
3247
+ * provider supports that, `none` generates without sending.
3444
3248
  *
3445
- * Send the `version` you read from `get_node`; a mismatch is rejected rather
3446
- * than overwriting someone else's edit.
3249
+ * Enabling validates that the integration is active and the assigned agent is
3250
+ * a published text agent, so create disabled while still wiring things up.
3447
3251
  */
3448
- public update<ThrowOnError extends boolean = false>(parameters: {
3449
- kb_id: string;
3450
- node_id: string;
3451
- patchNodeRequest: PatchNodeRequest;
3452
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeNodesUpdateResults, KnowledgeNodesUpdateErrors, ThrowOnError, 'data'> {
3453
- const params = buildClientParams([parameters], [{ args: [
3454
- { in: 'path', key: 'kb_id' },
3455
- { in: 'path', key: 'node_id' },
3456
- { key: 'patchNodeRequest', map: 'body' }
3457
- ] }]);
3458
- return (options?.client ?? this.client).patch<KnowledgeNodesUpdateResults, KnowledgeNodesUpdateErrors, ThrowOnError, 'data'>({
3252
+ public create<ThrowOnError extends boolean = false>(parameters: {
3253
+ integration_id: string;
3254
+ createIntegrationTriggerRequest: CreateIntegrationTriggerRequest;
3255
+ }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsTriggersCreateResults, IntegrationsTriggersCreateErrors, ThrowOnError, 'data'> {
3256
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'integration_id' }, { key: 'createIntegrationTriggerRequest', map: 'body' }] }]);
3257
+ return (options?.client ?? this.client).post<IntegrationsTriggersCreateResults, IntegrationsTriggersCreateErrors, ThrowOnError, 'data'>({
3459
3258
  responseStyle: 'data',
3460
3259
  security: [{ scheme: 'bearer', type: 'http' }, {
3461
3260
  in: 'cookie',
3462
3261
  name: 'talqing_session',
3463
3262
  type: 'apiKey'
3464
3263
  }],
3465
- url: '/v1/knowledge/{kb_id}/nodes/{node_id}',
3264
+ url: '/v1/integrations/{integration_id}/triggers',
3466
3265
  ...options,
3467
3266
  ...params,
3468
3267
  headers: {
@@ -3472,92 +3271,57 @@ export class Nodes extends HeyApiClient {
3472
3271
  }
3473
3272
  });
3474
3273
  }
3475
- }
3476
-
3477
- export class Pages extends HeyApiClient {
3478
- /**
3479
- * List Pages
3480
- *
3481
- * List the crawled pages and how each one transcribed.
3482
- *
3483
- * Where you look when a knowledge base is missing something: a page with a
3484
- * non-`done` status and an `error` never made it in, and `content_len` of 0
3485
- * means the URL yielded nothing worth indexing.
3486
- */
3487
- public list<ThrowOnError extends boolean = false>(parameters: {
3488
- kb_id: string;
3489
- limit?: number;
3490
- offset?: number;
3491
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgePagesListResults, KnowledgePagesListErrors, ThrowOnError, 'data'> {
3492
- const params = buildClientParams([parameters], [{ args: [
3493
- { in: 'path', key: 'kb_id' },
3494
- { in: 'query', key: 'limit' },
3495
- { in: 'query', key: 'offset' }
3496
- ] }]);
3497
- return (options?.client ?? this.client).get<KnowledgePagesListResults, KnowledgePagesListErrors, ThrowOnError, 'data'>({
3498
- responseStyle: 'data',
3499
- security: [{ scheme: 'bearer', type: 'http' }, {
3500
- in: 'cookie',
3501
- name: 'talqing_session',
3502
- type: 'apiKey'
3503
- }],
3504
- url: '/v1/knowledge/{kb_id}/pages',
3505
- ...options,
3506
- ...params
3507
- });
3508
- }
3509
- }
3510
-
3511
- export class Knowledge2 extends HeyApiClient {
3274
+
3512
3275
  /**
3513
- * List Kbs
3514
- *
3515
- * List the workspace's knowledge bases with their build status.
3276
+ * Delete Integration Trigger
3516
3277
  *
3517
- * A knowledge base gives an agent grounded answers over crawled content. Only
3518
- * one with status `ready` can be attached to an agent, through the agent
3519
- * config's `kb_ids`.
3278
+ * Delete a trigger permanently. The agent stops receiving that event.
3520
3279
  */
3521
- public list<ThrowOnError extends boolean = false>(parameters?: {
3522
- limit?: number;
3523
- offset?: number;
3524
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeListResults, KnowledgeListErrors, ThrowOnError, 'data'> {
3525
- const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
3526
- return (options?.client ?? this.client).get<KnowledgeListResults, KnowledgeListErrors, ThrowOnError, 'data'>({
3280
+ public delete<ThrowOnError extends boolean = false>(parameters: {
3281
+ integration_id: string;
3282
+ trigger_id: string;
3283
+ }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsTriggersDeleteResults, IntegrationsTriggersDeleteErrors, ThrowOnError, 'data'> {
3284
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'integration_id' }, { in: 'path', key: 'trigger_id' }] }]);
3285
+ return (options?.client ?? this.client).delete<IntegrationsTriggersDeleteResults, IntegrationsTriggersDeleteErrors, ThrowOnError, 'data'>({
3527
3286
  responseStyle: 'data',
3528
3287
  security: [{ scheme: 'bearer', type: 'http' }, {
3529
3288
  in: 'cookie',
3530
3289
  name: 'talqing_session',
3531
3290
  type: 'apiKey'
3532
3291
  }],
3533
- url: '/v1/knowledge',
3292
+ url: '/v1/integrations/{integration_id}/triggers/{trigger_id}',
3534
3293
  ...options,
3535
3294
  ...params
3536
3295
  });
3537
3296
  }
3538
3297
 
3539
3298
  /**
3540
- * Create Kb
3299
+ * Patch Integration Trigger
3541
3300
  *
3542
- * Start a knowledge base by crawling one or more websites.
3301
+ * Update a trigger: reassign the agent, change reply mode, enable or
3302
+ * disable it.
3543
3303
  *
3544
- * Returns immediately with `status: discovering` — crawling takes minutes.
3545
- * Poll `get_kb` until `review`, then pass the URLs worth indexing to
3546
- * `build_kb`. `max_pages` caps how many discovery may find (default 1000) and
3547
- * `notes` guides how the content is transcribed and organized.
3304
+ * Omitted fields are left unchanged, and enabling one runs the same checks
3305
+ * creating it did.
3548
3306
  */
3549
- public create<ThrowOnError extends boolean = false>(parameters: {
3550
- createKbRequest: CreateKBRequest;
3551
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeCreateResults, KnowledgeCreateErrors, ThrowOnError, 'data'> {
3552
- const params = buildClientParams([parameters], [{ args: [{ key: 'createKbRequest', map: 'body' }] }]);
3553
- return (options?.client ?? this.client).post<KnowledgeCreateResults, KnowledgeCreateErrors, ThrowOnError, 'data'>({
3307
+ public update<ThrowOnError extends boolean = false>(parameters: {
3308
+ integration_id: string;
3309
+ trigger_id: string;
3310
+ patchIntegrationTriggerRequest: PatchIntegrationTriggerRequest;
3311
+ }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsTriggersUpdateResults, IntegrationsTriggersUpdateErrors, ThrowOnError, 'data'> {
3312
+ const params = buildClientParams([parameters], [{ args: [
3313
+ { in: 'path', key: 'integration_id' },
3314
+ { in: 'path', key: 'trigger_id' },
3315
+ { key: 'patchIntegrationTriggerRequest', map: 'body' }
3316
+ ] }]);
3317
+ return (options?.client ?? this.client).patch<IntegrationsTriggersUpdateResults, IntegrationsTriggersUpdateErrors, ThrowOnError, 'data'>({
3554
3318
  responseStyle: 'data',
3555
3319
  security: [{ scheme: 'bearer', type: 'http' }, {
3556
3320
  in: 'cookie',
3557
3321
  name: 'talqing_session',
3558
3322
  type: 'apiKey'
3559
3323
  }],
3560
- url: '/v1/knowledge',
3324
+ url: '/v1/integrations/{integration_id}/triggers/{trigger_id}',
3561
3325
  ...options,
3562
3326
  ...params,
3563
3327
  headers: {
@@ -3567,178 +3331,187 @@ export class Knowledge2 extends HeyApiClient {
3567
3331
  }
3568
3332
  });
3569
3333
  }
3570
-
3334
+ }
3335
+
3336
+ export class Integrations extends HeyApiClient {
3571
3337
  /**
3572
- * Delete Kb
3338
+ * List Integrations
3573
3339
  *
3574
- * Delete a knowledge base and everything crawled into it, permanently.
3340
+ * List the workspace's integrations with their provider, status and config.
3575
3341
  *
3576
- * Rebuilding means crawling the site again. Agents that list it in `kb_ids`
3577
- * lose those grounded answers, so detach it there first.
3342
+ * Secret values are never returned — credential fields come back as
3343
+ * `{{secrets.NAME}}` references.
3578
3344
  */
3579
- public delete<ThrowOnError extends boolean = false>(parameters: {
3580
- kb_id: string;
3581
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeDeleteResults, KnowledgeDeleteErrors, ThrowOnError, 'data'> {
3582
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3583
- return (options?.client ?? this.client).delete<KnowledgeDeleteResults, KnowledgeDeleteErrors, ThrowOnError, 'data'>({
3345
+ public list<ThrowOnError extends boolean = false>(parameters?: {
3346
+ limit?: number;
3347
+ offset?: number;
3348
+ }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsListResults, IntegrationsListErrors, ThrowOnError, 'data'> {
3349
+ const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
3350
+ return (options?.client ?? this.client).get<IntegrationsListResults, IntegrationsListErrors, ThrowOnError, 'data'>({
3584
3351
  responseStyle: 'data',
3585
3352
  security: [{ scheme: 'bearer', type: 'http' }, {
3586
3353
  in: 'cookie',
3587
3354
  name: 'talqing_session',
3588
3355
  type: 'apiKey'
3589
3356
  }],
3590
- url: '/v1/knowledge/{kb_id}',
3357
+ url: '/v1/integrations',
3591
3358
  ...options,
3592
3359
  ...params
3593
3360
  });
3594
3361
  }
3595
3362
 
3596
3363
  /**
3597
- * Get Kb
3364
+ * Create Integration
3598
3365
  *
3599
- * Read one knowledge base: build status, progress and content tree.
3366
+ * Create a manual integration, fully configured.
3367
+ *
3368
+ * Which of `credentials_ref`, `provider_account_info`, `mcp_config` and
3369
+ * `webhook_config` a provider needs is described by its `setup_fields` in the
3370
+ * integration catalog. Secret-bearing fields take a plaintext value — stored
3371
+ * as a workspace secret — or an existing `{{secrets.NAME}}` reference.
3600
3372
  *
3601
- * `status` walks `discovering` -> `review` -> `transcribing` -> `generating`
3602
- * -> `ready`, with `error` set if it stopped. At `review`, `discovered` holds
3603
- * the crawled URLs awaiting your selection; once ready, `tree` is the table of
3604
- * contents. This is the endpoint to poll while a build runs.
3373
+ * Leave `allowed_tools` unset to expose every tool the server lists. OAuth
3374
+ * providers are connected from the dashboard instead.
3605
3375
  */
3606
- public get<ThrowOnError extends boolean = false>(parameters: {
3607
- kb_id: string;
3608
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeGetResults, KnowledgeGetErrors, ThrowOnError, 'data'> {
3609
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3610
- return (options?.client ?? this.client).get<KnowledgeGetResults, KnowledgeGetErrors, ThrowOnError, 'data'>({
3376
+ public create<ThrowOnError extends boolean = false>(parameters: {
3377
+ createIntegrationRequest: CreateIntegrationRequest;
3378
+ }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsCreateResults, IntegrationsCreateErrors, ThrowOnError, 'data'> {
3379
+ const params = buildClientParams([parameters], [{ args: [{ key: 'createIntegrationRequest', map: 'body' }] }]);
3380
+ return (options?.client ?? this.client).post<IntegrationsCreateResults, IntegrationsCreateErrors, ThrowOnError, 'data'>({
3611
3381
  responseStyle: 'data',
3612
3382
  security: [{ scheme: 'bearer', type: 'http' }, {
3613
3383
  in: 'cookie',
3614
3384
  name: 'talqing_session',
3615
3385
  type: 'apiKey'
3616
3386
  }],
3617
- url: '/v1/knowledge/{kb_id}',
3387
+ url: '/v1/integrations',
3618
3388
  ...options,
3619
- ...params
3389
+ ...params,
3390
+ headers: {
3391
+ 'Content-Type': 'application/json',
3392
+ ...options?.headers,
3393
+ ...params.headers
3394
+ }
3620
3395
  });
3621
3396
  }
3622
3397
 
3623
3398
  /**
3624
- * Build Kb
3399
+ * Integration Catalog
3625
3400
  *
3626
- * Index the chosen pages, then write the table of contents.
3401
+ * List the providers that can be integrated, and how to connect each one.
3627
3402
  *
3628
- * Call this once the knowledge base reaches `review`, passing the subset of
3629
- * `discovered` URLs worth indexing — the KB is only as good as that choice.
3630
- * Returns as soon as the work is queued; poll `get_kb` until `ready`, which is
3631
- * when it can be attached to an agent.
3403
+ * `auth_type` says which path a provider takes: `manual` through this API,
3404
+ * `oauth` from the dashboard. `setup_fields` is the authoritative list of what
3405
+ * each manual provider requires — read it rather than guessing. `capabilities`
3406
+ * says whether it serves tools (MCP) or a messaging channel (triggers).
3632
3407
  */
3633
- public build<ThrowOnError extends boolean = false>(parameters: {
3634
- kb_id: string;
3635
- buildKbRequest: BuildKBRequest;
3636
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeBuildResults, KnowledgeBuildErrors, ThrowOnError, 'data'> {
3637
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }, { key: 'buildKbRequest', map: 'body' }] }]);
3638
- return (options?.client ?? this.client).post<KnowledgeBuildResults, KnowledgeBuildErrors, ThrowOnError, 'data'>({
3408
+ public catalog<ThrowOnError extends boolean = false>(parameters?: {
3409
+ limit?: number;
3410
+ offset?: number;
3411
+ }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsCatalogResults, IntegrationsCatalogErrors, ThrowOnError, 'data'> {
3412
+ const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
3413
+ return (options?.client ?? this.client).get<IntegrationsCatalogResults, IntegrationsCatalogErrors, ThrowOnError, 'data'>({
3639
3414
  responseStyle: 'data',
3640
3415
  security: [{ scheme: 'bearer', type: 'http' }, {
3641
3416
  in: 'cookie',
3642
3417
  name: 'talqing_session',
3643
3418
  type: 'apiKey'
3644
3419
  }],
3645
- url: '/v1/knowledge/{kb_id}/build',
3420
+ url: '/v1/integrations/catalog',
3646
3421
  ...options,
3647
- ...params,
3648
- headers: {
3649
- 'Content-Type': 'application/json',
3650
- ...options?.headers,
3651
- ...params.headers
3652
- }
3422
+ ...params
3653
3423
  });
3654
3424
  }
3655
3425
 
3656
3426
  /**
3657
- * Events
3658
- *
3659
- * Watch one knowledge base build: `snapshot` first, then `progress` and `status`.
3427
+ * Delete Integration
3660
3428
  *
3661
- * `progress` carries the per-stage counts, `status` the terminal verdict
3662
- * (`ready`, or an `error`). The same state is readable at any time with
3663
- * `get_kb`; this is the live view of it.
3429
+ * Delete an integration and its triggers permanently.
3664
3430
  */
3665
- public events<ThrowOnError extends boolean = false>(parameters: {
3666
- kb_id: string;
3667
- }, options?: Options<never, ThrowOnError, KnowledgeEventsResult>): Promise<ServerSentEventsResult<KnowledgeEventsResults>> {
3668
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3669
- return (options?.client ?? this.client).sse.get<KnowledgeEventsResults, KnowledgeEventsErrors, ThrowOnError, 'data'>({
3431
+ public delete<ThrowOnError extends boolean = false>(parameters: {
3432
+ integration_id: string;
3433
+ }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsDeleteResults, IntegrationsDeleteErrors, ThrowOnError, 'data'> {
3434
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'integration_id' }] }]);
3435
+ return (options?.client ?? this.client).delete<IntegrationsDeleteResults, IntegrationsDeleteErrors, ThrowOnError, 'data'>({
3670
3436
  responseStyle: 'data',
3671
3437
  security: [{ scheme: 'bearer', type: 'http' }, {
3672
3438
  in: 'cookie',
3673
3439
  name: 'talqing_session',
3674
3440
  type: 'apiKey'
3675
3441
  }],
3676
- url: '/v1/knowledge/{kb_id}/events',
3442
+ url: '/v1/integrations/{integration_id}',
3677
3443
  ...options,
3678
3444
  ...params
3679
3445
  });
3680
3446
  }
3681
3447
 
3682
3448
  /**
3683
- * Get Kb Prompt
3684
- *
3685
- * The table of contents exactly as an agent using this KB is given it.
3449
+ * Get Integration
3686
3450
  *
3687
- * Read it to judge what the agent can actually find — if a topic reads
3688
- * vaguely here, the agent will not know to fetch it. `chars` is how much of
3689
- * the agent's context this KB occupies.
3451
+ * Fetch one integration: provider, status, structured config, trigger
3452
+ * capabilities and inbound webhook setup state.
3690
3453
  */
3691
- public prompt<ThrowOnError extends boolean = false>(parameters: {
3692
- kb_id: string;
3693
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgePromptResults, KnowledgePromptErrors, ThrowOnError, 'data'> {
3694
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3695
- return (options?.client ?? this.client).get<KnowledgePromptResults, KnowledgePromptErrors, ThrowOnError, 'data'>({
3454
+ public get<ThrowOnError extends boolean = false>(parameters: {
3455
+ integration_id: string;
3456
+ }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsGetResults, IntegrationsGetErrors, ThrowOnError, 'data'> {
3457
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'integration_id' }] }]);
3458
+ return (options?.client ?? this.client).get<IntegrationsGetResults, IntegrationsGetErrors, ThrowOnError, 'data'>({
3696
3459
  responseStyle: 'data',
3697
3460
  security: [{ scheme: 'bearer', type: 'http' }, {
3698
3461
  in: 'cookie',
3699
3462
  name: 'talqing_session',
3700
3463
  type: 'apiKey'
3701
3464
  }],
3702
- url: '/v1/knowledge/{kb_id}/prompt',
3465
+ url: '/v1/integrations/{integration_id}',
3703
3466
  ...options,
3704
3467
  ...params
3705
3468
  });
3706
3469
  }
3707
3470
 
3708
3471
  /**
3709
- * Regenerate Toc
3472
+ * Patch Integration
3473
+ *
3474
+ * Update an integration. Omitted fields are left unchanged.
3710
3475
  *
3711
- * Rewrite the table of contents from the pages already indexed.
3476
+ * Sending `credentials_ref` rotates the credential. Only `active` integrations
3477
+ * can be attached to agents or serve triggers.
3712
3478
  *
3713
- * The repair for a knowledge base whose structure came out wrong, or whose
3714
- * build failed at the last stage: it re-runs only that stage, so the site is
3715
- * not crawled or transcribed again.
3479
+ * `allowed_tools` replaces the approved list wholesale: exactly those tools
3480
+ * become callable by every agent this integration is attached to. It cannot be
3481
+ * emptied — an agent that should call nothing is an integration that should be
3482
+ * disabled.
3716
3483
  */
3717
- public regenerateToc<ThrowOnError extends boolean = false>(parameters: {
3718
- kb_id: string;
3719
- }, options?: Options<never, ThrowOnError>): RequestResult<KnowledgeRegenerateTocResults, KnowledgeRegenerateTocErrors, ThrowOnError, 'data'> {
3720
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'kb_id' }] }]);
3721
- return (options?.client ?? this.client).post<KnowledgeRegenerateTocResults, KnowledgeRegenerateTocErrors, ThrowOnError, 'data'>({
3484
+ public update<ThrowOnError extends boolean = false>(parameters: {
3485
+ integration_id: string;
3486
+ patchIntegrationRequest: PatchIntegrationRequest;
3487
+ }, options?: Options<never, ThrowOnError>): RequestResult<IntegrationsUpdateResults, IntegrationsUpdateErrors, ThrowOnError, 'data'> {
3488
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'integration_id' }, { key: 'patchIntegrationRequest', map: 'body' }] }]);
3489
+ return (options?.client ?? this.client).patch<IntegrationsUpdateResults, IntegrationsUpdateErrors, ThrowOnError, 'data'>({
3722
3490
  responseStyle: 'data',
3723
3491
  security: [{ scheme: 'bearer', type: 'http' }, {
3724
3492
  in: 'cookie',
3725
3493
  name: 'talqing_session',
3726
3494
  type: 'apiKey'
3727
3495
  }],
3728
- url: '/v1/knowledge/{kb_id}/toc',
3496
+ url: '/v1/integrations/{integration_id}',
3729
3497
  ...options,
3730
- ...params
3498
+ ...params,
3499
+ headers: {
3500
+ 'Content-Type': 'application/json',
3501
+ ...options?.headers,
3502
+ ...params.headers
3503
+ }
3731
3504
  });
3732
3505
  }
3733
3506
 
3734
- private _nodes?: Nodes;
3735
- get nodes(): Nodes {
3736
- return this._nodes ??= new Nodes({ client: this.client });
3507
+ private _mcpTools?: McpTools;
3508
+ get mcpTools(): McpTools {
3509
+ return this._mcpTools ??= new McpTools({ client: this.client });
3737
3510
  }
3738
3511
 
3739
- private _pages?: Pages;
3740
- get pages(): Pages {
3741
- return this._pages ??= new Pages({ client: this.client });
3512
+ private _triggers?: Triggers;
3513
+ get triggers(): Triggers {
3514
+ return this._triggers ??= new Triggers({ client: this.client });
3742
3515
  }
3743
3516
  }
3744
3517
 
@@ -5459,51 +5232,23 @@ export class Recipients3 extends HeyApiClient {
5459
5232
  }
5460
5233
 
5461
5234
  /**
5462
- * Restore Whatsapp Batch Recipients
5463
- *
5464
- * Put rows a person skipped back. A row skipped for its cells returns when they are fixed.
5465
- */
5466
- public restore<ThrowOnError extends boolean = false>(parameters: {
5467
- batch_id: string;
5468
- selectRecipientsRequest: SelectRecipientsRequest;
5469
- }, options?: Options<never, ThrowOnError>): RequestResult<WhatsappBatchesRecipientsRestoreResults, WhatsappBatchesRecipientsRestoreErrors, ThrowOnError, 'data'> {
5470
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'selectRecipientsRequest', map: 'body' }] }]);
5471
- return (options?.client ?? this.client).post<WhatsappBatchesRecipientsRestoreResults, WhatsappBatchesRecipientsRestoreErrors, ThrowOnError, 'data'>({
5472
- responseStyle: 'data',
5473
- security: [{ scheme: 'bearer', type: 'http' }, {
5474
- in: 'cookie',
5475
- name: 'talqing_session',
5476
- type: 'apiKey'
5477
- }],
5478
- url: '/v1/whatsapp/batches/{batch_id}/recipients/restore',
5479
- ...options,
5480
- ...params,
5481
- headers: {
5482
- 'Content-Type': 'application/json',
5483
- ...options?.headers,
5484
- ...params.headers
5485
- }
5486
- });
5487
- }
5488
-
5489
- /**
5490
- * Skip Whatsapp Batch Recipients
5235
+ * Delete Whatsapp Batch Recipients
5491
5236
  *
5492
- * Take ready rows out of the send. Reversible with restore.
5237
+ * Remove rows that were never sent. Not reversible; a sent row is refused in `rejected`.
5493
5238
  */
5494
- public skip<ThrowOnError extends boolean = false>(parameters: {
5239
+ public delete<ThrowOnError extends boolean = false>(parameters: {
5495
5240
  batch_id: string;
5496
- selectRecipientsRequest: SelectRecipientsRequest;
5497
- }, options?: Options<never, ThrowOnError>): RequestResult<WhatsappBatchesRecipientsSkipResults, WhatsappBatchesRecipientsSkipErrors, ThrowOnError, 'data'> {
5498
- const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'selectRecipientsRequest', map: 'body' }] }]);
5499
- return (options?.client ?? this.client).post<WhatsappBatchesRecipientsSkipResults, WhatsappBatchesRecipientsSkipErrors, ThrowOnError, 'data'>({
5241
+ deleteRecipientsRequest: DeleteRecipientsRequest;
5242
+ }, options?: Options<never, ThrowOnError>): RequestResult<WhatsappBatchesRecipientsDeleteResults, WhatsappBatchesRecipientsDeleteErrors, ThrowOnError, 'data'> {
5243
+ const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'batch_id' }, { key: 'deleteRecipientsRequest', map: 'body' }] }]);
5244
+ return (options?.client ?? this.client).post<WhatsappBatchesRecipientsDeleteResults, WhatsappBatchesRecipientsDeleteErrors, ThrowOnError, 'data'>({
5500
5245
  responseStyle: 'data',
5501
5246
  security: [{ scheme: 'bearer', type: 'http' }, {
5502
5247
  in: 'cookie',
5503
5248
  name: 'talqing_session',
5504
5249
  type: 'apiKey'
5505
5250
  }],
5506
- url: '/v1/whatsapp/batches/{batch_id}/recipients/skip',
5251
+ url: '/v1/whatsapp/batches/{batch_id}/recipients/delete',
5507
5252
  ...options,
5508
5253
  ...params,
5509
5254
  headers: {
@@ -5936,16 +5681,16 @@ export class TalqingApi extends HeyApiClient {
5936
5681
  return this._email ??= new Email({ client: this.client });
5937
5682
  }
5938
5683
 
5684
+ private _faqs?: Faqs;
5685
+ get faqs(): Faqs {
5686
+ return this._faqs ??= new Faqs({ client: this.client });
5687
+ }
5688
+
5939
5689
  private _integrations?: Integrations;
5940
5690
  get integrations(): Integrations {
5941
5691
  return this._integrations ??= new Integrations({ client: this.client });
5942
5692
  }
5943
5693
 
5944
- private _knowledge?: Knowledge2;
5945
- get knowledge(): Knowledge2 {
5946
- return this._knowledge ??= new Knowledge2({ client: this.client });
5947
- }
5948
-
5949
5694
  private _observability?: Observability;
5950
5695
  get observability(): Observability {
5951
5696
  return this._observability ??= new Observability({ client: this.client });