getricky 0.1.13 → 0.1.15
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/generated/sdk.gen.d.ts +2 -2
- package/dist/cjs/generated/sdk.gen.js +2 -2
- package/dist/cjs/generated/types.gen.d.ts +21 -54
- package/dist/esm/generated/sdk.gen.d.ts +2 -2
- package/dist/esm/generated/sdk.gen.js +2 -2
- package/dist/esm/generated/types.gen.d.ts +21 -54
- package/package.json +1 -1
|
@@ -426,7 +426,7 @@ export declare class RickyApi extends HeyApiClient {
|
|
|
426
426
|
/**
|
|
427
427
|
* Create an agent
|
|
428
428
|
*
|
|
429
|
-
* Creates an AI agent with its instructions,
|
|
429
|
+
* Creates an AI agent with its instructions, voice and capabilities. It answers no conversation until you assign it to one or make it a channel default in Ricky.
|
|
430
430
|
*
|
|
431
431
|
* Scope: `agents:write`.
|
|
432
432
|
*/
|
|
@@ -458,7 +458,7 @@ export declare class RickyApi extends HeyApiClient {
|
|
|
458
458
|
/**
|
|
459
459
|
* Get agent options
|
|
460
460
|
*
|
|
461
|
-
* The
|
|
461
|
+
* The voices and capabilities an agent can be configured with.
|
|
462
462
|
*
|
|
463
463
|
* Scope: `agents:read`.
|
|
464
464
|
*/
|
|
@@ -823,7 +823,7 @@ class RickyApi extends HeyApiClient {
|
|
|
823
823
|
/**
|
|
824
824
|
* Create an agent
|
|
825
825
|
*
|
|
826
|
-
* Creates an AI agent with its instructions,
|
|
826
|
+
* Creates an AI agent with its instructions, voice and capabilities. It answers no conversation until you assign it to one or make it a channel default in Ricky.
|
|
827
827
|
*
|
|
828
828
|
* Scope: `agents:write`.
|
|
829
829
|
*/
|
|
@@ -891,7 +891,7 @@ class RickyApi extends HeyApiClient {
|
|
|
891
891
|
/**
|
|
892
892
|
* Get agent options
|
|
893
893
|
*
|
|
894
|
-
* The
|
|
894
|
+
* The voices and capabilities an agent can be configured with.
|
|
895
895
|
*
|
|
896
896
|
* Scope: `agents:read`.
|
|
897
897
|
*/
|
|
@@ -45,10 +45,6 @@ export type Agent = {
|
|
|
45
45
|
* How the agent answers customers.
|
|
46
46
|
*/
|
|
47
47
|
instructions: string | null;
|
|
48
|
-
/**
|
|
49
|
-
* Model that writes its replies; one `id` of `GET /agent-options`.
|
|
50
|
-
*/
|
|
51
|
-
model: string | null;
|
|
52
48
|
/**
|
|
53
49
|
* Voice on calls; one of `GET /agent-options`.
|
|
54
50
|
*/
|
|
@@ -78,27 +74,6 @@ export type Agent = {
|
|
|
78
74
|
* What an agent can be configured with.
|
|
79
75
|
*/
|
|
80
76
|
export type AgentOptions = {
|
|
81
|
-
/**
|
|
82
|
-
* Models an agent can use.
|
|
83
|
-
*/
|
|
84
|
-
models: Array<{
|
|
85
|
-
/**
|
|
86
|
-
* Model ID, the value of `model`.
|
|
87
|
-
*/
|
|
88
|
-
id: string;
|
|
89
|
-
/**
|
|
90
|
-
* Display name.
|
|
91
|
-
*/
|
|
92
|
-
label: string;
|
|
93
|
-
/**
|
|
94
|
-
* What the model reads.
|
|
95
|
-
*/
|
|
96
|
-
input: Array<'text' | 'image'>;
|
|
97
|
-
}>;
|
|
98
|
-
/**
|
|
99
|
-
* Model of an agent created without one.
|
|
100
|
-
*/
|
|
101
|
-
default_model: string;
|
|
102
77
|
/**
|
|
103
78
|
* Voices an agent can use.
|
|
104
79
|
*/
|
|
@@ -157,7 +132,7 @@ export type ContactIdentity = {
|
|
|
157
132
|
/**
|
|
158
133
|
* Channel this identity belongs to.
|
|
159
134
|
*/
|
|
160
|
-
channel_type: 'whatsapp' | 'instagram' | 'messenger';
|
|
135
|
+
channel_type: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
161
136
|
/**
|
|
162
137
|
* Address on that channel: phone digits for WhatsApp, account ID otherwise.
|
|
163
138
|
*/
|
|
@@ -312,7 +287,7 @@ export type Channel = {
|
|
|
312
287
|
/**
|
|
313
288
|
* Messaging channel.
|
|
314
289
|
*/
|
|
315
|
-
type: 'whatsapp' | 'instagram' | 'messenger';
|
|
290
|
+
type: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
316
291
|
/**
|
|
317
292
|
* Name shown in Ricky.
|
|
318
293
|
*/
|
|
@@ -373,7 +348,7 @@ export type Conversation = {
|
|
|
373
348
|
* Channel ID.
|
|
374
349
|
*/
|
|
375
350
|
id: string;
|
|
376
|
-
type: 'whatsapp' | 'instagram' | 'messenger';
|
|
351
|
+
type: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
377
352
|
};
|
|
378
353
|
contact: {
|
|
379
354
|
id: string | null;
|
|
@@ -1238,7 +1213,7 @@ export type ConversationsReport = {
|
|
|
1238
1213
|
/**
|
|
1239
1214
|
* The channel filter the report applied.
|
|
1240
1215
|
*/
|
|
1241
|
-
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
1216
|
+
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1242
1217
|
/**
|
|
1243
1218
|
* The period.
|
|
1244
1219
|
*/
|
|
@@ -1288,7 +1263,7 @@ export type ConversationsReport = {
|
|
|
1288
1263
|
/**
|
|
1289
1264
|
* Channel.
|
|
1290
1265
|
*/
|
|
1291
|
-
channel: 'whatsapp' | 'instagram' | 'messenger';
|
|
1266
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1292
1267
|
/**
|
|
1293
1268
|
* Conversations with at least one customer message in the period.
|
|
1294
1269
|
*/
|
|
@@ -1354,7 +1329,7 @@ export type MessagesReport = {
|
|
|
1354
1329
|
/**
|
|
1355
1330
|
* The channel filter the report applied.
|
|
1356
1331
|
*/
|
|
1357
|
-
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
1332
|
+
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1358
1333
|
/**
|
|
1359
1334
|
* The period.
|
|
1360
1335
|
*/
|
|
@@ -1438,7 +1413,7 @@ export type MessagesReport = {
|
|
|
1438
1413
|
/**
|
|
1439
1414
|
* Channel.
|
|
1440
1415
|
*/
|
|
1441
|
-
channel: 'whatsapp' | 'instagram' | 'messenger';
|
|
1416
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1442
1417
|
/**
|
|
1443
1418
|
* Messages customers sent.
|
|
1444
1419
|
*/
|
|
@@ -1562,7 +1537,7 @@ export type DashboardReport = {
|
|
|
1562
1537
|
/**
|
|
1563
1538
|
* Channel.
|
|
1564
1539
|
*/
|
|
1565
|
-
channel: 'whatsapp' | 'instagram' | 'messenger';
|
|
1540
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1566
1541
|
/**
|
|
1567
1542
|
* Open conversations.
|
|
1568
1543
|
*/
|
|
@@ -1604,7 +1579,7 @@ export type DashboardReport = {
|
|
|
1604
1579
|
/**
|
|
1605
1580
|
* Channel.
|
|
1606
1581
|
*/
|
|
1607
|
-
channel: 'whatsapp' | 'instagram' | 'messenger';
|
|
1582
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1608
1583
|
/**
|
|
1609
1584
|
* Name the channel reports for the customer.
|
|
1610
1585
|
*/
|
|
@@ -1635,7 +1610,7 @@ export type TeamReport = {
|
|
|
1635
1610
|
/**
|
|
1636
1611
|
* The channel filter the report applied.
|
|
1637
1612
|
*/
|
|
1638
|
-
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
1613
|
+
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1639
1614
|
/**
|
|
1640
1615
|
* Every member and active AI agent, most messages and closes first.
|
|
1641
1616
|
*/
|
|
@@ -1951,7 +1926,7 @@ export type ResponsesReport = {
|
|
|
1951
1926
|
/**
|
|
1952
1927
|
* The channel filter the report applied.
|
|
1953
1928
|
*/
|
|
1954
|
-
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
1929
|
+
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1955
1930
|
/**
|
|
1956
1931
|
* The responder filter the report applied: `all`, `humans`, `agents` or an ID.
|
|
1957
1932
|
*/
|
|
@@ -2079,7 +2054,7 @@ export type ResponsesReport = {
|
|
|
2079
2054
|
/**
|
|
2080
2055
|
* Channel.
|
|
2081
2056
|
*/
|
|
2082
|
-
channel: 'whatsapp' | 'instagram' | 'messenger';
|
|
2057
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
2083
2058
|
/**
|
|
2084
2059
|
* Responses in the period.
|
|
2085
2060
|
*/
|
|
@@ -2120,7 +2095,7 @@ export type ResponsesReport = {
|
|
|
2120
2095
|
/**
|
|
2121
2096
|
* The app an `external` responder used; null otherwise.
|
|
2122
2097
|
*/
|
|
2123
|
-
channel: 'whatsapp' | 'instagram' | 'messenger' | null;
|
|
2098
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat' | null;
|
|
2124
2099
|
/**
|
|
2125
2100
|
* Responses in the period.
|
|
2126
2101
|
*/
|
|
@@ -2155,7 +2130,7 @@ export type ResolutionsReport = {
|
|
|
2155
2130
|
/**
|
|
2156
2131
|
* The channel filter the report applied.
|
|
2157
2132
|
*/
|
|
2158
|
-
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
2133
|
+
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
2159
2134
|
/**
|
|
2160
2135
|
* The period.
|
|
2161
2136
|
*/
|
|
@@ -2230,7 +2205,7 @@ export type ResolutionsReport = {
|
|
|
2230
2205
|
/**
|
|
2231
2206
|
* Channel.
|
|
2232
2207
|
*/
|
|
2233
|
-
channel: 'whatsapp' | 'instagram' | 'messenger';
|
|
2208
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
2234
2209
|
/**
|
|
2235
2210
|
* Closes in the period.
|
|
2236
2211
|
*/
|
|
@@ -2995,10 +2970,6 @@ export type CreateAgent = {
|
|
|
2995
2970
|
* How the agent answers customers.
|
|
2996
2971
|
*/
|
|
2997
2972
|
instructions?: string | null;
|
|
2998
|
-
/**
|
|
2999
|
-
* A model `id` of `GET /agent-options`. Without one, the default model.
|
|
3000
|
-
*/
|
|
3001
|
-
model?: string;
|
|
3002
2973
|
/**
|
|
3003
2974
|
* A voice of `GET /agent-options`. Without one, the default voice.
|
|
3004
2975
|
*/
|
|
@@ -3028,10 +2999,6 @@ export type UpdateAgent = {
|
|
|
3028
2999
|
* How the agent answers customers.
|
|
3029
3000
|
*/
|
|
3030
3001
|
instructions?: string | null;
|
|
3031
|
-
/**
|
|
3032
|
-
* A model `id` of `GET /agent-options`. Without one, the default model.
|
|
3033
|
-
*/
|
|
3034
|
-
model?: string;
|
|
3035
3002
|
/**
|
|
3036
3003
|
* A voice of `GET /agent-options`. Without one, the default voice.
|
|
3037
3004
|
*/
|
|
@@ -4816,7 +4783,7 @@ export type ListContactsData = {
|
|
|
4816
4783
|
/**
|
|
4817
4784
|
* Only contacts reachable on this channel.
|
|
4818
4785
|
*/
|
|
4819
|
-
channel?: 'whatsapp' | 'instagram' | 'messenger';
|
|
4786
|
+
channel?: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
4820
4787
|
};
|
|
4821
4788
|
url: '/contacts';
|
|
4822
4789
|
};
|
|
@@ -7091,7 +7058,7 @@ export type GetConversationsReportData = {
|
|
|
7091
7058
|
/**
|
|
7092
7059
|
* Only this channel.
|
|
7093
7060
|
*/
|
|
7094
|
-
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
7061
|
+
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
7095
7062
|
};
|
|
7096
7063
|
url: '/reports/conversations';
|
|
7097
7064
|
};
|
|
@@ -7142,7 +7109,7 @@ export type GetMessagesReportData = {
|
|
|
7142
7109
|
/**
|
|
7143
7110
|
* Only this channel.
|
|
7144
7111
|
*/
|
|
7145
|
-
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
7112
|
+
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
7146
7113
|
};
|
|
7147
7114
|
url: '/reports/messages';
|
|
7148
7115
|
};
|
|
@@ -7193,7 +7160,7 @@ export type GetResponsesReportData = {
|
|
|
7193
7160
|
/**
|
|
7194
7161
|
* Only this channel.
|
|
7195
7162
|
*/
|
|
7196
|
-
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
7163
|
+
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
7197
7164
|
/**
|
|
7198
7165
|
* Only responses from people, in Ricky or in the channel's own app (`humans`), from AI agents (`agents`), or from one member or AI agent by ID.
|
|
7199
7166
|
*/
|
|
@@ -7248,7 +7215,7 @@ export type GetResolutionsReportData = {
|
|
|
7248
7215
|
/**
|
|
7249
7216
|
* Only this channel.
|
|
7250
7217
|
*/
|
|
7251
|
-
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
7218
|
+
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
7252
7219
|
};
|
|
7253
7220
|
url: '/reports/resolutions';
|
|
7254
7221
|
};
|
|
@@ -7299,7 +7266,7 @@ export type GetTeamReportData = {
|
|
|
7299
7266
|
/**
|
|
7300
7267
|
* Only this channel.
|
|
7301
7268
|
*/
|
|
7302
|
-
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
7269
|
+
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
7303
7270
|
};
|
|
7304
7271
|
url: '/reports/team';
|
|
7305
7272
|
};
|
|
@@ -426,7 +426,7 @@ export declare class RickyApi extends HeyApiClient {
|
|
|
426
426
|
/**
|
|
427
427
|
* Create an agent
|
|
428
428
|
*
|
|
429
|
-
* Creates an AI agent with its instructions,
|
|
429
|
+
* Creates an AI agent with its instructions, voice and capabilities. It answers no conversation until you assign it to one or make it a channel default in Ricky.
|
|
430
430
|
*
|
|
431
431
|
* Scope: `agents:write`.
|
|
432
432
|
*/
|
|
@@ -458,7 +458,7 @@ export declare class RickyApi extends HeyApiClient {
|
|
|
458
458
|
/**
|
|
459
459
|
* Get agent options
|
|
460
460
|
*
|
|
461
|
-
* The
|
|
461
|
+
* The voices and capabilities an agent can be configured with.
|
|
462
462
|
*
|
|
463
463
|
* Scope: `agents:read`.
|
|
464
464
|
*/
|
|
@@ -820,7 +820,7 @@ export class RickyApi extends HeyApiClient {
|
|
|
820
820
|
/**
|
|
821
821
|
* Create an agent
|
|
822
822
|
*
|
|
823
|
-
* Creates an AI agent with its instructions,
|
|
823
|
+
* Creates an AI agent with its instructions, voice and capabilities. It answers no conversation until you assign it to one or make it a channel default in Ricky.
|
|
824
824
|
*
|
|
825
825
|
* Scope: `agents:write`.
|
|
826
826
|
*/
|
|
@@ -888,7 +888,7 @@ export class RickyApi extends HeyApiClient {
|
|
|
888
888
|
/**
|
|
889
889
|
* Get agent options
|
|
890
890
|
*
|
|
891
|
-
* The
|
|
891
|
+
* The voices and capabilities an agent can be configured with.
|
|
892
892
|
*
|
|
893
893
|
* Scope: `agents:read`.
|
|
894
894
|
*/
|
|
@@ -45,10 +45,6 @@ export type Agent = {
|
|
|
45
45
|
* How the agent answers customers.
|
|
46
46
|
*/
|
|
47
47
|
instructions: string | null;
|
|
48
|
-
/**
|
|
49
|
-
* Model that writes its replies; one `id` of `GET /agent-options`.
|
|
50
|
-
*/
|
|
51
|
-
model: string | null;
|
|
52
48
|
/**
|
|
53
49
|
* Voice on calls; one of `GET /agent-options`.
|
|
54
50
|
*/
|
|
@@ -78,27 +74,6 @@ export type Agent = {
|
|
|
78
74
|
* What an agent can be configured with.
|
|
79
75
|
*/
|
|
80
76
|
export type AgentOptions = {
|
|
81
|
-
/**
|
|
82
|
-
* Models an agent can use.
|
|
83
|
-
*/
|
|
84
|
-
models: Array<{
|
|
85
|
-
/**
|
|
86
|
-
* Model ID, the value of `model`.
|
|
87
|
-
*/
|
|
88
|
-
id: string;
|
|
89
|
-
/**
|
|
90
|
-
* Display name.
|
|
91
|
-
*/
|
|
92
|
-
label: string;
|
|
93
|
-
/**
|
|
94
|
-
* What the model reads.
|
|
95
|
-
*/
|
|
96
|
-
input: Array<'text' | 'image'>;
|
|
97
|
-
}>;
|
|
98
|
-
/**
|
|
99
|
-
* Model of an agent created without one.
|
|
100
|
-
*/
|
|
101
|
-
default_model: string;
|
|
102
77
|
/**
|
|
103
78
|
* Voices an agent can use.
|
|
104
79
|
*/
|
|
@@ -157,7 +132,7 @@ export type ContactIdentity = {
|
|
|
157
132
|
/**
|
|
158
133
|
* Channel this identity belongs to.
|
|
159
134
|
*/
|
|
160
|
-
channel_type: 'whatsapp' | 'instagram' | 'messenger';
|
|
135
|
+
channel_type: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
161
136
|
/**
|
|
162
137
|
* Address on that channel: phone digits for WhatsApp, account ID otherwise.
|
|
163
138
|
*/
|
|
@@ -312,7 +287,7 @@ export type Channel = {
|
|
|
312
287
|
/**
|
|
313
288
|
* Messaging channel.
|
|
314
289
|
*/
|
|
315
|
-
type: 'whatsapp' | 'instagram' | 'messenger';
|
|
290
|
+
type: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
316
291
|
/**
|
|
317
292
|
* Name shown in Ricky.
|
|
318
293
|
*/
|
|
@@ -373,7 +348,7 @@ export type Conversation = {
|
|
|
373
348
|
* Channel ID.
|
|
374
349
|
*/
|
|
375
350
|
id: string;
|
|
376
|
-
type: 'whatsapp' | 'instagram' | 'messenger';
|
|
351
|
+
type: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
377
352
|
};
|
|
378
353
|
contact: {
|
|
379
354
|
id: string | null;
|
|
@@ -1238,7 +1213,7 @@ export type ConversationsReport = {
|
|
|
1238
1213
|
/**
|
|
1239
1214
|
* The channel filter the report applied.
|
|
1240
1215
|
*/
|
|
1241
|
-
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
1216
|
+
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1242
1217
|
/**
|
|
1243
1218
|
* The period.
|
|
1244
1219
|
*/
|
|
@@ -1288,7 +1263,7 @@ export type ConversationsReport = {
|
|
|
1288
1263
|
/**
|
|
1289
1264
|
* Channel.
|
|
1290
1265
|
*/
|
|
1291
|
-
channel: 'whatsapp' | 'instagram' | 'messenger';
|
|
1266
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1292
1267
|
/**
|
|
1293
1268
|
* Conversations with at least one customer message in the period.
|
|
1294
1269
|
*/
|
|
@@ -1354,7 +1329,7 @@ export type MessagesReport = {
|
|
|
1354
1329
|
/**
|
|
1355
1330
|
* The channel filter the report applied.
|
|
1356
1331
|
*/
|
|
1357
|
-
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
1332
|
+
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1358
1333
|
/**
|
|
1359
1334
|
* The period.
|
|
1360
1335
|
*/
|
|
@@ -1438,7 +1413,7 @@ export type MessagesReport = {
|
|
|
1438
1413
|
/**
|
|
1439
1414
|
* Channel.
|
|
1440
1415
|
*/
|
|
1441
|
-
channel: 'whatsapp' | 'instagram' | 'messenger';
|
|
1416
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1442
1417
|
/**
|
|
1443
1418
|
* Messages customers sent.
|
|
1444
1419
|
*/
|
|
@@ -1562,7 +1537,7 @@ export type DashboardReport = {
|
|
|
1562
1537
|
/**
|
|
1563
1538
|
* Channel.
|
|
1564
1539
|
*/
|
|
1565
|
-
channel: 'whatsapp' | 'instagram' | 'messenger';
|
|
1540
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1566
1541
|
/**
|
|
1567
1542
|
* Open conversations.
|
|
1568
1543
|
*/
|
|
@@ -1604,7 +1579,7 @@ export type DashboardReport = {
|
|
|
1604
1579
|
/**
|
|
1605
1580
|
* Channel.
|
|
1606
1581
|
*/
|
|
1607
|
-
channel: 'whatsapp' | 'instagram' | 'messenger';
|
|
1582
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1608
1583
|
/**
|
|
1609
1584
|
* Name the channel reports for the customer.
|
|
1610
1585
|
*/
|
|
@@ -1635,7 +1610,7 @@ export type TeamReport = {
|
|
|
1635
1610
|
/**
|
|
1636
1611
|
* The channel filter the report applied.
|
|
1637
1612
|
*/
|
|
1638
|
-
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
1613
|
+
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1639
1614
|
/**
|
|
1640
1615
|
* Every member and active AI agent, most messages and closes first.
|
|
1641
1616
|
*/
|
|
@@ -1951,7 +1926,7 @@ export type ResponsesReport = {
|
|
|
1951
1926
|
/**
|
|
1952
1927
|
* The channel filter the report applied.
|
|
1953
1928
|
*/
|
|
1954
|
-
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
1929
|
+
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
1955
1930
|
/**
|
|
1956
1931
|
* The responder filter the report applied: `all`, `humans`, `agents` or an ID.
|
|
1957
1932
|
*/
|
|
@@ -2079,7 +2054,7 @@ export type ResponsesReport = {
|
|
|
2079
2054
|
/**
|
|
2080
2055
|
* Channel.
|
|
2081
2056
|
*/
|
|
2082
|
-
channel: 'whatsapp' | 'instagram' | 'messenger';
|
|
2057
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
2083
2058
|
/**
|
|
2084
2059
|
* Responses in the period.
|
|
2085
2060
|
*/
|
|
@@ -2120,7 +2095,7 @@ export type ResponsesReport = {
|
|
|
2120
2095
|
/**
|
|
2121
2096
|
* The app an `external` responder used; null otherwise.
|
|
2122
2097
|
*/
|
|
2123
|
-
channel: 'whatsapp' | 'instagram' | 'messenger' | null;
|
|
2098
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat' | null;
|
|
2124
2099
|
/**
|
|
2125
2100
|
* Responses in the period.
|
|
2126
2101
|
*/
|
|
@@ -2155,7 +2130,7 @@ export type ResolutionsReport = {
|
|
|
2155
2130
|
/**
|
|
2156
2131
|
* The channel filter the report applied.
|
|
2157
2132
|
*/
|
|
2158
|
-
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
2133
|
+
channel: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
2159
2134
|
/**
|
|
2160
2135
|
* The period.
|
|
2161
2136
|
*/
|
|
@@ -2230,7 +2205,7 @@ export type ResolutionsReport = {
|
|
|
2230
2205
|
/**
|
|
2231
2206
|
* Channel.
|
|
2232
2207
|
*/
|
|
2233
|
-
channel: 'whatsapp' | 'instagram' | 'messenger';
|
|
2208
|
+
channel: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
2234
2209
|
/**
|
|
2235
2210
|
* Closes in the period.
|
|
2236
2211
|
*/
|
|
@@ -2995,10 +2970,6 @@ export type CreateAgent = {
|
|
|
2995
2970
|
* How the agent answers customers.
|
|
2996
2971
|
*/
|
|
2997
2972
|
instructions?: string | null;
|
|
2998
|
-
/**
|
|
2999
|
-
* A model `id` of `GET /agent-options`. Without one, the default model.
|
|
3000
|
-
*/
|
|
3001
|
-
model?: string;
|
|
3002
2973
|
/**
|
|
3003
2974
|
* A voice of `GET /agent-options`. Without one, the default voice.
|
|
3004
2975
|
*/
|
|
@@ -3028,10 +2999,6 @@ export type UpdateAgent = {
|
|
|
3028
2999
|
* How the agent answers customers.
|
|
3029
3000
|
*/
|
|
3030
3001
|
instructions?: string | null;
|
|
3031
|
-
/**
|
|
3032
|
-
* A model `id` of `GET /agent-options`. Without one, the default model.
|
|
3033
|
-
*/
|
|
3034
|
-
model?: string;
|
|
3035
3002
|
/**
|
|
3036
3003
|
* A voice of `GET /agent-options`. Without one, the default voice.
|
|
3037
3004
|
*/
|
|
@@ -4816,7 +4783,7 @@ export type ListContactsData = {
|
|
|
4816
4783
|
/**
|
|
4817
4784
|
* Only contacts reachable on this channel.
|
|
4818
4785
|
*/
|
|
4819
|
-
channel?: 'whatsapp' | 'instagram' | 'messenger';
|
|
4786
|
+
channel?: 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
4820
4787
|
};
|
|
4821
4788
|
url: '/contacts';
|
|
4822
4789
|
};
|
|
@@ -7091,7 +7058,7 @@ export type GetConversationsReportData = {
|
|
|
7091
7058
|
/**
|
|
7092
7059
|
* Only this channel.
|
|
7093
7060
|
*/
|
|
7094
|
-
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
7061
|
+
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
7095
7062
|
};
|
|
7096
7063
|
url: '/reports/conversations';
|
|
7097
7064
|
};
|
|
@@ -7142,7 +7109,7 @@ export type GetMessagesReportData = {
|
|
|
7142
7109
|
/**
|
|
7143
7110
|
* Only this channel.
|
|
7144
7111
|
*/
|
|
7145
|
-
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
7112
|
+
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
7146
7113
|
};
|
|
7147
7114
|
url: '/reports/messages';
|
|
7148
7115
|
};
|
|
@@ -7193,7 +7160,7 @@ export type GetResponsesReportData = {
|
|
|
7193
7160
|
/**
|
|
7194
7161
|
* Only this channel.
|
|
7195
7162
|
*/
|
|
7196
|
-
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
7163
|
+
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
7197
7164
|
/**
|
|
7198
7165
|
* Only responses from people, in Ricky or in the channel's own app (`humans`), from AI agents (`agents`), or from one member or AI agent by ID.
|
|
7199
7166
|
*/
|
|
@@ -7248,7 +7215,7 @@ export type GetResolutionsReportData = {
|
|
|
7248
7215
|
/**
|
|
7249
7216
|
* Only this channel.
|
|
7250
7217
|
*/
|
|
7251
|
-
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
7218
|
+
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
7252
7219
|
};
|
|
7253
7220
|
url: '/reports/resolutions';
|
|
7254
7221
|
};
|
|
@@ -7299,7 +7266,7 @@ export type GetTeamReportData = {
|
|
|
7299
7266
|
/**
|
|
7300
7267
|
* Only this channel.
|
|
7301
7268
|
*/
|
|
7302
|
-
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger';
|
|
7269
|
+
channel?: 'all' | 'whatsapp' | 'instagram' | 'messenger' | 'webchat';
|
|
7303
7270
|
};
|
|
7304
7271
|
url: '/reports/team';
|
|
7305
7272
|
};
|