@talqing/sdk 0.19.0 → 0.21.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/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 +14 -2
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +32 -2
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +153 -18
- 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 +14 -2
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +30 -1
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +153 -18
- 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 +36 -2
- package/src/gen/types.gen.ts +162 -18
|
@@ -180,11 +180,9 @@ export type AgentConfig = {
|
|
|
180
180
|
*/
|
|
181
181
|
faqs?: Array<FaqSelection>;
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
* The opening line, spoken on connect and on the way in from a handoff; empty or null makes the agent wait for the caller to speak first. Voice and video only. Supports the same substitutions as the prompt, plus `{{recording.notice}}`, the recording notice's place in the line.
|
|
183
|
+
* How the agent opens, on connect and on the way in from a handoff; null makes it wait for the caller to speak first. Voice and video only.
|
|
186
184
|
*/
|
|
187
|
-
greeting?:
|
|
185
|
+
greeting?: GreetingSpec | null;
|
|
188
186
|
/**
|
|
189
187
|
* Greeting Interruptible
|
|
190
188
|
*
|
|
@@ -325,11 +323,9 @@ export type AgentOverride = {
|
|
|
325
323
|
*/
|
|
326
324
|
faqs?: Array<FaqSelection> | null;
|
|
327
325
|
/**
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
* The opening line, spoken on connect and on the way in from a handoff; empty or null makes the agent wait for the caller to speak first. Voice and video only. Supports the same substitutions as the prompt, plus `{{recording.notice}}`, the recording notice's place in the line.
|
|
326
|
+
* How the agent opens, on connect and on the way in from a handoff; null makes it wait for the caller to speak first. Voice and video only.
|
|
331
327
|
*/
|
|
332
|
-
greeting?:
|
|
328
|
+
greeting?: GreetingSpec | null;
|
|
333
329
|
/**
|
|
334
330
|
* Greeting Interruptible
|
|
335
331
|
*
|
|
@@ -1412,10 +1408,7 @@ export type CallDetailResponse = {
|
|
|
1412
1408
|
* Events
|
|
1413
1409
|
*/
|
|
1414
1410
|
events: Array<SessionEventResponse>;
|
|
1415
|
-
|
|
1416
|
-
* Greeting
|
|
1417
|
-
*/
|
|
1418
|
-
greeting: string | null;
|
|
1411
|
+
greeting: GreetingSpec | null;
|
|
1419
1412
|
session: CallSessionResponse;
|
|
1420
1413
|
snapshot: HealthSnapshotResponse;
|
|
1421
1414
|
/**
|
|
@@ -3949,7 +3942,7 @@ export type CreateWhatsAppTemplateRequest = {
|
|
|
3949
3942
|
/**
|
|
3950
3943
|
* Integration Id
|
|
3951
3944
|
*
|
|
3952
|
-
* A Twilio WhatsApp sender; the template is account-wide.
|
|
3945
|
+
* A Twilio or Meta WhatsApp sender; the template is account-wide.
|
|
3953
3946
|
*/
|
|
3954
3947
|
integration_id: string;
|
|
3955
3948
|
/**
|
|
@@ -5163,6 +5156,25 @@ export type GenerateReplyOperation = {
|
|
|
5163
5156
|
*/
|
|
5164
5157
|
on_error?: 'abort' | 'continue';
|
|
5165
5158
|
};
|
|
5159
|
+
/**
|
|
5160
|
+
* GreetingSpec
|
|
5161
|
+
*
|
|
5162
|
+
* How the agent opens: a fixed `message`, or `instructions` for the model to write one.
|
|
5163
|
+
*/
|
|
5164
|
+
export type GreetingSpec = {
|
|
5165
|
+
/**
|
|
5166
|
+
* Instructions
|
|
5167
|
+
*
|
|
5168
|
+
* What the model is told to open with; it writes the line. Supports the prompt's substitutions. Adds a model reply's latency before the first word.
|
|
5169
|
+
*/
|
|
5170
|
+
instructions?: string | null;
|
|
5171
|
+
/**
|
|
5172
|
+
* Message
|
|
5173
|
+
*
|
|
5174
|
+
* Spoken word for word. Supports the prompt's substitutions, plus `{{recording.notice}}`, the recording notice's place in the line.
|
|
5175
|
+
*/
|
|
5176
|
+
message?: string | null;
|
|
5177
|
+
};
|
|
5166
5178
|
/**
|
|
5167
5179
|
* HandoffConfig
|
|
5168
5180
|
*/
|
|
@@ -5782,6 +5794,10 @@ export type IntegrationCapabilities = {
|
|
|
5782
5794
|
* Attachable As Mcp
|
|
5783
5795
|
*/
|
|
5784
5796
|
attachable_as_mcp: boolean;
|
|
5797
|
+
/**
|
|
5798
|
+
* Template Authoring
|
|
5799
|
+
*/
|
|
5800
|
+
template_authoring: boolean;
|
|
5785
5801
|
/**
|
|
5786
5802
|
* Trigger Types
|
|
5787
5803
|
*/
|
|
@@ -6837,6 +6853,83 @@ export type McpSelection = {
|
|
|
6837
6853
|
integration_id?: string | null;
|
|
6838
6854
|
mcp?: InlineMcpServer | null;
|
|
6839
6855
|
};
|
|
6856
|
+
/**
|
|
6857
|
+
* MetaNumber
|
|
6858
|
+
*/
|
|
6859
|
+
export type MetaNumber = {
|
|
6860
|
+
/**
|
|
6861
|
+
* E164
|
|
6862
|
+
*/
|
|
6863
|
+
e164: string;
|
|
6864
|
+
/**
|
|
6865
|
+
* Has Payment Method
|
|
6866
|
+
*
|
|
6867
|
+
* False: replies stop after 1,000 a month and templates fail. Null: unknown.
|
|
6868
|
+
*/
|
|
6869
|
+
has_payment_method: boolean | null;
|
|
6870
|
+
/**
|
|
6871
|
+
* Messaging Limit
|
|
6872
|
+
*/
|
|
6873
|
+
messaging_limit: string | null;
|
|
6874
|
+
/**
|
|
6875
|
+
* Phone Number Id
|
|
6876
|
+
*/
|
|
6877
|
+
phone_number_id: string;
|
|
6878
|
+
/**
|
|
6879
|
+
* Platform Type
|
|
6880
|
+
*
|
|
6881
|
+
* Connectable when `CLOUD_API`.
|
|
6882
|
+
*/
|
|
6883
|
+
platform_type: string;
|
|
6884
|
+
/**
|
|
6885
|
+
* Status
|
|
6886
|
+
*
|
|
6887
|
+
* Connectable when `CONNECTED`.
|
|
6888
|
+
*/
|
|
6889
|
+
status: string;
|
|
6890
|
+
/**
|
|
6891
|
+
* Verified Name
|
|
6892
|
+
*/
|
|
6893
|
+
verified_name: string;
|
|
6894
|
+
/**
|
|
6895
|
+
* Waba Id
|
|
6896
|
+
*/
|
|
6897
|
+
waba_id: string;
|
|
6898
|
+
};
|
|
6899
|
+
/**
|
|
6900
|
+
* MetaNumbersRequest
|
|
6901
|
+
*/
|
|
6902
|
+
export type MetaNumbersRequest = {
|
|
6903
|
+
/**
|
|
6904
|
+
* Access Token
|
|
6905
|
+
*
|
|
6906
|
+
* A system user token.
|
|
6907
|
+
*/
|
|
6908
|
+
access_token: string;
|
|
6909
|
+
/**
|
|
6910
|
+
* App Id
|
|
6911
|
+
*/
|
|
6912
|
+
app_id: string;
|
|
6913
|
+
/**
|
|
6914
|
+
* App Secret
|
|
6915
|
+
*/
|
|
6916
|
+
app_secret: string;
|
|
6917
|
+
/**
|
|
6918
|
+
* Waba Id
|
|
6919
|
+
*
|
|
6920
|
+
* The WhatsApp Business Account ID.
|
|
6921
|
+
*/
|
|
6922
|
+
waba_id: string;
|
|
6923
|
+
};
|
|
6924
|
+
/**
|
|
6925
|
+
* MetaNumbersResponse
|
|
6926
|
+
*/
|
|
6927
|
+
export type MetaNumbersResponse = {
|
|
6928
|
+
/**
|
|
6929
|
+
* Numbers
|
|
6930
|
+
*/
|
|
6931
|
+
numbers: Array<MetaNumber>;
|
|
6932
|
+
};
|
|
6840
6933
|
/**
|
|
6841
6934
|
* ModelHostResponse
|
|
6842
6935
|
*
|
|
@@ -10128,10 +10221,12 @@ export type RoutedTTS = {
|
|
|
10128
10221
|
/**
|
|
10129
10222
|
* Routes
|
|
10130
10223
|
*
|
|
10131
|
-
* What a router provider serves. Its entries
|
|
10132
|
-
* is a routed provider's own entry under the model id
|
|
10133
|
-
* built at load (`Catalog._route_entries`), so voices,
|
|
10134
|
-
* and the provider's rates can never drift from the
|
|
10224
|
+
* What a router provider serves. Its entries for these providers are not
|
|
10225
|
+
* written out: each one is a routed provider's own entry under the model id
|
|
10226
|
+
* `<provider>/<model>`, built at load (`Catalog._route_entries`), so voices,
|
|
10227
|
+
* languages, speed bounds and the provider's rates can never drift from the
|
|
10228
|
+
* provider's entry. A model only the router serves (tts-cache-router's Maya),
|
|
10229
|
+
* with no provider entry to copy, is written out under the router itself.
|
|
10135
10230
|
*/
|
|
10136
10231
|
export type Routes = {
|
|
10137
10232
|
tts: RoutedTTS;
|
|
@@ -13954,7 +14049,7 @@ export type WhatsAppTemplate = {
|
|
|
13954
14049
|
/**
|
|
13955
14050
|
* Created At
|
|
13956
14051
|
*/
|
|
13957
|
-
created_at: string;
|
|
14052
|
+
created_at: string | null;
|
|
13958
14053
|
/**
|
|
13959
14054
|
* Examples
|
|
13960
14055
|
*/
|
|
@@ -23014,6 +23109,46 @@ export type WhatsappBatchesSendResults = {
|
|
|
23014
23109
|
200: WhatsAppBatchResponse;
|
|
23015
23110
|
};
|
|
23016
23111
|
export type WhatsappBatchesSendResult = WhatsappBatchesSendResults[keyof WhatsappBatchesSendResults];
|
|
23112
|
+
export type WhatsappMetaNumbersListData = {
|
|
23113
|
+
body: MetaNumbersRequest;
|
|
23114
|
+
path?: never;
|
|
23115
|
+
query?: never;
|
|
23116
|
+
url: '/v1/whatsapp/meta-numbers';
|
|
23117
|
+
};
|
|
23118
|
+
export type WhatsappMetaNumbersListErrors = {
|
|
23119
|
+
/**
|
|
23120
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
23121
|
+
*/
|
|
23122
|
+
400: ErrorResponse;
|
|
23123
|
+
/**
|
|
23124
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
23125
|
+
*/
|
|
23126
|
+
401: ErrorResponse;
|
|
23127
|
+
/**
|
|
23128
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
23129
|
+
*/
|
|
23130
|
+
403: ErrorResponse;
|
|
23131
|
+
/**
|
|
23132
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
23133
|
+
*/
|
|
23134
|
+
409: ErrorResponse;
|
|
23135
|
+
/**
|
|
23136
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
23137
|
+
*/
|
|
23138
|
+
422: ErrorResponse;
|
|
23139
|
+
/**
|
|
23140
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
23141
|
+
*/
|
|
23142
|
+
default: ErrorResponse;
|
|
23143
|
+
};
|
|
23144
|
+
export type WhatsappMetaNumbersListError = WhatsappMetaNumbersListErrors[keyof WhatsappMetaNumbersListErrors];
|
|
23145
|
+
export type WhatsappMetaNumbersListResults = {
|
|
23146
|
+
/**
|
|
23147
|
+
* Successful Response
|
|
23148
|
+
*/
|
|
23149
|
+
200: MetaNumbersResponse;
|
|
23150
|
+
};
|
|
23151
|
+
export type WhatsappMetaNumbersListResult = WhatsappMetaNumbersListResults[keyof WhatsappMetaNumbersListResults];
|
|
23017
23152
|
export type WhatsappTemplatesListData = {
|
|
23018
23153
|
body?: never;
|
|
23019
23154
|
path?: never;
|