ch-chat-api-typescript-axios 1.4.4 → 1.4.6

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 (80) hide show
  1. package/dist/api/{migration-api.d.ts → migrations-api.d.ts} +14 -14
  2. package/dist/api/{migration-api.js → migrations-api.js} +27 -27
  3. package/dist/api/migrations-api.js.map +1 -0
  4. package/dist/api/{chat-api.d.ts → sessions-api.d.ts} +374 -307
  5. package/dist/api/{chat-api.js → sessions-api.js} +296 -214
  6. package/dist/api/sessions-api.js.map +1 -0
  7. package/dist/api/whats-apps-api.d.ts +95 -0
  8. package/dist/api/whats-apps-api.js +146 -0
  9. package/dist/api/whats-apps-api.js.map +1 -0
  10. package/dist/api.d.ts +3 -2
  11. package/dist/api.js +3 -2
  12. package/dist/api.js.map +1 -1
  13. package/dist/models/{api-v1-chat-tenant-id-sessions-get401-response-errors.d.ts → api-v1-chat-migrations-post401-response-errors.d.ts} +3 -3
  14. package/dist/models/{api-v1-chat-tenant-id-sessions-get401-response.js → api-v1-chat-migrations-post401-response-errors.js} +1 -1
  15. package/dist/models/api-v1-chat-migrations-post401-response-errors.js.map +1 -0
  16. package/dist/models/{api-v1-chat-tenant-id-sessions-get401-response.d.ts → api-v1-chat-migrations-post401-response.d.ts} +10 -10
  17. package/dist/models/{api-v1-chat-tenant-id-sessions-get401-response-errors.js → api-v1-chat-migrations-post401-response.js} +1 -1
  18. package/dist/models/api-v1-chat-migrations-post401-response.js.map +1 -0
  19. package/dist/models/chat-message.d.ts +7 -0
  20. package/dist/models/chat-send-marketing-template-message-command.d.ts +63 -0
  21. package/dist/models/chat-send-marketing-template-message-command.js +16 -0
  22. package/dist/models/chat-send-marketing-template-message-command.js.map +1 -0
  23. package/dist/models/chat-send-template-message-command.d.ts +38 -0
  24. package/dist/models/chat-send-template-message-command.js +16 -0
  25. package/dist/models/chat-send-template-message-command.js.map +1 -0
  26. package/dist/models/chat-session-model.d.ts +7 -12
  27. package/dist/models/create-chat-session-command.d.ts +3 -8
  28. package/dist/models/index.d.ts +19 -2
  29. package/dist/models/index.js +19 -2
  30. package/dist/models/index.js.map +1 -1
  31. package/dist/models/platform-metadata.d.ts +25 -0
  32. package/dist/models/platform-metadata.js +16 -0
  33. package/dist/models/platform-metadata.js.map +1 -0
  34. package/dist/models/recipient-users.d.ts +30 -0
  35. package/dist/models/recipient-users.js +16 -0
  36. package/dist/models/recipient-users.js.map +1 -0
  37. package/dist/models/template-component-inner-parameter-curreny.d.ts +36 -0
  38. package/dist/models/template-component-inner-parameter-curreny.js +16 -0
  39. package/dist/models/template-component-inner-parameter-curreny.js.map +1 -0
  40. package/dist/models/template-component-inner-parameter-date-time.d.ts +24 -0
  41. package/dist/models/template-component-inner-parameter-date-time.js +16 -0
  42. package/dist/models/template-component-inner-parameter-date-time.js.map +1 -0
  43. package/dist/models/template-component-inner-parameter-document.d.ts +30 -0
  44. package/dist/models/template-component-inner-parameter-document.js +16 -0
  45. package/dist/models/template-component-inner-parameter-document.js.map +1 -0
  46. package/dist/models/template-component-inner-parameter-image.d.ts +24 -0
  47. package/dist/models/template-component-inner-parameter-image.js +16 -0
  48. package/dist/models/template-component-inner-parameter-image.js.map +1 -0
  49. package/dist/models/template-component-inner-parameter-type.d.ts +25 -0
  50. package/dist/models/template-component-inner-parameter-type.js +30 -0
  51. package/dist/models/template-component-inner-parameter-type.js.map +1 -0
  52. package/dist/models/template-component-inner-parameter-video.d.ts +24 -0
  53. package/dist/models/template-component-inner-parameter-video.js +16 -0
  54. package/dist/models/template-component-inner-parameter-video.js.map +1 -0
  55. package/dist/models/template-component-inner-parameter.d.ts +66 -0
  56. package/dist/models/template-component-inner-parameter.js +16 -0
  57. package/dist/models/template-component-inner-parameter.js.map +1 -0
  58. package/dist/models/template-component-type.d.ts +22 -0
  59. package/dist/models/template-component-type.js +27 -0
  60. package/dist/models/template-component-type.js.map +1 -0
  61. package/dist/models/template-component.d.ts +45 -0
  62. package/dist/models/template-component.js +16 -0
  63. package/dist/models/template-component.js.map +1 -0
  64. package/dist/models/template-message-model.d.ts +38 -0
  65. package/dist/models/template-message-model.js +16 -0
  66. package/dist/models/template-message-model.js.map +1 -0
  67. package/dist/models/template-sub-component-type.d.ts +22 -0
  68. package/dist/models/template-sub-component-type.js +27 -0
  69. package/dist/models/template-sub-component-type.js.map +1 -0
  70. package/dist/models/whats-app-language-code.d.ts +130 -0
  71. package/dist/models/whats-app-language-code.js +135 -0
  72. package/dist/models/whats-app-language-code.js.map +1 -0
  73. package/dist/models/whats-app-metadata.d.ts +42 -0
  74. package/dist/models/whats-app-metadata.js +16 -0
  75. package/dist/models/whats-app-metadata.js.map +1 -0
  76. package/package.json +1 -1
  77. package/dist/api/chat-api.js.map +0 -1
  78. package/dist/api/migration-api.js.map +0 -1
  79. package/dist/models/api-v1-chat-tenant-id-sessions-get401-response-errors.js.map +0 -1
  80. package/dist/models/api-v1-chat-tenant-id-sessions-get401-response.js.map +0 -1
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = void 0;
28
+ exports.SessionsApi = exports.SessionsApiFactory = exports.SessionsApiFp = exports.SessionsApiAxiosParamCreator = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -33,10 +33,10 @@ const common_1 = require("../common");
33
33
  // @ts-ignore
34
34
  const base_1 = require("../base");
35
35
  /**
36
- * ChatApi - axios parameter creator
36
+ * SessionsApi - axios parameter creator
37
37
  * @export
38
38
  */
