@epilot/message-client 1.10.3 → 1.12.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 +0 -56
- package/dist/openapi.d.ts +5 -593
- package/dist/openapi.json +10 -380
- 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}]}}
|
|
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}]}}},"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})})();
|
|
@@ -231,62 +231,6 @@
|
|
|
231
231
|
}
|
|
232
232
|
]
|
|
233
233
|
}
|
|
234
|
-
},
|
|
235
|
-
"/v1/message/messages/{messageId}/genai:reply": {
|
|
236
|
-
"post": {
|
|
237
|
-
"operationId": "generateSuggestedReply",
|
|
238
|
-
"parameters": [
|
|
239
|
-
{
|
|
240
|
-
"name": "messageId",
|
|
241
|
-
"in": "path",
|
|
242
|
-
"required": true
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"name": "threadId",
|
|
246
|
-
"in": "query",
|
|
247
|
-
"required": true
|
|
248
|
-
}
|
|
249
|
-
]
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
"/v1/message/threads/{threadId}/genai:info": {
|
|
253
|
-
"get": {
|
|
254
|
-
"operationId": "getInfo",
|
|
255
|
-
"parameters": [
|
|
256
|
-
{
|
|
257
|
-
"name": "threadId",
|
|
258
|
-
"in": "path",
|
|
259
|
-
"required": true
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"name": "messageId",
|
|
263
|
-
"in": "query"
|
|
264
|
-
}
|
|
265
|
-
]
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
"/v1/message/threads/{threadId}/messages/{messageId}/genai:info": {
|
|
269
|
-
"patch": {
|
|
270
|
-
"operationId": "patchInfo",
|
|
271
|
-
"parameters": [
|
|
272
|
-
{
|
|
273
|
-
"name": "threadId",
|
|
274
|
-
"in": "path",
|
|
275
|
-
"required": true
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"name": "messageId",
|
|
279
|
-
"in": "path",
|
|
280
|
-
"required": true
|
|
281
|
-
}
|
|
282
|
-
],
|
|
283
|
-
"requestBody": {
|
|
284
|
-
"required": true,
|
|
285
|
-
"content": {
|
|
286
|
-
"application/json": {}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
234
|
}
|
|
291
235
|
},
|
|
292
236
|
"components": {},
|
package/dist/openapi.d.ts
CHANGED
|
@@ -22,6 +22,11 @@ declare namespace Components {
|
|
|
22
22
|
* messaging@epilot.cloud
|
|
23
23
|
*/
|
|
24
24
|
address: string;
|
|
25
|
+
/**
|
|
26
|
+
* Type of the email, Internal (360 Agents), Partners, External users(Customers)
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
email_type?: "INTERNAL" | "EXTERNAL" | "PARTNER";
|
|
25
30
|
/**
|
|
26
31
|
* Sent message status regarding to this recipient. Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
|
|
27
32
|
*
|
|
@@ -123,129 +128,6 @@ declare namespace Components {
|
|
|
123
128
|
*/
|
|
124
129
|
send_as_link?: boolean;
|
|
125
130
|
}
|
|
126
|
-
export interface GenAIFeedbackPayload {
|
|
127
|
-
/**
|
|
128
|
-
* Rating of the suggested reply
|
|
129
|
-
* example:
|
|
130
|
-
* positive
|
|
131
|
-
*/
|
|
132
|
-
rating?: string | null;
|
|
133
|
-
/**
|
|
134
|
-
* Feedback of the suggested reply
|
|
135
|
-
* example:
|
|
136
|
-
* Good summary
|
|
137
|
-
*/
|
|
138
|
-
feedback?: string | null;
|
|
139
|
-
}
|
|
140
|
-
export interface GenAIInfoJobOutputPayload {
|
|
141
|
-
/**
|
|
142
|
-
* Generated summary
|
|
143
|
-
* example:
|
|
144
|
-
* [
|
|
145
|
-
* "Customer is interested in solar panels"
|
|
146
|
-
* ]
|
|
147
|
-
*/
|
|
148
|
-
summary?: string[] | null;
|
|
149
|
-
/**
|
|
150
|
-
* Topic of the GenAI Summary
|
|
151
|
-
* example:
|
|
152
|
-
* Product enquiry
|
|
153
|
-
*/
|
|
154
|
-
topic?: string | null;
|
|
155
|
-
/**
|
|
156
|
-
* Recommended next steps
|
|
157
|
-
* example:
|
|
158
|
-
* [
|
|
159
|
-
* "The agent should approve the refund"
|
|
160
|
-
* ]
|
|
161
|
-
*/
|
|
162
|
-
next_steps?: string[] | null;
|
|
163
|
-
/**
|
|
164
|
-
* Tags
|
|
165
|
-
* example:
|
|
166
|
-
* [
|
|
167
|
-
* "solar",
|
|
168
|
-
* "quote"
|
|
169
|
-
* ]
|
|
170
|
-
*/
|
|
171
|
-
tags?: string[] | null;
|
|
172
|
-
}
|
|
173
|
-
export interface GenAIJobOutput {
|
|
174
|
-
/**
|
|
175
|
-
* Organization ID
|
|
176
|
-
* example:
|
|
177
|
-
* 739224
|
|
178
|
-
*/
|
|
179
|
-
org_id?: string;
|
|
180
|
-
/**
|
|
181
|
-
* Thread ID
|
|
182
|
-
* example:
|
|
183
|
-
* 07b8b522-a993-4021-8fae-fd19f330ee60
|
|
184
|
-
*/
|
|
185
|
-
thread_id?: string;
|
|
186
|
-
/**
|
|
187
|
-
* Message ID
|
|
188
|
-
* example:
|
|
189
|
-
* c03eb411-9f75-4ff0-9404-5a61c5b8798d
|
|
190
|
-
*/
|
|
191
|
-
message_id?: string;
|
|
192
|
-
/**
|
|
193
|
-
* Job type
|
|
194
|
-
*/
|
|
195
|
-
type?: "INFO" | "REPLY";
|
|
196
|
-
}
|
|
197
|
-
export interface GenAIJobOutputPayload {
|
|
198
|
-
/**
|
|
199
|
-
* Rating of the suggested reply
|
|
200
|
-
* example:
|
|
201
|
-
* positive
|
|
202
|
-
*/
|
|
203
|
-
rating?: string | null;
|
|
204
|
-
/**
|
|
205
|
-
* Feedback of the suggested reply
|
|
206
|
-
* example:
|
|
207
|
-
* Good summary
|
|
208
|
-
*/
|
|
209
|
-
feedback?: string | null;
|
|
210
|
-
/**
|
|
211
|
-
* Status of the GenAI job
|
|
212
|
-
* example:
|
|
213
|
-
* COMPLETED
|
|
214
|
-
*/
|
|
215
|
-
status?: "INITIATED" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
|
|
216
|
-
/**
|
|
217
|
-
* Progress of the GenAI job in percentage
|
|
218
|
-
* example:
|
|
219
|
-
* 100
|
|
220
|
-
*/
|
|
221
|
-
progress?: number;
|
|
222
|
-
/**
|
|
223
|
-
* Error message if the job failed
|
|
224
|
-
* example:
|
|
225
|
-
* Failed to generate summary
|
|
226
|
-
*/
|
|
227
|
-
error?: string | null;
|
|
228
|
-
/**
|
|
229
|
-
* Job created date
|
|
230
|
-
* example:
|
|
231
|
-
* 1612900000000
|
|
232
|
-
*/
|
|
233
|
-
created_at?: number;
|
|
234
|
-
/**
|
|
235
|
-
* Job last updated date
|
|
236
|
-
* example:
|
|
237
|
-
* 1612900000000
|
|
238
|
-
*/
|
|
239
|
-
updated_at?: number;
|
|
240
|
-
}
|
|
241
|
-
export interface GenAIReplyJobOutputPayload {
|
|
242
|
-
/**
|
|
243
|
-
* Suggested reply
|
|
244
|
-
* example:
|
|
245
|
-
* Thank you for your inquiry. We will get back to you shortly.
|
|
246
|
-
*/
|
|
247
|
-
suggested_reply?: string | null;
|
|
248
|
-
}
|
|
249
131
|
export interface Message {
|
|
250
132
|
/**
|
|
251
133
|
* Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
|
|
@@ -783,213 +665,6 @@ declare namespace Paths {
|
|
|
783
665
|
}
|
|
784
666
|
}
|
|
785
667
|
}
|
|
786
|
-
namespace GenerateSuggestedReply {
|
|
787
|
-
namespace Parameters {
|
|
788
|
-
export type MessageId = string; // UUID
|
|
789
|
-
export type ThreadId = string; // UUID
|
|
790
|
-
}
|
|
791
|
-
export interface PathParameters {
|
|
792
|
-
messageId: Parameters.MessageId /* UUID */;
|
|
793
|
-
}
|
|
794
|
-
export interface QueryParameters {
|
|
795
|
-
threadId: Parameters.ThreadId /* UUID */;
|
|
796
|
-
}
|
|
797
|
-
namespace Responses {
|
|
798
|
-
export interface $200 {
|
|
799
|
-
/**
|
|
800
|
-
* Organization ID
|
|
801
|
-
* example:
|
|
802
|
-
* 739224
|
|
803
|
-
*/
|
|
804
|
-
org_id?: string;
|
|
805
|
-
/**
|
|
806
|
-
* Thread ID
|
|
807
|
-
* example:
|
|
808
|
-
* 07b8b522-a993-4021-8fae-fd19f330ee60
|
|
809
|
-
*/
|
|
810
|
-
thread_id?: string;
|
|
811
|
-
/**
|
|
812
|
-
* Message ID
|
|
813
|
-
* example:
|
|
814
|
-
* c03eb411-9f75-4ff0-9404-5a61c5b8798d
|
|
815
|
-
*/
|
|
816
|
-
message_id?: string;
|
|
817
|
-
/**
|
|
818
|
-
* Job type
|
|
819
|
-
*/
|
|
820
|
-
type?: "INFO" | "REPLY";
|
|
821
|
-
payload?: {
|
|
822
|
-
/**
|
|
823
|
-
* Suggested reply
|
|
824
|
-
* example:
|
|
825
|
-
* Thank you for your inquiry. We will get back to you shortly.
|
|
826
|
-
*/
|
|
827
|
-
suggested_reply?: string | null;
|
|
828
|
-
/**
|
|
829
|
-
* Rating of the suggested reply
|
|
830
|
-
* example:
|
|
831
|
-
* positive
|
|
832
|
-
*/
|
|
833
|
-
rating?: string | null;
|
|
834
|
-
/**
|
|
835
|
-
* Feedback of the suggested reply
|
|
836
|
-
* example:
|
|
837
|
-
* Good summary
|
|
838
|
-
*/
|
|
839
|
-
feedback?: string | null;
|
|
840
|
-
/**
|
|
841
|
-
* Status of the GenAI job
|
|
842
|
-
* example:
|
|
843
|
-
* COMPLETED
|
|
844
|
-
*/
|
|
845
|
-
status?: "INITIATED" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
|
|
846
|
-
/**
|
|
847
|
-
* Progress of the GenAI job in percentage
|
|
848
|
-
* example:
|
|
849
|
-
* 100
|
|
850
|
-
*/
|
|
851
|
-
progress?: number;
|
|
852
|
-
/**
|
|
853
|
-
* Error message if the job failed
|
|
854
|
-
* example:
|
|
855
|
-
* Failed to generate summary
|
|
856
|
-
*/
|
|
857
|
-
error?: string | null;
|
|
858
|
-
/**
|
|
859
|
-
* Job created date
|
|
860
|
-
* example:
|
|
861
|
-
* 1612900000000
|
|
862
|
-
*/
|
|
863
|
-
created_at?: number;
|
|
864
|
-
/**
|
|
865
|
-
* Job last updated date
|
|
866
|
-
* example:
|
|
867
|
-
* 1612900000000
|
|
868
|
-
*/
|
|
869
|
-
updated_at?: number;
|
|
870
|
-
};
|
|
871
|
-
}
|
|
872
|
-
export interface $202 {
|
|
873
|
-
}
|
|
874
|
-
export interface $403 {
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
namespace GetInfo {
|
|
879
|
-
namespace Parameters {
|
|
880
|
-
export type MessageId = string; // UUID
|
|
881
|
-
export type ThreadId = string; // UUID
|
|
882
|
-
}
|
|
883
|
-
export interface PathParameters {
|
|
884
|
-
threadId: Parameters.ThreadId /* UUID */;
|
|
885
|
-
}
|
|
886
|
-
export interface QueryParameters {
|
|
887
|
-
messageId?: Parameters.MessageId /* UUID */;
|
|
888
|
-
}
|
|
889
|
-
namespace Responses {
|
|
890
|
-
export interface $200 {
|
|
891
|
-
/**
|
|
892
|
-
* Organization ID
|
|
893
|
-
* example:
|
|
894
|
-
* 739224
|
|
895
|
-
*/
|
|
896
|
-
org_id?: string;
|
|
897
|
-
/**
|
|
898
|
-
* Thread ID
|
|
899
|
-
* example:
|
|
900
|
-
* 07b8b522-a993-4021-8fae-fd19f330ee60
|
|
901
|
-
*/
|
|
902
|
-
thread_id?: string;
|
|
903
|
-
/**
|
|
904
|
-
* Message ID
|
|
905
|
-
* example:
|
|
906
|
-
* c03eb411-9f75-4ff0-9404-5a61c5b8798d
|
|
907
|
-
*/
|
|
908
|
-
message_id?: string;
|
|
909
|
-
/**
|
|
910
|
-
* Job type
|
|
911
|
-
*/
|
|
912
|
-
type?: "INFO" | "REPLY";
|
|
913
|
-
payload?: {
|
|
914
|
-
/**
|
|
915
|
-
* Generated summary
|
|
916
|
-
* example:
|
|
917
|
-
* [
|
|
918
|
-
* "Customer is interested in solar panels"
|
|
919
|
-
* ]
|
|
920
|
-
*/
|
|
921
|
-
summary?: string[] | null;
|
|
922
|
-
/**
|
|
923
|
-
* Topic of the GenAI Summary
|
|
924
|
-
* example:
|
|
925
|
-
* Product enquiry
|
|
926
|
-
*/
|
|
927
|
-
topic?: string | null;
|
|
928
|
-
/**
|
|
929
|
-
* Recommended next steps
|
|
930
|
-
* example:
|
|
931
|
-
* [
|
|
932
|
-
* "The agent should approve the refund"
|
|
933
|
-
* ]
|
|
934
|
-
*/
|
|
935
|
-
next_steps?: string[] | null;
|
|
936
|
-
/**
|
|
937
|
-
* Tags
|
|
938
|
-
* example:
|
|
939
|
-
* [
|
|
940
|
-
* "solar",
|
|
941
|
-
* "quote"
|
|
942
|
-
* ]
|
|
943
|
-
*/
|
|
944
|
-
tags?: string[] | null;
|
|
945
|
-
/**
|
|
946
|
-
* Rating of the suggested reply
|
|
947
|
-
* example:
|
|
948
|
-
* positive
|
|
949
|
-
*/
|
|
950
|
-
rating?: string | null;
|
|
951
|
-
/**
|
|
952
|
-
* Feedback of the suggested reply
|
|
953
|
-
* example:
|
|
954
|
-
* Good summary
|
|
955
|
-
*/
|
|
956
|
-
feedback?: string | null;
|
|
957
|
-
/**
|
|
958
|
-
* Status of the GenAI job
|
|
959
|
-
* example:
|
|
960
|
-
* COMPLETED
|
|
961
|
-
*/
|
|
962
|
-
status?: "INITIATED" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
|
|
963
|
-
/**
|
|
964
|
-
* Progress of the GenAI job in percentage
|
|
965
|
-
* example:
|
|
966
|
-
* 100
|
|
967
|
-
*/
|
|
968
|
-
progress?: number;
|
|
969
|
-
/**
|
|
970
|
-
* Error message if the job failed
|
|
971
|
-
* example:
|
|
972
|
-
* Failed to generate summary
|
|
973
|
-
*/
|
|
974
|
-
error?: string | null;
|
|
975
|
-
/**
|
|
976
|
-
* Job created date
|
|
977
|
-
* example:
|
|
978
|
-
* 1612900000000
|
|
979
|
-
*/
|
|
980
|
-
created_at?: number;
|
|
981
|
-
/**
|
|
982
|
-
* Job last updated date
|
|
983
|
-
* example:
|
|
984
|
-
* 1612900000000
|
|
985
|
-
*/
|
|
986
|
-
updated_at?: number;
|
|
987
|
-
};
|
|
988
|
-
}
|
|
989
|
-
export interface $403 {
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
668
|
namespace GetMessage {
|
|
994
669
|
namespace Parameters {
|
|
995
670
|
/**
|
|
@@ -1340,203 +1015,6 @@ declare namespace Paths {
|
|
|
1340
1015
|
}
|
|
1341
1016
|
}
|
|
1342
1017
|
}
|
|
1343
|
-
namespace PatchInfo {
|
|
1344
|
-
namespace Parameters {
|
|
1345
|
-
export type MessageId = string; // UUID
|
|
1346
|
-
export type ThreadId = string; // UUID
|
|
1347
|
-
}
|
|
1348
|
-
export interface PathParameters {
|
|
1349
|
-
threadId: Parameters.ThreadId /* UUID */;
|
|
1350
|
-
messageId: Parameters.MessageId /* UUID */;
|
|
1351
|
-
}
|
|
1352
|
-
export interface RequestBody {
|
|
1353
|
-
/**
|
|
1354
|
-
* Generated summary
|
|
1355
|
-
* example:
|
|
1356
|
-
* [
|
|
1357
|
-
* "Customer is interested in solar panels"
|
|
1358
|
-
* ]
|
|
1359
|
-
*/
|
|
1360
|
-
summary?: string[] | null;
|
|
1361
|
-
/**
|
|
1362
|
-
* Topic of the GenAI Summary
|
|
1363
|
-
* example:
|
|
1364
|
-
* Product enquiry
|
|
1365
|
-
*/
|
|
1366
|
-
topic?: string | null;
|
|
1367
|
-
/**
|
|
1368
|
-
* Recommended next steps
|
|
1369
|
-
* example:
|
|
1370
|
-
* [
|
|
1371
|
-
* "The agent should approve the refund"
|
|
1372
|
-
* ]
|
|
1373
|
-
*/
|
|
1374
|
-
next_steps?: string[] | null;
|
|
1375
|
-
/**
|
|
1376
|
-
* Tags
|
|
1377
|
-
* example:
|
|
1378
|
-
* [
|
|
1379
|
-
* "solar",
|
|
1380
|
-
* "quote"
|
|
1381
|
-
* ]
|
|
1382
|
-
*/
|
|
1383
|
-
tags?: string[] | null;
|
|
1384
|
-
/**
|
|
1385
|
-
* Rating of the suggested reply
|
|
1386
|
-
* example:
|
|
1387
|
-
* positive
|
|
1388
|
-
*/
|
|
1389
|
-
rating?: string | null;
|
|
1390
|
-
/**
|
|
1391
|
-
* Feedback of the suggested reply
|
|
1392
|
-
* example:
|
|
1393
|
-
* Good summary
|
|
1394
|
-
*/
|
|
1395
|
-
feedback?: string | null;
|
|
1396
|
-
/**
|
|
1397
|
-
* Status of the GenAI job
|
|
1398
|
-
* example:
|
|
1399
|
-
* COMPLETED
|
|
1400
|
-
*/
|
|
1401
|
-
status?: "INITIATED" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
|
|
1402
|
-
/**
|
|
1403
|
-
* Progress of the GenAI job in percentage
|
|
1404
|
-
* example:
|
|
1405
|
-
* 100
|
|
1406
|
-
*/
|
|
1407
|
-
progress?: number;
|
|
1408
|
-
/**
|
|
1409
|
-
* Error message if the job failed
|
|
1410
|
-
* example:
|
|
1411
|
-
* Failed to generate summary
|
|
1412
|
-
*/
|
|
1413
|
-
error?: string | null;
|
|
1414
|
-
/**
|
|
1415
|
-
* Job created date
|
|
1416
|
-
* example:
|
|
1417
|
-
* 1612900000000
|
|
1418
|
-
*/
|
|
1419
|
-
created_at?: number;
|
|
1420
|
-
/**
|
|
1421
|
-
* Job last updated date
|
|
1422
|
-
* example:
|
|
1423
|
-
* 1612900000000
|
|
1424
|
-
*/
|
|
1425
|
-
updated_at?: number;
|
|
1426
|
-
}
|
|
1427
|
-
namespace Responses {
|
|
1428
|
-
export interface $200 {
|
|
1429
|
-
/**
|
|
1430
|
-
* Organization ID
|
|
1431
|
-
* example:
|
|
1432
|
-
* 739224
|
|
1433
|
-
*/
|
|
1434
|
-
org_id?: string;
|
|
1435
|
-
/**
|
|
1436
|
-
* Thread ID
|
|
1437
|
-
* example:
|
|
1438
|
-
* 07b8b522-a993-4021-8fae-fd19f330ee60
|
|
1439
|
-
*/
|
|
1440
|
-
thread_id?: string;
|
|
1441
|
-
/**
|
|
1442
|
-
* Message ID
|
|
1443
|
-
* example:
|
|
1444
|
-
* c03eb411-9f75-4ff0-9404-5a61c5b8798d
|
|
1445
|
-
*/
|
|
1446
|
-
message_id?: string;
|
|
1447
|
-
/**
|
|
1448
|
-
* Job type
|
|
1449
|
-
*/
|
|
1450
|
-
type?: "INFO" | "REPLY";
|
|
1451
|
-
payload?: {
|
|
1452
|
-
/**
|
|
1453
|
-
* Generated summary
|
|
1454
|
-
* example:
|
|
1455
|
-
* [
|
|
1456
|
-
* "Customer is interested in solar panels"
|
|
1457
|
-
* ]
|
|
1458
|
-
*/
|
|
1459
|
-
summary?: string[] | null;
|
|
1460
|
-
/**
|
|
1461
|
-
* Topic of the GenAI Summary
|
|
1462
|
-
* example:
|
|
1463
|
-
* Product enquiry
|
|
1464
|
-
*/
|
|
1465
|
-
topic?: string | null;
|
|
1466
|
-
/**
|
|
1467
|
-
* Recommended next steps
|
|
1468
|
-
* example:
|
|
1469
|
-
* [
|
|
1470
|
-
* "The agent should approve the refund"
|
|
1471
|
-
* ]
|
|
1472
|
-
*/
|
|
1473
|
-
next_steps?: string[] | null;
|
|
1474
|
-
/**
|
|
1475
|
-
* Tags
|
|
1476
|
-
* example:
|
|
1477
|
-
* [
|
|
1478
|
-
* "solar",
|
|
1479
|
-
* "quote"
|
|
1480
|
-
* ]
|
|
1481
|
-
*/
|
|
1482
|
-
tags?: string[] | null;
|
|
1483
|
-
/**
|
|
1484
|
-
* Rating of the suggested reply
|
|
1485
|
-
* example:
|
|
1486
|
-
* positive
|
|
1487
|
-
*/
|
|
1488
|
-
rating?: string | null;
|
|
1489
|
-
/**
|
|
1490
|
-
* Feedback of the suggested reply
|
|
1491
|
-
* example:
|
|
1492
|
-
* Good summary
|
|
1493
|
-
*/
|
|
1494
|
-
feedback?: string | null;
|
|
1495
|
-
/**
|
|
1496
|
-
* Status of the GenAI job
|
|
1497
|
-
* example:
|
|
1498
|
-
* COMPLETED
|
|
1499
|
-
*/
|
|
1500
|
-
status?: "INITIATED" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
|
|
1501
|
-
/**
|
|
1502
|
-
* Progress of the GenAI job in percentage
|
|
1503
|
-
* example:
|
|
1504
|
-
* 100
|
|
1505
|
-
*/
|
|
1506
|
-
progress?: number;
|
|
1507
|
-
/**
|
|
1508
|
-
* Error message if the job failed
|
|
1509
|
-
* example:
|
|
1510
|
-
* Failed to generate summary
|
|
1511
|
-
*/
|
|
1512
|
-
error?: string | null;
|
|
1513
|
-
/**
|
|
1514
|
-
* Job created date
|
|
1515
|
-
* example:
|
|
1516
|
-
* 1612900000000
|
|
1517
|
-
*/
|
|
1518
|
-
created_at?: number;
|
|
1519
|
-
/**
|
|
1520
|
-
* Job last updated date
|
|
1521
|
-
* example:
|
|
1522
|
-
* 1612900000000
|
|
1523
|
-
*/
|
|
1524
|
-
updated_at?: number;
|
|
1525
|
-
};
|
|
1526
|
-
}
|
|
1527
|
-
export interface $400 {
|
|
1528
|
-
}
|
|
1529
|
-
export interface $403 {
|
|
1530
|
-
}
|
|
1531
|
-
export interface $500 {
|
|
1532
|
-
/**
|
|
1533
|
-
* example:
|
|
1534
|
-
* Internal server error
|
|
1535
|
-
*/
|
|
1536
|
-
error?: string;
|
|
1537
|
-
}
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
1018
|
namespace SearchThreads {
|
|
1541
1019
|
export type RequestBody = Components.Schemas.SearchParams;
|
|
1542
1020
|
namespace Responses {
|
|
@@ -2242,36 +1720,6 @@ export interface OperationMethods {
|
|
|
2242
1720
|
data?: any,
|
|
2243
1721
|
config?: AxiosRequestConfig
|
|
2244
1722
|
): OperationResponse<Paths.GetMessageV2.Responses.$200>
|
|
2245
|
-
/**
|
|
2246
|
-
* generateSuggestedReply - generateSuggestedReply
|
|
2247
|
-
*
|
|
2248
|
-
* Generate suggested reply of the message in the thread
|
|
2249
|
-
*/
|
|
2250
|
-
'generateSuggestedReply'(
|
|
2251
|
-
parameters?: Parameters<Paths.GenerateSuggestedReply.PathParameters & Paths.GenerateSuggestedReply.QueryParameters> | null,
|
|
2252
|
-
data?: any,
|
|
2253
|
-
config?: AxiosRequestConfig
|
|
2254
|
-
): OperationResponse<Paths.GenerateSuggestedReply.Responses.$200 | Paths.GenerateSuggestedReply.Responses.$202>
|
|
2255
|
-
/**
|
|
2256
|
-
* getInfo - getInfo
|
|
2257
|
-
*
|
|
2258
|
-
* Get generated information of the thread
|
|
2259
|
-
*/
|
|
2260
|
-
'getInfo'(
|
|
2261
|
-
parameters?: Parameters<Paths.GetInfo.PathParameters & Paths.GetInfo.QueryParameters> | null,
|
|
2262
|
-
data?: any,
|
|
2263
|
-
config?: AxiosRequestConfig
|
|
2264
|
-
): OperationResponse<Paths.GetInfo.Responses.$200>
|
|
2265
|
-
/**
|
|
2266
|
-
* patchInfo - patchInfo
|
|
2267
|
-
*
|
|
2268
|
-
* patch generated information of the thread
|
|
2269
|
-
*/
|
|
2270
|
-
'patchInfo'(
|
|
2271
|
-
parameters?: Parameters<Paths.PatchInfo.PathParameters> | null,
|
|
2272
|
-
data?: Paths.PatchInfo.RequestBody,
|
|
2273
|
-
config?: AxiosRequestConfig
|
|
2274
|
-
): OperationResponse<Paths.PatchInfo.Responses.$200>
|
|
2275
1723
|
}
|
|
2276
1724
|
|
|
2277
1725
|
export interface PathsDictionary {
|
|
@@ -2528,42 +1976,6 @@ export interface PathsDictionary {
|
|
|
2528
1976
|
config?: AxiosRequestConfig
|
|
2529
1977
|
): OperationResponse<Paths.GetMessageV2.Responses.$200>
|
|
2530
1978
|
}
|
|
2531
|
-
['/v1/message/messages/{messageId}/genai:reply']: {
|
|
2532
|
-
/**
|
|
2533
|
-
* generateSuggestedReply - generateSuggestedReply
|
|
2534
|
-
*
|
|
2535
|
-
* Generate suggested reply of the message in the thread
|
|
2536
|
-
*/
|
|
2537
|
-
'post'(
|
|
2538
|
-
parameters?: Parameters<Paths.GenerateSuggestedReply.PathParameters & Paths.GenerateSuggestedReply.QueryParameters> | null,
|
|
2539
|
-
data?: any,
|
|
2540
|
-
config?: AxiosRequestConfig
|
|
2541
|
-
): OperationResponse<Paths.GenerateSuggestedReply.Responses.$200 | Paths.GenerateSuggestedReply.Responses.$202>
|
|
2542
|
-
}
|
|
2543
|
-
['/v1/message/threads/{threadId}/genai:info']: {
|
|
2544
|
-
/**
|
|
2545
|
-
* getInfo - getInfo
|
|
2546
|
-
*
|
|
2547
|
-
* Get generated information of the thread
|
|
2548
|
-
*/
|
|
2549
|
-
'get'(
|
|
2550
|
-
parameters?: Parameters<Paths.GetInfo.PathParameters & Paths.GetInfo.QueryParameters> | null,
|
|
2551
|
-
data?: any,
|
|
2552
|
-
config?: AxiosRequestConfig
|
|
2553
|
-
): OperationResponse<Paths.GetInfo.Responses.$200>
|
|
2554
|
-
}
|
|
2555
|
-
['/v1/message/threads/{threadId}/messages/{messageId}/genai:info']: {
|
|
2556
|
-
/**
|
|
2557
|
-
* patchInfo - patchInfo
|
|
2558
|
-
*
|
|
2559
|
-
* patch generated information of the thread
|
|
2560
|
-
*/
|
|
2561
|
-
'patch'(
|
|
2562
|
-
parameters?: Parameters<Paths.PatchInfo.PathParameters> | null,
|
|
2563
|
-
data?: Paths.PatchInfo.RequestBody,
|
|
2564
|
-
config?: AxiosRequestConfig
|
|
2565
|
-
): OperationResponse<Paths.PatchInfo.Responses.$200>
|
|
2566
|
-
}
|
|
2567
1979
|
}
|
|
2568
1980
|
|
|
2569
1981
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
package/dist/openapi.json
CHANGED
|
@@ -22,9 +22,6 @@
|
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "Drafts"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "GenAI"
|
|
28
25
|
}
|
|
29
26
|
],
|
|
30
27
|
"paths": {
|
|
@@ -761,243 +758,6 @@
|
|
|
761
758
|
}
|
|
762
759
|
}
|
|
763
760
|
}
|
|
764
|
-
},
|
|
765
|
-
"/v1/message/messages/{messageId}/genai:reply": {
|
|
766
|
-
"post": {
|
|
767
|
-
"operationId": "generateSuggestedReply",
|
|
768
|
-
"summary": "generateSuggestedReply",
|
|
769
|
-
"description": "Generate suggested reply of the message in the thread",
|
|
770
|
-
"tags": [
|
|
771
|
-
"GenAI"
|
|
772
|
-
],
|
|
773
|
-
"parameters": [
|
|
774
|
-
{
|
|
775
|
-
"name": "messageId",
|
|
776
|
-
"description": "Message ID",
|
|
777
|
-
"in": "path",
|
|
778
|
-
"required": true,
|
|
779
|
-
"schema": {
|
|
780
|
-
"type": "string",
|
|
781
|
-
"format": "UUID"
|
|
782
|
-
}
|
|
783
|
-
},
|
|
784
|
-
{
|
|
785
|
-
"name": "threadId",
|
|
786
|
-
"description": "Thread ID",
|
|
787
|
-
"in": "query",
|
|
788
|
-
"required": true,
|
|
789
|
-
"schema": {
|
|
790
|
-
"type": "string",
|
|
791
|
-
"format": "UUID"
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
],
|
|
795
|
-
"responses": {
|
|
796
|
-
"200": {
|
|
797
|
-
"description": "Success",
|
|
798
|
-
"content": {
|
|
799
|
-
"application/json": {
|
|
800
|
-
"schema": {
|
|
801
|
-
"allOf": [
|
|
802
|
-
{
|
|
803
|
-
"$ref": "#/components/schemas/GenAIJobOutput"
|
|
804
|
-
},
|
|
805
|
-
{
|
|
806
|
-
"type": "object",
|
|
807
|
-
"properties": {
|
|
808
|
-
"payload": {
|
|
809
|
-
"allOf": [
|
|
810
|
-
{
|
|
811
|
-
"$ref": "#/components/schemas/GenAIReplyJobOutputPayload"
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
"$ref": "#/components/schemas/GenAIJobOutputPayload"
|
|
815
|
-
}
|
|
816
|
-
]
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
]
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
},
|
|
825
|
-
"202": {
|
|
826
|
-
"description": "Accepted"
|
|
827
|
-
},
|
|
828
|
-
"403": {
|
|
829
|
-
"description": "Forbidden"
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
},
|
|
834
|
-
"/v1/message/threads/{threadId}/genai:info": {
|
|
835
|
-
"get": {
|
|
836
|
-
"operationId": "getInfo",
|
|
837
|
-
"summary": "getInfo",
|
|
838
|
-
"description": "Get generated information of the thread",
|
|
839
|
-
"tags": [
|
|
840
|
-
"GenAI"
|
|
841
|
-
],
|
|
842
|
-
"parameters": [
|
|
843
|
-
{
|
|
844
|
-
"name": "threadId",
|
|
845
|
-
"description": "Thread ID",
|
|
846
|
-
"in": "path",
|
|
847
|
-
"required": true,
|
|
848
|
-
"schema": {
|
|
849
|
-
"type": "string",
|
|
850
|
-
"format": "UUID"
|
|
851
|
-
}
|
|
852
|
-
},
|
|
853
|
-
{
|
|
854
|
-
"name": "messageId",
|
|
855
|
-
"description": "Message ID, If not passed defaults to latest message ID in the thread",
|
|
856
|
-
"in": "query",
|
|
857
|
-
"schema": {
|
|
858
|
-
"type": "string",
|
|
859
|
-
"format": "UUID"
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
],
|
|
863
|
-
"responses": {
|
|
864
|
-
"200": {
|
|
865
|
-
"description": "Success",
|
|
866
|
-
"content": {
|
|
867
|
-
"application/json": {
|
|
868
|
-
"schema": {
|
|
869
|
-
"allOf": [
|
|
870
|
-
{
|
|
871
|
-
"$ref": "#/components/schemas/GenAIJobOutput"
|
|
872
|
-
},
|
|
873
|
-
{
|
|
874
|
-
"type": "object",
|
|
875
|
-
"properties": {
|
|
876
|
-
"payload": {
|
|
877
|
-
"allOf": [
|
|
878
|
-
{
|
|
879
|
-
"$ref": "#/components/schemas/GenAIInfoJobOutputPayload"
|
|
880
|
-
},
|
|
881
|
-
{
|
|
882
|
-
"$ref": "#/components/schemas/GenAIJobOutputPayload"
|
|
883
|
-
}
|
|
884
|
-
]
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
]
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
},
|
|
893
|
-
"403": {
|
|
894
|
-
"description": "Forbidden"
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
},
|
|
899
|
-
"/v1/message/threads/{threadId}/messages/{messageId}/genai:info": {
|
|
900
|
-
"patch": {
|
|
901
|
-
"operationId": "patchInfo",
|
|
902
|
-
"summary": "patchInfo",
|
|
903
|
-
"description": "patch generated information of the thread",
|
|
904
|
-
"tags": [
|
|
905
|
-
"GenAI"
|
|
906
|
-
],
|
|
907
|
-
"parameters": [
|
|
908
|
-
{
|
|
909
|
-
"name": "threadId",
|
|
910
|
-
"description": "Thread ID",
|
|
911
|
-
"in": "path",
|
|
912
|
-
"required": true,
|
|
913
|
-
"schema": {
|
|
914
|
-
"type": "string",
|
|
915
|
-
"format": "UUID"
|
|
916
|
-
}
|
|
917
|
-
},
|
|
918
|
-
{
|
|
919
|
-
"name": "messageId",
|
|
920
|
-
"description": "Message ID",
|
|
921
|
-
"in": "path",
|
|
922
|
-
"required": true,
|
|
923
|
-
"schema": {
|
|
924
|
-
"type": "string",
|
|
925
|
-
"format": "UUID"
|
|
926
|
-
}
|
|
927
|
-
}
|
|
928
|
-
],
|
|
929
|
-
"requestBody": {
|
|
930
|
-
"description": "Request body for genai info update",
|
|
931
|
-
"required": true,
|
|
932
|
-
"content": {
|
|
933
|
-
"application/json": {
|
|
934
|
-
"schema": {
|
|
935
|
-
"allOf": [
|
|
936
|
-
{
|
|
937
|
-
"$ref": "#/components/schemas/GenAIInfoJobOutputPayload"
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
"$ref": "#/components/schemas/GenAIJobOutputPayload"
|
|
941
|
-
}
|
|
942
|
-
]
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
},
|
|
947
|
-
"responses": {
|
|
948
|
-
"200": {
|
|
949
|
-
"description": "Successfully updated, returns the updated info",
|
|
950
|
-
"content": {
|
|
951
|
-
"application/json": {
|
|
952
|
-
"schema": {
|
|
953
|
-
"allOf": [
|
|
954
|
-
{
|
|
955
|
-
"$ref": "#/components/schemas/GenAIJobOutput"
|
|
956
|
-
},
|
|
957
|
-
{
|
|
958
|
-
"type": "object",
|
|
959
|
-
"properties": {
|
|
960
|
-
"payload": {
|
|
961
|
-
"allOf": [
|
|
962
|
-
{
|
|
963
|
-
"$ref": "#/components/schemas/GenAIInfoJobOutputPayload"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
"$ref": "#/components/schemas/GenAIJobOutputPayload"
|
|
967
|
-
}
|
|
968
|
-
]
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
]
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
},
|
|
977
|
-
"400": {
|
|
978
|
-
"description": "Invalid input"
|
|
979
|
-
},
|
|
980
|
-
"403": {
|
|
981
|
-
"description": "Forbidden"
|
|
982
|
-
},
|
|
983
|
-
"500": {
|
|
984
|
-
"description": "Internal server error",
|
|
985
|
-
"content": {
|
|
986
|
-
"application/json": {
|
|
987
|
-
"schema": {
|
|
988
|
-
"type": "object",
|
|
989
|
-
"properties": {
|
|
990
|
-
"error": {
|
|
991
|
-
"type": "string",
|
|
992
|
-
"example": "Internal server error"
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
761
|
}
|
|
1002
762
|
},
|
|
1003
763
|
"components": {
|
|
@@ -1278,6 +1038,16 @@
|
|
|
1278
1038
|
"description": "Email address",
|
|
1279
1039
|
"example": "messaging@epilot.cloud"
|
|
1280
1040
|
},
|
|
1041
|
+
"email_type": {
|
|
1042
|
+
"type": "string",
|
|
1043
|
+
"description": "Type of the email, Internal (360 Agents), Partners, External users(Customers)\n",
|
|
1044
|
+
"nullable": true,
|
|
1045
|
+
"enum": [
|
|
1046
|
+
"INTERNAL",
|
|
1047
|
+
"EXTERNAL",
|
|
1048
|
+
"PARTNER"
|
|
1049
|
+
]
|
|
1050
|
+
},
|
|
1281
1051
|
"send_status": {
|
|
1282
1052
|
"type": "string",
|
|
1283
1053
|
"description": "Sent message status regarding to this recipient. Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>\n",
|
|
@@ -1455,146 +1225,6 @@
|
|
|
1455
1225
|
"default": 10
|
|
1456
1226
|
}
|
|
1457
1227
|
}
|
|
1458
|
-
},
|
|
1459
|
-
"GenAIJobOutput": {
|
|
1460
|
-
"properties": {
|
|
1461
|
-
"org_id": {
|
|
1462
|
-
"type": "string",
|
|
1463
|
-
"description": "Organization ID",
|
|
1464
|
-
"example": "739224"
|
|
1465
|
-
},
|
|
1466
|
-
"thread_id": {
|
|
1467
|
-
"type": "string",
|
|
1468
|
-
"description": "Thread ID",
|
|
1469
|
-
"example": "07b8b522-a993-4021-8fae-fd19f330ee60"
|
|
1470
|
-
},
|
|
1471
|
-
"message_id": {
|
|
1472
|
-
"type": "string",
|
|
1473
|
-
"description": "Message ID",
|
|
1474
|
-
"example": "c03eb411-9f75-4ff0-9404-5a61c5b8798d"
|
|
1475
|
-
},
|
|
1476
|
-
"type": {
|
|
1477
|
-
"type": "string",
|
|
1478
|
-
"description": "Job type",
|
|
1479
|
-
"enum": [
|
|
1480
|
-
"INFO",
|
|
1481
|
-
"REPLY"
|
|
1482
|
-
]
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
},
|
|
1486
|
-
"GenAIJobOutputPayload": {
|
|
1487
|
-
"allOf": [
|
|
1488
|
-
{
|
|
1489
|
-
"$ref": "#/components/schemas/GenAIFeedbackPayload"
|
|
1490
|
-
}
|
|
1491
|
-
],
|
|
1492
|
-
"properties": {
|
|
1493
|
-
"status": {
|
|
1494
|
-
"type": "string",
|
|
1495
|
-
"enum": [
|
|
1496
|
-
"INITIATED",
|
|
1497
|
-
"IN_PROGRESS",
|
|
1498
|
-
"COMPLETED",
|
|
1499
|
-
"FAILED"
|
|
1500
|
-
],
|
|
1501
|
-
"description": "Status of the GenAI job",
|
|
1502
|
-
"example": "COMPLETED"
|
|
1503
|
-
},
|
|
1504
|
-
"progress": {
|
|
1505
|
-
"type": "number",
|
|
1506
|
-
"description": "Progress of the GenAI job in percentage",
|
|
1507
|
-
"example": 100
|
|
1508
|
-
},
|
|
1509
|
-
"error": {
|
|
1510
|
-
"type": "string",
|
|
1511
|
-
"description": "Error message if the job failed",
|
|
1512
|
-
"example": "Failed to generate summary",
|
|
1513
|
-
"nullable": true
|
|
1514
|
-
},
|
|
1515
|
-
"created_at": {
|
|
1516
|
-
"type": "number",
|
|
1517
|
-
"description": "Job created date",
|
|
1518
|
-
"example": 1612900000000
|
|
1519
|
-
},
|
|
1520
|
-
"updated_at": {
|
|
1521
|
-
"type": "number",
|
|
1522
|
-
"description": "Job last updated date",
|
|
1523
|
-
"example": 1612900000000
|
|
1524
|
-
}
|
|
1525
|
-
}
|
|
1526
|
-
},
|
|
1527
|
-
"GenAIInfoJobOutputPayload": {
|
|
1528
|
-
"properties": {
|
|
1529
|
-
"summary": {
|
|
1530
|
-
"type": "array",
|
|
1531
|
-
"description": "Generated summary",
|
|
1532
|
-
"items": {
|
|
1533
|
-
"type": "string"
|
|
1534
|
-
},
|
|
1535
|
-
"example": [
|
|
1536
|
-
"Customer is interested in solar panels"
|
|
1537
|
-
],
|
|
1538
|
-
"nullable": true
|
|
1539
|
-
},
|
|
1540
|
-
"topic": {
|
|
1541
|
-
"type": "string",
|
|
1542
|
-
"description": "Topic of the GenAI Summary",
|
|
1543
|
-
"example": "Product enquiry",
|
|
1544
|
-
"nullable": true
|
|
1545
|
-
},
|
|
1546
|
-
"next_steps": {
|
|
1547
|
-
"type": "array",
|
|
1548
|
-
"description": "Recommended next steps",
|
|
1549
|
-
"items": {
|
|
1550
|
-
"type": "string"
|
|
1551
|
-
},
|
|
1552
|
-
"example": [
|
|
1553
|
-
"The agent should approve the refund"
|
|
1554
|
-
],
|
|
1555
|
-
"nullable": true
|
|
1556
|
-
},
|
|
1557
|
-
"tags": {
|
|
1558
|
-
"type": "array",
|
|
1559
|
-
"description": "Tags",
|
|
1560
|
-
"items": {
|
|
1561
|
-
"type": "string"
|
|
1562
|
-
},
|
|
1563
|
-
"example": [
|
|
1564
|
-
"solar",
|
|
1565
|
-
"quote"
|
|
1566
|
-
],
|
|
1567
|
-
"nullable": true
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
},
|
|
1571
|
-
"GenAIReplyJobOutputPayload": {
|
|
1572
|
-
"type": "object",
|
|
1573
|
-
"properties": {
|
|
1574
|
-
"suggested_reply": {
|
|
1575
|
-
"type": "string",
|
|
1576
|
-
"description": "Suggested reply",
|
|
1577
|
-
"example": "Thank you for your inquiry. We will get back to you shortly.",
|
|
1578
|
-
"nullable": true
|
|
1579
|
-
}
|
|
1580
|
-
}
|
|
1581
|
-
},
|
|
1582
|
-
"GenAIFeedbackPayload": {
|
|
1583
|
-
"type": "object",
|
|
1584
|
-
"properties": {
|
|
1585
|
-
"rating": {
|
|
1586
|
-
"type": "string",
|
|
1587
|
-
"description": "Rating of the suggested reply",
|
|
1588
|
-
"example": "positive",
|
|
1589
|
-
"nullable": true
|
|
1590
|
-
},
|
|
1591
|
-
"feedback": {
|
|
1592
|
-
"type": "string",
|
|
1593
|
-
"description": "Feedback of the suggested reply",
|
|
1594
|
-
"example": "Good summary",
|
|
1595
|
-
"nullable": true
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
1228
|
}
|
|
1599
1229
|
}
|
|
1600
1230
|
},
|