@lorikeetai/node-sdk 0.13.2 → 0.14.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.
Files changed (199) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +17 -32
  3. package/core.d.ts +7 -4
  4. package/core.d.ts.map +1 -1
  5. package/core.js +16 -9
  6. package/core.js.map +1 -1
  7. package/core.mjs +16 -9
  8. package/core.mjs.map +1 -1
  9. package/index.d.mts +21 -3
  10. package/index.d.ts +21 -3
  11. package/index.d.ts.map +1 -1
  12. package/index.js +35 -7
  13. package/index.js.map +1 -1
  14. package/index.mjs +36 -8
  15. package/index.mjs.map +1 -1
  16. package/internal/qs/formats.d.ts +6 -0
  17. package/internal/qs/formats.d.ts.map +1 -0
  18. package/internal/qs/formats.js +11 -0
  19. package/internal/qs/formats.js.map +1 -0
  20. package/internal/qs/formats.mjs +8 -0
  21. package/internal/qs/formats.mjs.map +1 -0
  22. package/internal/qs/index.d.ts +10 -0
  23. package/internal/qs/index.d.ts.map +1 -0
  24. package/internal/qs/index.js +14 -0
  25. package/internal/qs/index.js.map +1 -0
  26. package/internal/qs/index.mjs +10 -0
  27. package/internal/qs/index.mjs.map +1 -0
  28. package/internal/qs/stringify.d.ts +3 -0
  29. package/internal/qs/stringify.d.ts.map +1 -0
  30. package/internal/qs/stringify.js +279 -0
  31. package/internal/qs/stringify.js.map +1 -0
  32. package/internal/qs/stringify.mjs +276 -0
  33. package/internal/qs/stringify.mjs.map +1 -0
  34. package/internal/qs/types.d.ts +57 -0
  35. package/internal/qs/types.d.ts.map +1 -0
  36. package/internal/qs/types.js +3 -0
  37. package/internal/qs/types.js.map +1 -0
  38. package/internal/qs/types.mjs +2 -0
  39. package/internal/qs/types.mjs.map +1 -0
  40. package/internal/qs/utils.d.ts +14 -0
  41. package/internal/qs/utils.d.ts.map +1 -0
  42. package/internal/qs/utils.js +229 -0
  43. package/internal/qs/utils.js.map +1 -0
  44. package/internal/qs/utils.mjs +217 -0
  45. package/internal/qs/utils.mjs.map +1 -0
  46. package/package.json +1 -5
  47. package/resource.d.ts +1 -1
  48. package/resource.d.ts.map +1 -1
  49. package/resource.js.map +1 -1
  50. package/resource.mjs.map +1 -1
  51. package/resources/conversation/chat.d.ts +19 -164
  52. package/resources/conversation/chat.d.ts.map +1 -1
  53. package/resources/conversation/chat.js.map +1 -1
  54. package/resources/conversation/chat.mjs.map +1 -1
  55. package/resources/conversation/conversation.d.ts +116 -0
  56. package/resources/conversation/conversation.d.ts.map +1 -1
  57. package/resources/conversation/conversation.js +36 -0
  58. package/resources/conversation/conversation.js.map +1 -1
  59. package/resources/conversation/conversation.mjs +36 -0
  60. package/resources/conversation/conversation.mjs.map +1 -1
  61. package/resources/conversation/email.d.ts +19 -164
  62. package/resources/conversation/email.d.ts.map +1 -1
  63. package/resources/conversation/email.js.map +1 -1
  64. package/resources/conversation/email.mjs.map +1 -1
  65. package/resources/conversation/index.d.ts +1 -1
  66. package/resources/conversation/index.d.ts.map +1 -1
  67. package/resources/conversation/index.js.map +1 -1
  68. package/resources/conversation/index.mjs +1 -1
  69. package/resources/conversation/index.mjs.map +1 -1
  70. package/resources/customer/customer.d.ts +296 -0
  71. package/resources/customer/customer.d.ts.map +1 -0
  72. package/resources/customer/customer.js +79 -0
  73. package/resources/customer/customer.js.map +1 -0
  74. package/resources/customer/customer.mjs +52 -0
  75. package/resources/customer/customer.mjs.map +1 -0
  76. package/resources/customer/index.d.ts +3 -0
  77. package/resources/customer/index.d.ts.map +1 -0
  78. package/resources/customer/index.js +9 -0
  79. package/resources/customer/index.js.map +1 -0
  80. package/resources/customer/index.mjs +4 -0
  81. package/resources/customer/index.mjs.map +1 -0
  82. package/resources/customer/profile.d.ts +71 -0
  83. package/resources/customer/profile.d.ts.map +1 -0
  84. package/resources/customer/profile.js +21 -0
  85. package/resources/customer/profile.js.map +1 -0
  86. package/resources/customer/profile.mjs +17 -0
  87. package/resources/customer/profile.mjs.map +1 -0
  88. package/resources/customer.d.ts +1 -291
  89. package/resources/customer.d.ts.map +1 -1
  90. package/resources/customer.js +15 -45
  91. package/resources/customer.js.map +1 -1
  92. package/resources/customer.mjs +1 -43
  93. package/resources/customer.mjs.map +1 -1
  94. package/resources/file.d.ts +7 -0
  95. package/resources/file.d.ts.map +1 -0
  96. package/resources/file.js +21 -0
  97. package/resources/file.js.map +1 -0
  98. package/resources/file.mjs +17 -0
  99. package/resources/file.mjs.map +1 -0
  100. package/resources/index.d.ts +6 -2
  101. package/resources/index.d.ts.map +1 -1
  102. package/resources/index.js +10 -2
  103. package/resources/index.js.map +1 -1
  104. package/resources/index.mjs +6 -2
  105. package/resources/index.mjs.map +1 -1
  106. package/resources/ingest.d.ts +2 -0
  107. package/resources/ingest.d.ts.map +1 -1
  108. package/resources/ingest.js +9 -0
  109. package/resources/ingest.js.map +1 -1
  110. package/resources/ingest.mjs +9 -0
  111. package/resources/ingest.mjs.map +1 -1
  112. package/resources/oauth/authorization.d.ts +6 -0
  113. package/resources/oauth/authorization.d.ts.map +1 -0
  114. package/resources/oauth/authorization.js +15 -0
  115. package/resources/oauth/authorization.js.map +1 -0
  116. package/resources/oauth/authorization.mjs +11 -0
  117. package/resources/oauth/authorization.mjs.map +1 -0
  118. package/resources/oauth/index.d.ts +3 -0
  119. package/resources/oauth/index.d.ts.map +1 -0
  120. package/resources/oauth/index.js +9 -0
  121. package/resources/oauth/index.js.map +1 -0
  122. package/resources/oauth/index.mjs +4 -0
  123. package/resources/oauth/index.mjs.map +1 -0
  124. package/resources/oauth/oauth.d.ts +24 -0
  125. package/resources/oauth/oauth.d.ts.map +1 -0
  126. package/resources/oauth/oauth.js +65 -0
  127. package/resources/oauth/oauth.js.map +1 -0
  128. package/resources/oauth/oauth.mjs +38 -0
  129. package/resources/oauth/oauth.mjs.map +1 -0
  130. package/resources/oauth.d.ts +2 -0
  131. package/resources/oauth.d.ts.map +1 -0
  132. package/resources/oauth.js +19 -0
  133. package/resources/oauth.js.map +1 -0
  134. package/resources/oauth.mjs +3 -0
  135. package/resources/oauth.mjs.map +1 -0
  136. package/resources/suggestion.d.ts +7 -0
  137. package/resources/suggestion.d.ts.map +1 -0
  138. package/resources/suggestion.js +21 -0
  139. package/resources/suggestion.js.map +1 -0
  140. package/resources/suggestion.mjs +17 -0
  141. package/resources/suggestion.mjs.map +1 -0
  142. package/resources/ticket.d.ts +14 -0
  143. package/resources/ticket.d.ts.map +1 -0
  144. package/resources/ticket.js +16 -0
  145. package/resources/ticket.js.map +1 -0
  146. package/resources/ticket.mjs +12 -0
  147. package/resources/ticket.mjs.map +1 -0
  148. package/resources/top-level.d.ts +2 -0
  149. package/resources/top-level.d.ts.map +1 -0
  150. package/resources/top-level.js +4 -0
  151. package/resources/top-level.js.map +1 -0
  152. package/resources/top-level.mjs +3 -0
  153. package/resources/top-level.mjs.map +1 -0
  154. package/resources/webhooks.d.ts +6 -0
  155. package/resources/webhooks.d.ts.map +1 -0
  156. package/resources/webhooks.js +15 -0
  157. package/resources/webhooks.js.map +1 -0
  158. package/resources/webhooks.mjs +11 -0
  159. package/resources/webhooks.mjs.map +1 -0
  160. package/resources/workflow.d.ts +1 -0
  161. package/resources/workflow.d.ts.map +1 -1
  162. package/resources/workflow.js +3 -0
  163. package/resources/workflow.js.map +1 -1
  164. package/resources/workflow.mjs +3 -0
  165. package/resources/workflow.mjs.map +1 -1
  166. package/src/core.ts +17 -8
  167. package/src/index.ts +77 -10
  168. package/src/internal/qs/LICENSE.md +13 -0
  169. package/src/internal/qs/README.md +3 -0
  170. package/src/internal/qs/formats.ts +9 -0
  171. package/src/internal/qs/index.ts +13 -0
  172. package/src/internal/qs/stringify.ts +388 -0
  173. package/src/internal/qs/types.ts +71 -0
  174. package/src/internal/qs/utils.ts +265 -0
  175. package/src/resource.ts +1 -1
  176. package/src/resources/conversation/chat.ts +21 -217
  177. package/src/resources/conversation/conversation.ts +175 -0
  178. package/src/resources/conversation/email.ts +21 -217
  179. package/src/resources/conversation/index.ts +10 -1
  180. package/src/resources/customer/customer.ts +386 -0
  181. package/src/resources/customer/index.ts +13 -0
  182. package/src/resources/customer/profile.ts +89 -0
  183. package/src/resources/customer.ts +1 -372
  184. package/src/resources/file.ts +20 -0
  185. package/src/resources/index.ts +15 -2
  186. package/src/resources/ingest.ts +17 -0
  187. package/src/resources/oauth/authorization.ts +13 -0
  188. package/src/resources/oauth/index.ts +4 -0
  189. package/src/resources/oauth/oauth.ts +63 -0
  190. package/src/resources/oauth.ts +3 -0
  191. package/src/resources/suggestion.ts +20 -0
  192. package/src/resources/ticket.ts +30 -0
  193. package/src/resources/top-level.ts +3 -0
  194. package/src/resources/webhooks.ts +13 -0
  195. package/src/resources/workflow.ts +4 -0
  196. package/src/version.ts +1 -1
  197. package/version.d.ts +1 -1
  198. package/version.js +1 -1
  199. package/version.mjs +1 -1
