@talqing/sdk 0.2.0 → 0.3.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 +66 -5
- package/dist/cjs/browser.d.ts +5 -0
- package/dist/cjs/browser.d.ts.map +1 -1
- package/dist/cjs/browser.js +30 -28
- package/dist/cjs/browser.js.map +1 -1
- package/dist/cjs/client.d.ts +0 -2
- package/dist/cjs/client.d.ts.map +1 -1
- package/dist/cjs/client.js +0 -3
- package/dist/cjs/client.js.map +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 +50 -219
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +78 -418
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +293 -1013
- package/dist/cjs/gen/types.gen.d.ts.map +1 -1
- package/dist/cjs/vocabulary.d.ts +1 -4
- package/dist/cjs/vocabulary.d.ts.map +1 -1
- package/dist/esm/browser.d.ts +5 -0
- package/dist/esm/browser.d.ts.map +1 -1
- package/dist/esm/browser.js +30 -28
- package/dist/esm/browser.js.map +1 -1
- package/dist/esm/client.d.ts +0 -2
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/client.js +0 -3
- package/dist/esm/client.js.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 +50 -219
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +75 -412
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +293 -1013
- package/dist/esm/gen/types.gen.d.ts.map +1 -1
- package/dist/esm/vocabulary.d.ts +1 -4
- package/dist/esm/vocabulary.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/browser.tsx +31 -28
- package/src/client.ts +0 -6
- package/src/gen/index.ts +1 -1
- package/src/gen/sdk.gen.ts +88 -469
- package/src/gen/types.gen.ts +317 -1119
- package/src/vocabulary.ts +0 -5
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 { AddRecipientsRequest, AddVoiceRequest, AgentsCreateErrors, AgentsCreateResults, AgentsDeleteErrors, AgentsDeleteResults, AgentsGetErrors, AgentsGetResults, AgentsListErrors, AgentsListResults, AgentsPublishErrors, AgentsPublishResults, AgentsUpdateErrors, AgentsUpdateResults, AgentsValidateErrors, AgentsValidateResults, AgentsVersionsGetErrors, AgentsVersionsGetResults, AgentsVersionsRollbackErrors, AgentsVersionsRollbackResults, AssignPhoneNumberRequest,
|
|
5
|
+
import type { AddRecipientsRequest, AddVoiceRequest, AgentsCreateErrors, AgentsCreateResults, AgentsDeleteErrors, AgentsDeleteResults, AgentsGetErrors, AgentsGetResults, AgentsListErrors, AgentsListResults, AgentsPublishErrors, AgentsPublishResults, AgentsUpdateErrors, AgentsUpdateResults, AgentsValidateErrors, AgentsValidateResults, AgentsVersionsGetErrors, AgentsVersionsGetResults, AgentsVersionsRollbackErrors, AgentsVersionsRollbackResults, AssignPhoneNumberRequest, BackfillAnalysisRequest, BillingCreditsCheckoutErrors, BillingCreditsCheckoutResults, BillingCreditsGetErrors, BillingCreditsGetResults, BillingCreditsLedgerErrors, BillingCreditsLedgerResults, BuildKBRequest, CallsAnalysisBackfillErrors, CallsAnalysisBackfillResults, CallsAnalysisPreviewErrors, CallsAnalysisPreviewResults, CallsBatchesCancelErrors, CallsBatchesCancelResults, CallsBatchesCreateErrors, CallsBatchesCreateResults, CallsBatchesGetErrors, CallsBatchesGetResults, CallsBatchesListErrors, CallsBatchesListResults, CallsBatchesPauseErrors, CallsBatchesPauseResults, CallsBatchesRecipientsAddErrors, CallsBatchesRecipientsAddResults, CallsBatchesRecipientsListErrors, CallsBatchesRecipientsListResults, CallsBatchesResumeErrors, CallsBatchesResumeResults, CallsBatchesUpdateErrors, CallsBatchesUpdateResults, CallsDeleteErrors, CallsDeleteResults, CallsGetErrors, CallsGetResults, CallsListErrors, CallsListResults, CallsOutboundErrors, CallsOutboundResults, CallsRecordingDeleteErrors, CallsRecordingDeleteResults, CallsRecordingGetErrors, CallsRecordingGetResults, CallsScreenRecordingGetErrors, CallsScreenRecordingGetResults, CallsStatsErrors, CallsStatsResults, CallsTokenErrors, CallsTokenResults, CatalogAvatarsListErrors, CatalogAvatarsListResults, CatalogGetErrors, CatalogGetResults, CatalogVoicesElevenlabsAddErrors, CatalogVoicesElevenlabsAddResults, CatalogVoicesElevenlabsSettingsErrors, CatalogVoicesElevenlabsSettingsResults, CatalogVoicesListErrors, CatalogVoicesListResults, ConversationsCreateErrors, ConversationsCreateResults, ConversationsEventsErrors, ConversationsEventsResult, ConversationsEventsResults, ConversationsGetErrors, ConversationsGetResults, ConversationsItemsListErrors, ConversationsItemsListResults, ConversationsListErrors, ConversationsListResults, ConversationsMessagesCreateErrors, ConversationsMessagesCreateResults, ConversationsSessionsListErrors, ConversationsSessionsListResults, ConversationsSnapshotErrors, ConversationsSnapshotResults, ConversationsUpdateErrors, ConversationsUpdateResults, CopilotAgentsSendErrors, CopilotAgentsSendResults, CopilotAgentsStreamErrors, CopilotAgentsStreamResult, CopilotAgentsStreamResults, CopilotKnowledgeSendErrors, CopilotKnowledgeSendResults, CopilotKnowledgeStreamErrors, CopilotKnowledgeStreamResult, CopilotKnowledgeStreamResults, CopilotTasksSendErrors, CopilotTasksSendResults, CopilotTasksStreamErrors, CopilotTasksStreamResult, CopilotTasksStreamResults, CopilotToolsSendErrors, CopilotToolsSendResults, CopilotToolsStreamErrors, CopilotToolsStreamResult, CopilotToolsStreamResults, CreateAgentRequest, CreateCallBatchRequest, CreateEmailBatchRequest, CreateIntegrationRequest, CreateIntegrationTriggerRequest, CreateKBRequest, CreateSecretRequest, CreateTaskRequest, CreateTelephonyAccountRequest, CreateTextConversationRequest, CreateToolRequest, CreateWebhookRequest, CreditCheckoutRequest, EmailBatchesCancelErrors, EmailBatchesCancelResults, EmailBatchesCreateErrors, EmailBatchesCreateResults, EmailBatchesGetErrors, EmailBatchesGetResults, EmailBatchesListErrors, EmailBatchesListResults, EmailBatchesPauseErrors, EmailBatchesPauseResults, EmailBatchesRecipientsListErrors, EmailBatchesRecipientsListResults, EmailBatchesRecipientsRestoreErrors, EmailBatchesRecipientsRestoreResults, EmailBatchesRecipientsRetryErrors, EmailBatchesRecipientsRetryResults, EmailBatchesRecipientsSendErrors, EmailBatchesRecipientsSendResults, EmailBatchesRecipientsSkipErrors, EmailBatchesRecipientsSkipResults, EmailBatchesRecipientsUpdateErrors, EmailBatchesRecipientsUpdateResults, EmailBatchesResumeErrors, EmailBatchesResumeResults, 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, PatchIntegrationRequest, PatchIntegrationTriggerRequest, PatchNodeRequest, PatchPhoneNumberRequest, PatchTaskRequest, PatchTelephonyAccountRequest, PatchToolRequest, PatchWebhookRequest, PreviewAnalysisRequest, ProviderKeysDeleteErrors, ProviderKeysDeleteResults, ProviderKeysListErrors, ProviderKeysListResults, ProviderKeysSetErrors, ProviderKeysSetResults, PublishToolRequest, RunTaskRequest, RunToolRequest, SchemasGetErrors, SchemasGetResults, SecretsCreateErrors, SecretsCreateResults, SecretsDeleteErrors, SecretsDeleteResults, SecretsListErrors, SecretsListResults, SelectRecipientsRequest, SendEmailBatchRequest, SendMessageRequest, SetProviderKeyRequest, TasksCreateErrors, TasksCreateResults, TasksDeleteErrors, TasksDeleteResults, TasksGetErrors, TasksGetResults, TasksListErrors, TasksListResults, TasksRunsCreateErrors, TasksRunsCreateResults, TasksRunsGetErrors, TasksRunsGetResults, TasksRunsListErrors, TasksRunsListResults, TasksUpdateErrors, TasksUpdateResults, TelephonyAccountsCreateErrors, TelephonyAccountsCreateResults, TelephonyAccountsDeleteErrors, TelephonyAccountsDeleteResults, TelephonyAccountsGetErrors, TelephonyAccountsGetResults, TelephonyAccountsListErrors, TelephonyAccountsListResults, TelephonyAccountsProvisionErrors, TelephonyAccountsProvisionResults, TelephonyAccountsRemoteNumbersErrors, TelephonyAccountsRemoteNumbersResults, TelephonyAccountsUpdateErrors, TelephonyAccountsUpdateResults, TelephonyPhoneNumbersAssignErrors, TelephonyPhoneNumbersAssignResults, TelephonyPhoneNumbersGetErrors, TelephonyPhoneNumbersGetResults, TelephonyPhoneNumbersImportErrors, TelephonyPhoneNumbersImportResults, TelephonyPhoneNumbersListErrors, TelephonyPhoneNumbersListResults, TelephonyPhoneNumbersProvisionErrors, TelephonyPhoneNumbersProvisionResults, TelephonyPhoneNumbersUnassignErrors, TelephonyPhoneNumbersUnassignResults, TelephonyPhoneNumbersUpdateErrors, TelephonyPhoneNumbersUpdateResults, TelephonyProvidersListErrors, TelephonyProvidersListResults, TextMessageRequest, TokenRequest, ToolsCreateErrors, ToolsCreateResults, ToolsDeleteErrors, ToolsDeleteResults, ToolsGetErrors, ToolsGetResults, ToolsListErrors, ToolsListResults, ToolsPublishErrors, ToolsPublishResults, ToolsRunErrors, ToolsRunResults, ToolsUpdateErrors, ToolsUpdateResults, ToolsValidateErrors, ToolsValidateResults, ToolsVersionsGetErrors, ToolsVersionsGetResults, ToolsVersionsRollbackErrors, ToolsVersionsRollbackResults, UpdateAgentRequest, WebhooksCreateErrors, WebhooksCreateResults, WebhooksDeleteErrors, WebhooksDeleteResults, WebhooksDeliveriesErrors, WebhooksDeliveriesResults, WebhooksEventTypesErrors, WebhooksEventTypesResults, WebhooksListErrors, WebhooksListResults, WebhooksRotateSecretErrors, WebhooksRotateSecretResults, WebhooksTestErrors, WebhooksTestResults, WebhooksUpdateErrors, WebhooksUpdateResults } from './types.gen.js';
|
|
6
6
|
|
|
7
7
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
8
8
|
/**
|
|
@@ -308,40 +308,106 @@ export class Agents extends HeyApiClient {
|
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
export class
|
|
311
|
+
export class Credits extends HeyApiClient {
|
|
312
312
|
/**
|
|
313
|
-
*
|
|
313
|
+
* Get Credits
|
|
314
|
+
*
|
|
315
|
+
* This workspace's credit balance in this region, what it buys, and what a
|
|
316
|
+
* top-up costs.
|
|
317
|
+
*
|
|
318
|
+
* Readable by every role: a VIEWER can start a web call, so a VIEWER must be
|
|
319
|
+
* able to see why one was refused.
|
|
320
|
+
*
|
|
321
|
+
* This is also where credit the control plane could not deliver lands. Anything
|
|
322
|
+
* it has issued for this workspace here — a purchase, a signup grant, a
|
|
323
|
+
* reversal — that this region has not written yet is applied before the balance
|
|
324
|
+
* is read. That is the backstop for a failed push, and it is a reconcile on
|
|
325
|
+
* demand rather than a timer: the moment someone cares is the moment this page
|
|
326
|
+
* loads, whether they arrived from the payment processor or from the "out of
|
|
327
|
+
* credits" banner. It costs nothing when there is nothing to apply, which is
|
|
328
|
+
* almost always.
|
|
314
329
|
*/
|
|
315
|
-
public
|
|
316
|
-
|
|
330
|
+
public get<ThrowOnError extends boolean = false>(parameters?: {
|
|
331
|
+
topup?: string | null;
|
|
332
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<BillingCreditsGetResults, BillingCreditsGetErrors, ThrowOnError, 'data'> {
|
|
333
|
+
const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'topup' }] }]);
|
|
334
|
+
return (options?.client ?? this.client).get<BillingCreditsGetResults, BillingCreditsGetErrors, ThrowOnError, 'data'>({
|
|
317
335
|
responseStyle: 'data',
|
|
318
|
-
|
|
319
|
-
|
|
336
|
+
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
337
|
+
in: 'cookie',
|
|
338
|
+
name: 'talqing_session',
|
|
339
|
+
type: 'apiKey'
|
|
340
|
+
}],
|
|
341
|
+
url: '/v1/billing/credits',
|
|
342
|
+
...options,
|
|
343
|
+
...params
|
|
320
344
|
});
|
|
321
345
|
}
|
|
322
346
|
|
|
323
347
|
/**
|
|
324
|
-
*
|
|
348
|
+
* Create Credit Checkout
|
|
349
|
+
*
|
|
350
|
+
* Start a credit purchase and return the hosted checkout URL to open.
|
|
325
351
|
*
|
|
326
|
-
*
|
|
352
|
+
* Organization admins only — spending the workspace's money is an admin act,
|
|
353
|
+
* the same as storing a secret or a provider key.
|
|
327
354
|
*
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
*
|
|
355
|
+
* The credit lands in THIS region, and that is decided by which region's API
|
|
356
|
+
* you called rather than by anything in the request. A slug in a body could be
|
|
357
|
+
* pointed at the other region, where the money would then be stuck: balances
|
|
358
|
+
* are per region and there is no transfer between them.
|
|
332
359
|
*/
|
|
333
|
-
public
|
|
334
|
-
|
|
360
|
+
public checkout<ThrowOnError extends boolean = false>(parameters: {
|
|
361
|
+
creditCheckoutRequest: CreditCheckoutRequest;
|
|
362
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<BillingCreditsCheckoutResults, BillingCreditsCheckoutErrors, ThrowOnError, 'data'> {
|
|
363
|
+
const params = buildClientParams([parameters], [{ args: [{ key: 'creditCheckoutRequest', map: 'body' }] }]);
|
|
364
|
+
return (options?.client ?? this.client).post<BillingCreditsCheckoutResults, BillingCreditsCheckoutErrors, ThrowOnError, 'data'>({
|
|
335
365
|
responseStyle: 'data',
|
|
336
366
|
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
337
367
|
in: 'cookie',
|
|
338
368
|
name: 'talqing_session',
|
|
339
369
|
type: 'apiKey'
|
|
340
370
|
}],
|
|
341
|
-
url: '/v1/
|
|
342
|
-
...options
|
|
371
|
+
url: '/v1/billing/credits/checkout',
|
|
372
|
+
...options,
|
|
373
|
+
...params,
|
|
374
|
+
headers: {
|
|
375
|
+
'Content-Type': 'application/json',
|
|
376
|
+
...options?.headers,
|
|
377
|
+
...params.headers
|
|
378
|
+
}
|
|
343
379
|
});
|
|
344
380
|
}
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* List Credit Ledger
|
|
384
|
+
*
|
|
385
|
+
* Every movement of this region's balance, newest first, with what caused each.
|
|
386
|
+
*/
|
|
387
|
+
public ledger<ThrowOnError extends boolean = false>(parameters?: {
|
|
388
|
+
limit?: number;
|
|
389
|
+
offset?: number;
|
|
390
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<BillingCreditsLedgerResults, BillingCreditsLedgerErrors, ThrowOnError, 'data'> {
|
|
391
|
+
const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
|
|
392
|
+
return (options?.client ?? this.client).get<BillingCreditsLedgerResults, BillingCreditsLedgerErrors, ThrowOnError, 'data'>({
|
|
393
|
+
responseStyle: 'data',
|
|
394
|
+
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
395
|
+
in: 'cookie',
|
|
396
|
+
name: 'talqing_session',
|
|
397
|
+
type: 'apiKey'
|
|
398
|
+
}],
|
|
399
|
+
url: '/v1/billing/credits/ledger',
|
|
400
|
+
...options,
|
|
401
|
+
...params
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export class Billing extends HeyApiClient {
|
|
407
|
+
private _credits?: Credits;
|
|
408
|
+
get credits(): Credits {
|
|
409
|
+
return this._credits ??= new Credits({ client: this.client });
|
|
410
|
+
}
|
|
345
411
|
}
|
|
346
412
|
|
|
347
413
|
export class ProviderKeys extends HeyApiClient {
|
|
@@ -3074,124 +3140,6 @@ export class Knowledge2 extends HeyApiClient {
|
|
|
3074
3140
|
}
|
|
3075
3141
|
}
|
|
3076
3142
|
|
|
3077
|
-
export class Tokens extends HeyApiClient {
|
|
3078
|
-
/**
|
|
3079
|
-
* Mcp Token
|
|
3080
|
-
*
|
|
3081
|
-
* This user's MCP token, in plaintext, with the API URL to pair it with.
|
|
3082
|
-
*
|
|
3083
|
-
* Unlike a token created by hand, this one can be read whenever it is needed:
|
|
3084
|
-
* the dashboard renders it into ready-to-paste MCP configuration for Claude
|
|
3085
|
-
* Code, Codex and Grok. The value is re-derived from the token's row, not
|
|
3086
|
-
* stored, and is the same string every time — so a configuration a user
|
|
3087
|
-
* already saved keeps working.
|
|
3088
|
-
*
|
|
3089
|
-
* It is always the caller's own token, never anyone else's, and is created on
|
|
3090
|
-
* the spot for a user who somehow has none. Delete it from the tokens list to
|
|
3091
|
-
* revoke it; the next call issues a new one, which rotates the credential.
|
|
3092
|
-
*/
|
|
3093
|
-
public mcp<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<TokensMcpResults, TokensMcpErrors, ThrowOnError, 'data'> {
|
|
3094
|
-
return (options?.client ?? this.client).get<TokensMcpResults, TokensMcpErrors, ThrowOnError, 'data'>({
|
|
3095
|
-
responseStyle: 'data',
|
|
3096
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3097
|
-
in: 'cookie',
|
|
3098
|
-
name: 'talqing_session',
|
|
3099
|
-
type: 'apiKey'
|
|
3100
|
-
}],
|
|
3101
|
-
url: '/v1/mcp-token',
|
|
3102
|
-
...options
|
|
3103
|
-
});
|
|
3104
|
-
}
|
|
3105
|
-
|
|
3106
|
-
/**
|
|
3107
|
-
* List Tokens
|
|
3108
|
-
*
|
|
3109
|
-
* List personal access tokens: your own, or every one in the organization
|
|
3110
|
-
* if you are an admin.
|
|
3111
|
-
*
|
|
3112
|
-
* Who holds which credential is organization-admin information, so an EDITOR
|
|
3113
|
-
* or VIEWER sees only what they created. Plaintext token values are never
|
|
3114
|
-
* returned. A token with `kind: mcp` was issued automatically for the
|
|
3115
|
-
* dashboard's MCP setup; the rest were created by hand.
|
|
3116
|
-
*/
|
|
3117
|
-
public list<ThrowOnError extends boolean = false>(parameters?: {
|
|
3118
|
-
limit?: number;
|
|
3119
|
-
offset?: number;
|
|
3120
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<TokensListResults, TokensListErrors, ThrowOnError, 'data'> {
|
|
3121
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
|
|
3122
|
-
return (options?.client ?? this.client).get<TokensListResults, TokensListErrors, ThrowOnError, 'data'>({
|
|
3123
|
-
responseStyle: 'data',
|
|
3124
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3125
|
-
in: 'cookie',
|
|
3126
|
-
name: 'talqing_session',
|
|
3127
|
-
type: 'apiKey'
|
|
3128
|
-
}],
|
|
3129
|
-
url: '/v1/tokens',
|
|
3130
|
-
...options,
|
|
3131
|
-
...params
|
|
3132
|
-
});
|
|
3133
|
-
}
|
|
3134
|
-
|
|
3135
|
-
/**
|
|
3136
|
-
* Create Token
|
|
3137
|
-
*
|
|
3138
|
-
* Create a personal access token for driving this API without the dashboard.
|
|
3139
|
-
*
|
|
3140
|
-
* The token authenticates as its creator and acts with that user's live role,
|
|
3141
|
-
* so it can never do more than they can. It does not expire; deleting it is
|
|
3142
|
-
* the revocation. The plaintext value is returned once here and never again —
|
|
3143
|
-
* treat it like a password and do not echo it back into a conversation.
|
|
3144
|
-
*/
|
|
3145
|
-
public create<ThrowOnError extends boolean = false>(parameters: {
|
|
3146
|
-
createTokenRequest: CreateTokenRequest;
|
|
3147
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<TokensCreateResults, TokensCreateErrors, ThrowOnError, 'data'> {
|
|
3148
|
-
const params = buildClientParams([parameters], [{ args: [{ key: 'createTokenRequest', map: 'body' }] }]);
|
|
3149
|
-
return (options?.client ?? this.client).post<TokensCreateResults, TokensCreateErrors, ThrowOnError, 'data'>({
|
|
3150
|
-
responseStyle: 'data',
|
|
3151
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3152
|
-
in: 'cookie',
|
|
3153
|
-
name: 'talqing_session',
|
|
3154
|
-
type: 'apiKey'
|
|
3155
|
-
}],
|
|
3156
|
-
url: '/v1/tokens',
|
|
3157
|
-
...options,
|
|
3158
|
-
...params,
|
|
3159
|
-
headers: {
|
|
3160
|
-
'Content-Type': 'application/json',
|
|
3161
|
-
...options?.headers,
|
|
3162
|
-
...params.headers
|
|
3163
|
-
}
|
|
3164
|
-
});
|
|
3165
|
-
}
|
|
3166
|
-
|
|
3167
|
-
/**
|
|
3168
|
-
* Delete Token
|
|
3169
|
-
*
|
|
3170
|
-
* Revoke a token immediately and permanently.
|
|
3171
|
-
*
|
|
3172
|
-
* Owners can delete their own; organization admins can delete any in the
|
|
3173
|
-
* organization. Deleting an `mcp` token rotates it: the owner's next dashboard
|
|
3174
|
-
* visit issues a replacement, and anything still configured with the old one
|
|
3175
|
-
* stops working.
|
|
3176
|
-
*/
|
|
3177
|
-
public delete<ThrowOnError extends boolean = false>(parameters: {
|
|
3178
|
-
token_id: string;
|
|
3179
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<TokensDeleteResults, TokensDeleteErrors, ThrowOnError, 'data'> {
|
|
3180
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'token_id' }] }]);
|
|
3181
|
-
return (options?.client ?? this.client).delete<TokensDeleteResults, TokensDeleteErrors, ThrowOnError, 'data'>({
|
|
3182
|
-
responseStyle: 'data',
|
|
3183
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3184
|
-
in: 'cookie',
|
|
3185
|
-
name: 'talqing_session',
|
|
3186
|
-
type: 'apiKey'
|
|
3187
|
-
}],
|
|
3188
|
-
url: '/v1/tokens/{token_id}',
|
|
3189
|
-
...options,
|
|
3190
|
-
...params
|
|
3191
|
-
});
|
|
3192
|
-
}
|
|
3193
|
-
}
|
|
3194
|
-
|
|
3195
3143
|
export class Observability extends HeyApiClient {
|
|
3196
3144
|
/**
|
|
3197
3145
|
* Get Observability
|
|
@@ -3240,325 +3188,6 @@ export class Observability extends HeyApiClient {
|
|
|
3240
3188
|
}
|
|
3241
3189
|
}
|
|
3242
3190
|
|
|
3243
|
-
export class Invites extends HeyApiClient {
|
|
3244
|
-
/**
|
|
3245
|
-
* List Invites
|
|
3246
|
-
*
|
|
3247
|
-
* Invites waiting on a first login. Accepted and revoked ones drop off the
|
|
3248
|
-
* list — an accepted invite is a member, and belongs on the roster instead.
|
|
3249
|
-
*/
|
|
3250
|
-
public list<ThrowOnError extends boolean = false>(parameters?: {
|
|
3251
|
-
limit?: number;
|
|
3252
|
-
offset?: number;
|
|
3253
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<OrgsInvitesListResults, OrgsInvitesListErrors, ThrowOnError, 'data'> {
|
|
3254
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
|
|
3255
|
-
return (options?.client ?? this.client).get<OrgsInvitesListResults, OrgsInvitesListErrors, ThrowOnError, 'data'>({
|
|
3256
|
-
responseStyle: 'data',
|
|
3257
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3258
|
-
in: 'cookie',
|
|
3259
|
-
name: 'talqing_session',
|
|
3260
|
-
type: 'apiKey'
|
|
3261
|
-
}],
|
|
3262
|
-
url: '/v1/org/invites',
|
|
3263
|
-
...options,
|
|
3264
|
-
...params
|
|
3265
|
-
});
|
|
3266
|
-
}
|
|
3267
|
-
|
|
3268
|
-
/**
|
|
3269
|
-
* Create Invite
|
|
3270
|
-
*
|
|
3271
|
-
* Invite an email address into this organization with a role.
|
|
3272
|
-
*
|
|
3273
|
-
* There is no invite link and no accept step: the invite is keyed to a Google
|
|
3274
|
-
* identity, so signing in with that address *is* the check. Someone who
|
|
3275
|
-
* already has an account joins immediately; anyone else joins the first time
|
|
3276
|
-
* they sign in.
|
|
3277
|
-
*
|
|
3278
|
-
* No email is sent at MVP, so an existing user finds out by seeing the
|
|
3279
|
-
* organization appear in their switcher — tell them yourself.
|
|
3280
|
-
*/
|
|
3281
|
-
public create<ThrowOnError extends boolean = false>(parameters: {
|
|
3282
|
-
inviteRequest: InviteRequest;
|
|
3283
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<OrgsInvitesCreateResults, OrgsInvitesCreateErrors, ThrowOnError, 'data'> {
|
|
3284
|
-
const params = buildClientParams([parameters], [{ args: [{ key: 'inviteRequest', map: 'body' }] }]);
|
|
3285
|
-
return (options?.client ?? this.client).post<OrgsInvitesCreateResults, OrgsInvitesCreateErrors, ThrowOnError, 'data'>({
|
|
3286
|
-
responseStyle: 'data',
|
|
3287
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3288
|
-
in: 'cookie',
|
|
3289
|
-
name: 'talqing_session',
|
|
3290
|
-
type: 'apiKey'
|
|
3291
|
-
}],
|
|
3292
|
-
url: '/v1/org/invites',
|
|
3293
|
-
...options,
|
|
3294
|
-
...params,
|
|
3295
|
-
headers: {
|
|
3296
|
-
'Content-Type': 'application/json',
|
|
3297
|
-
...options?.headers,
|
|
3298
|
-
...params.headers
|
|
3299
|
-
}
|
|
3300
|
-
});
|
|
3301
|
-
}
|
|
3302
|
-
|
|
3303
|
-
/**
|
|
3304
|
-
* Revoke Invite
|
|
3305
|
-
*
|
|
3306
|
-
* Withdraw a pending invite, so signing in with that address no longer
|
|
3307
|
-
* joins this organization.
|
|
3308
|
-
*/
|
|
3309
|
-
public revoke<ThrowOnError extends boolean = false>(parameters: {
|
|
3310
|
-
invite_id: string;
|
|
3311
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<OrgsInvitesRevokeResults, OrgsInvitesRevokeErrors, ThrowOnError, 'data'> {
|
|
3312
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'invite_id' }] }]);
|
|
3313
|
-
return (options?.client ?? this.client).delete<OrgsInvitesRevokeResults, OrgsInvitesRevokeErrors, ThrowOnError, 'data'>({
|
|
3314
|
-
responseStyle: 'data',
|
|
3315
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3316
|
-
in: 'cookie',
|
|
3317
|
-
name: 'talqing_session',
|
|
3318
|
-
type: 'apiKey'
|
|
3319
|
-
}],
|
|
3320
|
-
url: '/v1/org/invites/{invite_id}',
|
|
3321
|
-
...options,
|
|
3322
|
-
...params
|
|
3323
|
-
});
|
|
3324
|
-
}
|
|
3325
|
-
}
|
|
3326
|
-
|
|
3327
|
-
export class Members extends HeyApiClient {
|
|
3328
|
-
/**
|
|
3329
|
-
* List Members
|
|
3330
|
-
*
|
|
3331
|
-
* Every member sees the roster; only an ADMIN can change it.
|
|
3332
|
-
*/
|
|
3333
|
-
public list<ThrowOnError extends boolean = false>(parameters?: {
|
|
3334
|
-
limit?: number;
|
|
3335
|
-
offset?: number;
|
|
3336
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<OrgsMembersListResults, OrgsMembersListErrors, ThrowOnError, 'data'> {
|
|
3337
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
|
|
3338
|
-
return (options?.client ?? this.client).get<OrgsMembersListResults, OrgsMembersListErrors, ThrowOnError, 'data'>({
|
|
3339
|
-
responseStyle: 'data',
|
|
3340
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3341
|
-
in: 'cookie',
|
|
3342
|
-
name: 'talqing_session',
|
|
3343
|
-
type: 'apiKey'
|
|
3344
|
-
}],
|
|
3345
|
-
url: '/v1/org/members',
|
|
3346
|
-
...options,
|
|
3347
|
-
...params
|
|
3348
|
-
});
|
|
3349
|
-
}
|
|
3350
|
-
|
|
3351
|
-
/**
|
|
3352
|
-
* Remove Member
|
|
3353
|
-
*
|
|
3354
|
-
* Remove someone from this organization.
|
|
3355
|
-
*
|
|
3356
|
-
* They lose access on their next request, and their access tokens for this
|
|
3357
|
-
* organization stop working with them. Nothing they created is deleted.
|
|
3358
|
-
*
|
|
3359
|
-
* Allowed even when this is the only organization they belong to — whether
|
|
3360
|
-
* they have somewhere else to go is not this organization's problem, and their
|
|
3361
|
-
* next sign-in gives them one of their own.
|
|
3362
|
-
*/
|
|
3363
|
-
public remove<ThrowOnError extends boolean = false>(parameters: {
|
|
3364
|
-
user_id: string;
|
|
3365
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<OrgsMembersRemoveResults, OrgsMembersRemoveErrors, ThrowOnError, 'data'> {
|
|
3366
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'user_id' }] }]);
|
|
3367
|
-
return (options?.client ?? this.client).delete<OrgsMembersRemoveResults, OrgsMembersRemoveErrors, ThrowOnError, 'data'>({
|
|
3368
|
-
responseStyle: 'data',
|
|
3369
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3370
|
-
in: 'cookie',
|
|
3371
|
-
name: 'talqing_session',
|
|
3372
|
-
type: 'apiKey'
|
|
3373
|
-
}],
|
|
3374
|
-
url: '/v1/org/members/{user_id}',
|
|
3375
|
-
...options,
|
|
3376
|
-
...params
|
|
3377
|
-
});
|
|
3378
|
-
}
|
|
3379
|
-
|
|
3380
|
-
/**
|
|
3381
|
-
* Set Member Role
|
|
3382
|
-
*
|
|
3383
|
-
* Change a member's role. Takes effect on their very next request.
|
|
3384
|
-
*/
|
|
3385
|
-
public setRole<ThrowOnError extends boolean = false>(parameters: {
|
|
3386
|
-
user_id: string;
|
|
3387
|
-
roleRequest: RoleRequest;
|
|
3388
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<OrgsMembersSetRoleResults, OrgsMembersSetRoleErrors, ThrowOnError, 'data'> {
|
|
3389
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'user_id' }, { key: 'roleRequest', map: 'body' }] }]);
|
|
3390
|
-
return (options?.client ?? this.client).patch<OrgsMembersSetRoleResults, OrgsMembersSetRoleErrors, ThrowOnError, 'data'>({
|
|
3391
|
-
responseStyle: 'data',
|
|
3392
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3393
|
-
in: 'cookie',
|
|
3394
|
-
name: 'talqing_session',
|
|
3395
|
-
type: 'apiKey'
|
|
3396
|
-
}],
|
|
3397
|
-
url: '/v1/org/members/{user_id}',
|
|
3398
|
-
...options,
|
|
3399
|
-
...params,
|
|
3400
|
-
headers: {
|
|
3401
|
-
'Content-Type': 'application/json',
|
|
3402
|
-
...options?.headers,
|
|
3403
|
-
...params.headers
|
|
3404
|
-
}
|
|
3405
|
-
});
|
|
3406
|
-
}
|
|
3407
|
-
}
|
|
3408
|
-
|
|
3409
|
-
export class Orgs extends HeyApiClient {
|
|
3410
|
-
/**
|
|
3411
|
-
* Patch Org
|
|
3412
|
-
*
|
|
3413
|
-
* Change this organization's name or its data retention policy.
|
|
3414
|
-
*
|
|
3415
|
-
* The name is display only — nothing keys on it.
|
|
3416
|
-
*
|
|
3417
|
-
* `retention_days` is how long call and conversation *content* is kept:
|
|
3418
|
-
* recordings, transcripts, summaries, extracted fields and the phone numbers
|
|
3419
|
-
* on a call. When it passes, all of that is deleted and the call itself
|
|
3420
|
-
* remains, with its duration, outcome and cost, so past invoices still
|
|
3421
|
-
* resolve. `null` keeps everything forever, which is the default.
|
|
3422
|
-
*
|
|
3423
|
-
* It applies to calls from now on: a call already in the system keeps the
|
|
3424
|
-
* deadline it was given when it ended, so shortening the policy never
|
|
3425
|
-
* retroactively destroys anything. Erasing a contact's last call also resets
|
|
3426
|
-
* what your agents remember about that person.
|
|
3427
|
-
*/
|
|
3428
|
-
public update<ThrowOnError extends boolean = false>(parameters: {
|
|
3429
|
-
patchOrgRequest: PatchOrgRequest;
|
|
3430
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<OrgsUpdateResults, OrgsUpdateErrors, ThrowOnError, 'data'> {
|
|
3431
|
-
const params = buildClientParams([parameters], [{ args: [{ key: 'patchOrgRequest', map: 'body' }] }]);
|
|
3432
|
-
return (options?.client ?? this.client).patch<OrgsUpdateResults, OrgsUpdateErrors, ThrowOnError, 'data'>({
|
|
3433
|
-
responseStyle: 'data',
|
|
3434
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3435
|
-
in: 'cookie',
|
|
3436
|
-
name: 'talqing_session',
|
|
3437
|
-
type: 'apiKey'
|
|
3438
|
-
}],
|
|
3439
|
-
url: '/v1/org',
|
|
3440
|
-
...options,
|
|
3441
|
-
...params,
|
|
3442
|
-
headers: {
|
|
3443
|
-
'Content-Type': 'application/json',
|
|
3444
|
-
...options?.headers,
|
|
3445
|
-
...params.headers
|
|
3446
|
-
}
|
|
3447
|
-
});
|
|
3448
|
-
}
|
|
3449
|
-
|
|
3450
|
-
/**
|
|
3451
|
-
* Leave Org
|
|
3452
|
-
*
|
|
3453
|
-
* Leave this organization. Any member may, including an admin who has
|
|
3454
|
-
* promoted a successor. Nothing they created is deleted.
|
|
3455
|
-
*/
|
|
3456
|
-
public leave<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<OrgsLeaveResults, OrgsLeaveErrors, ThrowOnError, 'data'> {
|
|
3457
|
-
return (options?.client ?? this.client).post<OrgsLeaveResults, OrgsLeaveErrors, ThrowOnError, 'data'>({
|
|
3458
|
-
responseStyle: 'data',
|
|
3459
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3460
|
-
in: 'cookie',
|
|
3461
|
-
name: 'talqing_session',
|
|
3462
|
-
type: 'apiKey'
|
|
3463
|
-
}],
|
|
3464
|
-
url: '/v1/org/leave',
|
|
3465
|
-
...options
|
|
3466
|
-
});
|
|
3467
|
-
}
|
|
3468
|
-
|
|
3469
|
-
/**
|
|
3470
|
-
* List Orgs
|
|
3471
|
-
*
|
|
3472
|
-
* Every organization the signed-in user belongs to, with their role in each.
|
|
3473
|
-
*
|
|
3474
|
-
* Newest membership first, deliberately: an admin can add you to their
|
|
3475
|
-
* organization without you being asked or emailed, so the one you did not know
|
|
3476
|
-
* about is the one that needs to be visible.
|
|
3477
|
-
*/
|
|
3478
|
-
public list<ThrowOnError extends boolean = false>(parameters?: {
|
|
3479
|
-
limit?: number;
|
|
3480
|
-
offset?: number;
|
|
3481
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<OrgsListResults, OrgsListErrors, ThrowOnError, 'data'> {
|
|
3482
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'query', key: 'limit' }, { in: 'query', key: 'offset' }] }]);
|
|
3483
|
-
return (options?.client ?? this.client).get<OrgsListResults, OrgsListErrors, ThrowOnError, 'data'>({
|
|
3484
|
-
responseStyle: 'data',
|
|
3485
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3486
|
-
in: 'cookie',
|
|
3487
|
-
name: 'talqing_session',
|
|
3488
|
-
type: 'apiKey'
|
|
3489
|
-
}],
|
|
3490
|
-
url: '/v1/orgs',
|
|
3491
|
-
...options,
|
|
3492
|
-
...params
|
|
3493
|
-
});
|
|
3494
|
-
}
|
|
3495
|
-
|
|
3496
|
-
/**
|
|
3497
|
-
* Create Org
|
|
3498
|
-
*
|
|
3499
|
-
* Create a new, empty organization with the caller as its ADMIN.
|
|
3500
|
-
*
|
|
3501
|
-
* Any member can do this — it grants nothing in the organization they are
|
|
3502
|
-
* currently in. Switch into it to start working there.
|
|
3503
|
-
*/
|
|
3504
|
-
public create<ThrowOnError extends boolean = false>(parameters: {
|
|
3505
|
-
orgNameRequest: OrgNameRequest;
|
|
3506
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<OrgsCreateResults, OrgsCreateErrors, ThrowOnError, 'data'> {
|
|
3507
|
-
const params = buildClientParams([parameters], [{ args: [{ key: 'orgNameRequest', map: 'body' }] }]);
|
|
3508
|
-
return (options?.client ?? this.client).post<OrgsCreateResults, OrgsCreateErrors, ThrowOnError, 'data'>({
|
|
3509
|
-
responseStyle: 'data',
|
|
3510
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3511
|
-
in: 'cookie',
|
|
3512
|
-
name: 'talqing_session',
|
|
3513
|
-
type: 'apiKey'
|
|
3514
|
-
}],
|
|
3515
|
-
url: '/v1/orgs',
|
|
3516
|
-
...options,
|
|
3517
|
-
...params,
|
|
3518
|
-
headers: {
|
|
3519
|
-
'Content-Type': 'application/json',
|
|
3520
|
-
...options?.headers,
|
|
3521
|
-
...params.headers
|
|
3522
|
-
}
|
|
3523
|
-
});
|
|
3524
|
-
}
|
|
3525
|
-
|
|
3526
|
-
/**
|
|
3527
|
-
* Switch Org
|
|
3528
|
-
*
|
|
3529
|
-
* Point the dashboard session at another of the caller's organizations.
|
|
3530
|
-
*
|
|
3531
|
-
* The session cookie carries the organization, so switching re-issues it — the
|
|
3532
|
-
* caller's role, resources and billing all move with it. Reload after this.
|
|
3533
|
-
*/
|
|
3534
|
-
public switch<ThrowOnError extends boolean = false>(parameters: {
|
|
3535
|
-
org_id: string;
|
|
3536
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<OrgsSwitchResults, OrgsSwitchErrors, ThrowOnError, 'data'> {
|
|
3537
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'path', key: 'org_id' }] }]);
|
|
3538
|
-
return (options?.client ?? this.client).post<OrgsSwitchResults, OrgsSwitchErrors, ThrowOnError, 'data'>({
|
|
3539
|
-
responseStyle: 'data',
|
|
3540
|
-
security: [{ scheme: 'bearer', type: 'http' }, {
|
|
3541
|
-
in: 'cookie',
|
|
3542
|
-
name: 'talqing_session',
|
|
3543
|
-
type: 'apiKey'
|
|
3544
|
-
}],
|
|
3545
|
-
url: '/v1/orgs/{org_id}/switch',
|
|
3546
|
-
...options,
|
|
3547
|
-
...params
|
|
3548
|
-
});
|
|
3549
|
-
}
|
|
3550
|
-
|
|
3551
|
-
private _invites?: Invites;
|
|
3552
|
-
get invites(): Invites {
|
|
3553
|
-
return this._invites ??= new Invites({ client: this.client });
|
|
3554
|
-
}
|
|
3555
|
-
|
|
3556
|
-
private _members?: Members;
|
|
3557
|
-
get members(): Members {
|
|
3558
|
-
return this._members ??= new Members({ client: this.client });
|
|
3559
|
-
}
|
|
3560
|
-
}
|
|
3561
|
-
|
|
3562
3191
|
export class Schemas extends HeyApiClient {
|
|
3563
3192
|
/**
|
|
3564
3193
|
* Describe Schema
|
|
@@ -4900,8 +4529,8 @@ export class TalqingApi extends HeyApiClient {
|
|
|
4900
4529
|
*
|
|
4901
4530
|
* Liveness probe: `200` once this process is serving. Unauthenticated.
|
|
4902
4531
|
*
|
|
4903
|
-
* It answers for the API process, not its dependencies — a `200` here does
|
|
4904
|
-
* promise Postgres, Redis or LiveKit are reachable.
|
|
4532
|
+
* It answers for the API process, not its dependencies — a `200` here does
|
|
4533
|
+
* not promise Postgres, Redis or LiveKit are reachable.
|
|
4905
4534
|
*/
|
|
4906
4535
|
public health<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<HealthResults, HealthErrors, ThrowOnError, 'data'> {
|
|
4907
4536
|
return (options?.client ?? this.client).get<HealthResults, HealthErrors, ThrowOnError, 'data'>({
|
|
@@ -4916,9 +4545,9 @@ export class TalqingApi extends HeyApiClient {
|
|
|
4916
4545
|
return this._agents ??= new Agents({ client: this.client });
|
|
4917
4546
|
}
|
|
4918
4547
|
|
|
4919
|
-
private
|
|
4920
|
-
get
|
|
4921
|
-
return this.
|
|
4548
|
+
private _billing?: Billing;
|
|
4549
|
+
get billing(): Billing {
|
|
4550
|
+
return this._billing ??= new Billing({ client: this.client });
|
|
4922
4551
|
}
|
|
4923
4552
|
|
|
4924
4553
|
private _providerKeys?: ProviderKeys;
|
|
@@ -4961,21 +4590,11 @@ export class TalqingApi extends HeyApiClient {
|
|
|
4961
4590
|
return this._knowledge ??= new Knowledge2({ client: this.client });
|
|
4962
4591
|
}
|
|
4963
4592
|
|
|
4964
|
-
private _tokens?: Tokens;
|
|
4965
|
-
get tokens(): Tokens {
|
|
4966
|
-
return this._tokens ??= new Tokens({ client: this.client });
|
|
4967
|
-
}
|
|
4968
|
-
|
|
4969
4593
|
private _observability?: Observability;
|
|
4970
4594
|
get observability(): Observability {
|
|
4971
4595
|
return this._observability ??= new Observability({ client: this.client });
|
|
4972
4596
|
}
|
|
4973
4597
|
|
|
4974
|
-
private _orgs?: Orgs;
|
|
4975
|
-
get orgs(): Orgs {
|
|
4976
|
-
return this._orgs ??= new Orgs({ client: this.client });
|
|
4977
|
-
}
|
|
4978
|
-
|
|
4979
4598
|
private _schemas?: Schemas;
|
|
4980
4599
|
get schemas(): Schemas {
|
|
4981
4600
|
return this._schemas ??= new Schemas({ client: this.client });
|