ch-chat-api-typescript-axios 1.2.10 → 1.3.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 (56) hide show
  1. package/dist/api/chat-api.d.ts +386 -16
  2. package/dist/api/chat-api.js +430 -0
  3. package/dist/api/chat-api.js.map +1 -1
  4. package/dist/models/action-parameters.d.ts +54 -0
  5. package/dist/models/action-parameters.js +16 -0
  6. package/dist/models/action-parameters.js.map +1 -0
  7. package/dist/models/chat-message.d.ts +7 -0
  8. package/dist/models/chat-send-flow-message-command.d.ts +25 -0
  9. package/dist/models/chat-send-flow-message-command.js +16 -0
  10. package/dist/models/chat-send-flow-message-command.js.map +1 -0
  11. package/dist/models/{chat-session.d.ts → chat-session-model.d.ts} +31 -17
  12. package/dist/models/chat-session-model.js +16 -0
  13. package/dist/models/chat-session-model.js.map +1 -0
  14. package/dist/models/chat-sessions-model.d.ts +3 -3
  15. package/dist/models/create-chat-session-command.d.ts +7 -0
  16. package/dist/models/index.d.ts +14 -1
  17. package/dist/models/index.js +14 -1
  18. package/dist/models/index.js.map +1 -1
  19. package/dist/models/intake-form-item.d.ts +42 -0
  20. package/dist/models/intake-form-item.js +16 -0
  21. package/dist/models/intake-form-item.js.map +1 -0
  22. package/dist/models/intake-form.d.ts +79 -0
  23. package/dist/models/{chat-session.js → intake-form.js} +1 -1
  24. package/dist/models/intake-form.js.map +1 -0
  25. package/dist/models/intake-forms-model.d.ts +32 -0
  26. package/dist/models/intake-forms-model.js +16 -0
  27. package/dist/models/intake-forms-model.js.map +1 -0
  28. package/dist/models/interactive-flow-message-model.d.ts +53 -0
  29. package/dist/models/interactive-flow-message-model.js +16 -0
  30. package/dist/models/interactive-flow-message-model.js.map +1 -0
  31. package/dist/models/interactive-message-type.d.ts +25 -0
  32. package/dist/models/interactive-message-type.js +30 -0
  33. package/dist/models/interactive-message-type.js.map +1 -0
  34. package/dist/models/message-action.d.ts +31 -0
  35. package/dist/models/message-action.js +16 -0
  36. package/dist/models/message-action.js.map +1 -0
  37. package/dist/models/message-body.d.ts +24 -0
  38. package/dist/models/message-body.js +16 -0
  39. package/dist/models/message-body.js.map +1 -0
  40. package/dist/models/message-footer.d.ts +24 -0
  41. package/dist/models/message-footer.js +16 -0
  42. package/dist/models/message-footer.js.map +1 -0
  43. package/dist/models/message-header.d.ts +30 -0
  44. package/dist/models/message-header.js +16 -0
  45. package/dist/models/message-header.js.map +1 -0
  46. package/dist/models/message-types.d.ts +3 -0
  47. package/dist/models/message-types.js +4 -1
  48. package/dist/models/message-types.js.map +1 -1
  49. package/dist/models/patch-intake-form-command.d.ts +25 -0
  50. package/dist/models/patch-intake-form-command.js +16 -0
  51. package/dist/models/patch-intake-form-command.js.map +1 -0
  52. package/dist/models/request-create-intake-form-item-model.d.ts +36 -0
  53. package/dist/models/request-create-intake-form-item-model.js +16 -0
  54. package/dist/models/request-create-intake-form-item-model.js.map +1 -0
  55. package/package.json +1 -1
  56. package/dist/models/chat-session.js.map +0 -1
@@ -15,11 +15,15 @@ import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { ChatMessage } from '../models';
16
16
  import type { ChatMessagesModel } from '../models';
17
17
  import type { ChatParticipant } from '../models';
18
- import type { ChatSession } from '../models';
18
+ import type { ChatSendFlowMessageCommand } from '../models';
19
+ import type { ChatSessionModel } from '../models';
19
20
  import type { ChatSessionsModel } from '../models';
20
21
  import type { CreateChatSessionCommand } from '../models';
22
+ import type { IntakeForm } from '../models';
23
+ import type { IntakeFormsModel } from '../models';
21
24
  import type { JoinChatSessionCommand } from '../models';
22
25
  import type { MessageTypes } from '../models';
26
+ import type { PatchIntakeFormCommand } from '../models';
23
27
  import type { PutChatSessionCommand } from '../models';
24
28
  import type { TransferManagerCommand } from '../models';