@@ -1,5 +1,6 @@
1
1
  import { APIResource } from "../../resource.js";
2
2
  import * as Core from "../../core.js";
3
+ import * as ConversationAPI from "./conversation.js";
3
4
  export declare class Email extends APIResource {
4
5
  /**
5
6
  * @example
@@ -57,7 +58,7 @@ export interface EmailGenerateResponse {
57
58
  * The events that have occurred in the conversation. Can be used for deriving more
58
59
  * information about the conversation.
59
60
  */
60
- events: Array<EmailGenerateResponse.Event>;
61
+ events: Array<ConversationAPI.TicketEvent>;
61
62
  /**
62
63
  * The latest message type - useful for polling
63
64
  */
@@ -69,78 +70,20 @@ export interface EmailGenerateResponse {
69
70
  /**
70
71
  * The full list of messages. This endpoint supports markdown.
71
72
  */
72
- messages: Array<EmailGenerateResponse.Message>;
73
+ messages: Array<ConversationAPI.TicketMessageDto>;
73
74
  /**
74
75
  * The status of the conversation
75
76
  */
76
77
  status: 'Unprocessed' | 'Processing' | 'Unhandled' | 'Responded' | 'Error' | 'Escalated' | 'Processed';
78
+ /**
79
+ * The tags of the conversation
80
+ */
81
+ tags: Array<string>;
77
82
  /**
78
83
  * The timestamp of when the ticket was last updated in our system.
79
84
  */
80
85
  updatedAt: string;
81
86
  }
82
- export declare namespace EmailGenerateResponse {
83
- interface Event {
84
- /**
85
- * The ID of the event
86
- */
87
- id: string;
88
- /**
89
- * The timestamp of the event
90
- */
91
- createdAt: string;
92
- /**
93
- * Any specific data associated with the event
94
- */
95
- data: unknown;
96
- /**
97
- * The type of the event
98
- */
99
- type: 'ASSIGNED' | 'CLOSED' | 'ESCALATED' | 'ESCALATION_REQUEST' | 'PROCESSING_CANCELLED' | 'HOSTILE_MESSAGE' | 'NEW_TICKET';
100
- }
101
- interface Message {
102
- /**
103
- * The ID of the conversation message
104
- */
105
- id: string;
106
- /**
107
- * Attachments that were attached to the message
108
- */
109
- attachments: Array<Message.Attachment>;
110
- /**
111
- * The content of the message. Markdown on plain text.
112
- */
113
- content: string;
114
- /**
115
- * The timestamp of the message.
116
- */
117
- createdAt: string;
118
- /**
119
- * The raw content of the message. Usually HTML.
120
- */
121
- rawContent: string;
122
- /**
123
- * The type of the message
124
- */
125
- type: 'CUSTOMER' | 'BOT_RESPONSE' | 'PENDING_RESPONSE' | 'DRAFT_RESPONSE';
126
- }
127
- namespace Message {
128
- interface Attachment {
129
- /**
130
- * The name of the attachment
131
- */
132
- name: string;
133
- /**
134
- * The type of the attachment
135
- */
136
- type: string;
137
- /**
138
- * The URL of the attachment
139
- */
140
- url: string;
141
- }
142
- }
143
- }
144
87
  export interface EmailGetResponse {
145
88
  /**
146
89
  * The ID of the conversation
@@ -154,7 +97,7 @@ export interface EmailGetResponse {
154
97
  * The events that have occurred in the conversation. Can be used for deriving more
155
98
  * information about the conversation.
156
99
  */
157
- events: Array<EmailGetResponse.Event>;
100
+ events: Array<ConversationAPI.TicketEvent>;
158
101
  /**
159
102
  * The latest message type - useful for polling
160
103
  */
@@ -166,78 +109,20 @@ export interface EmailGetResponse {
166
109
  /**
167
110
  * The full list of messages. This endpoint supports markdown.
168
111
  */
169
- messages: Array<EmailGetResponse.Message>;
112
+ messages: Array<ConversationAPI.TicketMessageDto>;
170
113
  /**
171
114
  * The status of the conversation
172
115
  */
173
116
  status: 'Unprocessed' | 'Processing' | 'Unhandled' | 'Responded' | 'Error' | 'Escalated' | 'Processed';
117
+ /**
118
+ * The tags of the conversation
119
+ */
120
+ tags: Array<string>;
174
121
  /**
175
122
  * The timestamp of when the ticket was last updated in our system.
176
123
  */
177
124
  updatedAt: string;
178
125
  }
179
- export declare namespace EmailGetResponse {
180
- interface Event {
181
- /**
182
- * The ID of the event
183
- */
184
- id: string;
185
- /**
186
- * The timestamp of the event
187
- */
188
- createdAt: string;
189
- /**
190
- * Any specific data associated with the event
191
- */
192
- data: unknown;
193
- /**
194
- * The type of the event
195
- */
196
- type: 'ASSIGNED' | 'CLOSED' | 'ESCALATED' | 'ESCALATION_REQUEST' | 'PROCESSING_CANCELLED' | 'HOSTILE_MESSAGE' | 'NEW_TICKET';
197
- }
198
- interface Message {
199
- /**
200
- * The ID of the conversation message
201
- */
202
- id: string;
203
- /**
204
- * Attachments that were attached to the message
205
- */
206
- attachments: Array<Message.Attachment>;
207
- /**
208
- * The content of the message. Markdown on plain text.
209
- */
210
- content: string;
211
- /**
212
- * The timestamp of the message.
213
- */
214
- createdAt: string;
215
- /**
216
- * The raw content of the message. Usually HTML.
217
- */
218
- rawContent: string;
219
- /**
220
- * The type of the message
221
- */
222
- type: 'CUSTOMER' | 'BOT_RESPONSE' | 'PENDING_RESPONSE' | 'DRAFT_RESPONSE';
223
- }
224
- namespace Message {
225
- interface Attachment {
226
- /**
227
- * The name of the attachment
228
- */
229
- name: string;
230
- /**
231
- * The type of the attachment
232
- */
233
- type: string;
234
- /**
235
- * The URL of the attachment
236
- */
237
- url: string;
238
- }
239
- }
240
- }
241
126
  export interface EmailStartResponse {
242
127
  /**
243
128
  * The ID of the conversation
@@ -251,7 +136,7 @@ export interface EmailStartResponse {
251
136
  * The events that have occurred in the conversation. Can be used for deriving more
252
137
  * information about the conversation.
253
138
  */
254
- events: Array<EmailStartResponse.Event>;
139
+ events: Array<ConversationAPI.TicketEvent>;
255
140
  /**
256
141
  * The url of the conversation in the Lorikeet dashboard
257
142
  */
@@ -260,32 +145,16 @@ export interface EmailStartResponse {
260
145
  * The status of the conversation
261
146
  */
262
147
  status: 'Unprocessed' | 'Processing' | 'Unhandled' | 'Responded' | 'Error' | 'Escalated' | 'Processed';
263
- }
264
- export declare namespace EmailStartResponse {
265
- interface Event {
266
- /**
267
- * The ID of the event
268
- */
269
- id: string;
270
- /**
271
- * The timestamp of the event
272
- */
273
- createdAt: string;
274
- /**
275
- * Any specific data associated with the event
276
- */
277
- data: unknown;
278
- /**
279
- * The type of the event
280
- */
281
- type: 'ASSIGNED' | 'CLOSED' | 'ESCALATED' | 'ESCALATION_REQUEST' | 'PROCESSING_CANCELLED' | 'HOSTILE_MESSAGE' | 'NEW_TICKET';
282
- }
148
+ /**
149
+ * The tags of the conversation
150
+ */
151
+ tags: Array<string>;
283
152
  }
284
153
  export interface EmailGenerateParams {
285
154
  /**
286
155
  * Attachments to be sent with the message
287
156
  */
288
- attachments: Array<EmailGenerateParams.Attachment>;
157
+ attachments: Array<ConversationAPI.AttachmentDto>;
289
158
  /**
290
159
  * The ID of the conversation
291
160
  */
@@ -301,20 +170,6 @@ export interface EmailGenerateParams {
301
170
  customer?: EmailGenerateParams.Customer;
302
171
  }
303
172
  export declare namespace EmailGenerateParams {
304
- interface Attachment {
305
- /**
306
- * The name of the attachment
307
- */
308
- name: string;
309
- /**
310
- * The type of the attachment
311
- */
312
- type: string;
313
- /**
314
- * The URL of the attachment
315
- */
316
- url: string;
317
- }
318
173
  /**
319
174
  * Any additional customer information, that has changed in the course of the
320
175
  * conversation.
@@ -1 +1 @@
1
- {"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../src/resources/conversation/email.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAGnC,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;OAeG;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erateResponse, type ChatGetResponse, type ChatStartResponse, type ChatGenerateParams, type ChatGetParams, type ChatStartParams, } from "./chat.js";
2
- export { Conversation } from "./conversation.js";
2
+ export { Conversation, type AttachmentDto, type TicketEvent, type TicketMessageDto, type ConversationCreateResponse, type ConversationRetrieveTranscriptResponse, type ConversationCreateParams, type ConversationRetrieveTranscriptParams, } from "./conversation.js";
3
3
  export { Email, type EmailGenerateResponse, type EmailGetResponse, type EmailStartResponse, type EmailGenerateParams, type EmailGetParams, type EmailStartParams, } from "./email.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/conversation/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,IAAI,EACJ,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/conversation/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,IAAI,EACJ,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,GAC1C,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB,MAAM,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/conversation/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAQgB;AAPd,4FAAA,IAAI,OAAA;AAQN,kDAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,oCAQiB;AAPf,8FAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/conversation/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAQgB;AAPd,4FAAA,IAAI,OAAA;AAQN,kDASwB;AARtB,4GAAA,YAAY,OAAA;AASd,oCAQiB;AAPf,8FAAA,KAAK,OAAA"}
@@ -1,5 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { Chat, } from "./chat.mjs";
3
- export { Conversation } from "./conversation.mjs";
3
+ export { Conversation, } from "./conversation.mjs";
4
4
  export { Email, } from "./email.mjs";
5
5
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/conversation/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAOL;OACM,EAAE,YAAY,EAAE;OAChB,EACL,KAAK,GAON"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/conversation/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAOL;OACM,EACL,YAAY,GAQb;OACM,EACL,KAAK,GAON"}
@@ -0,0 +1,296 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as ProfileAPI from "./profile.js";
4
+ import { Profile, ProfileSyncParams, ProfileSyncResponse } from "./profile.js";
5
+ export declare class Customer extends APIResource {
6
+ profile: ProfileAPI.Profile;
7
+ /**
8
+ * @example
9
+ * ```ts
10
+ * const customer = await client.customer.create();
11
+ * ```
12
+ */
13
+ create(body: CustomerCreateParams, options?: Core.RequestOptions): Core.APIPromise<CustomerCreateResponse>;
14
+ /**
15
+ * @example
16
+ * ```ts
17
+ * const customer = await client.customer.update(
18
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
19
+ * );
20
+ * ```
21
+ */
22
+ update(id: string, body: CustomerUpdateParams, options?: Core.RequestOptions): Core.APIPromise<CustomerUpdateResponse>;
23
+ /**
24
+ * @example
25
+ * ```ts
26
+ * const customer = await client.customer.get(
27
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
28
+ * );
29
+ * ```
30
+ */
31
+ get(id: string, options?: Core.RequestOptions): Core.APIPromise<CustomerGetResponse>;
32
+ /**
33
+ * @example
34
+ * ```ts
35
+ * const response = await client.customer.token();
36
+ * ```
37
+ */
38
+ token(body: CustomerTokenParams, options?: Core.RequestOptions): Core.APIPromise<string>;
39
+ }
40
+ export interface CustomerCreateResponse {
41
+ /**
42
+ * The id of the customer in the subscriber system
43
+ */
44
+ id: string;
45
+ /**
46
+ * The timestamp of the when the customer was created in our system
47
+ */
48
+ createdAt: string;
49
+ /**
50
+ * The URL of the customer avatar
51
+ */
52
+ avatarUrl?: string;
53
+ /**
54
+ * The display name of the customer
55
+ */
56
+ displayName?: string;
57
+ /**
58
+ * The email of the customer
59
+ */
60
+ email?: string;
61
+ /**
62
+ * The first name of the customer
63
+ */
64
+ firstName?: string;
65
+ /**
66
+ * The last name of the customer
67
+ */
68
+ lastName?: string;
69
+ /**
70
+ * The id of the customer in the ticketing system. For the SDK this needs to be
71
+ * stable and unique
72
+ */
73
+ remoteId?: string;
74
+ /**
75
+ * The id of the customer in your own primary database or a unique identifier, for
76
+ * example a cookie
77
+ */
78
+ subscriberCustomerId?: string;
79
+ /**
80
+ * A token that can be used to authenticate the customer in the your system, like a
81
+ * JWT
82
+ */
83
+ subscriberToken?: string;
84
+ }
85
+ export interface CustomerUpdateResponse {
86
+ /**
87
+ * The id of the customer in the subscriber system
88
+ */
89
+ id: string;
90
+ /**
91
+ * The timestamp of the when the customer was created in our system
92
+ */
93
+ createdAt: string;
94
+ /**
95
+ * The URL of the customer avatar
96
+ */
97
+ avatarUrl?: string;
98
+ /**
99
+ * The display name of the customer
100
+ */
101
+ displayName?: string;
102
+ /**
103
+ * The email of the customer
104
+ */
105
+ email?: string;
106
+ /**
107
+ * The first name of the customer
108
+ */
109
+ firstName?: string;
110
+ /**
111
+ * The last name of the customer
112
+ */
113
+ lastName?: string;
114
+ /**
115
+ * The id of the customer in the ticketing system. For the SDK this needs to be
116
+ * stable and unique
117
+ */
118
+ remoteId?: string;
119
+ /**
120
+ * The id of the customer in your own primary database or a unique identifier, for
121
+ * example a cookie
122
+ */
123
+ subscriberCustomerId?: string;
124
+ /**
125
+ * A token that can be used to authenticate the customer in the your system, like a
126
+ * JWT
127
+ */
128
+ subscriberToken?: string;
129
+ }
130
+ export interface CustomerGetResponse {
131
+ /**
132
+ * The id of the customer in the subscriber system
133
+ */
134
+ id: string;
135
+ /**
136
+ * The timestamp of the when the customer was created in our system
137
+ */
138
+ createdAt: string;
139
+ /**
140
+ * The URL of the customer avatar
141
+ */
142
+ avatarUrl?: string;
143
+ /**
144
+ * The display name of the customer
145
+ */
146
+ displayName?: string;
147
+ /**
148
+ * The email of the customer
149
+ */
150
+ email?: string;
151
+ /**
152
+ * The first name of the customer
153
+ */
154
+ firstName?: string;
155
+ /**
156
+ * The last name of the customer
157
+ */
158
+ lastName?: string;
159
+ /**
160
+ * The id of the customer in the ticketing system. For the SDK this needs to be
161
+ * stable and unique
162
+ */
163
+ remoteId?: string;
164
+ /**
165
+ * The id of the customer in your own primary database or a unique identifier, for
166
+ * example a cookie
167
+ */
168
+ subscriberCustomerId?: string;
169
+ /**
170
+ * A token that can be used to authenticate the customer in the your system, like a
171
+ * JWT
172
+ */
173
+ subscriberToken?: string;
174
+ }
175
+ export type CustomerTokenResponse = string;
176
+ export interface CustomerCreateParams {
177
+ /**
178
+ * The URL of the customer avatar
179
+ */
180
+ avatarUrl?: string;
181
+ /**
182
+ * The display name of the customer
183
+ */
184
+ displayName?: string;
185
+ /**
186
+ * The email of the customer
187
+ */
188
+ email?: string;
189
+ /**
190
+ * The first name of the customer
191
+ */
192
+ firstName?: string;
193
+ /**
194
+ * The last name of the customer
195
+ */
196
+ lastName?: string;
197
+ /**
198
+ * The id of the customer in the ticketing system. For the SDK this needs to be
199
+ * stable and unique
200
+ */
201
+ remoteId?: string;
202
+ /**
203
+ * The id of the customer in your own primary database or a unique identifier, for
204
+ * example a cookie
205
+ */
206
+ subscriberCustomerId?: string;
207
+ /**
208
+ * A token that can be used to authenticate the customer in the your system, like a
209
+ * JWT
210
+ */
211
+ subscriberToken?: string;
212
+ }
213
+ export interface CustomerUpdateParams {
214
+ /**
215
+ * The URL of the customer avatar
216
+ */
217
+ avatarUrl?: string;
218
+ /**
219
+ * The display name of the customer
220
+ */
221
+ displayName?: string;
222
+ /**
223
+ * The email of the customer
224
+ */
225
+ email?: string;
226
+ /**
227
+ * The first name of the customer
228
+ */
229
+ firstName?: string;
230
+ /**
231
+ * The last name of the customer
232
+ */
233
+ lastName?: string;
234
+ /**
235
+ * The id of the customer in the ticketing system. For the SDK this needs to be
236
+ * stable and unique
237
+ */
238
+ remoteId?: string;
239
+ /**
240
+ * The id of the customer in your own primary database or a unique identifier, for
241
+ * example a cookie
242
+ */
243
+ subscriberCustomerId?: string;
244
+ /**
245
+ * A token that can be used to authenticate the customer in the your system, like a
246
+ * JWT
247
+ */
248
+ subscriberToken?: string;
249
+ }
250
+ export interface CustomerTokenParams {
251
+ /**
252
+ * The URL of the customer avatar
253
+ */
254
+ avatarUrl?: string;
255
+ /**
256
+ * The display name of the customer
257
+ */
258
+ displayName?: string;
259
+ /**
260
+ * The email of the customer
261
+ */
262
+ email?: string;
263
+ /**
264
+ * The expiry of the conversation initialization token, if not provided it will be
265
+ * set to 1 hour
266
+ */
267
+ expiry?: string;
268
+ /**
269
+ * The first name of the customer
270
+ */
271
+ firstName?: string;
272
+ /**
273
+ * The last name of the customer
274
+ */
275
+ lastName?: string;
276
+ /**
277
+ * The id of the customer in the ticketing system. For the SDK this needs to be
278
+ * stable and unique
279
+ */
280
+ remoteId?: string;
281
+ /**
282
+ * The id of the customer in your own primary database or a unique identifier, for
283
+ * example a cookie
284
+ */
285
+ subscriberCustomerId?: string;
286
+ /**
287
+ * A token that can be used to authenticate the customer in the your system, like a
288
+ * JWT
289
+ */
290
+ subscriberToken?: string;
291
+ }
292
+ export declare namespace Customer {
293
+ export { type CustomerCreateResponse as CustomerCreateResponse, type CustomerUpdateResponse as CustomerUpdateResponse, type CustomerGetResponse as CustomerGetResponse, type CustomerTokenResponse as CustomerTokenResponse, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerTokenParams as CustomerTokenParams, };
294
+ export { Profile as Profile, type ProfileSyncResponse as ProfileSyncResponse, type ProfileSyncParams as ProfileSyncParams, };
295
+ }
296
+ //# sourceMappingURL=customer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../src/resources/customer/customer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAE5E,qBAAa,QAAS,SAAQ,WAAW;IACvC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;OAKG;IACH,MAAM,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