@epilot/message-client 1.9.0 → 1.10.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/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +6 -1
- package/dist/openapi.d.ts +125 -14
- package/dist/openapi.json +63 -9
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={914:function(e,a,r){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});var t=s(r(240));a.default=t.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/message/messages":{"post":{"operationId":"sendMessage","parameters":[{"in":"query","name":"do_not_create_entities"}],"requestBody":{"content":{"application/json":{}}}},"put":{"operationId":"updateMessage"}},"/v1/message/messages/{id}":{"get":{"operationId":"getMessage","parameters":[{"name":"id","in":"path","required":true}]},"delete":{"operationId":"deleteMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{id}/trash":{"post":{"operationId":"trashMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{id}/untrash":{"post":{"operationId":"untrashMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{id}/read":{"post":{"operationId":"markReadMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{id}/unread":{"post":{"operationId":"markUnreadMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads:search":{"post":{"operationId":"searchThreads","requestBody":{"content":{"application/json":{}}}}},"/v1/message/threads":{"put":{"operationId":"updateThread"}},"/v1/message/threads/{id}":{"delete":{"operationId":"deleteThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/trash":{"post":{"operationId":"trashThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/untrash":{"post":{"operationId":"untrashThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/read":{"post":{"operationId":"markReadThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/unread":{"post":{"operationId":"markUnreadThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/assign":{"post":{"operationId":"assignThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/message/threads/{id}/assign:users":{"post":{"operationId":"assignUsers","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/message/drafts":{"post":{"operationId":"createDraft","requestBody":{"content":{"application/json":{}}}}},"/v1/message/drafts:send":{"post":{"operationId":"sendDraft"}},"/v2/message/messages/{id}":{"get":{"operationId":"getMessageV2","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{messageId}/genai:reply":{"post":{"operationId":"generateSuggestedReply","parameters":[{"name":"messageId","in":"path","required":true},{"name":"threadId","in":"query","required":true}]}},"/v1/message/threads/{threadId}/genai:info":{"get":{"operationId":"getInfo","parameters":[{"name":"threadId","in":"path","required":true},{"name":"messageId","in":"query"}]}},"/v1/message/threads/{threadId}/messages/{messageId}/genai:info":{"patch":{"operationId":"patchInfo","parameters":[{"name":"threadId","in":"path","required":true},{"name":"messageId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}}},"components":{}}')}},a={},r=function r(s){var t=a[s];if(void 0!==t)return t.exports;var d=a[s]={exports:{}};return e[s].call(d.exports,d,d.exports,r),d.exports}(914),s=exports;for(var t in r)s[t]=r[t];r.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={914:function(e,a,r){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});var t=s(r(240));a.default=t.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/message/messages":{"post":{"operationId":"sendMessage","parameters":[{"in":"query","name":"do_not_create_entities"}],"requestBody":{"content":{"application/json":{}}}},"put":{"operationId":"updateMessage"}},"/v1/message/messages/{id}":{"get":{"operationId":"getMessage","parameters":[{"name":"id","in":"path","required":true}]},"delete":{"operationId":"deleteMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{id}/trash":{"post":{"operationId":"trashMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{id}/untrash":{"post":{"operationId":"untrashMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{id}/read":{"post":{"operationId":"markReadMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{id}/unread":{"post":{"operationId":"markUnreadMessage","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads:search":{"post":{"operationId":"searchThreads","requestBody":{"content":{"application/json":{}}}}},"/v1/message/threads":{"put":{"operationId":"updateThread"}},"/v1/message/threads/{id}":{"delete":{"operationId":"deleteThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/trash":{"post":{"operationId":"trashThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/untrash":{"post":{"operationId":"untrashThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/read":{"post":{"operationId":"markReadThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/unread":{"post":{"operationId":"markUnreadThread","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/threads/{id}/assign":{"post":{"operationId":"assignThread","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/message/threads/{id}/assign:users":{"post":{"operationId":"assignUsers","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}},"/v1/message/drafts":{"post":{"operationId":"createDraft","requestBody":{"content":{"application/json":{}}}}},"/v1/message/drafts:send":{"post":{"operationId":"sendDraft"}},"/v2/message/messages/{id}":{"get":{"operationId":"getMessageV2","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/message/messages/{messageId}/genai:reply":{"post":{"operationId":"generateSuggestedReply","parameters":[{"name":"messageId","in":"path","required":true},{"name":"threadId","in":"query","required":true}]}},"/v1/message/threads/{threadId}/genai:info":{"get":{"operationId":"getInfo","parameters":[{"name":"threadId","in":"path","required":true},{"name":"messageId","in":"query"}]}},"/v1/message/threads/{threadId}/messages/{messageId}/genai:info":{"patch":{"operationId":"patchInfo","parameters":[{"name":"threadId","in":"path","required":true},{"name":"messageId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}}}}},"components":{},"servers":[{"url":"https://message.sls.epilot.io"}]}')}},a={},r=function r(s){var t=a[s];if(void 0!==t)return t.exports;var d=a[s]={exports:{}};return e[s].call(d.exports,d,d.exports,r),d.exports}(914),s=exports;for(var t in r)s[t]=r[t];r.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -127,15 +127,25 @@ declare namespace Components {
|
|
|
127
127
|
/**
|
|
128
128
|
* Generated summary
|
|
129
129
|
* example:
|
|
130
|
-
*
|
|
130
|
+
* [
|
|
131
|
+
* "Customer is interested in solar panels"
|
|
132
|
+
* ]
|
|
131
133
|
*/
|
|
132
|
-
summary?: string | null;
|
|
134
|
+
summary?: string[] | null;
|
|
133
135
|
/**
|
|
134
|
-
*
|
|
136
|
+
* Topic of the GenAI Summary
|
|
135
137
|
* example:
|
|
136
|
-
*
|
|
138
|
+
* Product enquiry
|
|
139
|
+
*/
|
|
140
|
+
topic?: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* Recommended next steps
|
|
143
|
+
* example:
|
|
144
|
+
* [
|
|
145
|
+
* "The agent should approve the refund"
|
|
146
|
+
* ]
|
|
137
147
|
*/
|
|
138
|
-
next_steps?: string | null;
|
|
148
|
+
next_steps?: string[] | null;
|
|
139
149
|
/**
|
|
140
150
|
* Tags
|
|
141
151
|
* example:
|
|
@@ -796,15 +806,25 @@ declare namespace Paths {
|
|
|
796
806
|
/**
|
|
797
807
|
* Generated summary
|
|
798
808
|
* example:
|
|
799
|
-
*
|
|
809
|
+
* [
|
|
810
|
+
* "Customer is interested in solar panels"
|
|
811
|
+
* ]
|
|
800
812
|
*/
|
|
801
|
-
summary?: string | null;
|
|
813
|
+
summary?: string[] | null;
|
|
802
814
|
/**
|
|
803
|
-
*
|
|
815
|
+
* Topic of the GenAI Summary
|
|
804
816
|
* example:
|
|
805
|
-
*
|
|
817
|
+
* Product enquiry
|
|
806
818
|
*/
|
|
807
|
-
|
|
819
|
+
topic?: string | null;
|
|
820
|
+
/**
|
|
821
|
+
* Recommended next steps
|
|
822
|
+
* example:
|
|
823
|
+
* [
|
|
824
|
+
* "The agent should approve the refund"
|
|
825
|
+
* ]
|
|
826
|
+
*/
|
|
827
|
+
next_steps?: string[] | null;
|
|
808
828
|
/**
|
|
809
829
|
* Tags
|
|
810
830
|
* example:
|
|
@@ -1210,14 +1230,105 @@ declare namespace Paths {
|
|
|
1210
1230
|
messageId: Parameters.MessageId /* UUID */;
|
|
1211
1231
|
}
|
|
1212
1232
|
export interface RequestBody {
|
|
1233
|
+
[name: string]: any;
|
|
1213
1234
|
/**
|
|
1214
1235
|
* example:
|
|
1215
1236
|
* positive
|
|
1216
1237
|
*/
|
|
1217
|
-
rating?: string;
|
|
1238
|
+
rating?: string | null;
|
|
1239
|
+
/**
|
|
1240
|
+
* example:
|
|
1241
|
+
* Good summary
|
|
1242
|
+
*/
|
|
1243
|
+
feedback?: string | null;
|
|
1218
1244
|
}
|
|
1219
1245
|
namespace Responses {
|
|
1220
|
-
export interface $
|
|
1246
|
+
export interface $200 {
|
|
1247
|
+
/**
|
|
1248
|
+
* Organization ID
|
|
1249
|
+
* example:
|
|
1250
|
+
* 739224
|
|
1251
|
+
*/
|
|
1252
|
+
org_id?: string;
|
|
1253
|
+
/**
|
|
1254
|
+
* Thread ID
|
|
1255
|
+
* example:
|
|
1256
|
+
* 07b8b522-a993-4021-8fae-fd19f330ee60
|
|
1257
|
+
*/
|
|
1258
|
+
thread_id?: string;
|
|
1259
|
+
/**
|
|
1260
|
+
* Message ID
|
|
1261
|
+
* example:
|
|
1262
|
+
* c03eb411-9f75-4ff0-9404-5a61c5b8798d
|
|
1263
|
+
*/
|
|
1264
|
+
message_id?: string;
|
|
1265
|
+
/**
|
|
1266
|
+
* Job type
|
|
1267
|
+
*/
|
|
1268
|
+
type?: "INFO" | "REPLY";
|
|
1269
|
+
payload?: {
|
|
1270
|
+
/**
|
|
1271
|
+
* Generated summary
|
|
1272
|
+
* example:
|
|
1273
|
+
* [
|
|
1274
|
+
* "Customer is interested in solar panels"
|
|
1275
|
+
* ]
|
|
1276
|
+
*/
|
|
1277
|
+
summary?: string[] | null;
|
|
1278
|
+
/**
|
|
1279
|
+
* Topic of the GenAI Summary
|
|
1280
|
+
* example:
|
|
1281
|
+
* Product enquiry
|
|
1282
|
+
*/
|
|
1283
|
+
topic?: string | null;
|
|
1284
|
+
/**
|
|
1285
|
+
* Recommended next steps
|
|
1286
|
+
* example:
|
|
1287
|
+
* [
|
|
1288
|
+
* "The agent should approve the refund"
|
|
1289
|
+
* ]
|
|
1290
|
+
*/
|
|
1291
|
+
next_steps?: string[] | null;
|
|
1292
|
+
/**
|
|
1293
|
+
* Tags
|
|
1294
|
+
* example:
|
|
1295
|
+
* [
|
|
1296
|
+
* "solar",
|
|
1297
|
+
* "quote"
|
|
1298
|
+
* ]
|
|
1299
|
+
*/
|
|
1300
|
+
tags?: string[] | null;
|
|
1301
|
+
/**
|
|
1302
|
+
* Status of the GenAI job
|
|
1303
|
+
* example:
|
|
1304
|
+
* COMPLETED
|
|
1305
|
+
*/
|
|
1306
|
+
status?: "IN_PROGRESS" | "COMPLETED" | "FAILED";
|
|
1307
|
+
/**
|
|
1308
|
+
* Progress of the GenAI job in percentage
|
|
1309
|
+
* example:
|
|
1310
|
+
* 100
|
|
1311
|
+
*/
|
|
1312
|
+
progress?: number;
|
|
1313
|
+
/**
|
|
1314
|
+
* Error message if the job failed
|
|
1315
|
+
* example:
|
|
1316
|
+
* Failed to generate summary
|
|
1317
|
+
*/
|
|
1318
|
+
error?: string | null;
|
|
1319
|
+
/**
|
|
1320
|
+
* Job created date
|
|
1321
|
+
* example:
|
|
1322
|
+
* 1612900000000
|
|
1323
|
+
*/
|
|
1324
|
+
created_at?: number;
|
|
1325
|
+
/**
|
|
1326
|
+
* Job last updated date
|
|
1327
|
+
* example:
|
|
1328
|
+
* 1612900000000
|
|
1329
|
+
*/
|
|
1330
|
+
updated_at?: number;
|
|
1331
|
+
};
|
|
1221
1332
|
}
|
|
1222
1333
|
export interface $400 {
|
|
1223
1334
|
}
|
|
@@ -1966,7 +2077,7 @@ export interface OperationMethods {
|
|
|
1966
2077
|
parameters?: Parameters<Paths.PatchInfo.PathParameters> | null,
|
|
1967
2078
|
data?: Paths.PatchInfo.RequestBody,
|
|
1968
2079
|
config?: AxiosRequestConfig
|
|
1969
|
-
): OperationResponse<Paths.PatchInfo.Responses.$
|
|
2080
|
+
): OperationResponse<Paths.PatchInfo.Responses.$200>
|
|
1970
2081
|
}
|
|
1971
2082
|
|
|
1972
2083
|
export interface PathsDictionary {
|
|
@@ -2257,7 +2368,7 @@ export interface PathsDictionary {
|
|
|
2257
2368
|
parameters?: Parameters<Paths.PatchInfo.PathParameters> | null,
|
|
2258
2369
|
data?: Paths.PatchInfo.RequestBody,
|
|
2259
2370
|
config?: AxiosRequestConfig
|
|
2260
|
-
): OperationResponse<Paths.PatchInfo.Responses.$
|
|
2371
|
+
): OperationResponse<Paths.PatchInfo.Responses.$200>
|
|
2261
2372
|
}
|
|
2262
2373
|
}
|
|
2263
2374
|
|
package/dist/openapi.json
CHANGED
|
@@ -907,16 +907,49 @@
|
|
|
907
907
|
"properties": {
|
|
908
908
|
"rating": {
|
|
909
909
|
"type": "string",
|
|
910
|
+
"nullable": true,
|
|
910
911
|
"example": "positive"
|
|
912
|
+
},
|
|
913
|
+
"feedback": {
|
|
914
|
+
"type": "string",
|
|
915
|
+
"nullable": true,
|
|
916
|
+
"example": "Good summary"
|
|
911
917
|
}
|
|
912
|
-
}
|
|
918
|
+
},
|
|
919
|
+
"additionalProperties": true
|
|
913
920
|
}
|
|
914
921
|
}
|
|
915
922
|
}
|
|
916
923
|
},
|
|
917
924
|
"responses": {
|
|
918
|
-
"
|
|
919
|
-
"description": "Successfully updated,
|
|
925
|
+
"200": {
|
|
926
|
+
"description": "Successfully updated, returns the updated info",
|
|
927
|
+
"content": {
|
|
928
|
+
"application/json": {
|
|
929
|
+
"schema": {
|
|
930
|
+
"allOf": [
|
|
931
|
+
{
|
|
932
|
+
"$ref": "#/components/schemas/GenAIJobOutput"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"type": "object",
|
|
936
|
+
"properties": {
|
|
937
|
+
"payload": {
|
|
938
|
+
"allOf": [
|
|
939
|
+
{
|
|
940
|
+
"$ref": "#/components/schemas/GenAIInfoJobOutputPayload"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"$ref": "#/components/schemas/GenAIJobOutputPayload"
|
|
944
|
+
}
|
|
945
|
+
]
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
]
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
920
953
|
},
|
|
921
954
|
"400": {
|
|
922
955
|
"description": "Invalid input"
|
|
@@ -1468,15 +1501,31 @@
|
|
|
1468
1501
|
"type": "object",
|
|
1469
1502
|
"properties": {
|
|
1470
1503
|
"summary": {
|
|
1471
|
-
"type": "
|
|
1504
|
+
"type": "array",
|
|
1472
1505
|
"description": "Generated summary",
|
|
1473
|
-
"
|
|
1506
|
+
"items": {
|
|
1507
|
+
"type": "string"
|
|
1508
|
+
},
|
|
1509
|
+
"example": [
|
|
1510
|
+
"Customer is interested in solar panels"
|
|
1511
|
+
],
|
|
1474
1512
|
"nullable": true
|
|
1475
1513
|
},
|
|
1476
|
-
"
|
|
1514
|
+
"topic": {
|
|
1477
1515
|
"type": "string",
|
|
1478
|
-
"description": "
|
|
1479
|
-
"example": "
|
|
1516
|
+
"description": "Topic of the GenAI Summary",
|
|
1517
|
+
"example": "Product enquiry",
|
|
1518
|
+
"nullable": true
|
|
1519
|
+
},
|
|
1520
|
+
"next_steps": {
|
|
1521
|
+
"type": "array",
|
|
1522
|
+
"description": "Recommended next steps",
|
|
1523
|
+
"items": {
|
|
1524
|
+
"type": "string"
|
|
1525
|
+
},
|
|
1526
|
+
"example": [
|
|
1527
|
+
"The agent should approve the refund"
|
|
1528
|
+
],
|
|
1480
1529
|
"nullable": true
|
|
1481
1530
|
},
|
|
1482
1531
|
"tags": {
|
|
@@ -1494,5 +1543,10 @@
|
|
|
1494
1543
|
}
|
|
1495
1544
|
}
|
|
1496
1545
|
}
|
|
1497
|
-
}
|
|
1546
|
+
},
|
|
1547
|
+
"servers": [
|
|
1548
|
+
{
|
|
1549
|
+
"url": "https://message.sls.epilot.io"
|
|
1550
|
+
}
|
|
1551
|
+
]
|
|
1498
1552
|
}
|