39
- const ChatApiAxiosParamCreator = function (configuration) {
39
+ const SessionsApiAxiosParamCreator = function (configuration) {
40
40
  return {
41
41
  /**
42
42
  *
@@ -153,6 +153,7 @@ const ChatApiAxiosParamCreator = function (configuration) {
153
153
  }),
154
154
  /**
155
155
  *
156
+ * @summary Check if a chat session read message
156
157
  * @param {string} tenantId
157
158
  * @param {string} sessionId
158
159
  * @param {*} [options] Override http request option.
@@ -597,6 +598,73 @@ const ChatApiAxiosParamCreator = function (configuration) {
597
598
  options: localVarRequestOptions,
598
599
  };
599
600
  }),
601
+ /**
602
+ *
603
+ * @summary Send a message in a chat session.
604
+ * @param {string} tenantId The tenant identifier.
605
+ * @param {string} sessionId The session identifier.
606
+ * @param {File} [file]
607
+ * @param {string} [text]
608
+ * @param {string} [mediaId]
609
+ * @param {string} [caption]
610
+ * @param {string} [link]
611
+ * @param {MessageTypes} [messageType]
612
+ * @param {string} [phoneNumber]
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ */
616
+ apiV1ChatTenantIdSessionsSessionIdMessageSendPost: (tenantId_1, sessionId_1, file_1, text_1, mediaId_1, caption_1, link_1, messageType_1, phoneNumber_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, file_1, text_1, mediaId_1, caption_1, link_1, messageType_1, phoneNumber_1, ...args_1], void 0, function* (tenantId, sessionId, file, text, mediaId, caption, link, messageType, phoneNumber, options = {}) {
617
+ // verify required parameter 'tenantId' is not null or undefined
618
+ (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessageSendPost', 'tenantId', tenantId);
619
+ // verify required parameter 'sessionId' is not null or undefined
620
+ (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessageSendPost', 'sessionId', sessionId);
621
+ const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/message/send`
622
+ .replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
623
+ .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
624
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
625
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
626
+ let baseOptions;
627
+ if (configuration) {
628
+ baseOptions = configuration.baseOptions;
629
+ }
630
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
631
+ const localVarHeaderParameter = {};
632
+ const localVarQueryParameter = {};
633
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
634
+ // authentication oauth2 required
635
+ // oauth required
636
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
637
+ if (file !== undefined) {
638
+ localVarFormParams.append('File', file);
639
+ }
640
+ if (text !== undefined) {
641
+ localVarFormParams.append('Text', text);
642
+ }
643
+ if (mediaId !== undefined) {
644
+ localVarFormParams.append('MediaId', mediaId);
645
+ }
646
+ if (caption !== undefined) {
647
+ localVarFormParams.append('Caption', caption);
648
+ }
649
+ if (link !== undefined) {
650
+ localVarFormParams.append('Link', link);
651
+ }
652
+ if (messageType !== undefined) {
653
+ localVarFormParams.append('MessageType', messageType);
654
+ }
655
+ if (phoneNumber !== undefined) {
656
+ localVarFormParams.append('PhoneNumber', phoneNumber);
657
+ }
658
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
659
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
660
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
661
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
662
+ localVarRequestOptions.data = localVarFormParams;
663
+ return {
664
+ url: (0, common_1.toPathString)(localVarUrlObj),
665
+ options: localVarRequestOptions,
666
+ };
667
+ }),
600
668
  /**
601
669
  *
602
670
  * @summary Get messages from a chat session.
@@ -689,25 +757,19 @@ const ChatApiAxiosParamCreator = function (configuration) {
689
757
  }),
690
758
  /**
691
759
  *
692
- * @summary Send a message in a chat session.
760
+ * @summary Update a chat session.
693
761
  * @param {string} tenantId The tenant identifier.
694
762
  * @param {string} sessionId The session identifier.
695
- * @param {File} [file]
696
- * @param {string} [text]
697
- * @param {string} [mediaId]
698
- * @param {string} [caption]
699
- * @param {string} [link]
700
- * @param {MessageTypes} [messageType]
701
- * @param {string} [phoneNumber]
763
+ * @param {PutChatSessionCommand} [putChatSessionCommand] The command to update a chat session.
702
764
  * @param {*} [options] Override http request option.
703
765
  * @throws {RequiredError}
704
766
  */
705
- apiV1ChatTenantIdSessionsSessionIdMessagesPost: (tenantId_1, sessionId_1, file_1, text_1, mediaId_1, caption_1, link_1, messageType_1, phoneNumber_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, file_1, text_1, mediaId_1, caption_1, link_1, messageType_1, phoneNumber_1, ...args_1], void 0, function* (tenantId, sessionId, file, text, mediaId, caption, link, messageType, phoneNumber, options = {}) {
767
+ apiV1ChatTenantIdSessionsSessionIdPatch: (tenantId_1, sessionId_1, putChatSessionCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, putChatSessionCommand_1, ...args_1], void 0, function* (tenantId, sessionId, putChatSessionCommand, options = {}) {
706
768
  // verify required parameter 'tenantId' is not null or undefined
707
- (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessagesPost', 'tenantId', tenantId);
769
+ (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdPatch', 'tenantId', tenantId);
708
770
  // verify required parameter 'sessionId' is not null or undefined
709
- (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdMessagesPost', 'sessionId', sessionId);
710
- const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/messages`
771
+ (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdPatch', 'sessionId', sessionId);
772
+ const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}`
711
773
  .replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
712
774
  .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
713
775
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -716,39 +778,17 @@ const ChatApiAxiosParamCreator = function (configuration) {
716
778
  if (configuration) {
717
779
  baseOptions = configuration.baseOptions;
718
780
  }
719
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
781
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
720
782
  const localVarHeaderParameter = {};
721
783
  const localVarQueryParameter = {};
722
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
723
784
  // authentication oauth2 required
724
785
  // oauth required
725
786
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_chat_api"], configuration);
726
- if (file !== undefined) {
727
- localVarFormParams.append('File', file);
728
- }
729
- if (text !== undefined) {
730
- localVarFormParams.append('Text', text);
731
- }
732
- if (mediaId !== undefined) {
733
- localVarFormParams.append('MediaId', mediaId);
734
- }
735
- if (caption !== undefined) {
736
- localVarFormParams.append('Caption', caption);
737
- }
738
- if (link !== undefined) {
739
- localVarFormParams.append('Link', link);
740
- }
741
- if (messageType !== undefined) {
742
- localVarFormParams.append('MessageType', messageType);
743
- }
744
- if (phoneNumber !== undefined) {
745
- localVarFormParams.append('PhoneNumber', phoneNumber);
746
- }
747
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
787
+ localVarHeaderParameter['Content-Type'] = 'application/json';
748
788
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
749
789
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
750
790
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
751
- localVarRequestOptions.data = localVarFormParams;
791
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putChatSessionCommand, localVarRequestOptions, configuration);
752
792
  return {
753
793
  url: (0, common_1.toPathString)(localVarUrlObj),
754
794
  options: localVarRequestOptions,
@@ -756,19 +796,19 @@ const ChatApiAxiosParamCreator = function (configuration) {
756
796
  }),
757
797
  /**
758
798
  *
759
- * @summary Update a chat session.
799
+ * @summary Transfer a chat session agent.
760
800
  * @param {string} tenantId The tenant identifier.
761
801
  * @param {string} sessionId The session identifier.
762
- * @param {PutChatSessionCommand} [putChatSessionCommand] The command to update a chat session.
802
+ * @param {TransferManagerCommand} [transferManagerCommand] The command to transfer a chat session.
763
803
  * @param {*} [options] Override http request option.
764
804
  * @throws {RequiredError}
765
805
  */
766
- apiV1ChatTenantIdSessionsSessionIdPatch: (tenantId_1, sessionId_1, putChatSessionCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, putChatSessionCommand_1, ...args_1], void 0, function* (tenantId, sessionId, putChatSessionCommand, options = {}) {
806
+ apiV1ChatTenantIdSessionsSessionIdTransferPut: (tenantId_1, sessionId_1, transferManagerCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, transferManagerCommand_1, ...args_1], void 0, function* (tenantId, sessionId, transferManagerCommand, options = {}) {
767
807
  // verify required parameter 'tenantId' is not null or undefined
768
- (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdPatch', 'tenantId', tenantId);
808
+ (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdTransferPut', 'tenantId', tenantId);
769
809
  // verify required parameter 'sessionId' is not null or undefined
770
- (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdPatch', 'sessionId', sessionId);
771
- const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}`
810
+ (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdTransferPut', 'sessionId', sessionId);
811
+ const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/transfer`
772
812
  .replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
773
813
  .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
774
814
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -777,7 +817,7 @@ const ChatApiAxiosParamCreator = function (configuration) {
777
817
  if (configuration) {
778
818
  baseOptions = configuration.baseOptions;
779
819
  }
780
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
820
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
781
821
  const localVarHeaderParameter = {};
782
822
  const localVarQueryParameter = {};
783
823
  // authentication oauth2 required
@@ -787,7 +827,7 @@ const ChatApiAxiosParamCreator = function (configuration) {
787
827
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
788
828
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
789
829
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
790
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putChatSessionCommand, localVarRequestOptions, configuration);
830
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(transferManagerCommand, localVarRequestOptions, configuration);
791
831
  return {
792
832
  url: (0, common_1.toPathString)(localVarUrlObj),
793
833
  options: localVarRequestOptions,
@@ -795,19 +835,19 @@ const ChatApiAxiosParamCreator = function (configuration) {
795
835
  }),
796
836
  /**
797
837
  *
798
- * @summary Transfer a chat session agent.
799
- * @param {string} tenantId The tenant identifier.
800
- * @param {string} sessionId The session identifier.
801
- * @param {TransferManagerCommand} [transferManagerCommand] The command to transfer a chat session.
838
+ * @summary Send whatsapp flow message
839
+ * @param {string} tenantId
840
+ * @param {string} sessionId
841
+ * @param {ChatSendFlowMessageCommand} [chatSendFlowMessageCommand]
802
842
  * @param {*} [options] Override http request option.
803
843
  * @throws {RequiredError}
804
844
  */
805
- apiV1ChatTenantIdSessionsSessionIdTransferPut: (tenantId_1, sessionId_1, transferManagerCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, transferManagerCommand_1, ...args_1], void 0, function* (tenantId, sessionId, transferManagerCommand, options = {}) {
845
+ apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost: (tenantId_1, sessionId_1, chatSendFlowMessageCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, chatSendFlowMessageCommand_1, ...args_1], void 0, function* (tenantId, sessionId, chatSendFlowMessageCommand, options = {}) {
806
846
  // verify required parameter 'tenantId' is not null or undefined
807
- (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdTransferPut', 'tenantId', tenantId);
847
+ (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost', 'tenantId', tenantId);
808
848
  // verify required parameter 'sessionId' is not null or undefined
809
- (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdTransferPut', 'sessionId', sessionId);
810
- const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/transfer`
849
+ (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost', 'sessionId', sessionId);
850
+ const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/whatsapp/flow/message/send`
811
851
  .replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
812
852
  .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
813
853
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -816,7 +856,7 @@ const ChatApiAxiosParamCreator = function (configuration) {
816
856
  if (configuration) {
817
857
  baseOptions = configuration.baseOptions;
818
858
  }
819
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
859
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
820
860
  const localVarHeaderParameter = {};
821
861
  const localVarQueryParameter = {};
822
862
  // authentication oauth2 required
@@ -826,7 +866,7 @@ const ChatApiAxiosParamCreator = function (configuration) {
826
866
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
827
867
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
828
868
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
829
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(transferManagerCommand, localVarRequestOptions, configuration);
869
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(chatSendFlowMessageCommand, localVarRequestOptions, configuration);
830
870
  return {
831
871
  url: (0, common_1.toPathString)(localVarUrlObj),
832
872
  options: localVarRequestOptions,
@@ -834,19 +874,19 @@ const ChatApiAxiosParamCreator = function (configuration) {
834
874
  }),
835
875
  /**
836
876
  *
837
- * @summary Send whatsapp flow message
877
+ * @summary Send whatsapp template message
838
878
  * @param {string} tenantId
839
879
  * @param {string} sessionId
840
- * @param {ChatSendFlowMessageCommand} [chatSendFlowMessageCommand]
880
+ * @param {ChatSendTemplateMessageCommand} [chatSendTemplateMessageCommand]
841
881
  * @param {*} [options] Override http request option.
842
882
  * @throws {RequiredError}
843
883
  */
844
- apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost: (tenantId_1, sessionId_1, chatSendFlowMessageCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, chatSendFlowMessageCommand_1, ...args_1], void 0, function* (tenantId, sessionId, chatSendFlowMessageCommand, options = {}) {
884
+ apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost: (tenantId_1, sessionId_1, chatSendTemplateMessageCommand_1, ...args_1) => __awaiter(this, [tenantId_1, sessionId_1, chatSendTemplateMessageCommand_1, ...args_1], void 0, function* (tenantId, sessionId, chatSendTemplateMessageCommand, options = {}) {
845
885
  // verify required parameter 'tenantId' is not null or undefined
846
- (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost', 'tenantId', tenantId);
886
+ (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost', 'tenantId', tenantId);
847
887
  // verify required parameter 'sessionId' is not null or undefined
848
- (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost', 'sessionId', sessionId);
849
- const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/whatsapp/flow/messages`
888
+ (0, common_1.assertParamExists)('apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost', 'sessionId', sessionId);
889
+ const localVarPath = `/api/v1/chat/{tenantId}/sessions/{sessionId}/whatsapp/template/message/send`
850
890
  .replace(`{${"tenantId"}}`, encodeURIComponent(String(tenantId)))
851
891
  .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
852
892
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -865,7 +905,7 @@ const ChatApiAxiosParamCreator = function (configuration) {
865
905
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
866
906
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
867
907
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
868
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(chatSendFlowMessageCommand, localVarRequestOptions, configuration);
908
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(chatSendTemplateMessageCommand, localVarRequestOptions, configuration);
869
909
  return {
870
910
  url: (0, common_1.toPathString)(localVarUrlObj),
871
911
  options: localVarRequestOptions,
@@ -873,13 +913,13 @@ const ChatApiAxiosParamCreator = function (configuration) {
873
913
  }),
874
914
  };
875
915
  };
876
- exports.ChatApiAxiosParamCreator = ChatApiAxiosParamCreator;
916
+ exports.SessionsApiAxiosParamCreator = SessionsApiAxiosParamCreator;
877
917
  /**
878
- * ChatApi - functional programming interface
918
+ * SessionsApi - functional programming interface
879
919
  * @export
880
920
  */
881
- const ChatApiFp = function (configuration) {
882
- const localVarAxiosParamCreator = (0, exports.ChatApiAxiosParamCreator)(configuration);
921
+ const SessionsApiFp = function (configuration) {
922
+ const localVarAxiosParamCreator = (0, exports.SessionsApiAxiosParamCreator)(configuration);
883
923
  return {
884
924
  /**
885
925
  *
@@ -904,7 +944,7 @@ const ChatApiFp = function (configuration) {
904
944
  var _a, _b, _c;
905
945
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsGet(tenantId, id, assigneeIds, chatSessionStatus, title, userName, userEmail, sortBy, isRead, page, limit, lastRetrieved, options);
906
946
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
907
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
947
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
908
948
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
909
949
  });
910
950
  },
@@ -921,12 +961,13 @@ const ChatApiFp = function (configuration) {
921
961
  var _a, _b, _c;
922
962
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsPost(tenantId, createChatSessionCommand, options);
923
963
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
924
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
964
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
925
965
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
926
966
  });
927
967
  },
928
968
  /**
929
969
  *
970
+ * @summary Check if a chat session read message
930
971
  * @param {string} tenantId
931
972
  * @param {string} sessionId
932
973
  * @param {*} [options] Override http request option.
@@ -937,7 +978,7 @@ const ChatApiFp = function (configuration) {
937
978
  var _a, _b, _c;
938
979
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdCheckPost(tenantId, sessionId, options);
939
980
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
940
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdCheckPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
981
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdCheckPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
941
982
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
942
983
  });
943
984
  },
@@ -954,7 +995,7 @@ const ChatApiFp = function (configuration) {
954
995
  var _a, _b, _c;
955
996
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(tenantId, sessionId, options);
956
997
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
957
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
998
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
958
999
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
959
1000
  });
960
1001
  },
@@ -971,7 +1012,7 @@ const ChatApiFp = function (configuration) {
971
1012
  var _a, _b, _c;
972
1013
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdDelete(tenantId, sessionId, options);
973
1014
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
974
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1015
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
975
1016
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
976
1017
  });
977
1018
  },
@@ -988,7 +1029,7 @@ const ChatApiFp = function (configuration) {
988
1029
  var _a, _b, _c;
989
1030
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdGet(tenantId, sessionId, options);
990
1031
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
991
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1032
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
992
1033
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
993
1034
  });
994
1035
  },
@@ -1012,7 +1053,7 @@ const ChatApiFp = function (configuration) {
1012
1053
  var _a, _b, _c;
1013
1054
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(tenantId, sessionId, id, tenantId2, userId, phoneNumber, page, limit, lastRetrieved, options);
1014
1055
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1015
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1056
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1016
1057
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1017
1058
  });
1018
1059
  },
@@ -1030,7 +1071,7 @@ const ChatApiFp = function (configuration) {
1030
1071
  var _a, _b, _c;
1031
1072
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(tenantId, sessionId, intakeFormId, options);
1032
1073
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1033
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1074
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1034
1075
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1035
1076
  });
1036
1077
  },
@@ -1048,7 +1089,7 @@ const ChatApiFp = function (configuration) {
1048
1089
  var _a, _b, _c;
1049
1090
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(tenantId, sessionId, intakeFormId, options);
1050
1091
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1051
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1092
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1052
1093
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1053
1094
  });
1054
1095
  },
@@ -1067,7 +1108,7 @@ const ChatApiFp = function (configuration) {
1067
1108
  var _a, _b, _c;
1068
1109
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(tenantId, sessionId, intakeFormId, patchIntakeFormCommand, options);
1069
1110
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1070
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1111
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1071
1112
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1072
1113
  });
1073
1114
  },
@@ -1085,7 +1126,7 @@ const ChatApiFp = function (configuration) {
1085
1126
  var _a, _b, _c;
1086
1127
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(tenantId, sessionId, createIntakeFormCommand, options);
1087
1128
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1088
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1129
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdIntakeformsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1089
1130
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1090
1131
  });
1091
1132
  },
@@ -1103,7 +1144,7 @@ const ChatApiFp = function (configuration) {
1103
1144
  var _a, _b, _c;
1104
1145
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdJoinPost(tenantId, sessionId, joinChatSessionCommand, options);
1105
1146
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1106
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdJoinPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1147
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdJoinPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1107
1148
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1108
1149
  });
1109
1150
  },
@@ -1120,69 +1161,69 @@ const ChatApiFp = function (configuration) {
1120
1161
  var _a, _b, _c;
1121
1162
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdLeaveDelete(tenantId, sessionId, options);
1122
1163
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1123
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdLeaveDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1164
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdLeaveDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1124
1165
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1125
1166
  });
1126
1167
  },
1127
1168
  /**
1128
1169
  *
1129
- * @summary Get messages from a chat session.
1170
+ * @summary Send a message in a chat session.
1130
1171
  * @param {string} tenantId The tenant identifier.
1131
1172
  * @param {string} sessionId The session identifier.
1132
- * @param {number} [page]
1133
- * @param {number} [limit]
1134
- * @param {Date} [lastRetrieved]
1173
+ * @param {File} [file]
1174
+ * @param {string} [text]
1175
+ * @param {string} [mediaId]
1176
+ * @param {string} [caption]
1177
+ * @param {string} [link]
1178
+ * @param {MessageTypes} [messageType]
1179
+ * @param {string} [phoneNumber]
1135
1180
  * @param {*} [options] Override http request option.
1136
1181
  * @throws {RequiredError}
1137
1182
  */
1138
- apiV1ChatTenantIdSessionsSessionIdMessagesGet(tenantId, sessionId, page, limit, lastRetrieved, options) {
1183
+ apiV1ChatTenantIdSessionsSessionIdMessageSendPost(tenantId, sessionId, file, text, mediaId, caption, link, messageType, phoneNumber, options) {
1139
1184
  return __awaiter(this, void 0, void 0, function* () {
1140
1185
  var _a, _b, _c;
1141
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessagesGet(tenantId, sessionId, page, limit, lastRetrieved, options);
1186
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessageSendPost(tenantId, sessionId, file, text, mediaId, caption, link, messageType, phoneNumber, options);
1142
1187
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1143
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdMessagesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1188
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdMessageSendPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1144
1189
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1145
1190
  });
1146
1191
  },
1147
1192
  /**
1148
1193
  *
1149
- * @summary Reactivate expired media in a chat message.
1194
+ * @summary Get messages from a chat session.
1150
1195
  * @param {string} tenantId The tenant identifier.
1151
1196
  * @param {string} sessionId The session identifier.
1152
- * @param {string} messageId
1197
+ * @param {number} [page]
1198
+ * @param {number} [limit]
1199
+ * @param {Date} [lastRetrieved]
1153
1200
  * @param {*} [options] Override http request option.
1154
1201
  * @throws {RequiredError}
1155
1202
  */
1156
- apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(tenantId, sessionId, messageId, options) {
1203
+ apiV1ChatTenantIdSessionsSessionIdMessagesGet(tenantId, sessionId, page, limit, lastRetrieved, options) {
1157
1204
  return __awaiter(this, void 0, void 0, function* () {
1158
1205
  var _a, _b, _c;
1159
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(tenantId, sessionId, messageId, options);
1206
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessagesGet(tenantId, sessionId, page, limit, lastRetrieved, options);
1160
1207
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1161
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1208
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdMessagesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1162
1209
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1163
1210
  });
1164
1211
  },
1165
1212
  /**
1166
1213
  *
1167
- * @summary Send a message in a chat session.
1214
+ * @summary Reactivate expired media in a chat message.
1168
1215
  * @param {string} tenantId The tenant identifier.
1169
1216
  * @param {string} sessionId The session identifier.
1170
- * @param {File} [file]
1171
- * @param {string} [text]
1172
- * @param {string} [mediaId]
1173
- * @param {string} [caption]
1174
- * @param {string} [link]
1175
- * @param {MessageTypes} [messageType]
1176
- * @param {string} [phoneNumber]
1217
+ * @param {string} messageId
1177
1218
  * @param {*} [options] Override http request option.
1178
1219
  * @throws {RequiredError}
1179
1220
  */
1180
- apiV1ChatTenantIdSessionsSessionIdMessagesPost(tenantId, sessionId, file, text, mediaId, caption, link, messageType, phoneNumber, options) {
1221
+ apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(tenantId, sessionId, messageId, options) {
1181
1222
  return __awaiter(this, void 0, void 0, function* () {
1182
1223
  var _a, _b, _c;
1183
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessagesPost(tenantId, sessionId, file, text, mediaId, caption, link, messageType, phoneNumber, options);
1224
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(tenantId, sessionId, messageId, options);
1184
1225
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1185
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdMessagesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1226
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1186
1227
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1187
1228
  });
1188
1229
  },
@@ -1200,7 +1241,7 @@ const ChatApiFp = function (configuration) {
1200
1241
  var _a, _b, _c;
1201
1242
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdPatch(tenantId, sessionId, putChatSessionCommand, options);
1202
1243
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1203
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1244
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1204
1245
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1205
1246
  });
1206
1247
  },
@@ -1218,7 +1259,7 @@ const ChatApiFp = function (configuration) {
1218
1259
  var _a, _b, _c;
1219
1260
  const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdTransferPut(tenantId, sessionId, transferManagerCommand, options);
1220
1261
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1221
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdTransferPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1262
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdTransferPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1222
1263
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1223
1264
  });
1224
1265
  },
@@ -1231,29 +1272,47 @@ const ChatApiFp = function (configuration) {
1231
1272
  * @param {*} [options] Override http request option.
1232
1273
  * @throws {RequiredError}
1233
1274
  */
1234
- apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(tenantId, sessionId, chatSendFlowMessageCommand, options) {
1275
+ apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(tenantId, sessionId, chatSendFlowMessageCommand, options) {
1276
+ return __awaiter(this, void 0, void 0, function* () {
1277
+ var _a, _b, _c;
1278
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(tenantId, sessionId, chatSendFlowMessageCommand, options);
1279
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1280
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1281
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1282
+ });
1283
+ },
1284
+ /**
1285
+ *
1286
+ * @summary Send whatsapp template message
1287
+ * @param {string} tenantId
1288
+ * @param {string} sessionId
1289
+ * @param {ChatSendTemplateMessageCommand} [chatSendTemplateMessageCommand]
1290
+ * @param {*} [options] Override http request option.
1291
+ * @throws {RequiredError}
1292
+ */
1293
+ apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(tenantId, sessionId, chatSendTemplateMessageCommand, options) {
1235
1294
  return __awaiter(this, void 0, void 0, function* () {
1236
1295
  var _a, _b, _c;
1237
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(tenantId, sessionId, chatSendFlowMessageCommand, options);
1296
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(tenantId, sessionId, chatSendTemplateMessageCommand, options);
1238
1297
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1239
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1298
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SessionsApi.apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1240
1299
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1241
1300
  });
1242
1301
  },
1243
1302
  };
1244
1303
  };
1245
- exports.ChatApiFp = ChatApiFp;
1304
+ exports.SessionsApiFp = SessionsApiFp;
1246
1305
  /**
1247
- * ChatApi - factory interface
1306
+ * SessionsApi - factory interface
1248
1307
  * @export
1249
1308
  */
1250
- const ChatApiFactory = function (configuration, basePath, axios) {
1251
- const localVarFp = (0, exports.ChatApiFp)(configuration);
1309
+ const SessionsApiFactory = function (configuration, basePath, axios) {
1310
+ const localVarFp = (0, exports.SessionsApiFp)(configuration);
1252
1311
  return {
1253
1312
  /**
1254
1313
  *
1255
1314
  * @summary Get all chat sessions.
1256
- * @param {ChatApiApiV1ChatTenantIdSessionsGetRequest} requestParameters Request parameters.
1315
+ * @param {SessionsApiApiV1ChatTenantIdSessionsGetRequest} requestParameters Request parameters.
1257
1316
  * @param {*} [options] Override http request option.
1258
1317
  * @throws {RequiredError}
1259
1318
  */
@@ -1263,7 +1322,7 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1263
1322
  /**
1264
1323
  *
1265
1324
  * @summary Create a chat session.
1266
- * @param {ChatApiApiV1ChatTenantIdSessionsPostRequest} requestParameters Request parameters.
1325
+ * @param {SessionsApiApiV1ChatTenantIdSessionsPostRequest} requestParameters Request parameters.
1267
1326
  * @param {*} [options] Override http request option.
1268
1327
  * @throws {RequiredError}
1269
1328
  */
@@ -1272,7 +1331,8 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1272
1331
  },
1273
1332
  /**
1274
1333
  *
1275
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdCheckPostRequest} requestParameters Request parameters.
1334
+ * @summary Check if a chat session read message
1335
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdCheckPostRequest} requestParameters Request parameters.
1276
1336
  * @param {*} [options] Override http request option.
1277
1337
  * @throws {RequiredError}
1278
1338
  */
@@ -1282,7 +1342,7 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1282
1342
  /**
1283
1343
  *
1284
1344
  * @summary Convert a guest to a signed-in user.
1285
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdConvertsigninuserPostRequest} requestParameters Request parameters.
1345
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdConvertsigninuserPostRequest} requestParameters Request parameters.
1286
1346
  * @param {*} [options] Override http request option.
1287
1347
  * @throws {RequiredError}
1288
1348
  */
@@ -1292,7 +1352,7 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1292
1352
  /**
1293
1353
  *
1294
1354
  * @summary Delete a chat session.
1295
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest} requestParameters Request parameters.
1355
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest} requestParameters Request parameters.
1296
1356
  * @param {*} [options] Override http request option.
1297
1357
  * @throws {RequiredError}
1298
1358
  */
@@ -1302,7 +1362,7 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1302
1362
  /**
1303
1363
  *
1304
1364
  * @summary Get chat session by session Id.
1305
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest} requestParameters Request parameters.
1365
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdGetRequest} requestParameters Request parameters.
1306
1366
  * @param {*} [options] Override http request option.
1307
1367
  * @throws {RequiredError}
1308
1368
  */
@@ -1312,7 +1372,7 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1312
1372
  /**
1313
1373
  *
1314
1374
  * @summary Get intake forms by session id.
1315
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest} requestParameters Request parameters.
1375
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest} requestParameters Request parameters.
1316
1376
  * @param {*} [options] Override http request option.
1317
1377
  * @throws {RequiredError}
1318
1378
  */
@@ -1322,7 +1382,7 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1322
1382
  /**
1323
1383
  *
1324
1384
  * @summary Delete intake form by id.
1325
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest} requestParameters Request parameters.
1385
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest} requestParameters Request parameters.
1326
1386
  * @param {*} [options] Override http request option.
1327
1387
  * @throws {RequiredError}
1328
1388
  */
@@ -1332,7 +1392,7 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1332
1392
  /**
1333
1393
  *
1334
1394
  * @summary Get intake form by id.
1335
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest} requestParameters Request parameters.
1395
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest} requestParameters Request parameters.
1336
1396
  * @param {*} [options] Override http request option.
1337
1397
  * @throws {RequiredError}
1338
1398
  */
@@ -1342,7 +1402,7 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1342
1402
  /**
1343
1403
  *
1344
1404
  * @summary Update intake form by id.
1345
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest} requestParameters Request parameters.
1405
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest} requestParameters Request parameters.
1346
1406
  * @param {*} [options] Override http request option.
1347
1407
  * @throws {RequiredError}
1348
1408
  */
@@ -1352,7 +1412,7 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1352
1412
  /**
1353
1413
  *
1354
1414
  * @summary Create a new intake form.
1355
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsPostRequest} requestParameters Request parameters.
1415
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsPostRequest} requestParameters Request parameters.
1356
1416
  * @param {*} [options] Override http request option.
1357
1417
  * @throws {RequiredError}
1358
1418
  */
@@ -1362,7 +1422,7 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1362
1422
  /**
1363
1423
  *
1364
1424
  * @summary Join a chat session.
1365
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest} requestParameters Request parameters.
1425
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest} requestParameters Request parameters.
1366
1426
  * @param {*} [options] Override http request option.
1367
1427
  * @throws {RequiredError}
1368
1428
  */
@@ -1372,7 +1432,7 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1372
1432
  /**
1373
1433
  *
1374
1434
  * @summary Leave a chat session.
1375
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest} requestParameters Request parameters.
1435
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest} requestParameters Request parameters.
1376
1436
  * @param {*} [options] Override http request option.
1377
1437
  * @throws {RequiredError}
1378
1438
  */
@@ -1381,38 +1441,38 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1381
1441
  },
1382
1442
  /**
1383
1443
  *
1384
- * @summary Get messages from a chat session.
1385
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest} requestParameters Request parameters.
1444
+ * @summary Send a message in a chat session.
1445
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessageSendPostRequest} requestParameters Request parameters.
1386
1446
  * @param {*} [options] Override http request option.
1387
1447
  * @throws {RequiredError}
1388
1448
  */
1389
- apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters, options) {
1390
- return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
1449
+ apiV1ChatTenantIdSessionsSessionIdMessageSendPost(requestParameters, options) {
1450
+ return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.file, requestParameters.text, requestParameters.mediaId, requestParameters.caption, requestParameters.link, requestParameters.messageType, requestParameters.phoneNumber, options).then((request) => request(axios, basePath));
1391
1451
  },
1392
1452
  /**
1393
1453
  *
1394
- * @summary Reactivate expired media in a chat message.
1395
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePutRequest} requestParameters Request parameters.
1454
+ * @summary Get messages from a chat session.
1455
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest} requestParameters Request parameters.
1396
1456
  * @param {*} [options] Override http request option.
1397
1457
  * @throws {RequiredError}
1398
1458
  */
1399
- apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters, options) {
1400
- return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.messageId, options).then((request) => request(axios, basePath));
1459
+ apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters, options) {
1460
+ return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(axios, basePath));
1401
1461
  },
1402
1462
  /**
1403
1463
  *
1404
- * @summary Send a message in a chat session.
1405
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesPostRequest} requestParameters Request parameters.
1464
+ * @summary Reactivate expired media in a chat message.
1465
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePutRequest} requestParameters Request parameters.
1406
1466
  * @param {*} [options] Override http request option.
1407
1467
  * @throws {RequiredError}
1408
1468
  */
1409
- apiV1ChatTenantIdSessionsSessionIdMessagesPost(requestParameters, options) {
1410
- return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessagesPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.file, requestParameters.text, requestParameters.mediaId, requestParameters.caption, requestParameters.link, requestParameters.messageType, requestParameters.phoneNumber, options).then((request) => request(axios, basePath));
1469
+ apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters, options) {
1470
+ return localVarFp.apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.messageId, options).then((request) => request(axios, basePath));
1411
1471
  },
1412
1472
  /**
1413
1473
  *
1414
1474
  * @summary Update a chat session.
1415
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdPatchRequest} requestParameters Request parameters.
1475
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdPatchRequest} requestParameters Request parameters.
1416
1476
  * @param {*} [options] Override http request option.
1417
1477
  * @throws {RequiredError}
1418
1478
  */
@@ -1422,7 +1482,7 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1422
1482
  /**
1423
1483
  *
1424
1484
  * @summary Transfer a chat session agent.
1425
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest} requestParameters Request parameters.
1485
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest} requestParameters Request parameters.
1426
1486
  * @param {*} [options] Override http request option.
1427
1487
  * @throws {RequiredError}
1428
1488
  */
@@ -1432,231 +1492,253 @@ const ChatApiFactory = function (configuration, basePath, axios) {
1432
1492
  /**
1433
1493
  *
1434
1494
  * @summary Send whatsapp flow message
1435
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPostRequest} requestParameters Request parameters.
1495
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPostRequest} requestParameters Request parameters.
1496
+ * @param {*} [options] Override http request option.
1497
+ * @throws {RequiredError}
1498
+ */
1499
+ apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(requestParameters, options) {
1500
+ return localVarFp.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendFlowMessageCommand, options).then((request) => request(axios, basePath));
1501
+ },
1502
+ /**
1503
+ *
1504
+ * @summary Send whatsapp template message
1505
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPostRequest} requestParameters Request parameters.
1436
1506
  * @param {*} [options] Override http request option.
1437
1507
  * @throws {RequiredError}
1438
1508
  */
1439
- apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(requestParameters, options) {
1440
- return localVarFp.apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendFlowMessageCommand, options).then((request) => request(axios, basePath));
1509
+ apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(requestParameters, options) {
1510
+ return localVarFp.apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendTemplateMessageCommand, options).then((request) => request(axios, basePath));
1441
1511
  },
1442
1512
  };
1443
1513
  };
1444
- exports.ChatApiFactory = ChatApiFactory;
1514
+ exports.SessionsApiFactory = SessionsApiFactory;
1445
1515
  /**
1446
- * ChatApi - object-oriented interface
1516
+ * SessionsApi - object-oriented interface
1447
1517
  * @export
1448
- * @class ChatApi
1518
+ * @class SessionsApi
1449
1519
  * @extends {BaseAPI}
1450
1520
  */
1451
- class ChatApi extends base_1.BaseAPI {
1521
+ class SessionsApi extends base_1.BaseAPI {
1452
1522
  /**
1453
1523
  *
1454
1524
  * @summary Get all chat sessions.
1455
- * @param {ChatApiApiV1ChatTenantIdSessionsGetRequest} requestParameters Request parameters.
1525
+ * @param {SessionsApiApiV1ChatTenantIdSessionsGetRequest} requestParameters Request parameters.
1456
1526
  * @param {*} [options] Override http request option.
1457
1527
  * @throws {RequiredError}
1458
- * @memberof ChatApi
1528
+ * @memberof SessionsApi
1459
1529
  */
1460
1530
  apiV1ChatTenantIdSessionsGet(requestParameters, options) {
1461
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsGet(requestParameters.tenantId, requestParameters.id, requestParameters.assigneeIds, requestParameters.chatSessionStatus, requestParameters.title, requestParameters.userName, requestParameters.userEmail, requestParameters.sortBy, requestParameters.isRead, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
1531
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsGet(requestParameters.tenantId, requestParameters.id, requestParameters.assigneeIds, requestParameters.chatSessionStatus, requestParameters.title, requestParameters.userName, requestParameters.userEmail, requestParameters.sortBy, requestParameters.isRead, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
1462
1532
  }
1463
1533
  /**
1464
1534
  *
1465
1535
  * @summary Create a chat session.
1466
- * @param {ChatApiApiV1ChatTenantIdSessionsPostRequest} requestParameters Request parameters.
1536
+ * @param {SessionsApiApiV1ChatTenantIdSessionsPostRequest} requestParameters Request parameters.
1467
1537
  * @param {*} [options] Override http request option.
1468
1538
  * @throws {RequiredError}
1469
- * @memberof ChatApi
1539
+ * @memberof SessionsApi
1470
1540
  */
1471
1541
  apiV1ChatTenantIdSessionsPost(requestParameters, options) {
1472
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsPost(requestParameters.tenantId, requestParameters.createChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
1542
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsPost(requestParameters.tenantId, requestParameters.createChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
1473
1543
  }
1474
1544
  /**
1475
1545
  *
1476
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdCheckPostRequest} requestParameters Request parameters.
1546
+ * @summary Check if a chat session read message
1547
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdCheckPostRequest} requestParameters Request parameters.
1477
1548
  * @param {*} [options] Override http request option.
1478
1549
  * @throws {RequiredError}
1479
- * @memberof ChatApi
1550
+ * @memberof SessionsApi
1480
1551
  */
1481
1552
  apiV1ChatTenantIdSessionsSessionIdCheckPost(requestParameters, options) {
1482
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdCheckPost(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
1553
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdCheckPost(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
1483
1554
  }
1484
1555
  /**
1485
1556
  *
1486
1557
  * @summary Convert a guest to a signed-in user.
1487
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdConvertsigninuserPostRequest} requestParameters Request parameters.
1558
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdConvertsigninuserPostRequest} requestParameters Request parameters.
1488
1559
  * @param {*} [options] Override http request option.
1489
1560
  * @throws {RequiredError}
1490
- * @memberof ChatApi
1561
+ * @memberof SessionsApi
1491
1562
  */
1492
1563
  apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters, options) {
1493
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
1564
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdConvertsigninuserPost(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
1494
1565
  }
1495
1566
  /**
1496
1567
  *
1497
1568
  * @summary Delete a chat session.
1498
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest} requestParameters Request parameters.
1569
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdDeleteRequest} requestParameters Request parameters.
1499
1570
  * @param {*} [options] Override http request option.
1500
1571
  * @throws {RequiredError}
1501
- * @memberof ChatApi
1572
+ * @memberof SessionsApi
1502
1573
  */
1503
1574
  apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters, options) {
1504
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
1575
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
1505
1576
  }
1506
1577
  /**
1507
1578
  *
1508
1579
  * @summary Get chat session by session Id.
1509
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdGetRequest} requestParameters Request parameters.
1580
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdGetRequest} requestParameters Request parameters.
1510
1581
  * @param {*} [options] Override http request option.
1511
1582
  * @throws {RequiredError}
1512
- * @memberof ChatApi
1583
+ * @memberof SessionsApi
1513
1584
  */
1514
1585
  apiV1ChatTenantIdSessionsSessionIdGet(requestParameters, options) {
1515
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdGet(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
1586
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdGet(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
1516
1587
  }
1517
1588
  /**
1518
1589
  *
1519
1590
  * @summary Get intake forms by session id.
1520
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest} requestParameters Request parameters.
1591
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsGetRequest} requestParameters Request parameters.
1521
1592
  * @param {*} [options] Override http request option.
1522
1593
  * @throws {RequiredError}
1523
- * @memberof ChatApi
1594
+ * @memberof SessionsApi
1524
1595
  */
1525
1596
  apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters, options) {
1526
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.id, requestParameters.tenantId2, requestParameters.userId, requestParameters.phoneNumber, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
1597
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.id, requestParameters.tenantId2, requestParameters.userId, requestParameters.phoneNumber, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
1527
1598
  }
1528
1599
  /**
1529
1600
  *
1530
1601
  * @summary Delete intake form by id.
1531
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest} requestParameters Request parameters.
1602
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDeleteRequest} requestParameters Request parameters.
1532
1603
  * @param {*} [options] Override http request option.
1533
1604
  * @throws {RequiredError}
1534
- * @memberof ChatApi
1605
+ * @memberof SessionsApi
1535
1606
  */
1536
1607
  apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters, options) {
1537
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(this.axios, this.basePath));
1608
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdDelete(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(this.axios, this.basePath));
1538
1609
  }
1539
1610
  /**
1540
1611
  *
1541
1612
  * @summary Get intake form by id.
1542
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest} requestParameters Request parameters.
1613
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGetRequest} requestParameters Request parameters.
1543
1614
  * @param {*} [options] Override http request option.
1544
1615
  * @throws {RequiredError}
1545
- * @memberof ChatApi
1616
+ * @memberof SessionsApi
1546
1617
  */
1547
1618
  apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters, options) {
1548
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(this.axios, this.basePath));
1619
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, options).then((request) => request(this.axios, this.basePath));
1549
1620
  }
1550
1621
  /**
1551
1622
  *
1552
1623
  * @summary Update intake form by id.
1553
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest} requestParameters Request parameters.
1624
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatchRequest} requestParameters Request parameters.
1554
1625
  * @param {*} [options] Override http request option.
1555
1626
  * @throws {RequiredError}
1556
- * @memberof ChatApi
1627
+ * @memberof SessionsApi
1557
1628
  */
1558
1629
  apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters, options) {
1559
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, requestParameters.patchIntakeFormCommand, options).then((request) => request(this.axios, this.basePath));
1630
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsIntakeFormIdItemsPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.intakeFormId, requestParameters.patchIntakeFormCommand, options).then((request) => request(this.axios, this.basePath));
1560
1631
  }
1561
1632
  /**
1562
1633
  *
1563
1634
  * @summary Create a new intake form.
1564
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdIntakeformsPostRequest} requestParameters Request parameters.
1635
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdIntakeformsPostRequest} requestParameters Request parameters.
1565
1636
  * @param {*} [options] Override http request option.
1566
1637
  * @throws {RequiredError}
1567
- * @memberof ChatApi
1638
+ * @memberof SessionsApi
1568
1639
  */
1569
1640
  apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(requestParameters, options) {
1570
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.createIntakeFormCommand, options).then((request) => request(this.axios, this.basePath));
1641
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdIntakeformsPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.createIntakeFormCommand, options).then((request) => request(this.axios, this.basePath));
1571
1642
  }