25
29
  /**
@@ -79,6 +83,53 @@ export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) =
79
83
  * @throws {RequiredError}
80
84
  */
81
85
  apiV1ChatTenantIdSessionsSessionIdGet: (tenantId: string, sessionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
86
+ /**
87
+ *
88
+ * @summary Get intake forms by session id.
89
+ * @param {string} tenantId
90
+ * @param {string} sessionId
91
+ * @param {string} [id]
92
+ * @param {string} [tenantId2]
93
+ * @param {string} [userId]
94
+ * @param {string} [phoneNumber]
95
+ * @param {number} [page]
96
+ * @param {number} [limit]
97
+ * @param {Date} [lastRetrieved]
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsGet: (tenantId: string, sessionId: string, id?: string, tenantId2?: string, userId?: string, phoneNumber?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
102
+ /**
103
+ *
104
+ * @summary Delete intake form by id.
105
+ * @param {string} tenantId
106
+ * @param {string} sessionId
107
+ * @param {string} intakeFormId
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete: (tenantId: string, sessionId: string, intakeFormId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
112
+ /**
113
+ *
114
+ * @summary Get intake form by id.
115
+ * @param {string} tenantId
116
+ * @param {string} sessionId
117
+ * @param {string} intakeFormId
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet: (tenantId: string, sessionId: string, intakeFormId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
122
+ /**
123
+ *
124
+ * @summary Update intake form by id.
125
+ * @param {string} tenantId
126
+ * @param {string} sessionId
127
+ * @param {string} intakeFormId
128
+ * @param {PatchIntakeFormCommand} [patchIntakeFormCommand]
129
+ * @param {*} [options] Override http request option.
130
+ * @throws {RequiredError}
131
+ */
132
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch: (tenantId: string, sessionId: string, intakeFormId: string, patchIntakeFormCommand?: PatchIntakeFormCommand, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
82
133
  /**
83
134
  *
84
135
  * @summary Join a chat session.
@@ -156,6 +207,16 @@ export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) =
156
207
  * @throws {RequiredError}
157
208
  */
158
209
  apiV1ChatTenantIdSessionsSessionIdTransferPut: (tenantId: string, sessionId: string, transferManagerCommand?: TransferManagerCommand, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
210
+ /**
211
+ *
212
+ * @summary Send whatsapp flow message
213
+ * @param {string} tenantId
214
+ * @param {string} sessionId
215
+ * @param {ChatSendFlowMessageCommand} [chatSendFlowMessageCommand]
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost: (tenantId: string, sessionId: string, chatSendFlowMessageCommand?: ChatSendFlowMessageCommand, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
159
220
  };
160
221
  /**
161
222
  * ChatApi - functional programming interface
@@ -186,7 +247,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
186
247
  * @param {*} [options] Override http request option.
187
248
  * @throws {RequiredError}
188
249
  */
189
- apiV1ChatTenantIdSessionsPost(tenantId: string, createChatSessionCommand?: CreateChatSessionCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatSession>>;
250
+ apiV1ChatTenantIdSessionsPost(tenantId: string, createChatSessionCommand?: CreateChatSessionCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatSessionModel>>;
190
251
  /**
191
252
  *
192
253
  * @summary Convert a guest to a signed-in user.
@@ -195,7 +256,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
195
256
  * @param {*} [options] Override http request option.
196
257
  * @throws {RequiredError}
197
258
  */
198
- apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(tenantId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatParticipant>>;
259
+ apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(tenantId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatSessionModel>>;
199
260
  /**
200
261
  *
201
262
  * @summary Delete a chat session.
@@ -213,7 +274,54 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
213
274
  * @param {*} [options] Override http request option.
214
275
  * @throws {RequiredError}
215
276
  */
216
- apiV1ChatTenantIdSessionsSessionIdGet(tenantId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatSession>>;
277
+ apiV1ChatTenantIdSessionsSessionIdGet(tenantId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatSessionModel>>;
278
+ /**
279
+ *
280
+ * @summary Get intake forms by session id.
281
+ * @param {string} tenantId
282
+ * @param {string} sessionId
283
+ * @param {string} [id]
284
+ * @param {string} [tenantId2]
285
+ * @param {string} [userId]
286
+ * @param {string} [phoneNumber]
287
+ * @param {number} [page]
288
+ * @param {number} [limit]
289
+ * @param {Date} [lastRetrieved]
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ */
293
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(tenantId: string, sessionId: string, id?: string, tenantId2?: string, userId?: string, phoneNumber?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntakeFormsModel>>;
294
+ /**
295
+ *
296
+ * @summary Delete intake form by id.
297
+ * @param {string} tenantId
298
+ * @param {string} sessionId
299
+ * @param {string} intakeFormId
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(tenantId: string, sessionId: string, intakeFormId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
304
+ /**
305
+ *
306
+ * @summary Get intake form by id.
307
+ * @param {string} tenantId
308
+ * @param {string} sessionId
309
+ * @param {string} intakeFormId
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(tenantId: string, sessionId: string, intakeFormId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntakeForm>>;
314
+ /**
315
+ *
316
+ * @summary Update intake form by id.
317
+ * @param {string} tenantId
318
+ * @param {string} sessionId
319
+ * @param {string} intakeFormId
320
+ * @param {PatchIntakeFormCommand} [patchIntakeFormCommand]
321
+ * @param {*} [options] Override http request option.
322
+ * @throws {RequiredError}
323
+ */
324
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(tenantId: string, sessionId: string, intakeFormId: string, patchIntakeFormCommand?: PatchIntakeFormCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntakeForm>>;
217
325
  /**
218
326
  *
219
327
  * @summary Join a chat session.
@@ -232,7 +340,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
232
340
  * @param {*} [options] Override http request option.
233
341
  * @throws {RequiredError}
234
342
  */
235
- apiV1ChatTenantIdSessionsSessionIdLeaveDelete(tenantId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatParticipant>>;
343
+ apiV1ChatTenantIdSessionsSessionIdLeaveDelete(tenantId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
236
344
  /**
237
345
  *
238
346
  * @summary Get messages from a chat session.
@@ -290,7 +398,17 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
290
398
  * @param {*} [options] Override http request option.
291
399
  * @throws {RequiredError}
292
400
  */
293
- apiV1ChatTenantIdSessionsSessionIdTransferPut(tenantId: string, sessionId: string, transferManagerCommand?: TransferManagerCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatParticipant>>;
401
+ apiV1ChatTenantIdSessionsSessionIdTransferPut(tenantId: string, sessionId: string, transferManagerCommand?: TransferManagerCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatSessionModel>>;
402
+ /**
403
+ *
404
+ * @summary Send whatsapp flow message
405
+ * @param {string} tenantId
406
+ * @param {string} sessionId
407
+ * @param {ChatSendFlowMessageCommand} [chatSendFlowMessageCommand]
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(tenantId: string, sessionId: string, chatSendFlowMessageCommand?: ChatSendFlowMessageCommand, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessage>>;
294
412
  };
295
413
  /**
296
414
  * ChatApi - factory interface
@@ -312,7 +430,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
312
430
  * @param {*} [options] Override http request option.
313
431
  * @throws {RequiredError}
314
432
  */
315
- apiV1ChatTenantIdSessionsPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatSession>;
433
+ apiV1ChatTenantIdSessionsPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatSessionModel>;
316
434
  /**
317
435
  *
318
436
  * @summary Convert a guest to a signed-in user.
@@ -320,7 +438,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
320
438
  * @param {*} [options] Override http request option.
321
439
  * @throws {RequiredError}
322
440
  */
323
- apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdConvertsigninuserPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatParticipant>;
441
+ apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdConvertsigninuserPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatSessionModel>;
324
442
  /**
325
443
  *
326
444
  * @summary Delete a chat session.
@@ -336,7 +454,39 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
336
454
  * @param {*} [options] Override http request option.
337
455
  * @throws {RequiredError}
338
456
  */
339
- apiV1ChatTenantIdSessionsSessionIdGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatSession>;
457
+ apiV1ChatTenantIdSessionsSessionIdGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatSessionModel>;
458
+ /**
459
+ *
460
+ * @summary Get intake forms by session id.
461
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest} requestParameters Request parameters.
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<IntakeFormsModel>;
466
+ /**
467
+ *
468
+ * @summary Delete intake form by id.
469
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest} requestParameters Request parameters.
470
+ * @param {*} [options] Override http request option.
471
+ * @throws {RequiredError}
472
+ */
473
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
474
+ /**
475
+ *
476
+ * @summary Get intake form by id.
477
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest} requestParameters Request parameters.
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<IntakeForm>;
482
+ /**
483
+ *
484
+ * @summary Update intake form by id.
485
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest} requestParameters Request parameters.
486
+ * @param {*} [options] Override http request option.
487
+ * @throws {RequiredError}
488
+ */
489
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest, options?: RawAxiosRequestConfig): AxiosPromise<IntakeForm>;
340
490
  /**
341
491
  *
342
492
  * @summary Join a chat session.
@@ -352,7 +502,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
352
502
  * @param {*} [options] Override http request option.
353
503
  * @throws {RequiredError}
354
504
  */
355
- apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatParticipant>;
505
+ apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
356
506
  /**
357
507
  *
358
508
  * @summary Get messages from a chat session.
@@ -392,7 +542,15 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
392
542
  * @param {*} [options] Override http request option.
393
543
  * @throws {RequiredError}
394
544
  */
395
- apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatParticipant>;
545
+ apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatSessionModel>;
546
+ /**
547
+ *
548
+ * @summary Send whatsapp flow message
549
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPostRequest} requestParameters Request parameters.
550
+ * @param {*} [options] Override http request option.
551
+ * @throws {RequiredError}
552
+ */
553
+ apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessage>;
396
554
  };
397
555
  /**
398
556
  * Request parameters for apiV1ChatTenantIdSessionsGet operation in ChatApi.
@@ -531,6 +689,148 @@ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest {
531
689
  */
532
690
  readonly sessionId: string;
533
691
  }
692
+ /**
693
+ * Request parameters for apiV1ChatTenantIdSessionsSessionIdIntakeformsGet operation in ChatApi.
694
+ * @export
695
+ * @interface ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest
696
+ */
697
+ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest {
698
+ /**
699
+ *
700
+ * @type {string}
701
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGet
702
+ */
703
+ readonly tenantId: string;
704
+ /**
705
+ *
706
+ * @type {string}
707
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGet
708
+ */
709
+ readonly sessionId: string;
710
+ /**
711
+ *
712
+ * @type {string}
713
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGet
714
+ */
715
+ readonly id?: string;
716
+ /**
717
+ *
718
+ * @type {string}
719
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGet
720
+ */
721
+ readonly tenantId2?: string;
722
+ /**
723
+ *
724
+ * @type {string}
725
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGet
726
+ */
727
+ readonly userId?: string;
728
+ /**
729
+ *
730
+ * @type {string}
731
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGet
732
+ */
733
+ readonly phoneNumber?: string;
734
+ /**
735
+ *
736
+ * @type {number}
737
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGet
738
+ */
739
+ readonly page?: number;
740
+ /**
741
+ *
742
+ * @type {number}
743
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGet
744
+ */
745
+ readonly limit?: number;
746
+ /**
747
+ *
748
+ * @type {Date}
749
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGet
750
+ */
751
+ readonly lastRetrieved?: Date;
752
+ }
753
+ /**
754
+ * Request parameters for apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete operation in ChatApi.
755
+ * @export
756
+ * @interface ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest
757
+ */
758
+ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest {
759
+ /**
760
+ *
761
+ * @type {string}
762
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete
763
+ */
764
+ readonly tenantId: string;
765
+ /**
766
+ *
767
+ * @type {string}
768
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete
769
+ */
770
+ readonly sessionId: string;
771
+ /**
772
+ *
773
+ * @type {string}
774
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete
775
+ */
776
+ readonly intakeFormId: string;
777
+ }
778
+ /**
779
+ * Request parameters for apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet operation in ChatApi.
780
+ * @export
781
+ * @interface ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest
782
+ */
783
+ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest {
784
+ /**
785
+ *
786
+ * @type {string}
787
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet
788
+ */
789
+ readonly tenantId: string;
790
+ /**
791
+ *
792
+ * @type {string}
793
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet
794
+ */
795
+ readonly sessionId: string;
796
+ /**
797
+ *
798
+ * @type {string}
799
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet
800
+ */
801
+ readonly intakeFormId: string;
802
+ }
803
+ /**
804
+ * Request parameters for apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch operation in ChatApi.
805
+ * @export
806
+ * @interface ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest
807
+ */
808
+ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest {
809
+ /**
810
+ *
811
+ * @type {string}
812
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch
813
+ */
814
+ readonly tenantId: string;
815
+ /**
816
+ *
817
+ * @type {string}
818
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch
819
+ */
820
+ readonly sessionId: string;
821
+ /**
822
+ *
823
+ * @type {string}
824
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch
825
+ */
826
+ readonly intakeFormId: string;
827
+ /**
828
+ *
829
+ * @type {PatchIntakeFormCommand}
830
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch
831
+ */
832
+ readonly patchIntakeFormCommand?: PatchIntakeFormCommand;
833
+ }
534
834
  /**
535
835
  * Request parameters for apiV1ChatTenantIdSessionsSessionIdJoinPost operation in ChatApi.
536
836
  * @export
@@ -748,6 +1048,31 @@ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest {
748
1048
  */
749
1049
  readonly transferManagerCommand?: TransferManagerCommand;
750
1050
  }
1051
+ /**
1052
+ * Request parameters for apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost operation in ChatApi.
1053
+ * @export
1054
+ * @interface ChatApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPostRequest
1055
+ */
1056
+ export interface ChatApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPostRequest {
1057
+ /**
1058
+ *
1059
+ * @type {string}
1060
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost
1061
+ */
1062
+ readonly tenantId: string;
1063
+ /**
1064
+ *
1065
+ * @type {string}
1066
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost
1067
+ */
1068
+ readonly sessionId: string;
1069
+ /**
1070
+ *
1071
+ * @type {ChatSendFlowMessageCommand}
1072
+ * @memberof ChatApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost
1073
+ */
1074
+ readonly chatSendFlowMessageCommand?: ChatSendFlowMessageCommand;
1075
+ }
751
1076
  /**
752
1077
  * ChatApi - object-oriented interface
753
1078
  * @export
@@ -772,7 +1097,7 @@ export declare class ChatApi extends BaseAPI {
772
1097
  * @throws {RequiredError}
773
1098
  * @memberof ChatApi
774
1099
  */
775
- apiV1ChatTenantIdSessionsPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatSession, any>>;
1100
+ apiV1ChatTenantIdSessionsPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatSessionModel, any>>;
776
1101
  /**
777
1102
  *
778
1103
  * @summary Convert a guest to a signed-in user.
@@ -781,7 +1106,7 @@ export declare class ChatApi extends BaseAPI {
781
1106
  * @throws {RequiredError}
782
1107
  * @memberof ChatApi
783
1108
  */
784
- apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdConvertsigninuserPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatParticipant, any>>;
1109
+ apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdConvertsigninuserPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatSessionModel, any>>;
785
1110
  /**
786
1111
  *
787
1112
  * @summary Delete a chat session.
@@ -799,7 +1124,43 @@ export declare class ChatApi extends BaseAPI {
799
1124
  * @throws {RequiredError}
800
1125
  * @memberof ChatApi
801
1126
  */
802
- apiV1ChatTenantIdSessionsSessionIdGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatSession, any>>;
1127
+ apiV1ChatTenantIdSessionsSessionIdGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatSessionModel, any>>;
1128
+ /**
1129
+ *
1130
+ * @summary Get intake forms by session id.
1131
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest} requestParameters Request parameters.
1132
+ * @param {*} [options] Override http request option.
1133
+ * @throws {RequiredError}
1134
+ * @memberof ChatApi
1135
+ */
1136
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IntakeFormsModel, any>>;
1137
+ /**
1138
+ *
1139
+ * @summary Delete intake form by id.
1140
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest} requestParameters Request parameters.
1141
+ * @param {*} [options] Override http request option.
1142
+ * @throws {RequiredError}
1143
+ * @memberof ChatApi
1144
+ */
1145
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
1146
+ /**
1147
+ *
1148
+ * @summary Get intake form by id.
1149
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest} requestParameters Request parameters.
1150
+ * @param {*} [options] Override http request option.
1151
+ * @throws {RequiredError}
1152
+ * @memberof ChatApi
1153
+ */
1154
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IntakeForm, any>>;
1155
+ /**
1156
+ *
1157
+ * @summary Update intake form by id.
1158
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest} requestParameters Request parameters.
1159
+ * @param {*} [options] Override http request option.
1160
+ * @throws {RequiredError}
1161
+ * @memberof ChatApi
1162
+ */
1163
+ apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IntakeForm, any>>;
803
1164
  /**
804
1165
  *
805
1166
  * @summary Join a chat session.
@@ -817,7 +1178,7 @@ export declare class ChatApi extends BaseAPI {
817
1178
  * @throws {RequiredError}
818
1179
  * @memberof ChatApi
819
1180
  */
820
- apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatParticipant, any>>;
1181
+ apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
821
1182
  /**
822
1183
  *
823
1184
  * @summary Get messages from a chat session.
@@ -862,5 +1223,14 @@ export declare class ChatApi extends BaseAPI {
862
1223
  * @throws {RequiredError}
863
1224
  * @memberof ChatApi
864
1225
  */
865
- apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatParticipant, any>>;
1226
+ apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatSessionModel, any>>;
1227
+ /**
1228
+ *
1229
+ * @summary Send whatsapp flow message
1230
+ * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPostRequest} requestParameters Request parameters.
1231
+ * @param {*} [options] Override http request option.
1232
+ * @throws {RequiredError}
1233
+ * @memberof ChatApi
1234
+ */
1235
+ apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(requestParameters: ChatApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPostRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage, any>>;
866
1236
  }