@lorikeetai/node-sdk 0.6.3 → 0.7.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/CHANGELOG.md +27 -0
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/core.d.ts +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +14 -5
- package/core.js.map +1 -1
- package/core.mjs +14 -5
- package/core.mjs.map +1 -1
- package/error.d.ts +18 -24
- package/error.d.ts.map +1 -1
- package/error.js +1 -31
- package/error.js.map +1 -1
- package/error.mjs +1 -31
- package/error.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/conversation/chat.d.ts +74 -4
- package/resources/conversation/chat.d.ts.map +1 -1
- package/resources/conversation/email.d.ts +74 -4
- package/resources/conversation/email.d.ts.map +1 -1
- package/src/core.ts +15 -5
- package/src/error.ts +24 -40
- package/src/resources/conversation/chat.ts +89 -4
- package/src/resources/conversation/email.ts +89 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -89,13 +89,18 @@ export interface ChatGenerateResponse {
|
|
|
89
89
|
/**
|
|
90
90
|
* The latest message type - useful for polling
|
|
91
91
|
*/
|
|
92
|
-
latestMessageType: 'CUSTOMER' | '
|
|
92
|
+
latestMessageType: 'CUSTOMER' | 'BOT_RESPONSE' | 'PENDING_RESPONSE' | 'DRAFT_RESPONSE';
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* The full list of messages. This endpoint supports markdown.
|
|
96
96
|
*/
|
|
97
97
|
messages: Array<ChatGenerateResponse.Message>;
|
|
98
98
|
|
|
99
|
+
/**
|
|
100
|
+
* The status of the conversation
|
|
101
|
+
*/
|
|
102
|
+
status: 'Unprocessed' | 'Processing' | 'Unhandled' | 'Responded' | 'Error' | 'Escalated' | 'Processed';
|
|
103
|
+
|
|
99
104
|
/**
|
|
100
105
|
* The timestamp of when the ticket was last updated in our system.
|
|
101
106
|
*/
|
|
@@ -109,6 +114,11 @@ export namespace ChatGenerateResponse {
|
|
|
109
114
|
*/
|
|
110
115
|
id: string;
|
|
111
116
|
|
|
117
|
+
/**
|
|
118
|
+
* Attachments that were attached to the message
|
|
119
|
+
*/
|
|
120
|
+
attachments: Array<Message.Attachment>;
|
|
121
|
+
|
|
112
122
|
/**
|
|
113
123
|
* The content of the message. Markdown on plain text.
|
|
114
124
|
*/
|
|
@@ -127,7 +137,26 @@ export namespace ChatGenerateResponse {
|
|
|
127
137
|
/**
|
|
128
138
|
* The type of the message
|
|
129
139
|
*/
|
|
130
|
-
type: 'CUSTOMER' | '
|
|
140
|
+
type: 'CUSTOMER' | 'BOT_RESPONSE' | 'PENDING_RESPONSE' | 'DRAFT_RESPONSE';
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export namespace Message {
|
|
144
|
+
export interface Attachment {
|
|
145
|
+
/**
|
|
146
|
+
* The name of the attachment
|
|
147
|
+
*/
|
|
148
|
+
name: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The type of the attachment
|
|
152
|
+
*/
|
|
153
|
+
type: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The URL of the attachment
|
|
157
|
+
*/
|
|
158
|
+
url: string;
|
|
159
|
+
}
|
|
131
160
|
}
|
|
132
161
|
}
|
|
133
162
|
|
|
@@ -145,13 +174,18 @@ export interface ChatGetResponse {
|
|
|
145
174
|
/**
|
|
146
175
|
* The latest message type - useful for polling
|
|
147
176
|
*/
|
|
148
|
-
latestMessageType: 'CUSTOMER' | '
|
|
177
|
+
latestMessageType: 'CUSTOMER' | 'BOT_RESPONSE' | 'PENDING_RESPONSE' | 'DRAFT_RESPONSE';
|
|
149
178
|
|
|
150
179
|
/**
|
|
151
180
|
* The full list of messages. This endpoint supports markdown.
|
|
152
181
|
*/
|
|
153
182
|
messages: Array<ChatGetResponse.Message>;
|
|
154
183
|
|
|
184
|
+
/**
|
|
185
|
+
* The status of the conversation
|
|
186
|
+
*/
|
|
187
|
+
status: 'Unprocessed' | 'Processing' | 'Unhandled' | 'Responded' | 'Error' | 'Escalated' | 'Processed';
|
|
188
|
+
|
|
155
189
|
/**
|
|
156
190
|
* The timestamp of when the ticket was last updated in our system.
|
|
157
191
|
*/
|
|
@@ -165,6 +199,11 @@ export namespace ChatGetResponse {
|
|
|
165
199
|
*/
|
|
166
200
|
id: string;
|
|
167
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Attachments that were attached to the message
|
|
204
|
+
*/
|
|
205
|
+
attachments: Array<Message.Attachment>;
|
|
206
|
+
|
|
168
207
|
/**
|
|
169
208
|
* The content of the message. Markdown on plain text.
|
|
170
209
|
*/
|
|
@@ -183,7 +222,26 @@ export namespace ChatGetResponse {
|
|
|
183
222
|
/**
|
|
184
223
|
* The type of the message
|
|
185
224
|
*/
|
|
186
|
-
type: 'CUSTOMER' | '
|
|
225
|
+
type: 'CUSTOMER' | 'BOT_RESPONSE' | 'PENDING_RESPONSE' | 'DRAFT_RESPONSE';
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export namespace Message {
|
|
229
|
+
export interface Attachment {
|
|
230
|
+
/**
|
|
231
|
+
* The name of the attachment
|
|
232
|
+
*/
|
|
233
|
+
name: string;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* The type of the attachment
|
|
237
|
+
*/
|
|
238
|
+
type: string;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The URL of the attachment
|
|
242
|
+
*/
|
|
243
|
+
url: string;
|
|
244
|
+
}
|
|
187
245
|
}
|
|
188
246
|
}
|
|
189
247
|
|
|
@@ -197,9 +255,19 @@ export interface ChatStartResponse {
|
|
|
197
255
|
* The timestamp of the when the conversation was created in our system.
|
|
198
256
|
*/
|
|
199
257
|
createdAt: string;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* The status of the conversation
|
|
261
|
+
*/
|
|
262
|
+
status: 'Unprocessed' | 'Processing' | 'Unhandled' | 'Responded' | 'Error' | 'Escalated' | 'Processed';
|
|
200
263
|
}
|
|
201
264
|
|
|
202
265
|
export interface ChatGenerateParams {
|
|
266
|
+
/**
|
|
267
|
+
* Attachments to be sent with the message
|
|
268
|
+
*/
|
|
269
|
+
attachments: Array<ChatGenerateParams.Attachment>;
|
|
270
|
+
|
|
203
271
|
/**
|
|
204
272
|
* The ID of the conversation
|
|
205
273
|
*/
|
|
@@ -218,6 +286,23 @@ export interface ChatGenerateParams {
|
|
|
218
286
|
}
|
|
219
287
|
|
|
220
288
|
export namespace ChatGenerateParams {
|
|
289
|
+
export interface Attachment {
|
|
290
|
+
/**
|
|
291
|
+
* The name of the attachment
|
|
292
|
+
*/
|
|
293
|
+
name: string;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* The type of the attachment
|
|
297
|
+
*/
|
|
298
|
+
type: string;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* The URL of the attachment
|
|
302
|
+
*/
|
|
303
|
+
url: string;
|
|
304
|
+
}
|
|
305
|
+
|
|
221
306
|
/**
|
|
222
307
|
* Any additional customer information, that has changed in the course of the
|
|
223
308
|
* conversation.
|
|
@@ -31,13 +31,18 @@ export interface EmailGenerateResponse {
|
|
|
31
31
|
/**
|
|
32
32
|
* The latest message type - useful for polling
|
|
33
33
|
*/
|
|
34
|
-
latestMessageType: 'CUSTOMER' | '
|
|
34
|
+
latestMessageType: 'CUSTOMER' | 'BOT_RESPONSE' | 'PENDING_RESPONSE' | 'DRAFT_RESPONSE';
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The full list of messages. This endpoint supports markdown.
|
|
38
38
|
*/
|
|
39
39
|
messages: Array<EmailGenerateResponse.Message>;
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* The status of the conversation
|
|
43
|
+
*/
|
|
44
|
+
status: 'Unprocessed' | 'Processing' | 'Unhandled' | 'Responded' | 'Error' | 'Escalated' | 'Processed';
|
|
45
|
+
|
|
41
46
|
/**
|
|
42
47
|
* The timestamp of when the ticket was last updated in our system.
|
|
43
48
|
*/
|
|
@@ -51,6 +56,11 @@ export namespace EmailGenerateResponse {
|
|
|
51
56
|
*/
|
|
52
57
|
id: string;
|
|
53
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Attachments that were attached to the message
|
|
61
|
+
*/
|
|
62
|
+
attachments: Array<Message.Attachment>;
|
|
63
|
+
|
|
54
64
|
/**
|
|
55
65
|
* The content of the message. Markdown on plain text.
|
|
56
66
|
*/
|
|
@@ -69,7 +79,26 @@ export namespace EmailGenerateResponse {
|
|
|
69
79
|
/**
|
|
70
80
|
* The type of the message
|
|
71
81
|
*/
|
|
72
|
-
type: 'CUSTOMER' | '
|
|
82
|
+
type: 'CUSTOMER' | 'BOT_RESPONSE' | 'PENDING_RESPONSE' | 'DRAFT_RESPONSE';
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export namespace Message {
|
|
86
|
+
export interface Attachment {
|
|
87
|
+
/**
|
|
88
|
+
* The name of the attachment
|
|
89
|
+
*/
|
|
90
|
+
name: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The type of the attachment
|
|
94
|
+
*/
|
|
95
|
+
type: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The URL of the attachment
|
|
99
|
+
*/
|
|
100
|
+
url: string;
|
|
101
|
+
}
|
|
73
102
|
}
|
|
74
103
|
}
|
|
75
104
|
|
|
@@ -87,13 +116,18 @@ export interface EmailGetResponse {
|
|
|
87
116
|
/**
|
|
88
117
|
* The latest message type - useful for polling
|
|
89
118
|
*/
|
|
90
|
-
latestMessageType: 'CUSTOMER' | '
|
|
119
|
+
latestMessageType: 'CUSTOMER' | 'BOT_RESPONSE' | 'PENDING_RESPONSE' | 'DRAFT_RESPONSE';
|
|
91
120
|
|
|
92
121
|
/**
|
|
93
122
|
* The full list of messages. This endpoint supports markdown.
|
|
94
123
|
*/
|
|
95
124
|
messages: Array<EmailGetResponse.Message>;
|
|
96
125
|
|
|
126
|
+
/**
|
|
127
|
+
* The status of the conversation
|
|
128
|
+
*/
|
|
129
|
+
status: 'Unprocessed' | 'Processing' | 'Unhandled' | 'Responded' | 'Error' | 'Escalated' | 'Processed';
|
|
130
|
+
|
|
97
131
|
/**
|
|
98
132
|
* The timestamp of when the ticket was last updated in our system.
|
|
99
133
|
*/
|
|
@@ -107,6 +141,11 @@ export namespace EmailGetResponse {
|
|
|
107
141
|
*/
|
|
108
142
|
id: string;
|
|
109
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Attachments that were attached to the message
|
|
146
|
+
*/
|
|
147
|
+
attachments: Array<Message.Attachment>;
|
|
148
|
+
|
|
110
149
|
/**
|
|
111
150
|
* The content of the message. Markdown on plain text.
|
|
112
151
|
*/
|
|
@@ -125,7 +164,26 @@ export namespace EmailGetResponse {
|
|
|
125
164
|
/**
|
|
126
165
|
* The type of the message
|
|
127
166
|
*/
|
|
128
|
-
type: 'CUSTOMER' | '
|
|
167
|
+
type: 'CUSTOMER' | 'BOT_RESPONSE' | 'PENDING_RESPONSE' | 'DRAFT_RESPONSE';
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export namespace Message {
|
|
171
|
+
export interface Attachment {
|
|
172
|
+
/**
|
|
173
|
+
* The name of the attachment
|
|
174
|
+
*/
|
|
175
|
+
name: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* The type of the attachment
|
|
179
|
+
*/
|
|
180
|
+
type: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* The URL of the attachment
|
|
184
|
+
*/
|
|
185
|
+
url: string;
|
|
186
|
+
}
|
|
129
187
|
}
|
|
130
188
|
}
|
|
131
189
|
|
|
@@ -139,9 +197,19 @@ export interface EmailStartResponse {
|
|
|
139
197
|
* The timestamp of the when the conversation was created in our system.
|
|
140
198
|
*/
|
|
141
199
|
createdAt: string;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* The status of the conversation
|
|
203
|
+
*/
|
|
204
|
+
status: 'Unprocessed' | 'Processing' | 'Unhandled' | 'Responded' | 'Error' | 'Escalated' | 'Processed';
|
|
142
205
|
}
|
|
143
206
|
|
|
144
207
|
export interface EmailGenerateParams {
|
|
208
|
+
/**
|
|
209
|
+
* Attachments to be sent with the message
|
|
210
|
+
*/
|
|
211
|
+
attachments: Array<EmailGenerateParams.Attachment>;
|
|
212
|
+
|
|
145
213
|
/**
|
|
146
214
|
* The ID of the conversation
|
|
147
215
|
*/
|
|
@@ -160,6 +228,23 @@ export interface EmailGenerateParams {
|
|
|
160
228
|
}
|
|
161
229
|
|
|
162
230
|
export namespace EmailGenerateParams {
|
|
231
|
+
export interface Attachment {
|
|
232
|
+
/**
|
|
233
|
+
* The name of the attachment
|
|
234
|
+
*/
|
|
235
|
+
name: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* The type of the attachment
|
|
239
|
+
*/
|
|
240
|
+
type: string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* The URL of the attachment
|
|
244
|
+
*/
|
|
245
|
+
url: string;
|
|
246
|
+
}
|
|
247
|
+
|
|
163
248
|
/**
|
|
164
249
|
* Any additional customer information, that has changed in the course of the
|
|
165
250
|
* conversation.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.7.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.7.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.7.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|