1572
1643
  /**
1573
1644
  *
1574
1645
  * @summary Join a chat session.
1575
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest} requestParameters Request parameters.
1646
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdJoinPostRequest} requestParameters Request parameters.
1576
1647
  * @param {*} [options] Override http request option.
1577
1648
  * @throws {RequiredError}
1578
- * @memberof ChatApi
1649
+ * @memberof SessionsApi
1579
1650
  */
1580
1651
  apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters, options) {
1581
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.joinChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
1652
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdJoinPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.joinChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
1582
1653
  }
1583
1654
  /**
1584
1655
  *
1585
1656
  * @summary Leave a chat session.
1586
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest} requestParameters Request parameters.
1657
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdLeaveDeleteRequest} requestParameters Request parameters.
1587
1658
  * @param {*} [options] Override http request option.
1588
1659
  * @throws {RequiredError}
1589
- * @memberof ChatApi
1660
+ * @memberof SessionsApi
1590
1661
  */
1591
1662
  apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters, options) {
1592
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
1663
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdLeaveDelete(requestParameters.tenantId, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
1593
1664
  }
1594
1665
  /**
1595
1666
  *
1596
- * @summary Get messages from a chat session.
1597
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest} requestParameters Request parameters.
1667
+ * @summary Send a message in a chat session.
1668
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessageSendPostRequest} requestParameters Request parameters.
1598
1669
  * @param {*} [options] Override http request option.
1599
1670
  * @throws {RequiredError}
1600
- * @memberof ChatApi
1671
+ * @memberof SessionsApi
1601
1672
  */
1602
- apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters, options) {
1603
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
1673
+ apiV1ChatTenantIdSessionsSessionIdMessageSendPost(requestParameters, options) {
1674
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.file, requestParameters.text, requestParameters.mediaId, requestParameters.caption, requestParameters.link, requestParameters.messageType, requestParameters.phoneNumber, options).then((request) => request(this.axios, this.basePath));
1604
1675
  }
