@talqing/sdk 0.11.0 → 0.13.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 +1 -1
- 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 +102 -36
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +244 -39
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +1521 -294
- 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 +102 -36
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +240 -36
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +1521 -294
- 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 +284 -50
- package/src/gen/types.gen.ts +1583 -285
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, 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, CallsResumeErrors, CallsResumeResults, 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, ResumeCallRequest, 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';
|
|
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, CallsResumeErrors, CallsResumeResults, 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, ConversationsItemsCreateErrors, ConversationsItemsCreateResults, 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, CreateTaskRunBatchRequest, CreateTaskRunRequest, CreateTelephonyAccountRequest, CreateToolRequest, CreateWebhookRequest, CreateWhatsAppBatchRequest, CreditCheckoutRequest, DeleteRecipientsRequest, DeleteTaskRunsRequest, 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, InboundWebhookDeleteErrors, InboundWebhookDeleteResults, InboundWebhookGetErrors, InboundWebhookGetResults, InboundWebhookRotateSecretErrors, InboundWebhookRotateSecretResults, InboundWebhookSetErrors, InboundWebhookSetResults, InboundWebhookTestErrors, InboundWebhookTestResults, 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, PostItemRequest, PreviewAnalysisRequest, ProviderKeysDeleteErrors, ProviderKeysDeleteResults, ProviderKeysListErrors, ProviderKeysListResults, ProviderKeysSetErrors, ProviderKeysSetResults, PublishToolRequest, RedraftRequest, ResumeCallRequest, RunToolRequest, SchemasFunctionsGetErrors, SchemasFunctionsGetResults, SchemasGetErrors, SchemasGetResults, SecretsCreateErrors, SecretsCreateResults, SecretsDeleteErrors, SecretsDeleteResults, SecretsListErrors, SecretsListResults, SendMessageRequest, SendWhatsAppBatchRequest, SetInboundWebhookRequest, SetProviderKeyRequest, TaskRunsCancelErrors, TaskRunsCancelResults, TaskRunsCreateBatchErrors, TaskRunsCreateBatchResults, TaskRunsCreateErrors, TaskRunsCreateResults, TaskRunsDeleteErrors, TaskRunsDeleteManyErrors, TaskRunsDeleteManyResults, TaskRunsDeleteResults, TaskRunsGetErrors, TaskRunsGetResults, TaskRunsListErrors, TaskRunsListResults, TasksCreateErrors, TasksCreateResults, TasksDeleteErrors, TasksDeleteResults, TasksGetErrors, TasksGetResults, TasksListErrors, TasksListResults, TasksPublishErrors, TasksPublishResults, 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, TestInboundWebhookRequest, 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
|
/**
|
|
@@ -1023,6 +1023,7 @@ export class Calls extends HeyApiClient {
|
|
|
1023
1023
|
contact_key?: string | null;
|
|
1024
1024
|
close_reason?: string | null;
|
|
1025
1025
|
batch_id?: string | null;
|
|
1026
|
+
metadata?: Array<string>;
|
|
1026
1027
|
}, options?: Options<never, ThrowOnError>): RequestResult<CallsListResults, CallsListErrors, ThrowOnError, 'data'> {
|
|
1027
1028
|
const params = buildClientParams([parameters], [{ args: [
|
|
1028
1029
|
{ in: 'query', key: 'limit' },
|
|
@@ -1035,7 +1036,8 @@ export class Calls extends HeyApiClient {
|
|
|
1035
1036
|
{ in: 'query', key: 'outcome' },
|
|
1036
1037
|
{ in: 'query', key: 'contact_key' },
|
|
1037
1038
|
{ in: 'query', key: 'close_reason' },
|
|
1038
|
-
{ in: 'query', key: 'batch_id' }
|
|
1039
|
+
{ in: 'query', key: 'batch_id' },
|
|
1040
|
+
{ in: 'query', key: 'metadata' }
|
|
1039
1041
|
] }]);
|
|
1040
1042
|
return (options?.client ?? this.client).get<CallsListResults, CallsListErrors, ThrowOnError, 'data'>({
|
|
1041
1043
|
responseStyle: 'data',
|
|
@@ -1241,8 +1243,9 @@ export class Calls extends HeyApiClient {
|
|
|
1241
1243
|
*
|
|
1242
1244
|
* Mint a token for a new web call that continues one that ended.
|
|
1243
1245
|
*
|
|
1244
|
-
* It answers with the agent that held the floor, with the context it had
|
|
1245
|
-
*
|
|
1246
|
+
* It answers with the agent that held the floor, with the context it had, in the
|
|
1247
|
+
* dropped call's region unless you pass `region`. 409 if the call is not a web
|
|
1248
|
+
* call, is still ending, or was already resumed.
|
|
1246
1249
|
*/
|
|
1247
1250
|
public resume<ThrowOnError extends boolean = false>(parameters: {
|
|
1248
1251
|
session_id: string;
|
|
@@ -1710,13 +1713,15 @@ export class Chats extends HeyApiClient {
|
|
|
1710
1713
|
agent_id?: string | null;
|
|
1711
1714
|
contact_key?: string | null;
|
|
1712
1715
|
status?: 'open' | 'ended' | 'all';
|
|
1716
|
+
metadata?: Array<string>;
|
|
1713
1717
|
}, options?: Options<never, ThrowOnError>): RequestResult<ChatsListResults, ChatsListErrors, ThrowOnError, 'data'> {
|
|
1714
1718
|
const params = buildClientParams([parameters], [{ args: [
|
|
1715
1719
|
{ in: 'query', key: 'limit' },
|
|
1716
1720
|
{ in: 'query', key: 'offset' },
|
|
1717
1721
|
{ in: 'query', key: 'agent_id' },
|
|
1718
1722
|
{ in: 'query', key: 'contact_key' },
|
|
1719
|
-
{ in: 'query', key: 'status' }
|
|
1723
|
+
{ in: 'query', key: 'status' },
|
|
1724
|
+
{ in: 'query', key: 'metadata' }
|
|
1720
1725
|
] }]);
|
|
1721
1726
|
return (options?.client ?? this.client).get<ChatsListResults, ChatsListErrors, ThrowOnError, 'data'>({
|
|
1722
1727
|
responseStyle: 'data',
|
|
@@ -1871,6 +1876,33 @@ export class Chats extends HeyApiClient {
|
|
|
1871
1876
|
}
|
|
1872
1877
|
|
|
1873
1878
|
export class Items2 extends HeyApiClient {
|
|
1879
|
+
/**
|
|
1880
|
+
* Create Conversation Item
|
|
1881
|
+
*
|
|
1882
|
+
* Post a template, agent text, note or instruction into a conversation, or start one with a person.
|
|
1883
|
+
*/
|
|
1884
|
+
public create<ThrowOnError extends boolean = false>(parameters: {
|
|
1885
|
+
postItemRequest: PostItemRequest;
|
|
1886
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<ConversationsItemsCreateResults, ConversationsItemsCreateErrors, ThrowOnError, 'data'> {
|
|
1887
|
+
const params = buildClientParams([parameters], [{ args: [{ key: 'postItemRequest', map: 'body' }] }]);
|
|
1888
|
+
return (options?.client ?? this.client).post<ConversationsItemsCreateResults, ConversationsItemsCreateErrors, ThrowOnError, 'data'>({
|
|
1889
|
+
responseStyle: 'data',
|
|
1890
|
+
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
1891
|
+
in: 'cookie',
|
|
1892
|
+
name: 'talqing_sid',
|
|
1893
|
+
type: 'apiKey'
|
|
1894
|
+
}],
|
|
1895
|
+
url: '/v1/conversations/items',
|
|
1896
|
+
...options,
|
|
1897
|
+
...params,
|
|
1898
|
+
headers: {
|
|
1899
|
+
'Content-Type': 'application/json',
|
|
1900
|
+
...options?.headers,
|
|
1901
|
+
...params.headers
|
|
1902
|
+
}
|
|
1903
|
+
});
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1874
1906
|
/**
|
|
1875
1907
|
* List Conversation Items
|
|
1876
1908
|
*
|
|
@@ -3210,6 +3242,116 @@ export class Faqs extends HeyApiClient {
|
|
|
3210
3242
|
}
|
|
3211
3243
|
}
|
|
3212
3244
|
|
|
3245
|
+
export class InboundWebhook extends HeyApiClient {
|
|
3246
|
+
/**
|
|
3247
|
+
* Delete Inbound Webhook
|
|
3248
|
+
*
|
|
3249
|
+
* Remove the inbound session webhook.
|
|
3250
|
+
*/
|
|
3251
|
+
public delete<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<InboundWebhookDeleteResults, InboundWebhookDeleteErrors, ThrowOnError, 'data'> {
|
|
3252
|
+
return (options?.client ?? this.client).delete<InboundWebhookDeleteResults, InboundWebhookDeleteErrors, ThrowOnError, 'data'>({
|
|
3253
|
+
responseStyle: 'data',
|
|
3254
|
+
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3255
|
+
in: 'cookie',
|
|
3256
|
+
name: 'talqing_sid',
|
|
3257
|
+
type: 'apiKey'
|
|
3258
|
+
}],
|
|
3259
|
+
url: '/v1/inbound-webhook',
|
|
3260
|
+
...options
|
|
3261
|
+
});
|
|
3262
|
+
}
|
|
3263
|
+
|
|
3264
|
+
/**
|
|
3265
|
+
* Get Inbound Webhook
|
|
3266
|
+
*
|
|
3267
|
+
* Get the workspace's inbound session webhook.
|
|
3268
|
+
*/
|
|
3269
|
+
public get<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<InboundWebhookGetResults, InboundWebhookGetErrors, ThrowOnError, 'data'> {
|
|
3270
|
+
return (options?.client ?? this.client).get<InboundWebhookGetResults, InboundWebhookGetErrors, ThrowOnError, 'data'>({
|
|
3271
|
+
responseStyle: 'data',
|
|
3272
|
+
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3273
|
+
in: 'cookie',
|
|
3274
|
+
name: 'talqing_sid',
|
|
3275
|
+
type: 'apiKey'
|
|
3276
|
+
}],
|
|
3277
|
+
url: '/v1/inbound-webhook',
|
|
3278
|
+
...options
|
|
3279
|
+
});
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3282
|
+
/**
|
|
3283
|
+
* Set Inbound Webhook
|
|
3284
|
+
*
|
|
3285
|
+
* Set the URL asked for an inbound session's configuration.
|
|
3286
|
+
*/
|
|
3287
|
+
public set<ThrowOnError extends boolean = false>(parameters: {
|
|
3288
|
+
setInboundWebhookRequest: SetInboundWebhookRequest;
|
|
3289
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<InboundWebhookSetResults, InboundWebhookSetErrors, ThrowOnError, 'data'> {
|
|
3290
|
+
const params = buildClientParams([parameters], [{ args: [{ key: 'setInboundWebhookRequest', map: 'body' }] }]);
|
|
3291
|
+
return (options?.client ?? this.client).put<InboundWebhookSetResults, InboundWebhookSetErrors, ThrowOnError, 'data'>({
|
|
3292
|
+
responseStyle: 'data',
|
|
3293
|
+
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3294
|
+
in: 'cookie',
|
|
3295
|
+
name: 'talqing_sid',
|
|
3296
|
+
type: 'apiKey'
|
|
3297
|
+
}],
|
|
3298
|
+
url: '/v1/inbound-webhook',
|
|
3299
|
+
...options,
|
|
3300
|
+
...params,
|
|
3301
|
+
headers: {
|
|
3302
|
+
'Content-Type': 'application/json',
|
|
3303
|
+
...options?.headers,
|
|
3304
|
+
...params.headers
|
|
3305
|
+
}
|
|
3306
|
+
});
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
/**
|
|
3310
|
+
* Rotate Inbound Webhook Secret
|
|
3311
|
+
*
|
|
3312
|
+
* Issue a new signing secret; the old one stops working at once.
|
|
3313
|
+
*/
|
|
3314
|
+
public rotateSecret<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<InboundWebhookRotateSecretResults, InboundWebhookRotateSecretErrors, ThrowOnError, 'data'> {
|
|
3315
|
+
return (options?.client ?? this.client).post<InboundWebhookRotateSecretResults, InboundWebhookRotateSecretErrors, ThrowOnError, 'data'>({
|
|
3316
|
+
responseStyle: 'data',
|
|
3317
|
+
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3318
|
+
in: 'cookie',
|
|
3319
|
+
name: 'talqing_sid',
|
|
3320
|
+
type: 'apiKey'
|
|
3321
|
+
}],
|
|
3322
|
+
url: '/v1/inbound-webhook/rotate-secret',
|
|
3323
|
+
...options
|
|
3324
|
+
});
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3327
|
+
/**
|
|
3328
|
+
* Test Inbound Webhook
|
|
3329
|
+
*
|
|
3330
|
+
* Send a sample request and check the reply against the response schema.
|
|
3331
|
+
*/
|
|
3332
|
+
public test<ThrowOnError extends boolean = false>(parameters: {
|
|
3333
|
+
testInboundWebhookRequest: TestInboundWebhookRequest;
|
|
3334
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<InboundWebhookTestResults, InboundWebhookTestErrors, ThrowOnError, 'data'> {
|
|
3335
|
+
const params = buildClientParams([parameters], [{ args: [{ key: 'testInboundWebhookRequest', map: 'body' }] }]);
|
|
3336
|
+
return (options?.client ?? this.client).post<InboundWebhookTestResults, InboundWebhookTestErrors, ThrowOnError, 'data'>({
|
|
3337
|
+
responseStyle: 'data',
|
|
3338
|
+
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3339
|
+
in: 'cookie',
|
|
3340
|
+
name: 'talqing_sid',
|
|
3341
|
+
type: 'apiKey'
|
|
3342
|
+
}],
|
|
3343
|
+
url: '/v1/inbound-webhook/test',
|
|
3344
|
+
...options,
|
|
3345
|
+
...params,
|
|
3346
|
+
headers: {
|
|
3347
|
+
'Content-Type': 'application/json',
|
|
3348
|
+
...options?.headers,
|
|
3349
|
+
...params.headers
|
|
3350
|
+
}
|
|
3351
|
+
});
|
|
3352
|
+
}
|
|
3353
|
+
}
|
|
3354
|
+
|
|
3213
3355
|
export class McpTools extends HeyApiClient {
|
|
3214
3356
|
/**
|
|
3215
3357
|
* List Integration Mcp Tools
|
|
@@ -4348,33 +4490,38 @@ export class Telephony extends HeyApiClient {
|
|
|
4348
4490
|
}
|
|
4349
4491
|
}
|
|
4350
4492
|
|
|
4351
|
-
export class
|
|
4493
|
+
export class TaskRuns extends HeyApiClient {
|
|
4352
4494
|
/**
|
|
4353
4495
|
* List Task Runs
|
|
4354
4496
|
*
|
|
4355
|
-
*
|
|
4356
|
-
*
|
|
4357
|
-
* `task_version` says which published definition each one ran, and is null for
|
|
4358
|
-
* a run of the draft.
|
|
4497
|
+
* Task runs, newest first, without traces or inputs.
|
|
4359
4498
|
*/
|
|
4360
|
-
public list<ThrowOnError extends boolean = false>(parameters
|
|
4361
|
-
task_id
|
|
4499
|
+
public list<ThrowOnError extends boolean = false>(parameters?: {
|
|
4500
|
+
task_id?: string | null;
|
|
4501
|
+
status?: 'queued' | 'running' | 'completed' | 'failed' | 'canceled' | null;
|
|
4502
|
+
metadata?: Array<string>;
|
|
4503
|
+
created_after?: string | null;
|
|
4504
|
+
created_before?: string | null;
|
|
4362
4505
|
limit?: number;
|
|
4363
4506
|
offset?: number;
|
|
4364
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<
|
|
4507
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<TaskRunsListResults, TaskRunsListErrors, ThrowOnError, 'data'> {
|
|
4365
4508
|
const params = buildClientParams([parameters], [{ args: [
|
|
4366
|
-
{ in: '
|
|
4509
|
+
{ in: 'query', key: 'task_id' },
|
|
4510
|
+
{ in: 'query', key: 'status' },
|
|
4511
|
+
{ in: 'query', key: 'metadata' },
|
|
4512
|
+
{ in: 'query', key: 'created_after' },
|
|
4513
|
+
{ in: 'query', key: 'created_before' },
|
|
4367
4514
|
{ in: 'query', key: 'limit' },
|
|
4368
4515
|
{ in: 'query', key: 'offset' }
|
|
4369
4516
|
] }]);
|
|
4370
|
-
return (options?.client ?? this.client).get<
|
|
4517
|
+
return (options?.client ?? this.client).get<TaskRunsListResults, TaskRunsListErrors, ThrowOnError, 'data'>({
|
|
4371
4518
|
responseStyle: 'data',
|
|
4372
4519
|
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
4373
4520
|
in: 'cookie',
|
|
4374
4521
|
name: 'talqing_sid',
|
|
4375
4522
|
type: 'apiKey'
|
|
4376
4523
|
}],
|
|
4377
|
-
url: '/v1/
|
|
4524
|
+
url: '/v1/task-runs',
|
|
4378
4525
|
...options,
|
|
4379
4526
|
...params
|
|
4380
4527
|
});
|
|
@@ -4383,32 +4530,22 @@ export class Runs extends HeyApiClient {
|
|
|
4383
4530
|
/**
|
|
4384
4531
|
* Run Task
|
|
4385
4532
|
*
|
|
4386
|
-
* Run
|
|
4387
|
-
*
|
|
4388
|
-
* **This executes for real**: the tools call your endpoints with your secrets,
|
|
4389
|
-
* the MCP servers spend your credits, and the model spends your tokens. A task
|
|
4390
|
-
* that books a slot, charges a card or sends a message will do so.
|
|
4533
|
+
* Run a task for real: its tools, MCP servers and model all act and spend.
|
|
4391
4534
|
*
|
|
4392
|
-
*
|
|
4393
|
-
* to run the unpublished config. `vars` must match what that version declares
|
|
4394
|
-
* — an unknown name is refused rather than dropped. The response is the whole
|
|
4395
|
-
* run: the structured `output`, a `trace` of every tool call, the steps used
|
|
4396
|
-
* and what the tokens cost. On failure `error.type` says whose problem it is.
|
|
4397
|
-
* Secrets are redacted.
|
|
4535
|
+
* Waits and returns the finished run, or with `background: true` queues it and returns 202.
|
|
4398
4536
|
*/
|
|
4399
4537
|
public create<ThrowOnError extends boolean = false>(parameters: {
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
return (options?.client ?? this.client).post<TasksRunsCreateResults, TasksRunsCreateErrors, ThrowOnError, 'data'>({
|
|
4538
|
+
createTaskRunRequest: CreateTaskRunRequest;
|
|
4539
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<TaskRunsCreateResults, TaskRunsCreateErrors, ThrowOnError, 'data'> {
|
|
4540
|
+
const params = buildClientParams([parameters], [{ args: [{ key: 'createTaskRunRequest', map: 'body' }] }]);
|
|
4541
|
+
return (options?.client ?? this.client).post<TaskRunsCreateResults, TaskRunsCreateErrors, ThrowOnError, 'data'>({
|
|
4405
4542
|
responseStyle: 'data',
|
|
4406
4543
|
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
4407
4544
|
in: 'cookie',
|
|
4408
4545
|
name: 'talqing_sid',
|
|
4409
4546
|
type: 'apiKey'
|
|
4410
4547
|
}],
|
|
4411
|
-
url: '/v1/
|
|
4548
|
+
url: '/v1/task-runs',
|
|
4412
4549
|
...options,
|
|
4413
4550
|
...params,
|
|
4414
4551
|
headers: {
|
|
@@ -4420,28 +4557,120 @@ export class Runs extends HeyApiClient {
|
|
|
4420
4557
|
}
|
|
4421
4558
|
|
|
4422
4559
|
/**
|
|
4423
|
-
*
|
|
4560
|
+
* Run Task Batch
|
|
4424
4561
|
*
|
|
4425
|
-
*
|
|
4426
|
-
|
|
4562
|
+
* Queue up to 1000 runs of one task, in the background. One invalid item refuses all.
|
|
4563
|
+
*/
|
|
4564
|
+
public createBatch<ThrowOnError extends boolean = false>(parameters: {
|
|
4565
|
+
createTaskRunBatchRequest: CreateTaskRunBatchRequest;
|
|
4566
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<TaskRunsCreateBatchResults, TaskRunsCreateBatchErrors, ThrowOnError, 'data'> {
|
|
4567
|
+
const params = buildClientParams([parameters], [{ args: [{ key: 'createTaskRunBatchRequest', map: 'body' }] }]);
|
|
4568
|
+
return (options?.client ?? this.client).post<TaskRunsCreateBatchResults, TaskRunsCreateBatchErrors, ThrowOnError, 'data'>({
|
|
4569
|
+
responseStyle: 'data',
|
|
4570
|
+
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
4571
|
+
in: 'cookie',
|
|
4572
|
+
name: 'talqing_sid',
|
|
4573
|
+
type: 'apiKey'
|
|
4574
|
+
}],
|
|
4575
|
+
url: '/v1/task-runs/batch',
|
|
4576
|
+
...options,
|
|
4577
|
+
...params,
|
|
4578
|
+
headers: {
|
|
4579
|
+
'Content-Type': 'application/json',
|
|
4580
|
+
...options?.headers,
|
|
4581
|
+
...params.headers
|
|
4582
|
+
}
|
|
4583
|
+
});
|
|
4584
|
+
}
|
|
4585
|
+
|
|
4586
|
+
/**
|
|
4587
|
+
* Delete Task Runs
|
|
4427
4588
|
*
|
|
4428
|
-
*
|
|
4429
|
-
|
|
4430
|
-
|
|
4589
|
+
* Delete the content of every run whose metadata matches, as `delete_task_run` does.
|
|
4590
|
+
*/
|
|
4591
|
+
public deleteMany<ThrowOnError extends boolean = false>(parameters: {
|
|
4592
|
+
deleteTaskRunsRequest: DeleteTaskRunsRequest;
|
|
4593
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<TaskRunsDeleteManyResults, TaskRunsDeleteManyErrors, ThrowOnError, 'data'> {
|
|
4594
|
+
const params = buildClientParams([parameters], [{ args: [{ key: 'deleteTaskRunsRequest', map: 'body' }] }]);
|
|
4595
|
+
return (options?.client ?? this.client).post<TaskRunsDeleteManyResults, TaskRunsDeleteManyErrors, ThrowOnError, 'data'>({
|
|
4596
|
+
responseStyle: 'data',
|
|
4597
|
+
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
4598
|
+
in: 'cookie',
|
|
4599
|
+
name: 'talqing_sid',
|
|
4600
|
+
type: 'apiKey'
|
|
4601
|
+
}],
|
|
4602
|
+
url: '/v1/task-runs/delete',
|
|
4603
|
+
...options,
|
|
4604
|
+
...params,
|
|
4605
|
+
headers: {
|
|
4606
|
+
'Content-Type': 'application/json',
|
|
4607
|
+
...options?.headers,
|
|
4608
|
+
...params.headers
|
|
4609
|
+
}
|
|
4610
|
+
});
|
|
4611
|
+
}
|
|
4612
|
+
|
|
4613
|
+
/**
|
|
4614
|
+
* Delete Task Run
|
|
4615
|
+
*
|
|
4616
|
+
* Delete a run's inputs, files, output and trace; its cost and metadata stay.
|
|
4617
|
+
*/
|
|
4618
|
+
public delete<ThrowOnError extends boolean = false>(parameters: {
|
|
4619
|
+
run_id: string;
|
|
4620
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<TaskRunsDeleteResults, TaskRunsDeleteErrors, ThrowOnError, 'data'> {
|
|
4621
|
+
const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'run_id' }] }]);
|
|
4622
|
+
return (options?.client ?? this.client).delete<TaskRunsDeleteResults, TaskRunsDeleteErrors, ThrowOnError, 'data'>({
|
|
4623
|
+
responseStyle: 'data',
|
|
4624
|
+
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
4625
|
+
in: 'cookie',
|
|
4626
|
+
name: 'talqing_sid',
|
|
4627
|
+
type: 'apiKey'
|
|
4628
|
+
}],
|
|
4629
|
+
url: '/v1/task-runs/{run_id}',
|
|
4630
|
+
...options,
|
|
4631
|
+
...params
|
|
4632
|
+
});
|
|
4633
|
+
}
|
|
4634
|
+
|
|
4635
|
+
/**
|
|
4636
|
+
* Get Task Run
|
|
4637
|
+
*
|
|
4638
|
+
* One run in full: its config, inputs, output, trace and cost. Secrets are redacted.
|
|
4431
4639
|
*/
|
|
4432
4640
|
public get<ThrowOnError extends boolean = false>(parameters: {
|
|
4433
|
-
task_id: string;
|
|
4434
4641
|
run_id: string;
|
|
4435
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<
|
|
4436
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: '
|
|
4437
|
-
return (options?.client ?? this.client).get<
|
|
4642
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<TaskRunsGetResults, TaskRunsGetErrors, ThrowOnError, 'data'> {
|
|
4643
|
+
const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'run_id' }] }]);
|
|
4644
|
+
return (options?.client ?? this.client).get<TaskRunsGetResults, TaskRunsGetErrors, ThrowOnError, 'data'>({
|
|
4438
4645
|
responseStyle: 'data',
|
|
4439
4646
|
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
4440
4647
|
in: 'cookie',
|
|
4441
4648
|
name: 'talqing_sid',
|
|
4442
4649
|
type: 'apiKey'
|
|
4443
4650
|
}],
|
|
4444
|
-
url: '/v1/
|
|
4651
|
+
url: '/v1/task-runs/{run_id}',
|
|
4652
|
+
...options,
|
|
4653
|
+
...params
|
|
4654
|
+
});
|
|
4655
|
+
}
|
|
4656
|
+
|
|
4657
|
+
/**
|
|
4658
|
+
* Cancel Task Run
|
|
4659
|
+
*
|
|
4660
|
+
* Cancel a queued or background run. A running one stops within seconds.
|
|
4661
|
+
*/
|
|
4662
|
+
public cancel<ThrowOnError extends boolean = false>(parameters: {
|
|
4663
|
+
run_id: string;
|
|
4664
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<TaskRunsCancelResults, TaskRunsCancelErrors, ThrowOnError, 'data'> {
|
|
4665
|
+
const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'run_id' }] }]);
|
|
4666
|
+
return (options?.client ?? this.client).post<TaskRunsCancelResults, TaskRunsCancelErrors, ThrowOnError, 'data'>({
|
|
4667
|
+
responseStyle: 'data',
|
|
4668
|
+
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
4669
|
+
in: 'cookie',
|
|
4670
|
+
name: 'talqing_sid',
|
|
4671
|
+
type: 'apiKey'
|
|
4672
|
+
}],
|
|
4673
|
+
url: '/v1/task-runs/{run_id}/cancel',
|
|
4445
4674
|
...options,
|
|
4446
4675
|
...params
|
|
4447
4676
|
});
|
|
@@ -4543,7 +4772,7 @@ export class Tasks2 extends HeyApiClient {
|
|
|
4543
4772
|
* `output` is what makes this a task rather than a chat agent — declare the
|
|
4544
4773
|
* fields the model must produce and it is given a `submit_result` tool built
|
|
4545
4774
|
* from them. `vars` are its inputs, read as `{{vars.name}}`. The task starts
|
|
4546
|
-
* unpublished; publish it before running it
|
|
4775
|
+
* unpublished; publish it before running it with `POST /task-runs`.
|
|
4547
4776
|
*/
|
|
4548
4777
|
public create<ThrowOnError extends boolean = false>(parameters: {
|
|
4549
4778
|
createTaskRequest: CreateTaskRequest;
|
|
@@ -4697,11 +4926,6 @@ export class Tasks2 extends HeyApiClient {
|
|
|
4697
4926
|
});
|
|
4698
4927
|
}
|
|
4699
4928
|
|
|
4700
|
-
private _runs?: Runs;
|
|
4701
|
-
get runs(): Runs {
|
|
4702
|
-
return this._runs ??= new Runs({ client: this.client });
|
|
4703
|
-
}
|
|
4704
|
-
|
|
4705
4929
|
private _versions?: Versions2;
|
|
4706
4930
|
get versions(): Versions2 {
|
|
4707
4931
|
return this._versions ??= new Versions2({ client: this.client });
|
|
@@ -5726,6 +5950,11 @@ export class TalqingApi extends HeyApiClient {
|
|
|
5726
5950
|
return this._faqs ??= new Faqs({ client: this.client });
|
|
5727
5951
|
}
|
|
5728
5952
|
|
|
5953
|
+
private _inboundWebhook?: InboundWebhook;
|
|
5954
|
+
get inboundWebhook(): InboundWebhook {
|
|
5955
|
+
return this._inboundWebhook ??= new InboundWebhook({ client: this.client });
|
|
5956
|
+
}
|
|
5957
|
+
|
|
5729
5958
|
private _integrations?: Integrations;
|
|
5730
5959
|
get integrations(): Integrations {
|
|
5731
5960
|
return this._integrations ??= new Integrations({ client: this.client });
|
|
@@ -5751,6 +5980,11 @@ export class TalqingApi extends HeyApiClient {
|
|
|
5751
5980
|
return this._telephony ??= new Telephony({ client: this.client });
|
|
5752
5981
|
}
|
|
5753
5982
|
|
|
5983
|
+
private _taskRuns?: TaskRuns;
|
|
5984
|
+
get taskRuns(): TaskRuns {
|
|
5985
|
+
return this._taskRuns ??= new TaskRuns({ client: this.client });
|
|
5986
|
+
}
|
|
5987
|
+
|
|
5754
5988
|
private _tasks?: Tasks2;
|
|
5755
5989
|
get tasks(): Tasks2 {
|
|
5756
5990
|
return this._tasks ??= new Tasks2({ client: this.client });
|