retell-sdk 5.66.1 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +7 -14
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +7 -14
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +0 -8
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +0 -8
- package/resources/agent.mjs.map +1 -1
- package/resources/batch-call.d.mts +5 -5
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +5 -5
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +15 -15
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +15 -15
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.mts +7 -14
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +7 -14
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat-agent.js +0 -8
- package/resources/chat-agent.js.map +1 -1
- package/resources/chat-agent.mjs +0 -8
- package/resources/chat-agent.mjs.map +1 -1
- package/resources/chat.d.mts +57 -0
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +57 -0
- package/resources/chat.d.ts.map +1 -1
- package/resources/contact.d.mts +32 -32
- package/resources/contact.d.mts.map +1 -1
- package/resources/contact.d.ts +32 -32
- package/resources/contact.d.ts.map +1 -1
- package/resources/conversation-flow-component.d.mts +57 -525
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +57 -525
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +117 -1053
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +117 -1053
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/crm.d.mts +6 -0
- package/resources/crm.d.mts.map +1 -1
- package/resources/crm.d.ts +6 -0
- package/resources/crm.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/llm.d.mts +12 -456
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +12 -456
- package/resources/llm.d.ts.map +1 -1
- package/resources/tests.d.mts +3 -3
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +3 -3
- package/resources/tests.d.ts.map +1 -1
- package/src/client.ts +0 -4
- package/src/resources/agent.ts +9 -15
- package/src/resources/batch-call.ts +9 -3
- package/src/resources/call.ts +27 -9
- package/src/resources/chat-agent.ts +9 -15
- package/src/resources/chat.ts +77 -0
- package/src/resources/contact.ts +38 -38
- package/src/resources/conversation-flow-component.ts +138 -618
- package/src/resources/conversation-flow.ts +285 -1233
- package/src/resources/crm.ts +7 -0
- package/src/resources/index.ts +0 -2
- package/src/resources/llm.ts +9 -531
- package/src/resources/tests.ts +9 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -619,7 +619,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
619
619
|
> | null;
|
|
620
620
|
|
|
621
621
|
/**
|
|
622
|
-
* The model to use for post call analysis. Default to gpt-
|
|
622
|
+
* The model to use for post call analysis. Default to gpt-5.6-terra.
|
|
623
623
|
*/
|
|
624
624
|
post_call_analysis_model?:
|
|
625
625
|
| 'gpt-4.1'
|
|
@@ -645,6 +645,8 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
645
645
|
| 'gemini-3.5-flash'
|
|
646
646
|
| 'gemini-3.5-flash-lite'
|
|
647
647
|
| 'gemini-3.6-flash'
|
|
648
|
+
| 'gemini-3.7-flash'
|
|
649
|
+
| 'gemini-3.8-flash'
|
|
648
650
|
| null;
|
|
649
651
|
|
|
650
652
|
/**
|
|
@@ -1402,7 +1404,9 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
1402
1404
|
| 'gemini-3.1-flash-lite'
|
|
1403
1405
|
| 'gemini-3.5-flash'
|
|
1404
1406
|
| 'gemini-3.5-flash-lite'
|
|
1405
|
-
| 'gemini-3.6-flash'
|
|
1407
|
+
| 'gemini-3.6-flash'
|
|
1408
|
+
| 'gemini-3.7-flash'
|
|
1409
|
+
| 'gemini-3.8-flash';
|
|
1406
1410
|
|
|
1407
1411
|
/**
|
|
1408
1412
|
* Type of model choice
|
|
@@ -1449,7 +1453,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
1449
1453
|
knowledge_base_ids?: Array<string> | null;
|
|
1450
1454
|
|
|
1451
1455
|
/**
|
|
1452
|
-
* Select the underlying text LLM. If not set, would default to gpt-
|
|
1456
|
+
* Select the underlying text LLM. If not set, would default to gpt-5.6-terra.
|
|
1453
1457
|
*/
|
|
1454
1458
|
model?:
|
|
1455
1459
|
| 'gpt-4.1'
|
|
@@ -1475,6 +1479,8 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
1475
1479
|
| 'gemini-3.5-flash'
|
|
1476
1480
|
| 'gemini-3.5-flash-lite'
|
|
1477
1481
|
| 'gemini-3.6-flash'
|
|
1482
|
+
| 'gemini-3.7-flash'
|
|
1483
|
+
| 'gemini-3.8-flash'
|
|
1478
1484
|
| null;
|
|
1479
1485
|
|
|
1480
1486
|
/**
|
package/src/resources/call.ts
CHANGED
|
@@ -5701,7 +5701,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
5701
5701
|
> | null;
|
|
5702
5702
|
|
|
5703
5703
|
/**
|
|
5704
|
-
* The model to use for post call analysis. Default to gpt-
|
|
5704
|
+
* The model to use for post call analysis. Default to gpt-5.6-terra.
|
|
5705
5705
|
*/
|
|
5706
5706
|
post_call_analysis_model?:
|
|
5707
5707
|
| 'gpt-4.1'
|
|
@@ -5727,6 +5727,8 @@ export namespace CallCreatePhoneCallParams {
|
|
|
5727
5727
|
| 'gemini-3.5-flash'
|
|
5728
5728
|
| 'gemini-3.5-flash-lite'
|
|
5729
5729
|
| 'gemini-3.6-flash'
|
|
5730
|
+
| 'gemini-3.7-flash'
|
|
5731
|
+
| 'gemini-3.8-flash'
|
|
5730
5732
|
| null;
|
|
5731
5733
|
|
|
5732
5734
|
/**
|
|
@@ -6484,7 +6486,9 @@ export namespace CallCreatePhoneCallParams {
|
|
|
6484
6486
|
| 'gemini-3.1-flash-lite'
|
|
6485
6487
|
| 'gemini-3.5-flash'
|
|
6486
6488
|
| 'gemini-3.5-flash-lite'
|
|
6487
|
-
| 'gemini-3.6-flash'
|
|
6489
|
+
| 'gemini-3.6-flash'
|
|
6490
|
+
| 'gemini-3.7-flash'
|
|
6491
|
+
| 'gemini-3.8-flash';
|
|
6488
6492
|
|
|
6489
6493
|
/**
|
|
6490
6494
|
* Type of model choice
|
|
@@ -6531,7 +6535,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
6531
6535
|
knowledge_base_ids?: Array<string> | null;
|
|
6532
6536
|
|
|
6533
6537
|
/**
|
|
6534
|
-
* Select the underlying text LLM. If not set, would default to gpt-
|
|
6538
|
+
* Select the underlying text LLM. If not set, would default to gpt-5.6-terra.
|
|
6535
6539
|
*/
|
|
6536
6540
|
model?:
|
|
6537
6541
|
| 'gpt-4.1'
|
|
@@ -6557,6 +6561,8 @@ export namespace CallCreatePhoneCallParams {
|
|
|
6557
6561
|
| 'gemini-3.5-flash'
|
|
6558
6562
|
| 'gemini-3.5-flash-lite'
|
|
6559
6563
|
| 'gemini-3.6-flash'
|
|
6564
|
+
| 'gemini-3.7-flash'
|
|
6565
|
+
| 'gemini-3.8-flash'
|
|
6560
6566
|
| null;
|
|
6561
6567
|
|
|
6562
6568
|
/**
|
|
@@ -7096,7 +7102,7 @@ export namespace CallCreateWebCallParams {
|
|
|
7096
7102
|
> | null;
|
|
7097
7103
|
|
|
7098
7104
|
/**
|
|
7099
|
-
* The model to use for post call analysis. Default to gpt-
|
|
7105
|
+
* The model to use for post call analysis. Default to gpt-5.6-terra.
|
|
7100
7106
|
*/
|
|
7101
7107
|
post_call_analysis_model?:
|
|
7102
7108
|
| 'gpt-4.1'
|
|
@@ -7122,6 +7128,8 @@ export namespace CallCreateWebCallParams {
|
|
|
7122
7128
|
| 'gemini-3.5-flash'
|
|
7123
7129
|
| 'gemini-3.5-flash-lite'
|
|
7124
7130
|
| 'gemini-3.6-flash'
|
|
7131
|
+
| 'gemini-3.7-flash'
|
|
7132
|
+
| 'gemini-3.8-flash'
|
|
7125
7133
|
| null;
|
|
7126
7134
|
|
|
7127
7135
|
/**
|
|
@@ -7879,7 +7887,9 @@ export namespace CallCreateWebCallParams {
|
|
|
7879
7887
|
| 'gemini-3.1-flash-lite'
|
|
7880
7888
|
| 'gemini-3.5-flash'
|
|
7881
7889
|
| 'gemini-3.5-flash-lite'
|
|
7882
|
-
| 'gemini-3.6-flash'
|
|
7890
|
+
| 'gemini-3.6-flash'
|
|
7891
|
+
| 'gemini-3.7-flash'
|
|
7892
|
+
| 'gemini-3.8-flash';
|
|
7883
7893
|
|
|
7884
7894
|
/**
|
|
7885
7895
|
* Type of model choice
|
|
@@ -7926,7 +7936,7 @@ export namespace CallCreateWebCallParams {
|
|
|
7926
7936
|
knowledge_base_ids?: Array<string> | null;
|
|
7927
7937
|
|
|
7928
7938
|
/**
|
|
7929
|
-
* Select the underlying text LLM. If not set, would default to gpt-
|
|
7939
|
+
* Select the underlying text LLM. If not set, would default to gpt-5.6-terra.
|
|
7930
7940
|
*/
|
|
7931
7941
|
model?:
|
|
7932
7942
|
| 'gpt-4.1'
|
|
@@ -7952,6 +7962,8 @@ export namespace CallCreateWebCallParams {
|
|
|
7952
7962
|
| 'gemini-3.5-flash'
|
|
7953
7963
|
| 'gemini-3.5-flash-lite'
|
|
7954
7964
|
| 'gemini-3.6-flash'
|
|
7965
|
+
| 'gemini-3.7-flash'
|
|
7966
|
+
| 'gemini-3.8-flash'
|
|
7955
7967
|
| null;
|
|
7956
7968
|
|
|
7957
7969
|
/**
|
|
@@ -8491,7 +8503,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
8491
8503
|
> | null;
|
|
8492
8504
|
|
|
8493
8505
|
/**
|
|
8494
|
-
* The model to use for post call analysis. Default to gpt-
|
|
8506
|
+
* The model to use for post call analysis. Default to gpt-5.6-terra.
|
|
8495
8507
|
*/
|
|
8496
8508
|
post_call_analysis_model?:
|
|
8497
8509
|
| 'gpt-4.1'
|
|
@@ -8517,6 +8529,8 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
8517
8529
|
| 'gemini-3.5-flash'
|
|
8518
8530
|
| 'gemini-3.5-flash-lite'
|
|
8519
8531
|
| 'gemini-3.6-flash'
|
|
8532
|
+
| 'gemini-3.7-flash'
|
|
8533
|
+
| 'gemini-3.8-flash'
|
|
8520
8534
|
| null;
|
|
8521
8535
|
|
|
8522
8536
|
/**
|
|
@@ -9274,7 +9288,9 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
9274
9288
|
| 'gemini-3.1-flash-lite'
|
|
9275
9289
|
| 'gemini-3.5-flash'
|
|
9276
9290
|
| 'gemini-3.5-flash-lite'
|
|
9277
|
-
| 'gemini-3.6-flash'
|
|
9291
|
+
| 'gemini-3.6-flash'
|
|
9292
|
+
| 'gemini-3.7-flash'
|
|
9293
|
+
| 'gemini-3.8-flash';
|
|
9278
9294
|
|
|
9279
9295
|
/**
|
|
9280
9296
|
* Type of model choice
|
|
@@ -9321,7 +9337,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
9321
9337
|
knowledge_base_ids?: Array<string> | null;
|
|
9322
9338
|
|
|
9323
9339
|
/**
|
|
9324
|
-
* Select the underlying text LLM. If not set, would default to gpt-
|
|
9340
|
+
* Select the underlying text LLM. If not set, would default to gpt-5.6-terra.
|
|
9325
9341
|
*/
|
|
9326
9342
|
model?:
|
|
9327
9343
|
| 'gpt-4.1'
|
|
@@ -9347,6 +9363,8 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
9347
9363
|
| 'gemini-3.5-flash'
|
|
9348
9364
|
| 'gemini-3.5-flash-lite'
|
|
9349
9365
|
| 'gemini-3.6-flash'
|
|
9366
|
+
| 'gemini-3.7-flash'
|
|
9367
|
+
| 'gemini-3.8-flash'
|
|
9350
9368
|
| null;
|
|
9351
9369
|
|
|
9352
9370
|
/**
|
|
@@ -149,15 +149,6 @@ export class ChatAgent extends APIResource {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
/**
|
|
153
|
-
* Get chat agent versions. Large version histories may be truncated.
|
|
154
|
-
*
|
|
155
|
-
* @deprecated
|
|
156
|
-
*/
|
|
157
|
-
getVersions(agentID: string, options?: RequestOptions): APIPromise<ChatAgentGetVersionsResponse> {
|
|
158
|
-
return this._client.get(path`/get-chat-agent-versions/${agentID}`, options);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
152
|
/**
|
|
162
153
|
* Publish an existing draft version in place.
|
|
163
154
|
*
|
|
@@ -422,7 +413,7 @@ export interface ChatAgentResponse {
|
|
|
422
413
|
> | null;
|
|
423
414
|
|
|
424
415
|
/**
|
|
425
|
-
* The model to use for post chat analysis. Default to gpt-
|
|
416
|
+
* The model to use for post chat analysis. Default to gpt-5.6-terra.
|
|
426
417
|
*/
|
|
427
418
|
post_chat_analysis_model?:
|
|
428
419
|
| 'gpt-4.1'
|
|
@@ -448,6 +439,8 @@ export interface ChatAgentResponse {
|
|
|
448
439
|
| 'gemini-3.5-flash'
|
|
449
440
|
| 'gemini-3.5-flash-lite'
|
|
450
441
|
| 'gemini-3.6-flash'
|
|
442
|
+
| 'gemini-3.7-flash'
|
|
443
|
+
| 'gemini-3.8-flash'
|
|
451
444
|
| null;
|
|
452
445
|
|
|
453
446
|
/**
|
|
@@ -843,8 +836,6 @@ export namespace ChatAgentListResponse {
|
|
|
843
836
|
|
|
844
837
|
export type ChatAgentCreateVersionResponse = AgentAPI.AgentResponse | ChatAgentResponse;
|
|
845
838
|
|
|
846
|
-
export type ChatAgentGetVersionsResponse = Array<ChatAgentResponse>;
|
|
847
|
-
|
|
848
839
|
export interface ChatAgentCreateParams {
|
|
849
840
|
/**
|
|
850
841
|
* The Response Engine to attach to the agent. It is used to generate responses for
|
|
@@ -1064,7 +1055,7 @@ export interface ChatAgentCreateParams {
|
|
|
1064
1055
|
> | null;
|
|
1065
1056
|
|
|
1066
1057
|
/**
|
|
1067
|
-
* The model to use for post chat analysis. Default to gpt-
|
|
1058
|
+
* The model to use for post chat analysis. Default to gpt-5.6-terra.
|
|
1068
1059
|
*/
|
|
1069
1060
|
post_chat_analysis_model?:
|
|
1070
1061
|
| 'gpt-4.1'
|
|
@@ -1090,6 +1081,8 @@ export interface ChatAgentCreateParams {
|
|
|
1090
1081
|
| 'gemini-3.5-flash'
|
|
1091
1082
|
| 'gemini-3.5-flash-lite'
|
|
1092
1083
|
| 'gemini-3.6-flash'
|
|
1084
|
+
| 'gemini-3.7-flash'
|
|
1085
|
+
| 'gemini-3.8-flash'
|
|
1093
1086
|
| null;
|
|
1094
1087
|
|
|
1095
1088
|
/**
|
|
@@ -1653,7 +1646,7 @@ export interface ChatAgentUpdateParams {
|
|
|
1653
1646
|
> | null;
|
|
1654
1647
|
|
|
1655
1648
|
/**
|
|
1656
|
-
* Body param: The model to use for post chat analysis. Default to gpt-
|
|
1649
|
+
* Body param: The model to use for post chat analysis. Default to gpt-5.6-terra.
|
|
1657
1650
|
*/
|
|
1658
1651
|
post_chat_analysis_model?:
|
|
1659
1652
|
| 'gpt-4.1'
|
|
@@ -1679,6 +1672,8 @@ export interface ChatAgentUpdateParams {
|
|
|
1679
1672
|
| 'gemini-3.5-flash'
|
|
1680
1673
|
| 'gemini-3.5-flash-lite'
|
|
1681
1674
|
| 'gemini-3.6-flash'
|
|
1675
|
+
| 'gemini-3.7-flash'
|
|
1676
|
+
| 'gemini-3.8-flash'
|
|
1682
1677
|
| null;
|
|
1683
1678
|
|
|
1684
1679
|
/**
|
|
@@ -2110,7 +2105,6 @@ export declare namespace ChatAgent {
|
|
|
2110
2105
|
type ChatAgentResponse as ChatAgentResponse,
|
|
2111
2106
|
type ChatAgentListResponse as ChatAgentListResponse,
|
|
2112
2107
|
type ChatAgentCreateVersionResponse as ChatAgentCreateVersionResponse,
|
|
2113
|
-
type ChatAgentGetVersionsResponse as ChatAgentGetVersionsResponse,
|
|
2114
2108
|
type ChatAgentCreateParams as ChatAgentCreateParams,
|
|
2115
2109
|
type ChatAgentRetrieveParams as ChatAgentRetrieveParams,
|
|
2116
2110
|
type ChatAgentUpdateParams as ChatAgentUpdateParams,
|
package/src/resources/chat.ts
CHANGED
|
@@ -987,6 +987,11 @@ export namespace ChatListParams {
|
|
|
987
987
|
*/
|
|
988
988
|
agent?: Array<FilterCriteria.Agent>;
|
|
989
989
|
|
|
990
|
+
/**
|
|
991
|
+
* Filter by the agent's phone number for SMS chats.
|
|
992
|
+
*/
|
|
993
|
+
agent_number?: FilterCriteria.AgentNumber;
|
|
994
|
+
|
|
990
995
|
/**
|
|
991
996
|
* Filter by agent environment tag(s) (e.g. "prod", "staging").
|
|
992
997
|
*/
|
|
@@ -1004,6 +1009,8 @@ export namespace ChatListParams {
|
|
|
1004
1009
|
*/
|
|
1005
1010
|
chat_successful?: FilterCriteria.ChatSuccessful;
|
|
1006
1011
|
|
|
1012
|
+
chat_type?: FilterCriteria.ChatType;
|
|
1013
|
+
|
|
1007
1014
|
/**
|
|
1008
1015
|
* Filter by total chat cost in cents.
|
|
1009
1016
|
*/
|
|
@@ -1037,6 +1044,10 @@ export namespace ChatListParams {
|
|
|
1037
1044
|
| FilterCriteria.PresentFilter
|
|
1038
1045
|
>;
|
|
1039
1046
|
|
|
1047
|
+
data_storage_setting?: FilterCriteria.DataStorageSetting;
|
|
1048
|
+
|
|
1049
|
+
direction?: FilterCriteria.Direction;
|
|
1050
|
+
|
|
1040
1051
|
disconnection_reason?: FilterCriteria.DisconnectionReason;
|
|
1041
1052
|
|
|
1042
1053
|
/**
|
|
@@ -1054,6 +1065,11 @@ export namespace ChatListParams {
|
|
|
1054
1065
|
*/
|
|
1055
1066
|
start_timestamp?: FilterCriteria.NumberFilter | FilterCriteria.RangeFilter;
|
|
1056
1067
|
|
|
1068
|
+
/**
|
|
1069
|
+
* Filter by the user's phone number for SMS chats.
|
|
1070
|
+
*/
|
|
1071
|
+
user_number?: FilterCriteria.UserNumber;
|
|
1072
|
+
|
|
1057
1073
|
user_sentiment?: FilterCriteria.UserSentiment;
|
|
1058
1074
|
}
|
|
1059
1075
|
|
|
@@ -1070,6 +1086,20 @@ export namespace ChatListParams {
|
|
|
1070
1086
|
version?: Array<number>;
|
|
1071
1087
|
}
|
|
1072
1088
|
|
|
1089
|
+
/**
|
|
1090
|
+
* Filter by the agent's phone number for SMS chats.
|
|
1091
|
+
*/
|
|
1092
|
+
export interface AgentNumber {
|
|
1093
|
+
/**
|
|
1094
|
+
* eq: equal, ne: not equal, sw: starts with, ew: ends with, co: contains
|
|
1095
|
+
*/
|
|
1096
|
+
op: 'eq' | 'ne' | 'sw' | 'ew' | 'co';
|
|
1097
|
+
|
|
1098
|
+
type: 'string';
|
|
1099
|
+
|
|
1100
|
+
value: string;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1073
1103
|
/**
|
|
1074
1104
|
* Filter by agent environment tag(s) (e.g. "prod", "staging").
|
|
1075
1105
|
*/
|
|
@@ -1128,6 +1158,17 @@ export namespace ChatListParams {
|
|
|
1128
1158
|
value: boolean;
|
|
1129
1159
|
}
|
|
1130
1160
|
|
|
1161
|
+
export interface ChatType {
|
|
1162
|
+
/**
|
|
1163
|
+
* in: value is one of the listed values
|
|
1164
|
+
*/
|
|
1165
|
+
op: 'in';
|
|
1166
|
+
|
|
1167
|
+
type: 'enum';
|
|
1168
|
+
|
|
1169
|
+
value: Array<'api_chat' | 'sms_chat'>;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1131
1172
|
export interface NumberFilter {
|
|
1132
1173
|
/**
|
|
1133
1174
|
* eq: equal, ne: not equal, gt: greater than, ge: greater than or equal, lt: less
|
|
@@ -1344,6 +1385,28 @@ export namespace ChatListParams {
|
|
|
1344
1385
|
key?: string;
|
|
1345
1386
|
}
|
|
1346
1387
|
|
|
1388
|
+
export interface DataStorageSetting {
|
|
1389
|
+
/**
|
|
1390
|
+
* in: value is one of the listed values
|
|
1391
|
+
*/
|
|
1392
|
+
op: 'in';
|
|
1393
|
+
|
|
1394
|
+
type: 'enum';
|
|
1395
|
+
|
|
1396
|
+
value: Array<'everything' | 'everything_except_pii' | 'basic_attributes_only'>;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
export interface Direction {
|
|
1400
|
+
/**
|
|
1401
|
+
* in: value is one of the listed values
|
|
1402
|
+
*/
|
|
1403
|
+
op: 'in';
|
|
1404
|
+
|
|
1405
|
+
type: 'enum';
|
|
1406
|
+
|
|
1407
|
+
value: Array<'inbound' | 'outbound'>;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1347
1410
|
export interface DisconnectionReason {
|
|
1348
1411
|
/**
|
|
1349
1412
|
* in: value is one of the listed values
|
|
@@ -1468,6 +1531,20 @@ export namespace ChatListParams {
|
|
|
1468
1531
|
value: Array<number>;
|
|
1469
1532
|
}
|
|
1470
1533
|
|
|
1534
|
+
/**
|
|
1535
|
+
* Filter by the user's phone number for SMS chats.
|
|
1536
|
+
*/
|
|
1537
|
+
export interface UserNumber {
|
|
1538
|
+
/**
|
|
1539
|
+
* eq: equal, ne: not equal, sw: starts with, ew: ends with, co: contains
|
|
1540
|
+
*/
|
|
1541
|
+
op: 'eq' | 'ne' | 'sw' | 'ew' | 'co';
|
|
1542
|
+
|
|
1543
|
+
type: 'string';
|
|
1544
|
+
|
|
1545
|
+
value: string;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1471
1548
|
export interface UserSentiment {
|
|
1472
1549
|
/**
|
|
1473
1550
|
* in: value is one of the listed values
|
package/src/resources/contact.ts
CHANGED
|
@@ -150,6 +150,11 @@ export interface ContactResponse {
|
|
|
150
150
|
*/
|
|
151
151
|
phone_number: string;
|
|
152
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Tags assigned to the contact.
|
|
155
|
+
*/
|
|
156
|
+
contact_tags?: Array<string>;
|
|
157
|
+
|
|
153
158
|
/**
|
|
154
159
|
* Number of conversations (calls and chats) associated with this contact.
|
|
155
160
|
*/
|
|
@@ -185,11 +190,6 @@ export interface ContactResponse {
|
|
|
185
190
|
*/
|
|
186
191
|
last_name?: string;
|
|
187
192
|
|
|
188
|
-
/**
|
|
189
|
-
* Tags assigned to the contact.
|
|
190
|
-
*/
|
|
191
|
-
tags?: Array<string>;
|
|
192
|
-
|
|
193
193
|
/**
|
|
194
194
|
* Epoch milliseconds when the contact was last modified.
|
|
195
195
|
*/
|
|
@@ -425,6 +425,11 @@ export interface ContactCreateParams {
|
|
|
425
425
|
*/
|
|
426
426
|
phone_number: string;
|
|
427
427
|
|
|
428
|
+
/**
|
|
429
|
+
* Full set of tags for the contact.
|
|
430
|
+
*/
|
|
431
|
+
contact_tags?: Array<string>;
|
|
432
|
+
|
|
428
433
|
/**
|
|
429
434
|
* Values must match the types defined in CRM config custom fields. Set a value to
|
|
430
435
|
* null to clear it.
|
|
@@ -442,14 +447,14 @@ export interface ContactCreateParams {
|
|
|
442
447
|
* Last name of the contact.
|
|
443
448
|
*/
|
|
444
449
|
last_name?: string;
|
|
450
|
+
}
|
|
445
451
|
|
|
452
|
+
export interface ContactUpdateParams {
|
|
446
453
|
/**
|
|
447
|
-
* Full set of tags for the contact.
|
|
454
|
+
* Full replacement set of tags for the contact.
|
|
448
455
|
*/
|
|
449
|
-
|
|
450
|
-
}
|
|
456
|
+
contact_tags?: Array<string>;
|
|
451
457
|
|
|
452
|
-
export interface ContactUpdateParams {
|
|
453
458
|
/**
|
|
454
459
|
* Values must match the types defined in CRM config custom fields. Set a value to
|
|
455
460
|
* null to clear it.
|
|
@@ -467,11 +472,6 @@ export interface ContactUpdateParams {
|
|
|
467
472
|
* Last name of the contact.
|
|
468
473
|
*/
|
|
469
474
|
last_name?: string;
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* Full replacement set of tags for the contact.
|
|
473
|
-
*/
|
|
474
|
-
tags?: Array<string>;
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
export interface ContactListParams {
|
|
@@ -520,6 +520,11 @@ export namespace ContactListParams {
|
|
|
520
520
|
export interface FilterCriteria {
|
|
521
521
|
contact_id?: FilterCriteria.ContactID;
|
|
522
522
|
|
|
523
|
+
/**
|
|
524
|
+
* Match contacts that have any of the listed tags.
|
|
525
|
+
*/
|
|
526
|
+
contact_tags?: FilterCriteria.ContactTags;
|
|
527
|
+
|
|
523
528
|
/**
|
|
524
529
|
* Filter by custom contact fields defined in CRM config.
|
|
525
530
|
*/
|
|
@@ -553,11 +558,6 @@ export namespace ContactListParams {
|
|
|
553
558
|
* number.
|
|
554
559
|
*/
|
|
555
560
|
phone_number?: FilterCriteria.PhoneNumber;
|
|
556
|
-
|
|
557
|
-
/**
|
|
558
|
-
* Match contacts that have any of the listed tags.
|
|
559
|
-
*/
|
|
560
|
-
tags?: FilterCriteria.Tags;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
563
|
export namespace FilterCriteria {
|
|
@@ -572,6 +572,20 @@ export namespace ContactListParams {
|
|
|
572
572
|
value: string;
|
|
573
573
|
}
|
|
574
574
|
|
|
575
|
+
/**
|
|
576
|
+
* Match contacts that have any of the listed tags.
|
|
577
|
+
*/
|
|
578
|
+
export interface ContactTags {
|
|
579
|
+
/**
|
|
580
|
+
* in: value is one of the listed values
|
|
581
|
+
*/
|
|
582
|
+
op: 'in';
|
|
583
|
+
|
|
584
|
+
type: 'enum';
|
|
585
|
+
|
|
586
|
+
value: Array<string>;
|
|
587
|
+
}
|
|
588
|
+
|
|
575
589
|
export interface StringFilter {
|
|
576
590
|
/**
|
|
577
591
|
* eq: equal, ne: not equal, sw: starts with, ew: ends with, co: contains
|
|
@@ -738,20 +752,6 @@ export namespace ContactListParams {
|
|
|
738
752
|
|
|
739
753
|
value: string;
|
|
740
754
|
}
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* Match contacts that have any of the listed tags.
|
|
744
|
-
*/
|
|
745
|
-
export interface Tags {
|
|
746
|
-
/**
|
|
747
|
-
* in: value is one of the listed values
|
|
748
|
-
*/
|
|
749
|
-
op: 'in';
|
|
750
|
-
|
|
751
|
-
type: 'enum';
|
|
752
|
-
|
|
753
|
-
value: Array<string>;
|
|
754
|
-
}
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
|
|
@@ -829,15 +829,15 @@ export interface ContactCreateImportParams {
|
|
|
829
829
|
upload_id: string;
|
|
830
830
|
|
|
831
831
|
/**
|
|
832
|
-
*
|
|
832
|
+
* Tags added to every contact in this import. Existing tags are preserved. Omit to
|
|
833
|
+
* leave tags unchanged.
|
|
833
834
|
*/
|
|
834
|
-
|
|
835
|
+
contact_tags?: Array<string>;
|
|
835
836
|
|
|
836
837
|
/**
|
|
837
|
-
*
|
|
838
|
-
* leave tags unchanged.
|
|
838
|
+
* Country for parsing phone numbers without a country code. Defaults to US.
|
|
839
839
|
*/
|
|
840
|
-
|
|
840
|
+
default_country?: string;
|
|
841
841
|
}
|
|
842
842
|
|
|
843
843
|
export namespace ContactCreateImportParams {
|