@talqing/sdk 0.8.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.
- package/README.md +2 -3
- package/dist/cjs/gen/index.d.ts +1 -1
- package/dist/cjs/gen/index.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.d.ts +81 -195
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +179 -364
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +538 -1065
- package/dist/cjs/gen/types.gen.d.ts.map +1 -1
- package/dist/esm/gen/index.d.ts +1 -1
- package/dist/esm/gen/index.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.d.ts +81 -195
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +172 -355
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +538 -1065
- package/dist/esm/gen/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/gen/index.ts +1 -1
- package/src/gen/sdk.gen.ts +223 -431
- package/src/gen/types.gen.ts +571 -1133
package/src/gen/sdk.gen.ts
CHANGED
|
@@ -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
|
/**
|
|
@@ -2146,65 +2146,6 @@ export class Agents2 extends HeyApiClient {
|
|
|
2146
2146
|
}
|
|
2147
2147
|
}
|
|
2148
2148
|
|
|
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
2149
|
export class Tasks extends HeyApiClient {
|
|
2209
2150
|
/**
|
|
2210
2151
|
* Task Copilot Send Message
|
|
@@ -2329,11 +2270,6 @@ export class Copilot extends HeyApiClient {
|
|
|
2329
2270
|
return this._agents ??= new Agents2({ client: this.client });
|
|
2330
2271
|
}
|
|
2331
2272
|
|
|
2332
|
-
private _knowledge?: Knowledge;
|
|
2333
|
-
get knowledge(): Knowledge {
|
|
2334
|
-
return this._knowledge ??= new Knowledge({ client: this.client });
|
|
2335
|
-
}
|
|
2336
|
-
|
|
2337
2273
|
private _tasks?: Tasks;
|
|
2338
2274
|
get tasks(): Tasks {
|
|
2339
2275
|
return this._tasks ??= new Tasks({ client: this.client });
|
|
@@ -3041,6 +2977,223 @@ export class Email extends HeyApiClient {
|
|
|
3041
2977
|
}
|
|
3042
2978
|
}
|
|
3043
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
|
+
|
|
3044
3197
|
export class McpTools extends HeyApiClient {
|
|
3045
3198
|
/**
|
|
3046
3199
|
* List Integration Mcp Tools
|
|
@@ -3381,367 +3534,6 @@ export class Integrations extends HeyApiClient {
|
|
|
3381
3534
|
}
|
|
3382
3535
|
}
|
|
3383
3536
|
|
|
3384
|
-
export class Nodes extends HeyApiClient {
|
|
3385
|
-
/**
|
|
3386
|
-
* Delete Node
|
|
3387
|
-
*
|
|
3388
|
-
* Drop one entry from the table of contents, permanently.
|
|
3389
|
-
*
|
|
3390
|
-
* Its children go with it, and agents can no longer retrieve any of it.
|
|
3391
|
-
*/
|
|
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'>({
|
|
3398
|
-
responseStyle: 'data',
|
|
3399
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3400
|
-
in: 'cookie',
|
|
3401
|
-
name: 'talqing_session',
|
|
3402
|
-
type: 'apiKey'
|
|
3403
|
-
}],
|
|
3404
|
-
url: '/v1/knowledge/{kb_id}/nodes/{node_id}',
|
|
3405
|
-
...options,
|
|
3406
|
-
...params
|
|
3407
|
-
});
|
|
3408
|
-
}
|
|
3409
|
-
|
|
3410
|
-
/**
|
|
3411
|
-
* Get Node
|
|
3412
|
-
*
|
|
3413
|
-
* Read one entry of the table of contents, with its full content.
|
|
3414
|
-
*
|
|
3415
|
-
* This is the text an agent retrieves when it fetches this node. `version` is
|
|
3416
|
-
* what `patch_node` needs for a safe edit.
|
|
3417
|
-
*/
|
|
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'>({
|
|
3424
|
-
responseStyle: 'data',
|
|
3425
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3426
|
-
in: 'cookie',
|
|
3427
|
-
name: 'talqing_session',
|
|
3428
|
-
type: 'apiKey'
|
|
3429
|
-
}],
|
|
3430
|
-
url: '/v1/knowledge/{kb_id}/nodes/{node_id}',
|
|
3431
|
-
...options,
|
|
3432
|
-
...params
|
|
3433
|
-
});
|
|
3434
|
-
}
|
|
3435
|
-
|
|
3436
|
-
/**
|
|
3437
|
-
* Patch Node
|
|
3438
|
-
*
|
|
3439
|
-
* Correct one entry's title, summary or content by hand — the way to fix a
|
|
3440
|
-
* fact the crawl got wrong without rebuilding.
|
|
3441
|
-
*
|
|
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.
|
|
3444
|
-
*
|
|
3445
|
-
* Send the `version` you read from `get_node`; a mismatch is rejected rather
|
|
3446
|
-
* than overwriting someone else's edit.
|
|
3447
|
-
*/
|
|
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'>({
|
|
3459
|
-
responseStyle: 'data',
|
|
3460
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3461
|
-
in: 'cookie',
|
|
3462
|
-
name: 'talqing_session',
|
|
3463
|
-
type: 'apiKey'
|
|
3464
|
-
}],
|
|
3465
|
-
url: '/v1/knowledge/{kb_id}/nodes/{node_id}',
|
|
3466
|
-
...options,
|
|
3467
|
-
...params,
|
|
3468
|
-
headers: {
|
|
3469
|
-
'Content-Type': 'application/json',
|
|
3470
|
-
...options?.headers,
|
|
3471
|
-
...params.headers
|
|
3472
|
-
}
|
|
3473
|
-
});
|
|
3474
|
-
}
|
|
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 {
|
|
3512
|
-
/**
|
|
3513
|
-
* List Kbs
|
|
3514
|
-
*
|
|
3515
|
-
* List the workspace's knowledge bases with their build status.
|
|
3516
|
-
*
|
|
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`.
|
|
3520
|
-
*/
|
|
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'>({
|
|
3527
|
-
responseStyle: 'data',
|
|
3528
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3529
|
-
in: 'cookie',
|
|
3530
|
-
name: 'talqing_session',
|
|
3531
|
-
type: 'apiKey'
|
|
3532
|
-
}],
|
|
3533
|
-
url: '/v1/knowledge',
|
|
3534
|
-
...options,
|
|
3535
|
-
...params
|
|
3536
|
-
});
|
|
3537
|
-
}
|
|
3538
|
-
|
|
3539
|
-
/**
|
|
3540
|
-
* Create Kb
|
|
3541
|
-
*
|
|
3542
|
-
* Start a knowledge base by crawling one or more websites.
|
|
3543
|
-
*
|
|
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.
|
|
3548
|
-
*/
|
|
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'>({
|
|
3554
|
-
responseStyle: 'data',
|
|
3555
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3556
|
-
in: 'cookie',
|
|
3557
|
-
name: 'talqing_session',
|
|
3558
|
-
type: 'apiKey'
|
|
3559
|
-
}],
|
|
3560
|
-
url: '/v1/knowledge',
|
|
3561
|
-
...options,
|
|
3562
|
-
...params,
|
|
3563
|
-
headers: {
|
|
3564
|
-
'Content-Type': 'application/json',
|
|
3565
|
-
...options?.headers,
|
|
3566
|
-
...params.headers
|
|
3567
|
-
}
|
|
3568
|
-
});
|
|
3569
|
-
}
|
|
3570
|
-
|
|
3571
|
-
/**
|
|
3572
|
-
* Delete Kb
|
|
3573
|
-
*
|
|
3574
|
-
* Delete a knowledge base and everything crawled into it, permanently.
|
|
3575
|
-
*
|
|
3576
|
-
* Rebuilding means crawling the site again. Agents that list it in `kb_ids`
|
|
3577
|
-
* lose those grounded answers, so detach it there first.
|
|
3578
|
-
*/
|
|
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'>({
|
|
3584
|
-
responseStyle: 'data',
|
|
3585
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3586
|
-
in: 'cookie',
|
|
3587
|
-
name: 'talqing_session',
|
|
3588
|
-
type: 'apiKey'
|
|
3589
|
-
}],
|
|
3590
|
-
url: '/v1/knowledge/{kb_id}',
|
|
3591
|
-
...options,
|
|
3592
|
-
...params
|
|
3593
|
-
});
|
|
3594
|
-
}
|
|
3595
|
-
|
|
3596
|
-
/**
|
|
3597
|
-
* Get Kb
|
|
3598
|
-
*
|
|
3599
|
-
* Read one knowledge base: build status, progress and content tree.
|
|
3600
|
-
*
|
|
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.
|
|
3605
|
-
*/
|
|
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'>({
|
|
3611
|
-
responseStyle: 'data',
|
|
3612
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3613
|
-
in: 'cookie',
|
|
3614
|
-
name: 'talqing_session',
|
|
3615
|
-
type: 'apiKey'
|
|
3616
|
-
}],
|
|
3617
|
-
url: '/v1/knowledge/{kb_id}',
|
|
3618
|
-
...options,
|
|
3619
|
-
...params
|
|
3620
|
-
});
|
|
3621
|
-
}
|
|
3622
|
-
|
|
3623
|
-
/**
|
|
3624
|
-
* Build Kb
|
|
3625
|
-
*
|
|
3626
|
-
* Index the chosen pages, then write the table of contents.
|
|
3627
|
-
*
|
|
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.
|
|
3632
|
-
*/
|
|
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'>({
|
|
3639
|
-
responseStyle: 'data',
|
|
3640
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3641
|
-
in: 'cookie',
|
|
3642
|
-
name: 'talqing_session',
|
|
3643
|
-
type: 'apiKey'
|
|
3644
|
-
}],
|
|
3645
|
-
url: '/v1/knowledge/{kb_id}/build',
|
|
3646
|
-
...options,
|
|
3647
|
-
...params,
|
|
3648
|
-
headers: {
|
|
3649
|
-
'Content-Type': 'application/json',
|
|
3650
|
-
...options?.headers,
|
|
3651
|
-
...params.headers
|
|
3652
|
-
}
|
|
3653
|
-
});
|
|
3654
|
-
}
|
|
3655
|
-
|
|
3656
|
-
/**
|
|
3657
|
-
* Events
|
|
3658
|
-
*
|
|
3659
|
-
* Watch one knowledge base build: `snapshot` first, then `progress` and `status`.
|
|
3660
|
-
*
|
|
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.
|
|
3664
|
-
*/
|
|
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'>({
|
|
3670
|
-
responseStyle: 'data',
|
|
3671
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3672
|
-
in: 'cookie',
|
|
3673
|
-
name: 'talqing_session',
|
|
3674
|
-
type: 'apiKey'
|
|
3675
|
-
}],
|
|
3676
|
-
url: '/v1/knowledge/{kb_id}/events',
|
|
3677
|
-
...options,
|
|
3678
|
-
...params
|
|
3679
|
-
});
|
|
3680
|
-
}
|
|
3681
|
-
|
|
3682
|
-
/**
|
|
3683
|
-
* Get Kb Prompt
|
|
3684
|
-
*
|
|
3685
|
-
* The table of contents exactly as an agent using this KB is given it.
|
|
3686
|
-
*
|
|
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.
|
|
3690
|
-
*/
|
|
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'>({
|
|
3696
|
-
responseStyle: 'data',
|
|
3697
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3698
|
-
in: 'cookie',
|
|
3699
|
-
name: 'talqing_session',
|
|
3700
|
-
type: 'apiKey'
|
|
3701
|
-
}],
|
|
3702
|
-
url: '/v1/knowledge/{kb_id}/prompt',
|
|
3703
|
-
...options,
|
|
3704
|
-
...params
|
|
3705
|
-
});
|
|
3706
|
-
}
|
|
3707
|
-
|
|
3708
|
-
/**
|
|
3709
|
-
* Regenerate Toc
|
|
3710
|
-
*
|
|
3711
|
-
* Rewrite the table of contents from the pages already indexed.
|
|
3712
|
-
*
|
|
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.
|
|
3716
|
-
*/
|
|
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'>({
|
|
3722
|
-
responseStyle: 'data',
|
|
3723
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3724
|
-
in: 'cookie',
|
|
3725
|
-
name: 'talqing_session',
|
|
3726
|
-
type: 'apiKey'
|
|
3727
|
-
}],
|
|
3728
|
-
url: '/v1/knowledge/{kb_id}/toc',
|
|
3729
|
-
...options,
|
|
3730
|
-
...params
|
|
3731
|
-
});
|
|
3732
|
-
}
|
|
3733
|
-
|
|
3734
|
-
private _nodes?: Nodes;
|
|
3735
|
-
get nodes(): Nodes {
|
|
3736
|
-
return this._nodes ??= new Nodes({ client: this.client });
|
|
3737
|
-
}
|
|
3738
|
-
|
|
3739
|
-
private _pages?: Pages;
|
|
3740
|
-
get pages(): Pages {
|
|
3741
|
-
return this._pages ??= new Pages({ client: this.client });
|
|
3742
|
-
}
|
|
3743
|
-
}
|
|
3744
|
-
|
|
3745
3537
|
export class Observability extends HeyApiClient {
|
|
3746
3538
|
/**
|
|
3747
3539
|
* Get Observability
|
|
@@ -5936,16 +5728,16 @@ export class TalqingApi extends HeyApiClient {
|
|
|
5936
5728
|
return this._email ??= new Email({ client: this.client });
|
|
5937
5729
|
}
|
|
5938
5730
|
|
|
5731
|
+
private _faqs?: Faqs;
|
|
5732
|
+
get faqs(): Faqs {
|
|
5733
|
+
return this._faqs ??= new Faqs({ client: this.client });
|
|
5734
|
+
}
|
|
5735
|
+
|
|
5939
5736
|
private _integrations?: Integrations;
|
|
5940
5737
|
get integrations(): Integrations {
|
|
5941
5738
|
return this._integrations ??= new Integrations({ client: this.client });
|
|
5942
5739
|
}
|
|
5943
5740
|
|
|
5944
|
-
private _knowledge?: Knowledge2;
|
|
5945
|
-
get knowledge(): Knowledge2 {
|
|
5946
|
-
return this._knowledge ??= new Knowledge2({ client: this.client });
|
|
5947
|
-
}
|
|
5948
|
-
|
|
5949
5741
|
private _observability?: Observability;
|
|
5950
5742
|
get observability(): Observability {
|
|
5951
5743
|
return this._observability ??= new Observability({ client: this.client });
|