@epilot/message-client 1.9.0 → 1.10.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/definition.js +1 -1
- package/dist/openapi-runtime.json +6 -1
- package/dist/openapi.d.ts +108 -8
- package/dist/openapi.json +50 -6
- 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,9 +127,17 @@ declare namespace Components {
|
|
|
127
127
|
/**
|
|
128
128
|
* Generated summary
|
|
129
129
|
* example:
|
|
130
|
-
*
|
|
130
|
+
* [
|
|
131
|
+
* "Customer is interested in solar panels"
|
|
132
|
+
* ]
|
|
133
|
+
*/
|
|
134
|
+
summary?: string[] | null;
|
|
135
|
+
/**
|
|
136
|
+
* Topic of the GenAI Summary
|
|
137
|
+
* example:
|
|
138
|
+
* Product enquiry
|
|
131
139
|
*/
|
|
132
|
-
|
|
140
|
+
topic?: string | null;
|
|
133
141
|
/**
|
|
134
142
|
* Next steps
|
|
135
143
|
* example:
|
|
@@ -796,9 +804,17 @@ declare namespace Paths {
|
|
|
796
804
|
/**
|
|
797
805
|
* Generated summary
|
|
798
806
|
* example:
|
|
799
|
-
*
|
|
807
|
+
* [
|
|
808
|
+
* "Customer is interested in solar panels"
|
|
809
|
+
* ]
|
|
810
|
+
*/
|
|
811
|
+
summary?: string[] | null;
|
|
812
|
+
/**
|
|
813
|
+
* Topic of the GenAI Summary
|
|
814
|
+
* example:
|
|
815
|
+
* Product enquiry
|
|
800
816
|
*/
|
|
801
|
-
|
|
817
|
+
topic?: string | null;
|
|
802
818
|
/**
|
|
803
819
|
* Next steps
|
|
804
820
|
* example:
|
|
@@ -1210,14 +1226,98 @@ declare namespace Paths {
|
|
|
1210
1226
|
messageId: Parameters.MessageId /* UUID */;
|
|
1211
1227
|
}
|
|
1212
1228
|
export interface RequestBody {
|
|
1229
|
+
[name: string]: any;
|
|
1213
1230
|
/**
|
|
1214
1231
|
* example:
|
|
1215
1232
|
* positive
|
|
1216
1233
|
*/
|
|
1217
|
-
rating?: string;
|
|
1234
|
+
rating?: string | null;
|
|
1218
1235
|
}
|
|
1219
1236
|
namespace Responses {
|
|
1220
|
-
export interface $
|
|
1237
|
+
export interface $200 {
|
|
1238
|
+
/**
|
|
1239
|
+
* Organization ID
|
|
1240
|
+
* example:
|
|
1241
|
+
* 739224
|
|
1242
|
+
*/
|
|
1243
|
+
org_id?: string;
|
|
1244
|
+
/**
|
|
1245
|
+
* Thread ID
|
|
1246
|
+
* example:
|
|
1247
|
+
* 07b8b522-a993-4021-8fae-fd19f330ee60
|
|
1248
|
+
*/
|
|
1249
|
+
thread_id?: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* Message ID
|
|
1252
|
+
* example:
|
|
1253
|
+
* c03eb411-9f75-4ff0-9404-5a61c5b8798d
|
|
1254
|
+
*/
|
|
1255
|
+
message_id?: string;
|
|
1256
|
+
/**
|
|
1257
|
+
* Job type
|
|
1258
|
+
*/
|
|
1259
|
+
type?: "INFO" | "REPLY";
|
|
1260
|
+
payload?: {
|
|
1261
|
+
/**
|
|
1262
|
+
* Generated summary
|
|
1263
|
+
* example:
|
|
1264
|
+
* [
|
|
1265
|
+
* "Customer is interested in solar panels"
|
|
1266
|
+
* ]
|
|
1267
|
+
*/
|
|
1268
|
+
summary?: string[] | null;
|
|
1269
|
+
/**
|
|
1270
|
+
* Topic of the GenAI Summary
|
|
1271
|
+
* example:
|
|
1272
|
+
* Product enquiry
|
|
1273
|
+
*/
|
|
1274
|
+
topic?: string | null;
|
|
1275
|
+
/**
|
|
1276
|
+
* Next steps
|
|
1277
|
+
* example:
|
|
1278
|
+
* Send a quote
|
|
1279
|
+
*/
|
|
1280
|
+
next_steps?: string | null;
|
|
1281
|
+
/**
|
|
1282
|
+
* Tags
|
|
1283
|
+
* example:
|
|
1284
|
+
* [
|
|
1285
|
+
* "solar",
|
|
1286
|
+
* "quote"
|
|
1287
|
+
* ]
|
|
1288
|
+
*/
|
|
1289
|
+
tags?: string[] | null;
|
|
1290
|
+
/**
|
|
1291
|
+
* Status of the GenAI job
|
|
1292
|
+
* example:
|
|
1293
|
+
* COMPLETED
|
|
1294
|
+
*/
|
|
1295
|
+
status?: "IN_PROGRESS" | "COMPLETED" | "FAILED";
|
|
1296
|
+
/**
|
|
1297
|
+
* Progress of the GenAI job in percentage
|
|
1298
|
+
* example:
|
|
1299
|
+
* 100
|
|
1300
|
+
*/
|
|
1301
|
+
progress?: number;
|
|
1302
|
+
/**
|
|
1303
|
+
* Error message if the job failed
|
|
1304
|
+
* example:
|
|
1305
|
+
* Failed to generate summary
|
|
1306
|
+
*/
|
|
1307
|
+
error?: string | null;
|
|
1308
|
+
/**
|
|
1309
|
+
* Job created date
|
|
1310
|
+
* example:
|
|
1311
|
+
* 1612900000000
|
|
1312
|
+
*/
|
|
1313
|
+
created_at?: number;
|
|
1314
|
+
/**
|
|
1315
|
+
* Job last updated date
|
|
1316
|
+
* example:
|
|
1317
|
+
* 1612900000000
|
|
1318
|
+
*/
|
|
1319
|
+
updated_at?: number;
|
|
1320
|
+
};
|
|
1221
1321
|
}
|
|
1222
1322
|
export interface $400 {
|
|
1223
1323
|
}
|
|
@@ -1966,7 +2066,7 @@ export interface OperationMethods {
|
|
|
1966
2066
|
parameters?: Parameters<Paths.PatchInfo.PathParameters> | null,
|
|
1967
2067
|
data?: Paths.PatchInfo.RequestBody,
|
|
1968
2068
|
config?: AxiosRequestConfig
|
|
1969
|
-
): OperationResponse<Paths.PatchInfo.Responses.$
|
|
2069
|
+
): OperationResponse<Paths.PatchInfo.Responses.$200>
|
|
1970
2070
|
}
|
|
1971
2071
|
|
|
1972
2072
|
export interface PathsDictionary {
|
|
@@ -2257,7 +2357,7 @@ export interface PathsDictionary {
|
|
|
2257
2357
|
parameters?: Parameters<Paths.PatchInfo.PathParameters> | null,
|
|
2258
2358
|
data?: Paths.PatchInfo.RequestBody,
|
|
2259
2359
|
config?: AxiosRequestConfig
|
|
2260
|
-
): OperationResponse<Paths.PatchInfo.Responses.$
|
|
2360
|
+
): OperationResponse<Paths.PatchInfo.Responses.$200>
|
|
2261
2361
|
}
|
|
2262
2362
|
}
|
|
2263
2363
|
|
package/dist/openapi.json
CHANGED
|
@@ -907,16 +907,44 @@
|
|
|
907
907
|
"properties": {
|
|
908
908
|
"rating": {
|
|
909
909
|
"type": "string",
|
|
910
|
+
"nullable": true,
|
|
910
911
|
"example": "positive"
|
|
911
912
|
}
|
|
912
|
-
}
|
|
913
|
+
},
|
|
914
|
+
"additionalProperties": true
|
|
913
915
|
}
|
|
914
916
|
}
|
|
915
917
|
}
|
|
916
918
|
},
|
|
917
919
|
"responses": {
|
|
918
|
-
"
|
|
919
|
-
"description": "Successfully updated,
|
|
920
|
+
"200": {
|
|
921
|
+
"description": "Successfully updated, returns the updated info",
|
|
922
|
+
"content": {
|
|
923
|
+
"application/json": {
|
|
924
|
+
"schema": {
|
|
925
|
+
"allOf": [
|
|
926
|
+
{
|
|
927
|
+
"$ref": "#/components/schemas/GenAIJobOutput"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"type": "object",
|
|
931
|
+
"properties": {
|
|
932
|
+
"payload": {
|
|
933
|
+
"allOf": [
|
|
934
|
+
{
|
|
935
|
+
"$ref": "#/components/schemas/GenAIInfoJobOutputPayload"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"$ref": "#/components/schemas/GenAIJobOutputPayload"
|
|
939
|
+
}
|
|
940
|
+
]
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
]
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
920
948
|
},
|
|
921
949
|
"400": {
|
|
922
950
|
"description": "Invalid input"
|
|
@@ -1468,9 +1496,20 @@
|
|
|
1468
1496
|
"type": "object",
|
|
1469
1497
|
"properties": {
|
|
1470
1498
|
"summary": {
|
|
1471
|
-
"type": "
|
|
1499
|
+
"type": "array",
|
|
1472
1500
|
"description": "Generated summary",
|
|
1473
|
-
"
|
|
1501
|
+
"items": {
|
|
1502
|
+
"type": "string"
|
|
1503
|
+
},
|
|
1504
|
+
"example": [
|
|
1505
|
+
"Customer is interested in solar panels"
|
|
1506
|
+
],
|
|
1507
|
+
"nullable": true
|
|
1508
|
+
},
|
|
1509
|
+
"topic": {
|
|
1510
|
+
"type": "string",
|
|
1511
|
+
"description": "Topic of the GenAI Summary",
|
|
1512
|
+
"example": "Product enquiry",
|
|
1474
1513
|
"nullable": true
|
|
1475
1514
|
},
|
|
1476
1515
|
"next_steps": {
|
|
@@ -1494,5 +1533,10 @@
|
|
|
1494
1533
|
}
|
|
1495
1534
|
}
|
|
1496
1535
|
}
|
|
1497
|
-
}
|
|
1536
|
+
},
|
|
1537
|
+
"servers": [
|
|
1538
|
+
{
|
|
1539
|
+
"url": "https://message.sls.epilot.io"
|
|
1540
|
+
}
|
|
1541
|
+
]
|
|
1498
1542
|
}
|