1605
1676
  /**
1606
1677
  *
1607
- * @summary Reactivate expired media in a chat message.
1608
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePutRequest} requestParameters Request parameters.
1678
+ * @summary Get messages from a chat session.
1679
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessagesGetRequest} requestParameters Request parameters.
1609
1680
  * @param {*} [options] Override http request option.
1610
1681
  * @throws {RequiredError}
1611
- * @memberof ChatApi
1682
+ * @memberof SessionsApi
1612
1683
  */
1613
- apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters, options) {
1614
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.messageId, options).then((request) => request(this.axios, this.basePath));
1684
+ apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters, options) {
1685
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessagesGet(requestParameters.tenantId, requestParameters.sessionId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
1615
1686
  }
1616
1687
  /**
1617
1688
  *
1618
- * @summary Send a message in a chat session.
1619
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdMessagesPostRequest} requestParameters Request parameters.
1689
+ * @summary Reactivate expired media in a chat message.
1690
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePutRequest} requestParameters Request parameters.
1620
1691
  * @param {*} [options] Override http request option.
1621
1692
  * @throws {RequiredError}
1622
- * @memberof ChatApi
1693
+ * @memberof SessionsApi
1623
1694
  */
1624
- apiV1ChatTenantIdSessionsSessionIdMessagesPost(requestParameters, options) {
1625
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessagesPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.file, requestParameters.text, requestParameters.mediaId, requestParameters.caption, requestParameters.link, requestParameters.messageType, requestParameters.phoneNumber, options).then((request) => request(this.axios, this.basePath));
1695
+ apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters, options) {
1696
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdMessagesMessageIdMediaReactivatePut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.messageId, options).then((request) => request(this.axios, this.basePath));
1626
1697
  }
1627
1698
  /**
1628
1699
  *
1629
1700
  * @summary Update a chat session.
1630
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdPatchRequest} requestParameters Request parameters.
1701
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdPatchRequest} requestParameters Request parameters.
1631
1702
  * @param {*} [options] Override http request option.
1632
1703
  * @throws {RequiredError}
1633
- * @memberof ChatApi
1704
+ * @memberof SessionsApi
1634
1705
  */
1635
1706
  apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters, options) {
1636
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.putChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
1707
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdPatch(requestParameters.tenantId, requestParameters.sessionId, requestParameters.putChatSessionCommand, options).then((request) => request(this.axios, this.basePath));
1637
1708
  }
1638
1709
  /**
1639
1710
  *
1640
1711
  * @summary Transfer a chat session agent.
1641
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest} requestParameters Request parameters.
1712
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdTransferPutRequest} requestParameters Request parameters.
1642
1713
  * @param {*} [options] Override http request option.
1643
1714
  * @throws {RequiredError}
1644
- * @memberof ChatApi
1715
+ * @memberof SessionsApi
1645
1716
  */
1646
1717
  apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters, options) {
1647
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.transferManagerCommand, options).then((request) => request(this.axios, this.basePath));
1718
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdTransferPut(requestParameters.tenantId, requestParameters.sessionId, requestParameters.transferManagerCommand, options).then((request) => request(this.axios, this.basePath));
1648
1719
  }
1649
1720
  /**
1650
1721
  *
1651
1722
  * @summary Send whatsapp flow message
1652
- * @param {ChatApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPostRequest} requestParameters Request parameters.
1723
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPostRequest} requestParameters Request parameters.
1724
+ * @param {*} [options] Override http request option.
1725
+ * @throws {RequiredError}
1726
+ * @memberof SessionsApi
1727
+ */
1728
+ apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(requestParameters, options) {
1729
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendFlowMessageCommand, options).then((request) => request(this.axios, this.basePath));
1730
+ }
1731
+ /**
1732
+ *
1733
+ * @summary Send whatsapp template message
1734
+ * @param {SessionsApiApiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPostRequest} requestParameters Request parameters.
1653
1735
  * @param {*} [options] Override http request option.
1654
1736
  * @throws {RequiredError}
1655
- * @memberof ChatApi
1737
+ * @memberof SessionsApi
1656
1738
  */
1657
- apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(requestParameters, options) {
1658
- return (0, exports.ChatApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdWhatsappFlowMessagesPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendFlowMessageCommand, options).then((request) => request(this.axios, this.basePath));
1739
+ apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(requestParameters, options) {
1740
+ return (0, exports.SessionsApiFp)(this.configuration).apiV1ChatTenantIdSessionsSessionIdWhatsappTemplateMessageSendPost(requestParameters.tenantId, requestParameters.sessionId, requestParameters.chatSendTemplateMessageCommand, options).then((request) => request(this.axios, this.basePath));
1659
1741
  }
1660
1742
  }
1661
- exports.ChatApi = ChatApi;
1662
- //# sourceMappingURL=chat-api.js.map
1743
+ exports.SessionsApi = SessionsApi;
1744
+ //# sourceMappingURL=sessions-api.js.map