@ember-home/unbound-ts-client 0.0.24 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -87,26 +87,67 @@ var ConversationStatus = {
87
87
  Open: "OPEN",
88
88
  Closed: "CLOSED"
89
89
  };
90
+ var ListingSortBy = {
91
+ Title: "title"
92
+ };
93
+ var MessageDirection = {
94
+ Inbound: "INBOUND",
95
+ Outbound: "OUTBOUND"
96
+ };
97
+ var MessageStatus = {
98
+ Pending: "PENDING",
99
+ Sent: "SENT",
100
+ Delivered: "DELIVERED",
101
+ Read: "READ",
102
+ Failed: "FAILED"
103
+ };
90
104
  var PaginationDirection = {
91
105
  Forward: "forward",
92
106
  Backward: "backward"
93
107
  };
108
+ var ProviderMessageApiConversationTypeEnum = {
109
+ Provider: "PROVIDER"
110
+ };
94
111
  var SortOrder = {
95
112
  Asc: "asc",
96
113
  Desc: "desc"
97
114
  };
115
+ var SrcResourceModelsConversationsModelConversationsModelConversationSortBy = {
116
+ UpdatedAt: "updated_at"
117
+ };
98
118
  var SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum = {
99
119
  Twilio: "TWILIO"
100
120
  };
101
121
  var SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum = {
102
122
  Email: "EMAIL"
103
123
  };
124
+ var SrcResourceModelsHelperModelsCustomBaseModelCreateApi3ConversationTypeEnum = {
125
+ Twilio: "TWILIO"
126
+ };
127
+ var SrcResourceModelsHelperModelsCustomBaseModelCreateApi4ConversationTypeEnum = {
128
+ Email: "EMAIL"
129
+ };
104
130
  var SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum = {
105
131
  Twilio: "TWILIO"
106
132
  };
107
133
  var SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum = {
108
134
  Email: "EMAIL"
109
135
  };
136
+ var SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy = {
137
+ CreatedAt: "created_at"
138
+ };
139
+ var SrcResourceModelsReservationsModelReservationBaseModelSortBy = {
140
+ ArrivalAtPropertyTz: "arrival_at_property_tz"
141
+ };
142
+ var TwilioInboundSenderTypeDataApiDirectionEnum = {
143
+ Inbound: "INBOUND"
144
+ };
145
+ var TwilioMessageApiConversationTypeEnum = {
146
+ Twilio: "TWILIO"
147
+ };
148
+ var TwilioOutboundSenderTypeDataApiDirectionEnum = {
149
+ Outbound: "OUTBOUND"
150
+ };
110
151
  var AccountsApiAxiosParamCreator = function(configuration) {
111
152
  return {
112
153
  /**
@@ -786,6 +827,36 @@ var ContactsApiAxiosParamCreator = function(configuration) {
786
827
  options: localVarRequestOptions
787
828
  };
788
829
  },
830
+ /**
831
+ *
832
+ * @summary Emails Update
833
+ * @param {string} emailId
834
+ * @param {EmailUpdate} emailUpdate
835
+ * @param {*} [options] Override http request option.
836
+ * @throws {RequiredError}
837
+ */
838
+ emailsUpdate: async (emailId, emailUpdate, options = {}) => {
839
+ assertParamExists("emailsUpdate", "emailId", emailId);
840
+ assertParamExists("emailsUpdate", "emailUpdate", emailUpdate);
841
+ const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
842
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
843
+ let baseOptions;
844
+ if (configuration) {
845
+ baseOptions = configuration.baseOptions;
846
+ }
847
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
848
+ const localVarHeaderParameter = {};
849
+ const localVarQueryParameter = {};
850
+ localVarHeaderParameter["Content-Type"] = "application/json";
851
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
852
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
853
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
854
+ localVarRequestOptions.data = serializeDataIfNeeded(emailUpdate, localVarRequestOptions, configuration);
855
+ return {
856
+ url: toPathString(localVarUrlObj),
857
+ options: localVarRequestOptions
858
+ };
859
+ },
789
860
  /**
790
861
  *
791
862
  * @summary Phone_numbers Create
@@ -841,6 +912,36 @@ var ContactsApiAxiosParamCreator = function(configuration) {
841
912
  url: toPathString(localVarUrlObj),
842
913
  options: localVarRequestOptions
843
914
  };
915
+ },
916
+ /**
917
+ *
918
+ * @summary Phone_numbers Update
919
+ * @param {string} phoneNumberId
920
+ * @param {PhoneNumberUpdate} phoneNumberUpdate
921
+ * @param {*} [options] Override http request option.
922
+ * @throws {RequiredError}
923
+ */
924
+ phoneNumbersUpdate: async (phoneNumberId, phoneNumberUpdate, options = {}) => {
925
+ assertParamExists("phoneNumbersUpdate", "phoneNumberId", phoneNumberId);
926
+ assertParamExists("phoneNumbersUpdate", "phoneNumberUpdate", phoneNumberUpdate);
927
+ const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
928
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
929
+ let baseOptions;
930
+ if (configuration) {
931
+ baseOptions = configuration.baseOptions;
932
+ }
933
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
934
+ const localVarHeaderParameter = {};
935
+ const localVarQueryParameter = {};
936
+ localVarHeaderParameter["Content-Type"] = "application/json";
937
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
938
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
939
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
940
+ localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberUpdate, localVarRequestOptions, configuration);
941
+ return {
942
+ url: toPathString(localVarUrlObj),
943
+ options: localVarRequestOptions
944
+ };
844
945
  }
845
946
  };
846
947
  };
@@ -1031,6 +1132,20 @@ var ContactsApiFp = function(configuration) {
1031
1132
  const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _67 => _67["ContactsApi.emailsDelete"], 'optionalAccess', _68 => _68[localVarOperationServerIndex], 'optionalAccess', _69 => _69.url]);
1032
1133
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1033
1134
  },
1135
+ /**
1136
+ *
1137
+ * @summary Emails Update
1138
+ * @param {string} emailId
1139
+ * @param {EmailUpdate} emailUpdate
1140
+ * @param {*} [options] Override http request option.
1141
+ * @throws {RequiredError}
1142
+ */
1143
+ async emailsUpdate(emailId, emailUpdate, options) {
1144
+ const localVarAxiosArgs = await localVarAxiosParamCreator.emailsUpdate(emailId, emailUpdate, options);
1145
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _70 => _70.serverIndex]), () => ( 0));
1146
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _71 => _71["ContactsApi.emailsUpdate"], 'optionalAccess', _72 => _72[localVarOperationServerIndex], 'optionalAccess', _73 => _73.url]);
1147
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1148
+ },
1034
1149
  /**
1035
1150
  *
1036
1151
  * @summary Phone_numbers Create
@@ -1041,8 +1156,8 @@ var ContactsApiFp = function(configuration) {
1041
1156
  */
1042
1157
  async phoneNumbersCreate(contactId, phoneNumberCreate, options) {
1043
1158
  const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersCreate(contactId, phoneNumberCreate, options);
1044
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _70 => _70.serverIndex]), () => ( 0));
1045
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _71 => _71["ContactsApi.phoneNumbersCreate"], 'optionalAccess', _72 => _72[localVarOperationServerIndex], 'optionalAccess', _73 => _73.url]);
1159
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _74 => _74.serverIndex]), () => ( 0));
1160
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _75 => _75["ContactsApi.phoneNumbersCreate"], 'optionalAccess', _76 => _76[localVarOperationServerIndex], 'optionalAccess', _77 => _77.url]);
1046
1161
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1047
1162
  },
1048
1163
  /**
@@ -1054,8 +1169,22 @@ var ContactsApiFp = function(configuration) {
1054
1169
  */
1055
1170
  async phoneNumbersDelete(phoneNumberId, options) {
1056
1171
  const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersDelete(phoneNumberId, options);
1057
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _74 => _74.serverIndex]), () => ( 0));
1058
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _75 => _75["ContactsApi.phoneNumbersDelete"], 'optionalAccess', _76 => _76[localVarOperationServerIndex], 'optionalAccess', _77 => _77.url]);
1172
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _78 => _78.serverIndex]), () => ( 0));
1173
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _79 => _79["ContactsApi.phoneNumbersDelete"], 'optionalAccess', _80 => _80[localVarOperationServerIndex], 'optionalAccess', _81 => _81.url]);
1174
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1175
+ },
1176
+ /**
1177
+ *
1178
+ * @summary Phone_numbers Update
1179
+ * @param {string} phoneNumberId
1180
+ * @param {PhoneNumberUpdate} phoneNumberUpdate
1181
+ * @param {*} [options] Override http request option.
1182
+ * @throws {RequiredError}
1183
+ */
1184
+ async phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
1185
+ const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options);
1186
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _82 => _82.serverIndex]), () => ( 0));
1187
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _83 => _83["ContactsApi.phoneNumbersUpdate"], 'optionalAccess', _84 => _84[localVarOperationServerIndex], 'optionalAccess', _85 => _85.url]);
1059
1188
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1060
1189
  }
1061
1190
  };
@@ -1208,6 +1337,17 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
1208
1337
  emailsDelete(emailId, options) {
1209
1338
  return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
1210
1339
  },
1340
+ /**
1341
+ *
1342
+ * @summary Emails Update
1343
+ * @param {string} emailId
1344
+ * @param {EmailUpdate} emailUpdate
1345
+ * @param {*} [options] Override http request option.
1346
+ * @throws {RequiredError}
1347
+ */
1348
+ emailsUpdate(emailId, emailUpdate, options) {
1349
+ return localVarFp.emailsUpdate(emailId, emailUpdate, options).then((request) => request(axios, basePath));
1350
+ },
1211
1351
  /**
1212
1352
  *
1213
1353
  * @summary Phone_numbers Create
@@ -1228,6 +1368,17 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
1228
1368
  */
1229
1369
  phoneNumbersDelete(phoneNumberId, options) {
1230
1370
  return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
1371
+ },
1372
+ /**
1373
+ *
1374
+ * @summary Phone_numbers Update
1375
+ * @param {string} phoneNumberId
1376
+ * @param {PhoneNumberUpdate} phoneNumberUpdate
1377
+ * @param {*} [options] Override http request option.
1378
+ * @throws {RequiredError}
1379
+ */
1380
+ phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
1381
+ return localVarFp.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(axios, basePath));
1231
1382
  }
1232
1383
  };
1233
1384
  };
@@ -1390,6 +1541,18 @@ var ContactsApi = class extends BaseAPI {
1390
1541
  emailsDelete(emailId, options) {
1391
1542
  return ContactsApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
1392
1543
  }
1544
+ /**
1545
+ *
1546
+ * @summary Emails Update
1547
+ * @param {string} emailId
1548
+ * @param {EmailUpdate} emailUpdate
1549
+ * @param {*} [options] Override http request option.
1550
+ * @throws {RequiredError}
1551
+ * @memberof ContactsApi
1552
+ */
1553
+ emailsUpdate(emailId, emailUpdate, options) {
1554
+ return ContactsApiFp(this.configuration).emailsUpdate(emailId, emailUpdate, options).then((request) => request(this.axios, this.basePath));
1555
+ }
1393
1556
  /**
1394
1557
  *
1395
1558
  * @summary Phone_numbers Create
@@ -1413,6 +1576,18 @@ var ContactsApi = class extends BaseAPI {
1413
1576
  phoneNumbersDelete(phoneNumberId, options) {
1414
1577
  return ContactsApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
1415
1578
  }
1579
+ /**
1580
+ *
1581
+ * @summary Phone_numbers Update
1582
+ * @param {string} phoneNumberId
1583
+ * @param {PhoneNumberUpdate} phoneNumberUpdate
1584
+ * @param {*} [options] Override http request option.
1585
+ * @throws {RequiredError}
1586
+ * @memberof ContactsApi
1587
+ */
1588
+ phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
1589
+ return ContactsApiFp(this.configuration).phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(this.axios, this.basePath));
1590
+ }
1416
1591
  };
1417
1592
  var ConversationsApiAxiosParamCreator = function(configuration) {
1418
1593
  return {
@@ -1473,11 +1648,17 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
1473
1648
  /**
1474
1649
  * List all conversations, optionally filtered by contact_id
1475
1650
  * @summary Conversations List
1476
- * @param {string} [contactId]
1651
+ * @param {string | null} [searchString]
1652
+ * @param {string | null} [contactId]
1653
+ * @param {string | null} [cursor] Cursor for keyset paging
1654
+ * @param {number} [limit]
1655
+ * @param {PaginationDirection} [pageDir] Direction of paging
1656
+ * @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
1657
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
1477
1658
  * @param {*} [options] Override http request option.
1478
1659
  * @throws {RequiredError}
1479
1660
  */
1480
- conversationsList: async (contactId, options = {}) => {
1661
+ conversationsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
1481
1662
  const localVarPath = `/conversations`;
1482
1663
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1483
1664
  let baseOptions;
@@ -1487,9 +1668,27 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
1487
1668
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1488
1669
  const localVarHeaderParameter = {};
1489
1670
  const localVarQueryParameter = {};
1671
+ if (searchString !== void 0) {
1672
+ localVarQueryParameter["searchString"] = searchString;
1673
+ }
1490
1674
  if (contactId !== void 0) {
1491
1675
  localVarQueryParameter["contactId"] = contactId;
1492
1676
  }
1677
+ if (cursor !== void 0) {
1678
+ localVarQueryParameter["cursor"] = cursor;
1679
+ }
1680
+ if (limit !== void 0) {
1681
+ localVarQueryParameter["limit"] = limit;
1682
+ }
1683
+ if (pageDir !== void 0) {
1684
+ localVarQueryParameter["pageDir"] = pageDir;
1685
+ }
1686
+ if (sortBy !== void 0) {
1687
+ localVarQueryParameter["sortBy"] = sortBy;
1688
+ }
1689
+ if (sortOrder !== void 0) {
1690
+ localVarQueryParameter["sortOrder"] = sortOrder;
1691
+ }
1493
1692
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1494
1693
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1495
1694
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1527,6 +1726,118 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
1527
1726
  url: toPathString(localVarUrlObj),
1528
1727
  options: localVarRequestOptions
1529
1728
  };
1729
+ },
1730
+ /**
1731
+ *
1732
+ * @summary Messages Create
1733
+ * @param {string} conversationId
1734
+ * @param {MessageCreate} messageCreate
1735
+ * @param {*} [options] Override http request option.
1736
+ * @throws {RequiredError}
1737
+ */
1738
+ messagesCreate: async (conversationId, messageCreate, options = {}) => {
1739
+ assertParamExists("messagesCreate", "conversationId", conversationId);
1740
+ assertParamExists("messagesCreate", "messageCreate", messageCreate);
1741
+ const localVarPath = `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
1742
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1743
+ let baseOptions;
1744
+ if (configuration) {
1745
+ baseOptions = configuration.baseOptions;
1746
+ }
1747
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1748
+ const localVarHeaderParameter = {};
1749
+ const localVarQueryParameter = {};
1750
+ localVarHeaderParameter["Content-Type"] = "application/json";
1751
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1752
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1753
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1754
+ localVarRequestOptions.data = serializeDataIfNeeded(messageCreate, localVarRequestOptions, configuration);
1755
+ return {
1756
+ url: toPathString(localVarUrlObj),
1757
+ options: localVarRequestOptions
1758
+ };
1759
+ },
1760
+ /**
1761
+ *
1762
+ * @summary Messages Get
1763
+ * @param {string} messageId
1764
+ * @param {*} [options] Override http request option.
1765
+ * @throws {RequiredError}
1766
+ */
1767
+ messagesGet: async (messageId, options = {}) => {
1768
+ assertParamExists("messagesGet", "messageId", messageId);
1769
+ const localVarPath = `/messages/{messageId}`.replace(`{${"messageId"}}`, encodeURIComponent(String(messageId)));
1770
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1771
+ let baseOptions;
1772
+ if (configuration) {
1773
+ baseOptions = configuration.baseOptions;
1774
+ }
1775
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1776
+ const localVarHeaderParameter = {};
1777
+ const localVarQueryParameter = {};
1778
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1779
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1780
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1781
+ return {
1782
+ url: toPathString(localVarUrlObj),
1783
+ options: localVarRequestOptions
1784
+ };
1785
+ },
1786
+ /**
1787
+ *
1788
+ * @summary Messages List
1789
+ * @param {string | null} [searchString]
1790
+ * @param {string | null} [contactId]
1791
+ * @param {string | null} [conversationId]
1792
+ * @param {string | null} [cursor] Cursor for keyset paging
1793
+ * @param {number} [limit]
1794
+ * @param {PaginationDirection} [pageDir] Direction of paging
1795
+ * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
1796
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
1797
+ * @param {*} [options] Override http request option.
1798
+ * @throws {RequiredError}
1799
+ */
1800
+ messagesList: async (searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
1801
+ const localVarPath = `/messages`;
1802
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1803
+ let baseOptions;
1804
+ if (configuration) {
1805
+ baseOptions = configuration.baseOptions;
1806
+ }
1807
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1808
+ const localVarHeaderParameter = {};
1809
+ const localVarQueryParameter = {};
1810
+ if (searchString !== void 0) {
1811
+ localVarQueryParameter["searchString"] = searchString;
1812
+ }
1813
+ if (contactId !== void 0) {
1814
+ localVarQueryParameter["contactId"] = contactId;
1815
+ }
1816
+ if (conversationId !== void 0) {
1817
+ localVarQueryParameter["conversationId"] = conversationId;
1818
+ }
1819
+ if (cursor !== void 0) {
1820
+ localVarQueryParameter["cursor"] = cursor;
1821
+ }
1822
+ if (limit !== void 0) {
1823
+ localVarQueryParameter["limit"] = limit;
1824
+ }
1825
+ if (pageDir !== void 0) {
1826
+ localVarQueryParameter["pageDir"] = pageDir;
1827
+ }
1828
+ if (sortBy !== void 0) {
1829
+ localVarQueryParameter["sortBy"] = sortBy;
1830
+ }
1831
+ if (sortOrder !== void 0) {
1832
+ localVarQueryParameter["sortOrder"] = sortOrder;
1833
+ }
1834
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1835
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1836
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1837
+ return {
1838
+ url: toPathString(localVarUrlObj),
1839
+ options: localVarRequestOptions
1840
+ };
1530
1841
  }
1531
1842
  };
1532
1843
  };
@@ -1542,8 +1853,8 @@ var ConversationsApiFp = function(configuration) {
1542
1853
  */
1543
1854
  async conversationsCreate(conversationCreate, options) {
1544
1855
  const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(conversationCreate, options);
1545
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _78 => _78.serverIndex]), () => ( 0));
1546
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _79 => _79["ConversationsApi.conversationsCreate"], 'optionalAccess', _80 => _80[localVarOperationServerIndex], 'optionalAccess', _81 => _81.url]);
1856
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _86 => _86.serverIndex]), () => ( 0));
1857
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _87 => _87["ConversationsApi.conversationsCreate"], 'optionalAccess', _88 => _88[localVarOperationServerIndex], 'optionalAccess', _89 => _89.url]);
1547
1858
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1548
1859
  },
1549
1860
  /**
@@ -1555,21 +1866,27 @@ var ConversationsApiFp = function(configuration) {
1555
1866
  */
1556
1867
  async conversationsGet(conversationId, options) {
1557
1868
  const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
1558
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _82 => _82.serverIndex]), () => ( 0));
1559
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _83 => _83["ConversationsApi.conversationsGet"], 'optionalAccess', _84 => _84[localVarOperationServerIndex], 'optionalAccess', _85 => _85.url]);
1869
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _90 => _90.serverIndex]), () => ( 0));
1870
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _91 => _91["ConversationsApi.conversationsGet"], 'optionalAccess', _92 => _92[localVarOperationServerIndex], 'optionalAccess', _93 => _93.url]);
1560
1871
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1561
1872
  },
1562
1873
  /**
1563
1874
  * List all conversations, optionally filtered by contact_id
1564
1875
  * @summary Conversations List
1565
- * @param {string} [contactId]
1876
+ * @param {string | null} [searchString]
1877
+ * @param {string | null} [contactId]
1878
+ * @param {string | null} [cursor] Cursor for keyset paging
1879
+ * @param {number} [limit]
1880
+ * @param {PaginationDirection} [pageDir] Direction of paging
1881
+ * @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
1882
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
1566
1883
  * @param {*} [options] Override http request option.
1567
1884
  * @throws {RequiredError}
1568
1885
  */
1569
- async conversationsList(contactId, options) {
1570
- const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(contactId, options);
1571
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _86 => _86.serverIndex]), () => ( 0));
1572
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _87 => _87["ConversationsApi.conversationsList"], 'optionalAccess', _88 => _88[localVarOperationServerIndex], 'optionalAccess', _89 => _89.url]);
1886
+ async conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
1887
+ const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
1888
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _94 => _94.serverIndex]), () => ( 0));
1889
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _95 => _95["ConversationsApi.conversationsList"], 'optionalAccess', _96 => _96[localVarOperationServerIndex], 'optionalAccess', _97 => _97.url]);
1573
1890
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1574
1891
  },
1575
1892
  /**
@@ -1582,23 +1899,70 @@ var ConversationsApiFp = function(configuration) {
1582
1899
  */
1583
1900
  async conversationsUpdate(conversationId, conversationUpdate, options) {
1584
1901
  const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, conversationUpdate, options);
1585
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _90 => _90.serverIndex]), () => ( 0));
1586
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _91 => _91["ConversationsApi.conversationsUpdate"], 'optionalAccess', _92 => _92[localVarOperationServerIndex], 'optionalAccess', _93 => _93.url]);
1902
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _98 => _98.serverIndex]), () => ( 0));
1903
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _99 => _99["ConversationsApi.conversationsUpdate"], 'optionalAccess', _100 => _100[localVarOperationServerIndex], 'optionalAccess', _101 => _101.url]);
1587
1904
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1588
- }
1589
- };
1590
- };
1591
- var ConversationsApiFactory = function(configuration, basePath, axios) {
1592
- const localVarFp = ConversationsApiFp(configuration);
1593
- return {
1905
+ },
1594
1906
  /**
1595
1907
  *
1596
- * @summary Conversations Create
1597
- * @param {ConversationCreate} conversationCreate
1908
+ * @summary Messages Create
1909
+ * @param {string} conversationId
1910
+ * @param {MessageCreate} messageCreate
1598
1911
  * @param {*} [options] Override http request option.
1599
1912
  * @throws {RequiredError}
1600
1913
  */
1601
- conversationsCreate(conversationCreate, options) {
1914
+ async messagesCreate(conversationId, messageCreate, options) {
1915
+ const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messageCreate, options);
1916
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _102 => _102.serverIndex]), () => ( 0));
1917
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _103 => _103["ConversationsApi.messagesCreate"], 'optionalAccess', _104 => _104[localVarOperationServerIndex], 'optionalAccess', _105 => _105.url]);
1918
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1919
+ },
1920
+ /**
1921
+ *
1922
+ * @summary Messages Get
1923
+ * @param {string} messageId
1924
+ * @param {*} [options] Override http request option.
1925
+ * @throws {RequiredError}
1926
+ */
1927
+ async messagesGet(messageId, options) {
1928
+ const localVarAxiosArgs = await localVarAxiosParamCreator.messagesGet(messageId, options);
1929
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _106 => _106.serverIndex]), () => ( 0));
1930
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _107 => _107["ConversationsApi.messagesGet"], 'optionalAccess', _108 => _108[localVarOperationServerIndex], 'optionalAccess', _109 => _109.url]);
1931
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1932
+ },
1933
+ /**
1934
+ *
1935
+ * @summary Messages List
1936
+ * @param {string | null} [searchString]
1937
+ * @param {string | null} [contactId]
1938
+ * @param {string | null} [conversationId]
1939
+ * @param {string | null} [cursor] Cursor for keyset paging
1940
+ * @param {number} [limit]
1941
+ * @param {PaginationDirection} [pageDir] Direction of paging
1942
+ * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
1943
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
1944
+ * @param {*} [options] Override http request option.
1945
+ * @throws {RequiredError}
1946
+ */
1947
+ async messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
1948
+ const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options);
1949
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _110 => _110.serverIndex]), () => ( 0));
1950
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _111 => _111["ConversationsApi.messagesList"], 'optionalAccess', _112 => _112[localVarOperationServerIndex], 'optionalAccess', _113 => _113.url]);
1951
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1952
+ }
1953
+ };
1954
+ };
1955
+ var ConversationsApiFactory = function(configuration, basePath, axios) {
1956
+ const localVarFp = ConversationsApiFp(configuration);
1957
+ return {
1958
+ /**
1959
+ *
1960
+ * @summary Conversations Create
1961
+ * @param {ConversationCreate} conversationCreate
1962
+ * @param {*} [options] Override http request option.
1963
+ * @throws {RequiredError}
1964
+ */
1965
+ conversationsCreate(conversationCreate, options) {
1602
1966
  return localVarFp.conversationsCreate(conversationCreate, options).then((request) => request(axios, basePath));
1603
1967
  },
1604
1968
  /**
@@ -1614,12 +1978,18 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
1614
1978
  /**
1615
1979
  * List all conversations, optionally filtered by contact_id
1616
1980
  * @summary Conversations List
1617
- * @param {string} [contactId]
1981
+ * @param {string | null} [searchString]
1982
+ * @param {string | null} [contactId]
1983
+ * @param {string | null} [cursor] Cursor for keyset paging
1984
+ * @param {number} [limit]
1985
+ * @param {PaginationDirection} [pageDir] Direction of paging
1986
+ * @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
1987
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
1618
1988
  * @param {*} [options] Override http request option.
1619
1989
  * @throws {RequiredError}
1620
1990
  */
1621
- conversationsList(contactId, options) {
1622
- return localVarFp.conversationsList(contactId, options).then((request) => request(axios, basePath));
1991
+ conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
1992
+ return localVarFp.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
1623
1993
  },
1624
1994
  /**
1625
1995
  *
@@ -1631,6 +2001,44 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
1631
2001
  */
1632
2002
  conversationsUpdate(conversationId, conversationUpdate, options) {
1633
2003
  return localVarFp.conversationsUpdate(conversationId, conversationUpdate, options).then((request) => request(axios, basePath));
2004
+ },
2005
+ /**
2006
+ *
2007
+ * @summary Messages Create
2008
+ * @param {string} conversationId
2009
+ * @param {MessageCreate} messageCreate
2010
+ * @param {*} [options] Override http request option.
2011
+ * @throws {RequiredError}
2012
+ */
2013
+ messagesCreate(conversationId, messageCreate, options) {
2014
+ return localVarFp.messagesCreate(conversationId, messageCreate, options).then((request) => request(axios, basePath));
2015
+ },
2016
+ /**
2017
+ *
2018
+ * @summary Messages Get
2019
+ * @param {string} messageId
2020
+ * @param {*} [options] Override http request option.
2021
+ * @throws {RequiredError}
2022
+ */
2023
+ messagesGet(messageId, options) {
2024
+ return localVarFp.messagesGet(messageId, options).then((request) => request(axios, basePath));
2025
+ },
2026
+ /**
2027
+ *
2028
+ * @summary Messages List
2029
+ * @param {string | null} [searchString]
2030
+ * @param {string | null} [contactId]
2031
+ * @param {string | null} [conversationId]
2032
+ * @param {string | null} [cursor] Cursor for keyset paging
2033
+ * @param {number} [limit]
2034
+ * @param {PaginationDirection} [pageDir] Direction of paging
2035
+ * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
2036
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2037
+ * @param {*} [options] Override http request option.
2038
+ * @throws {RequiredError}
2039
+ */
2040
+ messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
2041
+ return localVarFp.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
1634
2042
  }
1635
2043
  };
1636
2044
  };
@@ -1660,13 +2068,19 @@ var ConversationsApi = class extends BaseAPI {
1660
2068
  /**
1661
2069
  * List all conversations, optionally filtered by contact_id
1662
2070
  * @summary Conversations List
1663
- * @param {string} [contactId]
2071
+ * @param {string | null} [searchString]
2072
+ * @param {string | null} [contactId]
2073
+ * @param {string | null} [cursor] Cursor for keyset paging
2074
+ * @param {number} [limit]
2075
+ * @param {PaginationDirection} [pageDir] Direction of paging
2076
+ * @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
2077
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
1664
2078
  * @param {*} [options] Override http request option.
1665
2079
  * @throws {RequiredError}
1666
2080
  * @memberof ConversationsApi
1667
2081
  */
1668
- conversationsList(contactId, options) {
1669
- return ConversationsApiFp(this.configuration).conversationsList(contactId, options).then((request) => request(this.axios, this.basePath));
2082
+ conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
2083
+ return ConversationsApiFp(this.configuration).conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
1670
2084
  }
1671
2085
  /**
1672
2086
  *
@@ -1680,6 +2094,47 @@ var ConversationsApi = class extends BaseAPI {
1680
2094
  conversationsUpdate(conversationId, conversationUpdate, options) {
1681
2095
  return ConversationsApiFp(this.configuration).conversationsUpdate(conversationId, conversationUpdate, options).then((request) => request(this.axios, this.basePath));
1682
2096
  }
2097
+ /**
2098
+ *
2099
+ * @summary Messages Create
2100
+ * @param {string} conversationId
2101
+ * @param {MessageCreate} messageCreate
2102
+ * @param {*} [options] Override http request option.
2103
+ * @throws {RequiredError}
2104
+ * @memberof ConversationsApi
2105
+ */
2106
+ messagesCreate(conversationId, messageCreate, options) {
2107
+ return ConversationsApiFp(this.configuration).messagesCreate(conversationId, messageCreate, options).then((request) => request(this.axios, this.basePath));
2108
+ }
2109
+ /**
2110
+ *
2111
+ * @summary Messages Get
2112
+ * @param {string} messageId
2113
+ * @param {*} [options] Override http request option.
2114
+ * @throws {RequiredError}
2115
+ * @memberof ConversationsApi
2116
+ */
2117
+ messagesGet(messageId, options) {
2118
+ return ConversationsApiFp(this.configuration).messagesGet(messageId, options).then((request) => request(this.axios, this.basePath));
2119
+ }
2120
+ /**
2121
+ *
2122
+ * @summary Messages List
2123
+ * @param {string | null} [searchString]
2124
+ * @param {string | null} [contactId]
2125
+ * @param {string | null} [conversationId]
2126
+ * @param {string | null} [cursor] Cursor for keyset paging
2127
+ * @param {number} [limit]
2128
+ * @param {PaginationDirection} [pageDir] Direction of paging
2129
+ * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
2130
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2131
+ * @param {*} [options] Override http request option.
2132
+ * @throws {RequiredError}
2133
+ * @memberof ConversationsApi
2134
+ */
2135
+ messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
2136
+ return ConversationsApiFp(this.configuration).messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
2137
+ }
1683
2138
  };
1684
2139
  var EmailsApiAxiosParamCreator = function(configuration) {
1685
2140
  return {
@@ -1738,6 +2193,36 @@ var EmailsApiAxiosParamCreator = function(configuration) {
1738
2193
  url: toPathString(localVarUrlObj),
1739
2194
  options: localVarRequestOptions
1740
2195
  };
2196
+ },
2197
+ /**
2198
+ *
2199
+ * @summary Emails Update
2200
+ * @param {string} emailId
2201
+ * @param {EmailUpdate} emailUpdate
2202
+ * @param {*} [options] Override http request option.
2203
+ * @throws {RequiredError}
2204
+ */
2205
+ emailsUpdate: async (emailId, emailUpdate, options = {}) => {
2206
+ assertParamExists("emailsUpdate", "emailId", emailId);
2207
+ assertParamExists("emailsUpdate", "emailUpdate", emailUpdate);
2208
+ const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
2209
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2210
+ let baseOptions;
2211
+ if (configuration) {
2212
+ baseOptions = configuration.baseOptions;
2213
+ }
2214
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
2215
+ const localVarHeaderParameter = {};
2216
+ const localVarQueryParameter = {};
2217
+ localVarHeaderParameter["Content-Type"] = "application/json";
2218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2220
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2221
+ localVarRequestOptions.data = serializeDataIfNeeded(emailUpdate, localVarRequestOptions, configuration);
2222
+ return {
2223
+ url: toPathString(localVarUrlObj),
2224
+ options: localVarRequestOptions
2225
+ };
1741
2226
  }
1742
2227
  };
1743
2228
  };
@@ -1754,8 +2239,8 @@ var EmailsApiFp = function(configuration) {
1754
2239
  */
1755
2240
  async emailsCreate(contactId, emailCreate, options) {
1756
2241
  const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
1757
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _94 => _94.serverIndex]), () => ( 0));
1758
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _95 => _95["EmailsApi.emailsCreate"], 'optionalAccess', _96 => _96[localVarOperationServerIndex], 'optionalAccess', _97 => _97.url]);
2242
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _114 => _114.serverIndex]), () => ( 0));
2243
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _115 => _115["EmailsApi.emailsCreate"], 'optionalAccess', _116 => _116[localVarOperationServerIndex], 'optionalAccess', _117 => _117.url]);
1759
2244
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1760
2245
  },
1761
2246
  /**
@@ -1767,8 +2252,22 @@ var EmailsApiFp = function(configuration) {
1767
2252
  */
1768
2253
  async emailsDelete(emailId, options) {
1769
2254
  const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
1770
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _98 => _98.serverIndex]), () => ( 0));
1771
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _99 => _99["EmailsApi.emailsDelete"], 'optionalAccess', _100 => _100[localVarOperationServerIndex], 'optionalAccess', _101 => _101.url]);
2255
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _118 => _118.serverIndex]), () => ( 0));
2256
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _119 => _119["EmailsApi.emailsDelete"], 'optionalAccess', _120 => _120[localVarOperationServerIndex], 'optionalAccess', _121 => _121.url]);
2257
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2258
+ },
2259
+ /**
2260
+ *
2261
+ * @summary Emails Update
2262
+ * @param {string} emailId
2263
+ * @param {EmailUpdate} emailUpdate
2264
+ * @param {*} [options] Override http request option.
2265
+ * @throws {RequiredError}
2266
+ */
2267
+ async emailsUpdate(emailId, emailUpdate, options) {
2268
+ const localVarAxiosArgs = await localVarAxiosParamCreator.emailsUpdate(emailId, emailUpdate, options);
2269
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _122 => _122.serverIndex]), () => ( 0));
2270
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _123 => _123["EmailsApi.emailsUpdate"], 'optionalAccess', _124 => _124[localVarOperationServerIndex], 'optionalAccess', _125 => _125.url]);
1772
2271
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1773
2272
  }
1774
2273
  };
@@ -1796,6 +2295,17 @@ var EmailsApiFactory = function(configuration, basePath, axios) {
1796
2295
  */
1797
2296
  emailsDelete(emailId, options) {
1798
2297
  return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
2298
+ },
2299
+ /**
2300
+ *
2301
+ * @summary Emails Update
2302
+ * @param {string} emailId
2303
+ * @param {EmailUpdate} emailUpdate
2304
+ * @param {*} [options] Override http request option.
2305
+ * @throws {RequiredError}
2306
+ */
2307
+ emailsUpdate(emailId, emailUpdate, options) {
2308
+ return localVarFp.emailsUpdate(emailId, emailUpdate, options).then((request) => request(axios, basePath));
1799
2309
  }
1800
2310
  };
1801
2311
  };
@@ -1823,6 +2333,18 @@ var EmailsApi = class extends BaseAPI {
1823
2333
  emailsDelete(emailId, options) {
1824
2334
  return EmailsApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
1825
2335
  }
2336
+ /**
2337
+ *
2338
+ * @summary Emails Update
2339
+ * @param {string} emailId
2340
+ * @param {EmailUpdate} emailUpdate
2341
+ * @param {*} [options] Override http request option.
2342
+ * @throws {RequiredError}
2343
+ * @memberof EmailsApi
2344
+ */
2345
+ emailsUpdate(emailId, emailUpdate, options) {
2346
+ return EmailsApiFp(this.configuration).emailsUpdate(emailId, emailUpdate, options).then((request) => request(this.axios, this.basePath));
2347
+ }
1826
2348
  };
1827
2349
  var HostawayApiAxiosParamCreator = function(configuration) {
1828
2350
  return {
@@ -1869,8 +2391,8 @@ var HostawayApiFp = function(configuration) {
1869
2391
  */
1870
2392
  async webhook(hostawayWebhook, options) {
1871
2393
  const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
1872
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _102 => _102.serverIndex]), () => ( 0));
1873
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _103 => _103["HostawayApi.webhook"], 'optionalAccess', _104 => _104[localVarOperationServerIndex], 'optionalAccess', _105 => _105.url]);
2394
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _126 => _126.serverIndex]), () => ( 0));
2395
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _127 => _127["HostawayApi.webhook"], 'optionalAccess', _128 => _128[localVarOperationServerIndex], 'optionalAccess', _129 => _129.url]);
1874
2396
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1875
2397
  }
1876
2398
  };
@@ -1947,8 +2469,8 @@ var InquiriesApiFp = function(configuration) {
1947
2469
  */
1948
2470
  async inquiriesList(contactId, options) {
1949
2471
  const localVarAxiosArgs = await localVarAxiosParamCreator.inquiriesList(contactId, options);
1950
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _106 => _106.serverIndex]), () => ( 0));
1951
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _107 => _107["InquiriesApi.inquiriesList"], 'optionalAccess', _108 => _108[localVarOperationServerIndex], 'optionalAccess', _109 => _109.url]);
2472
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _130 => _130.serverIndex]), () => ( 0));
2473
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _131 => _131["InquiriesApi.inquiriesList"], 'optionalAccess', _132 => _132[localVarOperationServerIndex], 'optionalAccess', _133 => _133.url]);
1952
2474
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1953
2475
  }
1954
2476
  };
@@ -1984,13 +2506,45 @@ var InquiriesApi = class extends BaseAPI {
1984
2506
  var ListingsApiAxiosParamCreator = function(configuration) {
1985
2507
  return {
1986
2508
  /**
1987
- * List all listings
2509
+ *
2510
+ * @summary Listings Get
2511
+ * @param {string} listingId
2512
+ * @param {*} [options] Override http request option.
2513
+ * @throws {RequiredError}
2514
+ */
2515
+ listingsGet: async (listingId, options = {}) => {
2516
+ assertParamExists("listingsGet", "listingId", listingId);
2517
+ const localVarPath = `/listings/{listingId}`.replace(`{${"listingId"}}`, encodeURIComponent(String(listingId)));
2518
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2519
+ let baseOptions;
2520
+ if (configuration) {
2521
+ baseOptions = configuration.baseOptions;
2522
+ }
2523
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2524
+ const localVarHeaderParameter = {};
2525
+ const localVarQueryParameter = {};
2526
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2527
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2528
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2529
+ return {
2530
+ url: toPathString(localVarUrlObj),
2531
+ options: localVarRequestOptions
2532
+ };
2533
+ },
2534
+ /**
2535
+ *
1988
2536
  * @summary Listings List
1989
- * @param {string} [contactId]
2537
+ * @param {string | null} [searchString]
2538
+ * @param {string | null} [contactId]
2539
+ * @param {string | null} [cursor] Cursor for keyset paging
2540
+ * @param {number} [limit]
2541
+ * @param {PaginationDirection} [pageDir] Direction of paging
2542
+ * @param {ListingSortBy} [sortBy] Sort key
2543
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
1990
2544
  * @param {*} [options] Override http request option.
1991
2545
  * @throws {RequiredError}
1992
2546
  */
1993
- listingsList: async (contactId, options = {}) => {
2547
+ listingsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
1994
2548
  const localVarPath = `/listings`;
1995
2549
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1996
2550
  let baseOptions;
@@ -2000,9 +2554,27 @@ var ListingsApiAxiosParamCreator = function(configuration) {
2000
2554
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2001
2555
  const localVarHeaderParameter = {};
2002
2556
  const localVarQueryParameter = {};
2557
+ if (searchString !== void 0) {
2558
+ localVarQueryParameter["searchString"] = searchString;
2559
+ }
2003
2560
  if (contactId !== void 0) {
2004
2561
  localVarQueryParameter["contactId"] = contactId;
2005
2562
  }
2563
+ if (cursor !== void 0) {
2564
+ localVarQueryParameter["cursor"] = cursor;
2565
+ }
2566
+ if (limit !== void 0) {
2567
+ localVarQueryParameter["limit"] = limit;
2568
+ }
2569
+ if (pageDir !== void 0) {
2570
+ localVarQueryParameter["pageDir"] = pageDir;
2571
+ }
2572
+ if (sortBy !== void 0) {
2573
+ localVarQueryParameter["sortBy"] = sortBy;
2574
+ }
2575
+ if (sortOrder !== void 0) {
2576
+ localVarQueryParameter["sortOrder"] = sortOrder;
2577
+ }
2006
2578
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2007
2579
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2008
2580
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2017,16 +2589,35 @@ var ListingsApiFp = function(configuration) {
2017
2589
  const localVarAxiosParamCreator = ListingsApiAxiosParamCreator(configuration);
2018
2590
  return {
2019
2591
  /**
2020
- * List all listings
2592
+ *
2593
+ * @summary Listings Get
2594
+ * @param {string} listingId
2595
+ * @param {*} [options] Override http request option.
2596
+ * @throws {RequiredError}
2597
+ */
2598
+ async listingsGet(listingId, options) {
2599
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listingsGet(listingId, options);
2600
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _134 => _134.serverIndex]), () => ( 0));
2601
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _135 => _135["ListingsApi.listingsGet"], 'optionalAccess', _136 => _136[localVarOperationServerIndex], 'optionalAccess', _137 => _137.url]);
2602
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2603
+ },
2604
+ /**
2605
+ *
2021
2606
  * @summary Listings List
2022
- * @param {string} [contactId]
2607
+ * @param {string | null} [searchString]
2608
+ * @param {string | null} [contactId]
2609
+ * @param {string | null} [cursor] Cursor for keyset paging
2610
+ * @param {number} [limit]
2611
+ * @param {PaginationDirection} [pageDir] Direction of paging
2612
+ * @param {ListingSortBy} [sortBy] Sort key
2613
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2023
2614
  * @param {*} [options] Override http request option.
2024
2615
  * @throws {RequiredError}
2025
2616
  */
2026
- async listingsList(contactId, options) {
2027
- const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(contactId, options);
2028
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _110 => _110.serverIndex]), () => ( 0));
2029
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _111 => _111["ListingsApi.listingsList"], 'optionalAccess', _112 => _112[localVarOperationServerIndex], 'optionalAccess', _113 => _113.url]);
2617
+ async listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
2618
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
2619
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _138 => _138.serverIndex]), () => ( 0));
2620
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _139 => _139["ListingsApi.listingsList"], 'optionalAccess', _140 => _140[localVarOperationServerIndex], 'optionalAccess', _141 => _141.url]);
2030
2621
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2031
2622
  }
2032
2623
  };
@@ -2035,28 +2626,61 @@ var ListingsApiFactory = function(configuration, basePath, axios) {
2035
2626
  const localVarFp = ListingsApiFp(configuration);
2036
2627
  return {
2037
2628
  /**
2038
- * List all listings
2629
+ *
2630
+ * @summary Listings Get
2631
+ * @param {string} listingId
2632
+ * @param {*} [options] Override http request option.
2633
+ * @throws {RequiredError}
2634
+ */
2635
+ listingsGet(listingId, options) {
2636
+ return localVarFp.listingsGet(listingId, options).then((request) => request(axios, basePath));
2637
+ },
2638
+ /**
2639
+ *
2039
2640
  * @summary Listings List
2040
- * @param {string} [contactId]
2641
+ * @param {string | null} [searchString]
2642
+ * @param {string | null} [contactId]
2643
+ * @param {string | null} [cursor] Cursor for keyset paging
2644
+ * @param {number} [limit]
2645
+ * @param {PaginationDirection} [pageDir] Direction of paging
2646
+ * @param {ListingSortBy} [sortBy] Sort key
2647
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2041
2648
  * @param {*} [options] Override http request option.
2042
2649
  * @throws {RequiredError}
2043
2650
  */
2044
- listingsList(contactId, options) {
2045
- return localVarFp.listingsList(contactId, options).then((request) => request(axios, basePath));
2651
+ listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
2652
+ return localVarFp.listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
2046
2653
  }
2047
2654
  };
2048
2655
  };
2049
2656
  var ListingsApi = class extends BaseAPI {
2050
2657
  /**
2051
- * List all listings
2658
+ *
2659
+ * @summary Listings Get
2660
+ * @param {string} listingId
2661
+ * @param {*} [options] Override http request option.
2662
+ * @throws {RequiredError}
2663
+ * @memberof ListingsApi
2664
+ */
2665
+ listingsGet(listingId, options) {
2666
+ return ListingsApiFp(this.configuration).listingsGet(listingId, options).then((request) => request(this.axios, this.basePath));
2667
+ }
2668
+ /**
2669
+ *
2052
2670
  * @summary Listings List
2053
- * @param {string} [contactId]
2671
+ * @param {string | null} [searchString]
2672
+ * @param {string | null} [contactId]
2673
+ * @param {string | null} [cursor] Cursor for keyset paging
2674
+ * @param {number} [limit]
2675
+ * @param {PaginationDirection} [pageDir] Direction of paging
2676
+ * @param {ListingSortBy} [sortBy] Sort key
2677
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2054
2678
  * @param {*} [options] Override http request option.
2055
2679
  * @throws {RequiredError}
2056
2680
  * @memberof ListingsApi
2057
2681
  */
2058
- listingsList(contactId, options) {
2059
- return ListingsApiFp(this.configuration).listingsList(contactId, options).then((request) => request(this.axios, this.basePath));
2682
+ listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
2683
+ return ListingsApiFp(this.configuration).listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
2060
2684
  }
2061
2685
  };
2062
2686
  var ManagedPhoneNumbersApiAxiosParamCreator = function(configuration) {
@@ -2098,8 +2722,8 @@ var ManagedPhoneNumbersApiFp = function(configuration) {
2098
2722
  */
2099
2723
  async managedPhoneNumbersList(options) {
2100
2724
  const localVarAxiosArgs = await localVarAxiosParamCreator.managedPhoneNumbersList(options);
2101
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _114 => _114.serverIndex]), () => ( 0));
2102
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _115 => _115["ManagedPhoneNumbersApi.managedPhoneNumbersList"], 'optionalAccess', _116 => _116[localVarOperationServerIndex], 'optionalAccess', _117 => _117.url]);
2725
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _142 => _142.serverIndex]), () => ( 0));
2726
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _143 => _143["ManagedPhoneNumbersApi.managedPhoneNumbersList"], 'optionalAccess', _144 => _144[localVarOperationServerIndex], 'optionalAccess', _145 => _145.url]);
2103
2727
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2104
2728
  }
2105
2729
  };
@@ -2130,6 +2754,260 @@ var ManagedPhoneNumbersApi = class extends BaseAPI {
2130
2754
  return ManagedPhoneNumbersApiFp(this.configuration).managedPhoneNumbersList(options).then((request) => request(this.axios, this.basePath));
2131
2755
  }
2132
2756
  };
2757
+ var MessagesApiAxiosParamCreator = function(configuration) {
2758
+ return {
2759
+ /**
2760
+ *
2761
+ * @summary Messages Create
2762
+ * @param {string} conversationId
2763
+ * @param {MessageCreate} messageCreate
2764
+ * @param {*} [options] Override http request option.
2765
+ * @throws {RequiredError}
2766
+ */
2767
+ messagesCreate: async (conversationId, messageCreate, options = {}) => {
2768
+ assertParamExists("messagesCreate", "conversationId", conversationId);
2769
+ assertParamExists("messagesCreate", "messageCreate", messageCreate);
2770
+ const localVarPath = `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
2771
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2772
+ let baseOptions;
2773
+ if (configuration) {
2774
+ baseOptions = configuration.baseOptions;
2775
+ }
2776
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2777
+ const localVarHeaderParameter = {};
2778
+ const localVarQueryParameter = {};
2779
+ localVarHeaderParameter["Content-Type"] = "application/json";
2780
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2781
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2782
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2783
+ localVarRequestOptions.data = serializeDataIfNeeded(messageCreate, localVarRequestOptions, configuration);
2784
+ return {
2785
+ url: toPathString(localVarUrlObj),
2786
+ options: localVarRequestOptions
2787
+ };
2788
+ },
2789
+ /**
2790
+ *
2791
+ * @summary Messages Get
2792
+ * @param {string} messageId
2793
+ * @param {*} [options] Override http request option.
2794
+ * @throws {RequiredError}
2795
+ */
2796
+ messagesGet: async (messageId, options = {}) => {
2797
+ assertParamExists("messagesGet", "messageId", messageId);
2798
+ const localVarPath = `/messages/{messageId}`.replace(`{${"messageId"}}`, encodeURIComponent(String(messageId)));
2799
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2800
+ let baseOptions;
2801
+ if (configuration) {
2802
+ baseOptions = configuration.baseOptions;
2803
+ }
2804
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2805
+ const localVarHeaderParameter = {};
2806
+ const localVarQueryParameter = {};
2807
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2808
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2809
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2810
+ return {
2811
+ url: toPathString(localVarUrlObj),
2812
+ options: localVarRequestOptions
2813
+ };
2814
+ },
2815
+ /**
2816
+ *
2817
+ * @summary Messages List
2818
+ * @param {string | null} [searchString]
2819
+ * @param {string | null} [contactId]
2820
+ * @param {string | null} [conversationId]
2821
+ * @param {string | null} [cursor] Cursor for keyset paging
2822
+ * @param {number} [limit]
2823
+ * @param {PaginationDirection} [pageDir] Direction of paging
2824
+ * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
2825
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2826
+ * @param {*} [options] Override http request option.
2827
+ * @throws {RequiredError}
2828
+ */
2829
+ messagesList: async (searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
2830
+ const localVarPath = `/messages`;
2831
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2832
+ let baseOptions;
2833
+ if (configuration) {
2834
+ baseOptions = configuration.baseOptions;
2835
+ }
2836
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2837
+ const localVarHeaderParameter = {};
2838
+ const localVarQueryParameter = {};
2839
+ if (searchString !== void 0) {
2840
+ localVarQueryParameter["searchString"] = searchString;
2841
+ }
2842
+ if (contactId !== void 0) {
2843
+ localVarQueryParameter["contactId"] = contactId;
2844
+ }
2845
+ if (conversationId !== void 0) {
2846
+ localVarQueryParameter["conversationId"] = conversationId;
2847
+ }
2848
+ if (cursor !== void 0) {
2849
+ localVarQueryParameter["cursor"] = cursor;
2850
+ }
2851
+ if (limit !== void 0) {
2852
+ localVarQueryParameter["limit"] = limit;
2853
+ }
2854
+ if (pageDir !== void 0) {
2855
+ localVarQueryParameter["pageDir"] = pageDir;
2856
+ }
2857
+ if (sortBy !== void 0) {
2858
+ localVarQueryParameter["sortBy"] = sortBy;
2859
+ }
2860
+ if (sortOrder !== void 0) {
2861
+ localVarQueryParameter["sortOrder"] = sortOrder;
2862
+ }
2863
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2864
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2865
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2866
+ return {
2867
+ url: toPathString(localVarUrlObj),
2868
+ options: localVarRequestOptions
2869
+ };
2870
+ }
2871
+ };
2872
+ };
2873
+ var MessagesApiFp = function(configuration) {
2874
+ const localVarAxiosParamCreator = MessagesApiAxiosParamCreator(configuration);
2875
+ return {
2876
+ /**
2877
+ *
2878
+ * @summary Messages Create
2879
+ * @param {string} conversationId
2880
+ * @param {MessageCreate} messageCreate
2881
+ * @param {*} [options] Override http request option.
2882
+ * @throws {RequiredError}
2883
+ */
2884
+ async messagesCreate(conversationId, messageCreate, options) {
2885
+ const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messageCreate, options);
2886
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _146 => _146.serverIndex]), () => ( 0));
2887
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _147 => _147["MessagesApi.messagesCreate"], 'optionalAccess', _148 => _148[localVarOperationServerIndex], 'optionalAccess', _149 => _149.url]);
2888
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2889
+ },
2890
+ /**
2891
+ *
2892
+ * @summary Messages Get
2893
+ * @param {string} messageId
2894
+ * @param {*} [options] Override http request option.
2895
+ * @throws {RequiredError}
2896
+ */
2897
+ async messagesGet(messageId, options) {
2898
+ const localVarAxiosArgs = await localVarAxiosParamCreator.messagesGet(messageId, options);
2899
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _150 => _150.serverIndex]), () => ( 0));
2900
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _151 => _151["MessagesApi.messagesGet"], 'optionalAccess', _152 => _152[localVarOperationServerIndex], 'optionalAccess', _153 => _153.url]);
2901
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2902
+ },
2903
+ /**
2904
+ *
2905
+ * @summary Messages List
2906
+ * @param {string | null} [searchString]
2907
+ * @param {string | null} [contactId]
2908
+ * @param {string | null} [conversationId]
2909
+ * @param {string | null} [cursor] Cursor for keyset paging
2910
+ * @param {number} [limit]
2911
+ * @param {PaginationDirection} [pageDir] Direction of paging
2912
+ * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
2913
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2914
+ * @param {*} [options] Override http request option.
2915
+ * @throws {RequiredError}
2916
+ */
2917
+ async messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
2918
+ const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options);
2919
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _154 => _154.serverIndex]), () => ( 0));
2920
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _155 => _155["MessagesApi.messagesList"], 'optionalAccess', _156 => _156[localVarOperationServerIndex], 'optionalAccess', _157 => _157.url]);
2921
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2922
+ }
2923
+ };
2924
+ };
2925
+ var MessagesApiFactory = function(configuration, basePath, axios) {
2926
+ const localVarFp = MessagesApiFp(configuration);
2927
+ return {
2928
+ /**
2929
+ *
2930
+ * @summary Messages Create
2931
+ * @param {string} conversationId
2932
+ * @param {MessageCreate} messageCreate
2933
+ * @param {*} [options] Override http request option.
2934
+ * @throws {RequiredError}
2935
+ */
2936
+ messagesCreate(conversationId, messageCreate, options) {
2937
+ return localVarFp.messagesCreate(conversationId, messageCreate, options).then((request) => request(axios, basePath));
2938
+ },
2939
+ /**
2940
+ *
2941
+ * @summary Messages Get
2942
+ * @param {string} messageId
2943
+ * @param {*} [options] Override http request option.
2944
+ * @throws {RequiredError}
2945
+ */
2946
+ messagesGet(messageId, options) {
2947
+ return localVarFp.messagesGet(messageId, options).then((request) => request(axios, basePath));
2948
+ },
2949
+ /**
2950
+ *
2951
+ * @summary Messages List
2952
+ * @param {string | null} [searchString]
2953
+ * @param {string | null} [contactId]
2954
+ * @param {string | null} [conversationId]
2955
+ * @param {string | null} [cursor] Cursor for keyset paging
2956
+ * @param {number} [limit]
2957
+ * @param {PaginationDirection} [pageDir] Direction of paging
2958
+ * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
2959
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2960
+ * @param {*} [options] Override http request option.
2961
+ * @throws {RequiredError}
2962
+ */
2963
+ messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
2964
+ return localVarFp.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
2965
+ }
2966
+ };
2967
+ };
2968
+ var MessagesApi = class extends BaseAPI {
2969
+ /**
2970
+ *
2971
+ * @summary Messages Create
2972
+ * @param {string} conversationId
2973
+ * @param {MessageCreate} messageCreate
2974
+ * @param {*} [options] Override http request option.
2975
+ * @throws {RequiredError}
2976
+ * @memberof MessagesApi
2977
+ */
2978
+ messagesCreate(conversationId, messageCreate, options) {
2979
+ return MessagesApiFp(this.configuration).messagesCreate(conversationId, messageCreate, options).then((request) => request(this.axios, this.basePath));
2980
+ }
2981
+ /**
2982
+ *
2983
+ * @summary Messages Get
2984
+ * @param {string} messageId
2985
+ * @param {*} [options] Override http request option.
2986
+ * @throws {RequiredError}
2987
+ * @memberof MessagesApi
2988
+ */
2989
+ messagesGet(messageId, options) {
2990
+ return MessagesApiFp(this.configuration).messagesGet(messageId, options).then((request) => request(this.axios, this.basePath));
2991
+ }
2992
+ /**
2993
+ *
2994
+ * @summary Messages List
2995
+ * @param {string | null} [searchString]
2996
+ * @param {string | null} [contactId]
2997
+ * @param {string | null} [conversationId]
2998
+ * @param {string | null} [cursor] Cursor for keyset paging
2999
+ * @param {number} [limit]
3000
+ * @param {PaginationDirection} [pageDir] Direction of paging
3001
+ * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
3002
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3003
+ * @param {*} [options] Override http request option.
3004
+ * @throws {RequiredError}
3005
+ * @memberof MessagesApi
3006
+ */
3007
+ messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
3008
+ return MessagesApiFp(this.configuration).messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
3009
+ }
3010
+ };
2133
3011
  var PhoneNumbersApiAxiosParamCreator = function(configuration) {
2134
3012
  return {
2135
3013
  /**
@@ -2187,6 +3065,36 @@ var PhoneNumbersApiAxiosParamCreator = function(configuration) {
2187
3065
  url: toPathString(localVarUrlObj),
2188
3066
  options: localVarRequestOptions
2189
3067
  };
3068
+ },
3069
+ /**
3070
+ *
3071
+ * @summary Phone_numbers Update
3072
+ * @param {string} phoneNumberId
3073
+ * @param {PhoneNumberUpdate} phoneNumberUpdate
3074
+ * @param {*} [options] Override http request option.
3075
+ * @throws {RequiredError}
3076
+ */
3077
+ phoneNumbersUpdate: async (phoneNumberId, phoneNumberUpdate, options = {}) => {
3078
+ assertParamExists("phoneNumbersUpdate", "phoneNumberId", phoneNumberId);
3079
+ assertParamExists("phoneNumbersUpdate", "phoneNumberUpdate", phoneNumberUpdate);
3080
+ const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
3081
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3082
+ let baseOptions;
3083
+ if (configuration) {
3084
+ baseOptions = configuration.baseOptions;
3085
+ }
3086
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
3087
+ const localVarHeaderParameter = {};
3088
+ const localVarQueryParameter = {};
3089
+ localVarHeaderParameter["Content-Type"] = "application/json";
3090
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3091
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3092
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3093
+ localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberUpdate, localVarRequestOptions, configuration);
3094
+ return {
3095
+ url: toPathString(localVarUrlObj),
3096
+ options: localVarRequestOptions
3097
+ };
2190
3098
  }
2191
3099
  };
2192
3100
  };
@@ -2203,8 +3111,8 @@ var PhoneNumbersApiFp = function(configuration) {
2203
3111
  */
2204
3112
  async phoneNumbersCreate(contactId, phoneNumberCreate, options) {
2205
3113
  const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersCreate(contactId, phoneNumberCreate, options);
2206
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _118 => _118.serverIndex]), () => ( 0));
2207
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _119 => _119["PhoneNumbersApi.phoneNumbersCreate"], 'optionalAccess', _120 => _120[localVarOperationServerIndex], 'optionalAccess', _121 => _121.url]);
3114
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _158 => _158.serverIndex]), () => ( 0));
3115
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _159 => _159["PhoneNumbersApi.phoneNumbersCreate"], 'optionalAccess', _160 => _160[localVarOperationServerIndex], 'optionalAccess', _161 => _161.url]);
2208
3116
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2209
3117
  },
2210
3118
  /**
@@ -2216,8 +3124,22 @@ var PhoneNumbersApiFp = function(configuration) {
2216
3124
  */
2217
3125
  async phoneNumbersDelete(phoneNumberId, options) {
2218
3126
  const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersDelete(phoneNumberId, options);
2219
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _122 => _122.serverIndex]), () => ( 0));
2220
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _123 => _123["PhoneNumbersApi.phoneNumbersDelete"], 'optionalAccess', _124 => _124[localVarOperationServerIndex], 'optionalAccess', _125 => _125.url]);
3127
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _162 => _162.serverIndex]), () => ( 0));
3128
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _163 => _163["PhoneNumbersApi.phoneNumbersDelete"], 'optionalAccess', _164 => _164[localVarOperationServerIndex], 'optionalAccess', _165 => _165.url]);
3129
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3130
+ },
3131
+ /**
3132
+ *
3133
+ * @summary Phone_numbers Update
3134
+ * @param {string} phoneNumberId
3135
+ * @param {PhoneNumberUpdate} phoneNumberUpdate
3136
+ * @param {*} [options] Override http request option.
3137
+ * @throws {RequiredError}
3138
+ */
3139
+ async phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
3140
+ const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options);
3141
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _166 => _166.serverIndex]), () => ( 0));
3142
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _167 => _167["PhoneNumbersApi.phoneNumbersUpdate"], 'optionalAccess', _168 => _168[localVarOperationServerIndex], 'optionalAccess', _169 => _169.url]);
2221
3143
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2222
3144
  }
2223
3145
  };
@@ -2245,6 +3167,17 @@ var PhoneNumbersApiFactory = function(configuration, basePath, axios) {
2245
3167
  */
2246
3168
  phoneNumbersDelete(phoneNumberId, options) {
2247
3169
  return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
3170
+ },
3171
+ /**
3172
+ *
3173
+ * @summary Phone_numbers Update
3174
+ * @param {string} phoneNumberId
3175
+ * @param {PhoneNumberUpdate} phoneNumberUpdate
3176
+ * @param {*} [options] Override http request option.
3177
+ * @throws {RequiredError}
3178
+ */
3179
+ phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
3180
+ return localVarFp.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(axios, basePath));
2248
3181
  }
2249
3182
  };
2250
3183
  };
@@ -2272,17 +3205,35 @@ var PhoneNumbersApi = class extends BaseAPI {
2272
3205
  phoneNumbersDelete(phoneNumberId, options) {
2273
3206
  return PhoneNumbersApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
2274
3207
  }
3208
+ /**
3209
+ *
3210
+ * @summary Phone_numbers Update
3211
+ * @param {string} phoneNumberId
3212
+ * @param {PhoneNumberUpdate} phoneNumberUpdate
3213
+ * @param {*} [options] Override http request option.
3214
+ * @throws {RequiredError}
3215
+ * @memberof PhoneNumbersApi
3216
+ */
3217
+ phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
3218
+ return PhoneNumbersApiFp(this.configuration).phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(this.axios, this.basePath));
3219
+ }
2275
3220
  };
2276
3221
  var ReservationsApiAxiosParamCreator = function(configuration) {
2277
3222
  return {
2278
3223
  /**
2279
3224
  *
2280
3225
  * @summary Reservations List
2281
- * @param {string} [contactId]
3226
+ * @param {string | null} [searchString]
3227
+ * @param {string | null} [contactId]
3228
+ * @param {string | null} [cursor] Cursor for keyset paging
3229
+ * @param {number} [limit]
3230
+ * @param {PaginationDirection} [pageDir] Direction of paging
3231
+ * @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
3232
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2282
3233
  * @param {*} [options] Override http request option.
2283
3234
  * @throws {RequiredError}
2284
3235
  */
2285
- reservationsList: async (contactId, options = {}) => {
3236
+ reservationsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
2286
3237
  const localVarPath = `/reservations`;
2287
3238
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2288
3239
  let baseOptions;
@@ -2292,9 +3243,27 @@ var ReservationsApiAxiosParamCreator = function(configuration) {
2292
3243
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2293
3244
  const localVarHeaderParameter = {};
2294
3245
  const localVarQueryParameter = {};
3246
+ if (searchString !== void 0) {
3247
+ localVarQueryParameter["searchString"] = searchString;
3248
+ }
2295
3249
  if (contactId !== void 0) {
2296
3250
  localVarQueryParameter["contactId"] = contactId;
2297
3251
  }
3252
+ if (cursor !== void 0) {
3253
+ localVarQueryParameter["cursor"] = cursor;
3254
+ }
3255
+ if (limit !== void 0) {
3256
+ localVarQueryParameter["limit"] = limit;
3257
+ }
3258
+ if (pageDir !== void 0) {
3259
+ localVarQueryParameter["pageDir"] = pageDir;
3260
+ }
3261
+ if (sortBy !== void 0) {
3262
+ localVarQueryParameter["sortBy"] = sortBy;
3263
+ }
3264
+ if (sortOrder !== void 0) {
3265
+ localVarQueryParameter["sortOrder"] = sortOrder;
3266
+ }
2298
3267
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2299
3268
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2300
3269
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2311,14 +3280,20 @@ var ReservationsApiFp = function(configuration) {
2311
3280
  /**
2312
3281
  *
2313
3282
  * @summary Reservations List
2314
- * @param {string} [contactId]
3283
+ * @param {string | null} [searchString]
3284
+ * @param {string | null} [contactId]
3285
+ * @param {string | null} [cursor] Cursor for keyset paging
3286
+ * @param {number} [limit]
3287
+ * @param {PaginationDirection} [pageDir] Direction of paging
3288
+ * @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
3289
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2315
3290
  * @param {*} [options] Override http request option.
2316
3291
  * @throws {RequiredError}
2317
3292
  */
2318
- async reservationsList(contactId, options) {
2319
- const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
2320
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _126 => _126.serverIndex]), () => ( 0));
2321
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _127 => _127["ReservationsApi.reservationsList"], 'optionalAccess', _128 => _128[localVarOperationServerIndex], 'optionalAccess', _129 => _129.url]);
3293
+ async reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
3294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
3295
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _170 => _170.serverIndex]), () => ( 0));
3296
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _171 => _171["ReservationsApi.reservationsList"], 'optionalAccess', _172 => _172[localVarOperationServerIndex], 'optionalAccess', _173 => _173.url]);
2322
3297
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2323
3298
  }
2324
3299
  };
@@ -2329,12 +3304,18 @@ var ReservationsApiFactory = function(configuration, basePath, axios) {
2329
3304
  /**
2330
3305
  *
2331
3306
  * @summary Reservations List
2332
- * @param {string} [contactId]
3307
+ * @param {string | null} [searchString]
3308
+ * @param {string | null} [contactId]
3309
+ * @param {string | null} [cursor] Cursor for keyset paging
3310
+ * @param {number} [limit]
3311
+ * @param {PaginationDirection} [pageDir] Direction of paging
3312
+ * @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
3313
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2333
3314
  * @param {*} [options] Override http request option.
2334
3315
  * @throws {RequiredError}
2335
3316
  */
2336
- reservationsList(contactId, options) {
2337
- return localVarFp.reservationsList(contactId, options).then((request) => request(axios, basePath));
3317
+ reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
3318
+ return localVarFp.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
2338
3319
  }
2339
3320
  };
2340
3321
  };
@@ -2342,13 +3323,19 @@ var ReservationsApi = class extends BaseAPI {
2342
3323
  /**
2343
3324
  *
2344
3325
  * @summary Reservations List
2345
- * @param {string} [contactId]
3326
+ * @param {string | null} [searchString]
3327
+ * @param {string | null} [contactId]
3328
+ * @param {string | null} [cursor] Cursor for keyset paging
3329
+ * @param {number} [limit]
3330
+ * @param {PaginationDirection} [pageDir] Direction of paging
3331
+ * @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
3332
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2346
3333
  * @param {*} [options] Override http request option.
2347
3334
  * @throws {RequiredError}
2348
3335
  * @memberof ReservationsApi
2349
3336
  */
2350
- reservationsList(contactId, options) {
2351
- return ReservationsApiFp(this.configuration).reservationsList(contactId, options).then((request) => request(this.axios, this.basePath));
3337
+ reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
3338
+ return ReservationsApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
2352
3339
  }
2353
3340
  };
2354
3341
  var UnboundApiAxiosParamCreator = function(configuration) {
@@ -2774,11 +3761,17 @@ var UnboundApiAxiosParamCreator = function(configuration) {
2774
3761
  /**
2775
3762
  * List all conversations, optionally filtered by contact_id
2776
3763
  * @summary Conversations List
2777
- * @param {string} [contactId]
3764
+ * @param {string | null} [searchString]
3765
+ * @param {string | null} [contactId]
3766
+ * @param {string | null} [cursor] Cursor for keyset paging
3767
+ * @param {number} [limit]
3768
+ * @param {PaginationDirection} [pageDir] Direction of paging
3769
+ * @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
3770
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2778
3771
  * @param {*} [options] Override http request option.
2779
3772
  * @throws {RequiredError}
2780
3773
  */
2781
- conversationsList: async (contactId, options = {}) => {
3774
+ conversationsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
2782
3775
  const localVarPath = `/conversations`;
2783
3776
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2784
3777
  let baseOptions;
@@ -2788,9 +3781,27 @@ var UnboundApiAxiosParamCreator = function(configuration) {
2788
3781
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2789
3782
  const localVarHeaderParameter = {};
2790
3783
  const localVarQueryParameter = {};
3784
+ if (searchString !== void 0) {
3785
+ localVarQueryParameter["searchString"] = searchString;
3786
+ }
2791
3787
  if (contactId !== void 0) {
2792
3788
  localVarQueryParameter["contactId"] = contactId;
2793
3789
  }
3790
+ if (cursor !== void 0) {
3791
+ localVarQueryParameter["cursor"] = cursor;
3792
+ }
3793
+ if (limit !== void 0) {
3794
+ localVarQueryParameter["limit"] = limit;
3795
+ }
3796
+ if (pageDir !== void 0) {
3797
+ localVarQueryParameter["pageDir"] = pageDir;
3798
+ }
3799
+ if (sortBy !== void 0) {
3800
+ localVarQueryParameter["sortBy"] = sortBy;
3801
+ }
3802
+ if (sortOrder !== void 0) {
3803
+ localVarQueryParameter["sortOrder"] = sortOrder;
3804
+ }
2794
3805
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2795
3806
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2796
3807
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2885,6 +3896,36 @@ var UnboundApiAxiosParamCreator = function(configuration) {
2885
3896
  options: localVarRequestOptions
2886
3897
  };
2887
3898
  },
3899
+ /**
3900
+ *
3901
+ * @summary Emails Update
3902
+ * @param {string} emailId
3903
+ * @param {EmailUpdate} emailUpdate
3904
+ * @param {*} [options] Override http request option.
3905
+ * @throws {RequiredError}
3906
+ */
3907
+ emailsUpdate: async (emailId, emailUpdate, options = {}) => {
3908
+ assertParamExists("emailsUpdate", "emailId", emailId);
3909
+ assertParamExists("emailsUpdate", "emailUpdate", emailUpdate);
3910
+ const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
3911
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3912
+ let baseOptions;
3913
+ if (configuration) {
3914
+ baseOptions = configuration.baseOptions;
3915
+ }
3916
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
3917
+ const localVarHeaderParameter = {};
3918
+ const localVarQueryParameter = {};
3919
+ localVarHeaderParameter["Content-Type"] = "application/json";
3920
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3921
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3922
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3923
+ localVarRequestOptions.data = serializeDataIfNeeded(emailUpdate, localVarRequestOptions, configuration);
3924
+ return {
3925
+ url: toPathString(localVarUrlObj),
3926
+ options: localVarRequestOptions
3927
+ };
3928
+ },
2888
3929
  /**
2889
3930
  * List all listings
2890
3931
  * @summary Inquiries List
@@ -2914,13 +3955,45 @@ var UnboundApiAxiosParamCreator = function(configuration) {
2914
3955
  };
2915
3956
  },
2916
3957
  /**
2917
- * List all listings
3958
+ *
3959
+ * @summary Listings Get
3960
+ * @param {string} listingId
3961
+ * @param {*} [options] Override http request option.
3962
+ * @throws {RequiredError}
3963
+ */
3964
+ listingsGet: async (listingId, options = {}) => {
3965
+ assertParamExists("listingsGet", "listingId", listingId);
3966
+ const localVarPath = `/listings/{listingId}`.replace(`{${"listingId"}}`, encodeURIComponent(String(listingId)));
3967
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3968
+ let baseOptions;
3969
+ if (configuration) {
3970
+ baseOptions = configuration.baseOptions;
3971
+ }
3972
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3973
+ const localVarHeaderParameter = {};
3974
+ const localVarQueryParameter = {};
3975
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3976
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3977
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3978
+ return {
3979
+ url: toPathString(localVarUrlObj),
3980
+ options: localVarRequestOptions
3981
+ };
3982
+ },
3983
+ /**
3984
+ *
2918
3985
  * @summary Listings List
2919
- * @param {string} [contactId]
3986
+ * @param {string | null} [searchString]
3987
+ * @param {string | null} [contactId]
3988
+ * @param {string | null} [cursor] Cursor for keyset paging
3989
+ * @param {number} [limit]
3990
+ * @param {PaginationDirection} [pageDir] Direction of paging
3991
+ * @param {ListingSortBy} [sortBy] Sort key
3992
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2920
3993
  * @param {*} [options] Override http request option.
2921
3994
  * @throws {RequiredError}
2922
3995
  */
2923
- listingsList: async (contactId, options = {}) => {
3996
+ listingsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
2924
3997
  const localVarPath = `/listings`;
2925
3998
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2926
3999
  let baseOptions;
@@ -2930,9 +4003,27 @@ var UnboundApiAxiosParamCreator = function(configuration) {
2930
4003
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2931
4004
  const localVarHeaderParameter = {};
2932
4005
  const localVarQueryParameter = {};
4006
+ if (searchString !== void 0) {
4007
+ localVarQueryParameter["searchString"] = searchString;
4008
+ }
2933
4009
  if (contactId !== void 0) {
2934
4010
  localVarQueryParameter["contactId"] = contactId;
2935
4011
  }
4012
+ if (cursor !== void 0) {
4013
+ localVarQueryParameter["cursor"] = cursor;
4014
+ }
4015
+ if (limit !== void 0) {
4016
+ localVarQueryParameter["limit"] = limit;
4017
+ }
4018
+ if (pageDir !== void 0) {
4019
+ localVarQueryParameter["pageDir"] = pageDir;
4020
+ }
4021
+ if (sortBy !== void 0) {
4022
+ localVarQueryParameter["sortBy"] = sortBy;
4023
+ }
4024
+ if (sortOrder !== void 0) {
4025
+ localVarQueryParameter["sortOrder"] = sortOrder;
4026
+ }
2936
4027
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2937
4028
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2938
4029
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2965,6 +4056,118 @@ var UnboundApiAxiosParamCreator = function(configuration) {
2965
4056
  options: localVarRequestOptions
2966
4057
  };
2967
4058
  },
4059
+ /**
4060
+ *
4061
+ * @summary Messages Create
4062
+ * @param {string} conversationId
4063
+ * @param {MessageCreate} messageCreate
4064
+ * @param {*} [options] Override http request option.
4065
+ * @throws {RequiredError}
4066
+ */
4067
+ messagesCreate: async (conversationId, messageCreate, options = {}) => {
4068
+ assertParamExists("messagesCreate", "conversationId", conversationId);
4069
+ assertParamExists("messagesCreate", "messageCreate", messageCreate);
4070
+ const localVarPath = `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
4071
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4072
+ let baseOptions;
4073
+ if (configuration) {
4074
+ baseOptions = configuration.baseOptions;
4075
+ }
4076
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
4077
+ const localVarHeaderParameter = {};
4078
+ const localVarQueryParameter = {};
4079
+ localVarHeaderParameter["Content-Type"] = "application/json";
4080
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4081
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4082
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4083
+ localVarRequestOptions.data = serializeDataIfNeeded(messageCreate, localVarRequestOptions, configuration);
4084
+ return {
4085
+ url: toPathString(localVarUrlObj),
4086
+ options: localVarRequestOptions
4087
+ };
4088
+ },
4089
+ /**
4090
+ *
4091
+ * @summary Messages Get
4092
+ * @param {string} messageId
4093
+ * @param {*} [options] Override http request option.
4094
+ * @throws {RequiredError}
4095
+ */
4096
+ messagesGet: async (messageId, options = {}) => {
4097
+ assertParamExists("messagesGet", "messageId", messageId);
4098
+ const localVarPath = `/messages/{messageId}`.replace(`{${"messageId"}}`, encodeURIComponent(String(messageId)));
4099
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4100
+ let baseOptions;
4101
+ if (configuration) {
4102
+ baseOptions = configuration.baseOptions;
4103
+ }
4104
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
4105
+ const localVarHeaderParameter = {};
4106
+ const localVarQueryParameter = {};
4107
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4108
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4109
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4110
+ return {
4111
+ url: toPathString(localVarUrlObj),
4112
+ options: localVarRequestOptions
4113
+ };
4114
+ },
4115
+ /**
4116
+ *
4117
+ * @summary Messages List
4118
+ * @param {string | null} [searchString]
4119
+ * @param {string | null} [contactId]
4120
+ * @param {string | null} [conversationId]
4121
+ * @param {string | null} [cursor] Cursor for keyset paging
4122
+ * @param {number} [limit]
4123
+ * @param {PaginationDirection} [pageDir] Direction of paging
4124
+ * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
4125
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
4126
+ * @param {*} [options] Override http request option.
4127
+ * @throws {RequiredError}
4128
+ */
4129
+ messagesList: async (searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
4130
+ const localVarPath = `/messages`;
4131
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4132
+ let baseOptions;
4133
+ if (configuration) {
4134
+ baseOptions = configuration.baseOptions;
4135
+ }
4136
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
4137
+ const localVarHeaderParameter = {};
4138
+ const localVarQueryParameter = {};
4139
+ if (searchString !== void 0) {
4140
+ localVarQueryParameter["searchString"] = searchString;
4141
+ }
4142
+ if (contactId !== void 0) {
4143
+ localVarQueryParameter["contactId"] = contactId;
4144
+ }
4145
+ if (conversationId !== void 0) {
4146
+ localVarQueryParameter["conversationId"] = conversationId;
4147
+ }
4148
+ if (cursor !== void 0) {
4149
+ localVarQueryParameter["cursor"] = cursor;
4150
+ }
4151
+ if (limit !== void 0) {
4152
+ localVarQueryParameter["limit"] = limit;
4153
+ }
4154
+ if (pageDir !== void 0) {
4155
+ localVarQueryParameter["pageDir"] = pageDir;
4156
+ }
4157
+ if (sortBy !== void 0) {
4158
+ localVarQueryParameter["sortBy"] = sortBy;
4159
+ }
4160
+ if (sortOrder !== void 0) {
4161
+ localVarQueryParameter["sortOrder"] = sortOrder;
4162
+ }
4163
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4164
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4165
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4166
+ return {
4167
+ url: toPathString(localVarUrlObj),
4168
+ options: localVarRequestOptions
4169
+ };
4170
+ },
2968
4171
  /**
2969
4172
  *
2970
4173
  * @summary Phone_numbers Create
@@ -3021,14 +4224,50 @@ var UnboundApiAxiosParamCreator = function(configuration) {
3021
4224
  options: localVarRequestOptions
3022
4225
  };
3023
4226
  },
4227
+ /**
4228
+ *
4229
+ * @summary Phone_numbers Update
4230
+ * @param {string} phoneNumberId
4231
+ * @param {PhoneNumberUpdate} phoneNumberUpdate
4232
+ * @param {*} [options] Override http request option.
4233
+ * @throws {RequiredError}
4234
+ */
4235
+ phoneNumbersUpdate: async (phoneNumberId, phoneNumberUpdate, options = {}) => {
4236
+ assertParamExists("phoneNumbersUpdate", "phoneNumberId", phoneNumberId);
4237
+ assertParamExists("phoneNumbersUpdate", "phoneNumberUpdate", phoneNumberUpdate);
4238
+ const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
4239
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4240
+ let baseOptions;
4241
+ if (configuration) {
4242
+ baseOptions = configuration.baseOptions;
4243
+ }
4244
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
4245
+ const localVarHeaderParameter = {};
4246
+ const localVarQueryParameter = {};
4247
+ localVarHeaderParameter["Content-Type"] = "application/json";
4248
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4250
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4251
+ localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberUpdate, localVarRequestOptions, configuration);
4252
+ return {
4253
+ url: toPathString(localVarUrlObj),
4254
+ options: localVarRequestOptions
4255
+ };
4256
+ },
3024
4257
  /**
3025
4258
  *
3026
4259
  * @summary Reservations List
3027
- * @param {string} [contactId]
4260
+ * @param {string | null} [searchString]
4261
+ * @param {string | null} [contactId]
4262
+ * @param {string | null} [cursor] Cursor for keyset paging
4263
+ * @param {number} [limit]
4264
+ * @param {PaginationDirection} [pageDir] Direction of paging
4265
+ * @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
4266
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3028
4267
  * @param {*} [options] Override http request option.
3029
4268
  * @throws {RequiredError}
3030
4269
  */
3031
- reservationsList: async (contactId, options = {}) => {
4270
+ reservationsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
3032
4271
  const localVarPath = `/reservations`;
3033
4272
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3034
4273
  let baseOptions;
@@ -3038,9 +4277,27 @@ var UnboundApiAxiosParamCreator = function(configuration) {
3038
4277
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3039
4278
  const localVarHeaderParameter = {};
3040
4279
  const localVarQueryParameter = {};
4280
+ if (searchString !== void 0) {
4281
+ localVarQueryParameter["searchString"] = searchString;
4282
+ }
3041
4283
  if (contactId !== void 0) {
3042
4284
  localVarQueryParameter["contactId"] = contactId;
3043
4285
  }
4286
+ if (cursor !== void 0) {
4287
+ localVarQueryParameter["cursor"] = cursor;
4288
+ }
4289
+ if (limit !== void 0) {
4290
+ localVarQueryParameter["limit"] = limit;
4291
+ }
4292
+ if (pageDir !== void 0) {
4293
+ localVarQueryParameter["pageDir"] = pageDir;
4294
+ }
4295
+ if (sortBy !== void 0) {
4296
+ localVarQueryParameter["sortBy"] = sortBy;
4297
+ }
4298
+ if (sortOrder !== void 0) {
4299
+ localVarQueryParameter["sortOrder"] = sortOrder;
4300
+ }
3044
4301
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3045
4302
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3046
4303
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3091,8 +4348,8 @@ var UnboundApiFp = function(configuration) {
3091
4348
  */
3092
4349
  async accountsList(options) {
3093
4350
  const localVarAxiosArgs = await localVarAxiosParamCreator.accountsList(options);
3094
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _130 => _130.serverIndex]), () => ( 0));
3095
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _131 => _131["UnboundApi.accountsList"], 'optionalAccess', _132 => _132[localVarOperationServerIndex], 'optionalAccess', _133 => _133.url]);
4351
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _174 => _174.serverIndex]), () => ( 0));
4352
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _175 => _175["UnboundApi.accountsList"], 'optionalAccess', _176 => _176[localVarOperationServerIndex], 'optionalAccess', _177 => _177.url]);
3096
4353
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3097
4354
  },
3098
4355
  /**
@@ -3105,8 +4362,8 @@ var UnboundApiFp = function(configuration) {
3105
4362
  */
3106
4363
  async addressesCreate(contactId, addressCreate, options) {
3107
4364
  const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, addressCreate, options);
3108
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _134 => _134.serverIndex]), () => ( 0));
3109
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _135 => _135["UnboundApi.addressesCreate"], 'optionalAccess', _136 => _136[localVarOperationServerIndex], 'optionalAccess', _137 => _137.url]);
4365
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _178 => _178.serverIndex]), () => ( 0));
4366
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _179 => _179["UnboundApi.addressesCreate"], 'optionalAccess', _180 => _180[localVarOperationServerIndex], 'optionalAccess', _181 => _181.url]);
3110
4367
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3111
4368
  },
3112
4369
  /**
@@ -3118,8 +4375,8 @@ var UnboundApiFp = function(configuration) {
3118
4375
  */
3119
4376
  async addressesDelete(addressId, options) {
3120
4377
  const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
3121
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _138 => _138.serverIndex]), () => ( 0));
3122
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _139 => _139["UnboundApi.addressesDelete"], 'optionalAccess', _140 => _140[localVarOperationServerIndex], 'optionalAccess', _141 => _141.url]);
4378
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _182 => _182.serverIndex]), () => ( 0));
4379
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _183 => _183["UnboundApi.addressesDelete"], 'optionalAccess', _184 => _184[localVarOperationServerIndex], 'optionalAccess', _185 => _185.url]);
3123
4380
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3124
4381
  },
3125
4382
  /**
@@ -3132,8 +4389,8 @@ var UnboundApiFp = function(configuration) {
3132
4389
  */
3133
4390
  async addressesUpdate(addressId, addressUpdate, options) {
3134
4391
  const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, addressUpdate, options);
3135
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _142 => _142.serverIndex]), () => ( 0));
3136
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _143 => _143["UnboundApi.addressesUpdate"], 'optionalAccess', _144 => _144[localVarOperationServerIndex], 'optionalAccess', _145 => _145.url]);
4392
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _186 => _186.serverIndex]), () => ( 0));
4393
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _187 => _187["UnboundApi.addressesUpdate"], 'optionalAccess', _188 => _188[localVarOperationServerIndex], 'optionalAccess', _189 => _189.url]);
3137
4394
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3138
4395
  },
3139
4396
  /**
@@ -3147,8 +4404,8 @@ var UnboundApiFp = function(configuration) {
3147
4404
  */
3148
4405
  async contactsAddListing(contactId, listingId, createContactListing, options) {
3149
4406
  const localVarAxiosArgs = await localVarAxiosParamCreator.contactsAddListing(contactId, listingId, createContactListing, options);
3150
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _146 => _146.serverIndex]), () => ( 0));
3151
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _147 => _147["UnboundApi.contactsAddListing"], 'optionalAccess', _148 => _148[localVarOperationServerIndex], 'optionalAccess', _149 => _149.url]);
4407
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _190 => _190.serverIndex]), () => ( 0));
4408
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _191 => _191["UnboundApi.contactsAddListing"], 'optionalAccess', _192 => _192[localVarOperationServerIndex], 'optionalAccess', _193 => _193.url]);
3152
4409
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3153
4410
  },
3154
4411
  /**
@@ -3160,8 +4417,8 @@ var UnboundApiFp = function(configuration) {
3160
4417
  */
3161
4418
  async contactsCreate(contactCreate, options) {
3162
4419
  const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactCreate, options);
3163
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _150 => _150.serverIndex]), () => ( 0));
3164
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _151 => _151["UnboundApi.contactsCreate"], 'optionalAccess', _152 => _152[localVarOperationServerIndex], 'optionalAccess', _153 => _153.url]);
4420
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _194 => _194.serverIndex]), () => ( 0));
4421
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _195 => _195["UnboundApi.contactsCreate"], 'optionalAccess', _196 => _196[localVarOperationServerIndex], 'optionalAccess', _197 => _197.url]);
3165
4422
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3166
4423
  },
3167
4424
  /**
@@ -3173,8 +4430,8 @@ var UnboundApiFp = function(configuration) {
3173
4430
  */
3174
4431
  async contactsDelete(contactId, options) {
3175
4432
  const localVarAxiosArgs = await localVarAxiosParamCreator.contactsDelete(contactId, options);
3176
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _154 => _154.serverIndex]), () => ( 0));
3177
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _155 => _155["UnboundApi.contactsDelete"], 'optionalAccess', _156 => _156[localVarOperationServerIndex], 'optionalAccess', _157 => _157.url]);
4433
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _198 => _198.serverIndex]), () => ( 0));
4434
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _199 => _199["UnboundApi.contactsDelete"], 'optionalAccess', _200 => _200[localVarOperationServerIndex], 'optionalAccess', _201 => _201.url]);
3178
4435
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3179
4436
  },
3180
4437
  /**
@@ -3186,8 +4443,8 @@ var UnboundApiFp = function(configuration) {
3186
4443
  */
3187
4444
  async contactsGet(contactId, options) {
3188
4445
  const localVarAxiosArgs = await localVarAxiosParamCreator.contactsGet(contactId, options);
3189
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _158 => _158.serverIndex]), () => ( 0));
3190
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _159 => _159["UnboundApi.contactsGet"], 'optionalAccess', _160 => _160[localVarOperationServerIndex], 'optionalAccess', _161 => _161.url]);
4446
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _202 => _202.serverIndex]), () => ( 0));
4447
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _203 => _203["UnboundApi.contactsGet"], 'optionalAccess', _204 => _204[localVarOperationServerIndex], 'optionalAccess', _205 => _205.url]);
3191
4448
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3192
4449
  },
3193
4450
  /**
@@ -3204,8 +4461,8 @@ var UnboundApiFp = function(configuration) {
3204
4461
  */
3205
4462
  async contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
3206
4463
  const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options);
3207
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _162 => _162.serverIndex]), () => ( 0));
3208
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _163 => _163["UnboundApi.contactsList"], 'optionalAccess', _164 => _164[localVarOperationServerIndex], 'optionalAccess', _165 => _165.url]);
4464
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _206 => _206.serverIndex]), () => ( 0));
4465
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _207 => _207["UnboundApi.contactsList"], 'optionalAccess', _208 => _208[localVarOperationServerIndex], 'optionalAccess', _209 => _209.url]);
3209
4466
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3210
4467
  },
3211
4468
  /**
@@ -3219,8 +4476,8 @@ var UnboundApiFp = function(configuration) {
3219
4476
  */
3220
4477
  async contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
3221
4478
  const localVarAxiosArgs = await localVarAxiosParamCreator.contactsRemoveListing(contactId, listingId, deleteContactListing, options);
3222
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _166 => _166.serverIndex]), () => ( 0));
3223
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _167 => _167["UnboundApi.contactsRemoveListing"], 'optionalAccess', _168 => _168[localVarOperationServerIndex], 'optionalAccess', _169 => _169.url]);
4479
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _210 => _210.serverIndex]), () => ( 0));
4480
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _211 => _211["UnboundApi.contactsRemoveListing"], 'optionalAccess', _212 => _212[localVarOperationServerIndex], 'optionalAccess', _213 => _213.url]);
3224
4481
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3225
4482
  },
3226
4483
  /**
@@ -3233,8 +4490,8 @@ var UnboundApiFp = function(configuration) {
3233
4490
  */
3234
4491
  async contactsUpdate(contactId, contactUpdate, options) {
3235
4492
  const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, contactUpdate, options);
3236
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _170 => _170.serverIndex]), () => ( 0));
3237
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _171 => _171["UnboundApi.contactsUpdate"], 'optionalAccess', _172 => _172[localVarOperationServerIndex], 'optionalAccess', _173 => _173.url]);
4493
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _214 => _214.serverIndex]), () => ( 0));
4494
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _215 => _215["UnboundApi.contactsUpdate"], 'optionalAccess', _216 => _216[localVarOperationServerIndex], 'optionalAccess', _217 => _217.url]);
3238
4495
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3239
4496
  },
3240
4497
  /**
@@ -3248,8 +4505,8 @@ var UnboundApiFp = function(configuration) {
3248
4505
  */
3249
4506
  async contactsUpdateListing(contactId, listingId, updateContactListing, options) {
3250
4507
  const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdateListing(contactId, listingId, updateContactListing, options);
3251
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _174 => _174.serverIndex]), () => ( 0));
3252
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _175 => _175["UnboundApi.contactsUpdateListing"], 'optionalAccess', _176 => _176[localVarOperationServerIndex], 'optionalAccess', _177 => _177.url]);
4508
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _218 => _218.serverIndex]), () => ( 0));
4509
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _219 => _219["UnboundApi.contactsUpdateListing"], 'optionalAccess', _220 => _220[localVarOperationServerIndex], 'optionalAccess', _221 => _221.url]);
3253
4510
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3254
4511
  },
3255
4512
  /**
@@ -3261,8 +4518,8 @@ var UnboundApiFp = function(configuration) {
3261
4518
  */
3262
4519
  async conversationsCreate(conversationCreate, options) {
3263
4520
  const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(conversationCreate, options);
3264
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _178 => _178.serverIndex]), () => ( 0));
3265
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _179 => _179["UnboundApi.conversationsCreate"], 'optionalAccess', _180 => _180[localVarOperationServerIndex], 'optionalAccess', _181 => _181.url]);
4521
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _222 => _222.serverIndex]), () => ( 0));
4522
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _223 => _223["UnboundApi.conversationsCreate"], 'optionalAccess', _224 => _224[localVarOperationServerIndex], 'optionalAccess', _225 => _225.url]);
3266
4523
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3267
4524
  },
3268
4525
  /**
@@ -3274,21 +4531,27 @@ var UnboundApiFp = function(configuration) {
3274
4531
  */
3275
4532
  async conversationsGet(conversationId, options) {
3276
4533
  const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
3277
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _182 => _182.serverIndex]), () => ( 0));
3278
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _183 => _183["UnboundApi.conversationsGet"], 'optionalAccess', _184 => _184[localVarOperationServerIndex], 'optionalAccess', _185 => _185.url]);
4534
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _226 => _226.serverIndex]), () => ( 0));
4535
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _227 => _227["UnboundApi.conversationsGet"], 'optionalAccess', _228 => _228[localVarOperationServerIndex], 'optionalAccess', _229 => _229.url]);
3279
4536
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3280
4537
  },
3281
4538
  /**
3282
4539
  * List all conversations, optionally filtered by contact_id
3283
4540
  * @summary Conversations List
3284
- * @param {string} [contactId]
4541
+ * @param {string | null} [searchString]
4542
+ * @param {string | null} [contactId]
4543
+ * @param {string | null} [cursor] Cursor for keyset paging
4544
+ * @param {number} [limit]
4545
+ * @param {PaginationDirection} [pageDir] Direction of paging
4546
+ * @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
4547
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3285
4548
  * @param {*} [options] Override http request option.
3286
4549
  * @throws {RequiredError}
3287
4550
  */
3288
- async conversationsList(contactId, options) {
3289
- const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(contactId, options);
3290
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _186 => _186.serverIndex]), () => ( 0));
3291
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _187 => _187["UnboundApi.conversationsList"], 'optionalAccess', _188 => _188[localVarOperationServerIndex], 'optionalAccess', _189 => _189.url]);
4551
+ async conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
4552
+ const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
4553
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _230 => _230.serverIndex]), () => ( 0));
4554
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _231 => _231["UnboundApi.conversationsList"], 'optionalAccess', _232 => _232[localVarOperationServerIndex], 'optionalAccess', _233 => _233.url]);
3292
4555
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3293
4556
  },
3294
4557
  /**
@@ -3301,8 +4564,8 @@ var UnboundApiFp = function(configuration) {
3301
4564
  */
3302
4565
  async conversationsUpdate(conversationId, conversationUpdate, options) {
3303
4566
  const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, conversationUpdate, options);
3304
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _190 => _190.serverIndex]), () => ( 0));
3305
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _191 => _191["UnboundApi.conversationsUpdate"], 'optionalAccess', _192 => _192[localVarOperationServerIndex], 'optionalAccess', _193 => _193.url]);
4567
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _234 => _234.serverIndex]), () => ( 0));
4568
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _235 => _235["UnboundApi.conversationsUpdate"], 'optionalAccess', _236 => _236[localVarOperationServerIndex], 'optionalAccess', _237 => _237.url]);
3306
4569
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3307
4570
  },
3308
4571
  /**
@@ -3315,8 +4578,8 @@ var UnboundApiFp = function(configuration) {
3315
4578
  */
3316
4579
  async emailsCreate(contactId, emailCreate, options) {
3317
4580
  const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
3318
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _194 => _194.serverIndex]), () => ( 0));
3319
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _195 => _195["UnboundApi.emailsCreate"], 'optionalAccess', _196 => _196[localVarOperationServerIndex], 'optionalAccess', _197 => _197.url]);
4581
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _238 => _238.serverIndex]), () => ( 0));
4582
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _239 => _239["UnboundApi.emailsCreate"], 'optionalAccess', _240 => _240[localVarOperationServerIndex], 'optionalAccess', _241 => _241.url]);
3320
4583
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3321
4584
  },
3322
4585
  /**
@@ -3328,8 +4591,22 @@ var UnboundApiFp = function(configuration) {
3328
4591
  */
3329
4592
  async emailsDelete(emailId, options) {
3330
4593
  const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
3331
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _198 => _198.serverIndex]), () => ( 0));
3332
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _199 => _199["UnboundApi.emailsDelete"], 'optionalAccess', _200 => _200[localVarOperationServerIndex], 'optionalAccess', _201 => _201.url]);
4594
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _242 => _242.serverIndex]), () => ( 0));
4595
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _243 => _243["UnboundApi.emailsDelete"], 'optionalAccess', _244 => _244[localVarOperationServerIndex], 'optionalAccess', _245 => _245.url]);
4596
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4597
+ },
4598
+ /**
4599
+ *
4600
+ * @summary Emails Update
4601
+ * @param {string} emailId
4602
+ * @param {EmailUpdate} emailUpdate
4603
+ * @param {*} [options] Override http request option.
4604
+ * @throws {RequiredError}
4605
+ */
4606
+ async emailsUpdate(emailId, emailUpdate, options) {
4607
+ const localVarAxiosArgs = await localVarAxiosParamCreator.emailsUpdate(emailId, emailUpdate, options);
4608
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _246 => _246.serverIndex]), () => ( 0));
4609
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _247 => _247["UnboundApi.emailsUpdate"], 'optionalAccess', _248 => _248[localVarOperationServerIndex], 'optionalAccess', _249 => _249.url]);
3333
4610
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3334
4611
  },
3335
4612
  /**
@@ -3341,21 +4618,40 @@ var UnboundApiFp = function(configuration) {
3341
4618
  */
3342
4619
  async inquiriesList(contactId, options) {
3343
4620
  const localVarAxiosArgs = await localVarAxiosParamCreator.inquiriesList(contactId, options);
3344
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _202 => _202.serverIndex]), () => ( 0));
3345
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _203 => _203["UnboundApi.inquiriesList"], 'optionalAccess', _204 => _204[localVarOperationServerIndex], 'optionalAccess', _205 => _205.url]);
4621
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _250 => _250.serverIndex]), () => ( 0));
4622
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _251 => _251["UnboundApi.inquiriesList"], 'optionalAccess', _252 => _252[localVarOperationServerIndex], 'optionalAccess', _253 => _253.url]);
3346
4623
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3347
4624
  },
3348
4625
  /**
3349
- * List all listings
4626
+ *
4627
+ * @summary Listings Get
4628
+ * @param {string} listingId
4629
+ * @param {*} [options] Override http request option.
4630
+ * @throws {RequiredError}
4631
+ */
4632
+ async listingsGet(listingId, options) {
4633
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listingsGet(listingId, options);
4634
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _254 => _254.serverIndex]), () => ( 0));
4635
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _255 => _255["UnboundApi.listingsGet"], 'optionalAccess', _256 => _256[localVarOperationServerIndex], 'optionalAccess', _257 => _257.url]);
4636
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4637
+ },
4638
+ /**
4639
+ *
3350
4640
  * @summary Listings List
3351
- * @param {string} [contactId]
4641
+ * @param {string | null} [searchString]
4642
+ * @param {string | null} [contactId]
4643
+ * @param {string | null} [cursor] Cursor for keyset paging
4644
+ * @param {number} [limit]
4645
+ * @param {PaginationDirection} [pageDir] Direction of paging
4646
+ * @param {ListingSortBy} [sortBy] Sort key
4647
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3352
4648
  * @param {*} [options] Override http request option.
3353
4649
  * @throws {RequiredError}
3354
4650
  */
3355
- async listingsList(contactId, options) {
3356
- const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(contactId, options);
3357
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _206 => _206.serverIndex]), () => ( 0));
3358
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _207 => _207["UnboundApi.listingsList"], 'optionalAccess', _208 => _208[localVarOperationServerIndex], 'optionalAccess', _209 => _209.url]);
4651
+ async listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
4652
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
4653
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _258 => _258.serverIndex]), () => ( 0));
4654
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _259 => _259["UnboundApi.listingsList"], 'optionalAccess', _260 => _260[localVarOperationServerIndex], 'optionalAccess', _261 => _261.url]);
3359
4655
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3360
4656
  },
3361
4657
  /**
@@ -3366,8 +4662,55 @@ var UnboundApiFp = function(configuration) {
3366
4662
  */
3367
4663
  async managedPhoneNumbersList(options) {
3368
4664
  const localVarAxiosArgs = await localVarAxiosParamCreator.managedPhoneNumbersList(options);
3369
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _210 => _210.serverIndex]), () => ( 0));
3370
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _211 => _211["UnboundApi.managedPhoneNumbersList"], 'optionalAccess', _212 => _212[localVarOperationServerIndex], 'optionalAccess', _213 => _213.url]);
4665
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _262 => _262.serverIndex]), () => ( 0));
4666
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _263 => _263["UnboundApi.managedPhoneNumbersList"], 'optionalAccess', _264 => _264[localVarOperationServerIndex], 'optionalAccess', _265 => _265.url]);
4667
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4668
+ },
4669
+ /**
4670
+ *
4671
+ * @summary Messages Create
4672
+ * @param {string} conversationId
4673
+ * @param {MessageCreate} messageCreate
4674
+ * @param {*} [options] Override http request option.
4675
+ * @throws {RequiredError}
4676
+ */
4677
+ async messagesCreate(conversationId, messageCreate, options) {
4678
+ const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messageCreate, options);
4679
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _266 => _266.serverIndex]), () => ( 0));
4680
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _267 => _267["UnboundApi.messagesCreate"], 'optionalAccess', _268 => _268[localVarOperationServerIndex], 'optionalAccess', _269 => _269.url]);
4681
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4682
+ },
4683
+ /**
4684
+ *
4685
+ * @summary Messages Get
4686
+ * @param {string} messageId
4687
+ * @param {*} [options] Override http request option.
4688
+ * @throws {RequiredError}
4689
+ */
4690
+ async messagesGet(messageId, options) {
4691
+ const localVarAxiosArgs = await localVarAxiosParamCreator.messagesGet(messageId, options);
4692
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _270 => _270.serverIndex]), () => ( 0));
4693
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _271 => _271["UnboundApi.messagesGet"], 'optionalAccess', _272 => _272[localVarOperationServerIndex], 'optionalAccess', _273 => _273.url]);
4694
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4695
+ },
4696
+ /**
4697
+ *
4698
+ * @summary Messages List
4699
+ * @param {string | null} [searchString]
4700
+ * @param {string | null} [contactId]
4701
+ * @param {string | null} [conversationId]
4702
+ * @param {string | null} [cursor] Cursor for keyset paging
4703
+ * @param {number} [limit]
4704
+ * @param {PaginationDirection} [pageDir] Direction of paging
4705
+ * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
4706
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
4707
+ * @param {*} [options] Override http request option.
4708
+ * @throws {RequiredError}
4709
+ */
4710
+ async messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
4711
+ const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options);
4712
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _274 => _274.serverIndex]), () => ( 0));
4713
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _275 => _275["UnboundApi.messagesList"], 'optionalAccess', _276 => _276[localVarOperationServerIndex], 'optionalAccess', _277 => _277.url]);
3371
4714
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3372
4715
  },
3373
4716
  /**
@@ -3380,8 +4723,8 @@ var UnboundApiFp = function(configuration) {
3380
4723
  */
3381
4724
  async phoneNumbersCreate(contactId, phoneNumberCreate, options) {
3382
4725
  const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersCreate(contactId, phoneNumberCreate, options);
3383
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _214 => _214.serverIndex]), () => ( 0));
3384
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _215 => _215["UnboundApi.phoneNumbersCreate"], 'optionalAccess', _216 => _216[localVarOperationServerIndex], 'optionalAccess', _217 => _217.url]);
4726
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _278 => _278.serverIndex]), () => ( 0));
4727
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _279 => _279["UnboundApi.phoneNumbersCreate"], 'optionalAccess', _280 => _280[localVarOperationServerIndex], 'optionalAccess', _281 => _281.url]);
3385
4728
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3386
4729
  },
3387
4730
  /**
@@ -3393,21 +4736,41 @@ var UnboundApiFp = function(configuration) {
3393
4736
  */
3394
4737
  async phoneNumbersDelete(phoneNumberId, options) {
3395
4738
  const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersDelete(phoneNumberId, options);
3396
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _218 => _218.serverIndex]), () => ( 0));
3397
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _219 => _219["UnboundApi.phoneNumbersDelete"], 'optionalAccess', _220 => _220[localVarOperationServerIndex], 'optionalAccess', _221 => _221.url]);
4739
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _282 => _282.serverIndex]), () => ( 0));
4740
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _283 => _283["UnboundApi.phoneNumbersDelete"], 'optionalAccess', _284 => _284[localVarOperationServerIndex], 'optionalAccess', _285 => _285.url]);
4741
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4742
+ },
4743
+ /**
4744
+ *
4745
+ * @summary Phone_numbers Update
4746
+ * @param {string} phoneNumberId
4747
+ * @param {PhoneNumberUpdate} phoneNumberUpdate
4748
+ * @param {*} [options] Override http request option.
4749
+ * @throws {RequiredError}
4750
+ */
4751
+ async phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
4752
+ const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options);
4753
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _286 => _286.serverIndex]), () => ( 0));
4754
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _287 => _287["UnboundApi.phoneNumbersUpdate"], 'optionalAccess', _288 => _288[localVarOperationServerIndex], 'optionalAccess', _289 => _289.url]);
3398
4755
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3399
4756
  },
3400
4757
  /**
3401
4758
  *
3402
4759
  * @summary Reservations List
3403
- * @param {string} [contactId]
4760
+ * @param {string | null} [searchString]
4761
+ * @param {string | null} [contactId]
4762
+ * @param {string | null} [cursor] Cursor for keyset paging
4763
+ * @param {number} [limit]
4764
+ * @param {PaginationDirection} [pageDir] Direction of paging
4765
+ * @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
4766
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3404
4767
  * @param {*} [options] Override http request option.
3405
4768
  * @throws {RequiredError}
3406
4769
  */
3407
- async reservationsList(contactId, options) {
3408
- const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
3409
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _222 => _222.serverIndex]), () => ( 0));
3410
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _223 => _223["UnboundApi.reservationsList"], 'optionalAccess', _224 => _224[localVarOperationServerIndex], 'optionalAccess', _225 => _225.url]);
4770
+ async reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
4771
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
4772
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _290 => _290.serverIndex]), () => ( 0));
4773
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _291 => _291["UnboundApi.reservationsList"], 'optionalAccess', _292 => _292[localVarOperationServerIndex], 'optionalAccess', _293 => _293.url]);
3411
4774
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3412
4775
  },
3413
4776
  /**
@@ -3419,8 +4782,8 @@ var UnboundApiFp = function(configuration) {
3419
4782
  */
3420
4783
  async webhook(hostawayWebhook, options) {
3421
4784
  const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
3422
- const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _226 => _226.serverIndex]), () => ( 0));
3423
- const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _227 => _227["UnboundApi.webhook"], 'optionalAccess', _228 => _228[localVarOperationServerIndex], 'optionalAccess', _229 => _229.url]);
4785
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _294 => _294.serverIndex]), () => ( 0));
4786
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _295 => _295["UnboundApi.webhook"], 'optionalAccess', _296 => _296[localVarOperationServerIndex], 'optionalAccess', _297 => _297.url]);
3424
4787
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3425
4788
  }
3426
4789
  };
@@ -3584,12 +4947,18 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
3584
4947
  /**
3585
4948
  * List all conversations, optionally filtered by contact_id
3586
4949
  * @summary Conversations List
3587
- * @param {string} [contactId]
4950
+ * @param {string | null} [searchString]
4951
+ * @param {string | null} [contactId]
4952
+ * @param {string | null} [cursor] Cursor for keyset paging
4953
+ * @param {number} [limit]
4954
+ * @param {PaginationDirection} [pageDir] Direction of paging
4955
+ * @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
4956
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3588
4957
  * @param {*} [options] Override http request option.
3589
4958
  * @throws {RequiredError}
3590
4959
  */
3591
- conversationsList(contactId, options) {
3592
- return localVarFp.conversationsList(contactId, options).then((request) => request(axios, basePath));
4960
+ conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
4961
+ return localVarFp.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
3593
4962
  },
3594
4963
  /**
3595
4964
  *
@@ -3623,6 +4992,17 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
3623
4992
  emailsDelete(emailId, options) {
3624
4993
  return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
3625
4994
  },
4995
+ /**
4996
+ *
4997
+ * @summary Emails Update
4998
+ * @param {string} emailId
4999
+ * @param {EmailUpdate} emailUpdate
5000
+ * @param {*} [options] Override http request option.
5001
+ * @throws {RequiredError}
5002
+ */
5003
+ emailsUpdate(emailId, emailUpdate, options) {
5004
+ return localVarFp.emailsUpdate(emailId, emailUpdate, options).then((request) => request(axios, basePath));
5005
+ },
3626
5006
  /**
3627
5007
  * List all listings
3628
5008
  * @summary Inquiries List
@@ -3634,14 +5014,30 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
3634
5014
  return localVarFp.inquiriesList(contactId, options).then((request) => request(axios, basePath));
3635
5015
  },
3636
5016
  /**
3637
- * List all listings
5017
+ *
5018
+ * @summary Listings Get
5019
+ * @param {string} listingId
5020
+ * @param {*} [options] Override http request option.
5021
+ * @throws {RequiredError}
5022
+ */
5023
+ listingsGet(listingId, options) {
5024
+ return localVarFp.listingsGet(listingId, options).then((request) => request(axios, basePath));
5025
+ },
5026
+ /**
5027
+ *
3638
5028
  * @summary Listings List
3639
- * @param {string} [contactId]
5029
+ * @param {string | null} [searchString]
5030
+ * @param {string | null} [contactId]
5031
+ * @param {string | null} [cursor] Cursor for keyset paging
5032
+ * @param {number} [limit]
5033
+ * @param {PaginationDirection} [pageDir] Direction of paging
5034
+ * @param {ListingSortBy} [sortBy] Sort key
5035
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3640
5036
  * @param {*} [options] Override http request option.
3641
5037
  * @throws {RequiredError}
3642
5038
  */
3643
- listingsList(contactId, options) {
3644
- return localVarFp.listingsList(contactId, options).then((request) => request(axios, basePath));
5039
+ listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
5040
+ return localVarFp.listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
3645
5041
  },
3646
5042
  /**
3647
5043
  *
@@ -3652,6 +5048,44 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
3652
5048
  managedPhoneNumbersList(options) {
3653
5049
  return localVarFp.managedPhoneNumbersList(options).then((request) => request(axios, basePath));
3654
5050
  },
5051
+ /**
5052
+ *
5053
+ * @summary Messages Create
5054
+ * @param {string} conversationId
5055
+ * @param {MessageCreate} messageCreate
5056
+ * @param {*} [options] Override http request option.
5057
+ * @throws {RequiredError}
5058
+ */
5059
+ messagesCreate(conversationId, messageCreate, options) {
5060
+ return localVarFp.messagesCreate(conversationId, messageCreate, options).then((request) => request(axios, basePath));
5061
+ },
5062
+ /**
5063
+ *
5064
+ * @summary Messages Get
5065
+ * @param {string} messageId
5066
+ * @param {*} [options] Override http request option.
5067
+ * @throws {RequiredError}
5068
+ */
5069
+ messagesGet(messageId, options) {
5070
+ return localVarFp.messagesGet(messageId, options).then((request) => request(axios, basePath));
5071
+ },
5072
+ /**
5073
+ *
5074
+ * @summary Messages List
5075
+ * @param {string | null} [searchString]
5076
+ * @param {string | null} [contactId]
5077
+ * @param {string | null} [conversationId]
5078
+ * @param {string | null} [cursor] Cursor for keyset paging
5079
+ * @param {number} [limit]
5080
+ * @param {PaginationDirection} [pageDir] Direction of paging
5081
+ * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
5082
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
5083
+ * @param {*} [options] Override http request option.
5084
+ * @throws {RequiredError}
5085
+ */
5086
+ messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
5087
+ return localVarFp.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
5088
+ },
3655
5089
  /**
3656
5090
  *
3657
5091
  * @summary Phone_numbers Create
@@ -3673,15 +5107,32 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
3673
5107
  phoneNumbersDelete(phoneNumberId, options) {
3674
5108
  return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
3675
5109
  },
5110
+ /**
5111
+ *
5112
+ * @summary Phone_numbers Update
5113
+ * @param {string} phoneNumberId
5114
+ * @param {PhoneNumberUpdate} phoneNumberUpdate
5115
+ * @param {*} [options] Override http request option.
5116
+ * @throws {RequiredError}
5117
+ */
5118
+ phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
5119
+ return localVarFp.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(axios, basePath));
5120
+ },
3676
5121
  /**
3677
5122
  *
3678
5123
  * @summary Reservations List
3679
- * @param {string} [contactId]
5124
+ * @param {string | null} [searchString]
5125
+ * @param {string | null} [contactId]
5126
+ * @param {string | null} [cursor] Cursor for keyset paging
5127
+ * @param {number} [limit]
5128
+ * @param {PaginationDirection} [pageDir] Direction of paging
5129
+ * @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
5130
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3680
5131
  * @param {*} [options] Override http request option.
3681
5132
  * @throws {RequiredError}
3682
5133
  */
3683
- reservationsList(contactId, options) {
3684
- return localVarFp.reservationsList(contactId, options).then((request) => request(axios, basePath));
5134
+ reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
5135
+ return localVarFp.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
3685
5136
  },
3686
5137
  /**
3687
5138
  *
@@ -3866,13 +5317,19 @@ var UnboundApi = class extends BaseAPI {
3866
5317
  /**
3867
5318
  * List all conversations, optionally filtered by contact_id
3868
5319
  * @summary Conversations List
3869
- * @param {string} [contactId]
5320
+ * @param {string | null} [searchString]
5321
+ * @param {string | null} [contactId]
5322
+ * @param {string | null} [cursor] Cursor for keyset paging
5323
+ * @param {number} [limit]
5324
+ * @param {PaginationDirection} [pageDir] Direction of paging
5325
+ * @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
5326
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3870
5327
  * @param {*} [options] Override http request option.
3871
5328
  * @throws {RequiredError}
3872
5329
  * @memberof UnboundApi
3873
5330
  */
3874
- conversationsList(contactId, options) {
3875
- return UnboundApiFp(this.configuration).conversationsList(contactId, options).then((request) => request(this.axios, this.basePath));
5331
+ conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
5332
+ return UnboundApiFp(this.configuration).conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
3876
5333
  }
3877
5334
  /**
3878
5335
  *
@@ -3909,6 +5366,18 @@ var UnboundApi = class extends BaseAPI {
3909
5366
  emailsDelete(emailId, options) {
3910
5367
  return UnboundApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
3911
5368
  }
5369
+ /**
5370
+ *
5371
+ * @summary Emails Update
5372
+ * @param {string} emailId
5373
+ * @param {EmailUpdate} emailUpdate
5374
+ * @param {*} [options] Override http request option.
5375
+ * @throws {RequiredError}
5376
+ * @memberof UnboundApi
5377
+ */
5378
+ emailsUpdate(emailId, emailUpdate, options) {
5379
+ return UnboundApiFp(this.configuration).emailsUpdate(emailId, emailUpdate, options).then((request) => request(this.axios, this.basePath));
5380
+ }
3912
5381
  /**
3913
5382
  * List all listings
3914
5383
  * @summary Inquiries List
@@ -3921,15 +5390,32 @@ var UnboundApi = class extends BaseAPI {
3921
5390
  return UnboundApiFp(this.configuration).inquiriesList(contactId, options).then((request) => request(this.axios, this.basePath));
3922
5391
  }
3923
5392
  /**
3924
- * List all listings
5393
+ *
5394
+ * @summary Listings Get
5395
+ * @param {string} listingId
5396
+ * @param {*} [options] Override http request option.
5397
+ * @throws {RequiredError}
5398
+ * @memberof UnboundApi
5399
+ */
5400
+ listingsGet(listingId, options) {
5401
+ return UnboundApiFp(this.configuration).listingsGet(listingId, options).then((request) => request(this.axios, this.basePath));
5402
+ }
5403
+ /**
5404
+ *
3925
5405
  * @summary Listings List
3926
- * @param {string} [contactId]
5406
+ * @param {string | null} [searchString]
5407
+ * @param {string | null} [contactId]
5408
+ * @param {string | null} [cursor] Cursor for keyset paging
5409
+ * @param {number} [limit]
5410
+ * @param {PaginationDirection} [pageDir] Direction of paging
5411
+ * @param {ListingSortBy} [sortBy] Sort key
5412
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3927
5413
  * @param {*} [options] Override http request option.
3928
5414
  * @throws {RequiredError}
3929
5415
  * @memberof UnboundApi
3930
5416
  */
3931
- listingsList(contactId, options) {
3932
- return UnboundApiFp(this.configuration).listingsList(contactId, options).then((request) => request(this.axios, this.basePath));
5417
+ listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
5418
+ return UnboundApiFp(this.configuration).listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
3933
5419
  }
3934
5420
  /**
3935
5421
  *
@@ -3941,6 +5427,47 @@ var UnboundApi = class extends BaseAPI {
3941
5427
  managedPhoneNumbersList(options) {
3942
5428
  return UnboundApiFp(this.configuration).managedPhoneNumbersList(options).then((request) => request(this.axios, this.basePath));
3943
5429
  }
5430
+ /**
5431
+ *
5432
+ * @summary Messages Create
5433
+ * @param {string} conversationId
5434
+ * @param {MessageCreate} messageCreate
5435
+ * @param {*} [options] Override http request option.
5436
+ * @throws {RequiredError}
5437
+ * @memberof UnboundApi
5438
+ */
5439
+ messagesCreate(conversationId, messageCreate, options) {
5440
+ return UnboundApiFp(this.configuration).messagesCreate(conversationId, messageCreate, options).then((request) => request(this.axios, this.basePath));
5441
+ }
5442
+ /**
5443
+ *
5444
+ * @summary Messages Get
5445
+ * @param {string} messageId
5446
+ * @param {*} [options] Override http request option.
5447
+ * @throws {RequiredError}
5448
+ * @memberof UnboundApi
5449
+ */
5450
+ messagesGet(messageId, options) {
5451
+ return UnboundApiFp(this.configuration).messagesGet(messageId, options).then((request) => request(this.axios, this.basePath));
5452
+ }
5453
+ /**
5454
+ *
5455
+ * @summary Messages List
5456
+ * @param {string | null} [searchString]
5457
+ * @param {string | null} [contactId]
5458
+ * @param {string | null} [conversationId]
5459
+ * @param {string | null} [cursor] Cursor for keyset paging
5460
+ * @param {number} [limit]
5461
+ * @param {PaginationDirection} [pageDir] Direction of paging
5462
+ * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
5463
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
5464
+ * @param {*} [options] Override http request option.
5465
+ * @throws {RequiredError}
5466
+ * @memberof UnboundApi
5467
+ */
5468
+ messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
5469
+ return UnboundApiFp(this.configuration).messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
5470
+ }
3944
5471
  /**
3945
5472
  *
3946
5473
  * @summary Phone_numbers Create
@@ -3964,16 +5491,34 @@ var UnboundApi = class extends BaseAPI {
3964
5491
  phoneNumbersDelete(phoneNumberId, options) {
3965
5492
  return UnboundApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
3966
5493
  }
5494
+ /**
5495
+ *
5496
+ * @summary Phone_numbers Update
5497
+ * @param {string} phoneNumberId
5498
+ * @param {PhoneNumberUpdate} phoneNumberUpdate
5499
+ * @param {*} [options] Override http request option.
5500
+ * @throws {RequiredError}
5501
+ * @memberof UnboundApi
5502
+ */
5503
+ phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
5504
+ return UnboundApiFp(this.configuration).phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(this.axios, this.basePath));
5505
+ }
3967
5506
  /**
3968
5507
  *
3969
5508
  * @summary Reservations List
3970
- * @param {string} [contactId]
5509
+ * @param {string | null} [searchString]
5510
+ * @param {string | null} [contactId]
5511
+ * @param {string | null} [cursor] Cursor for keyset paging
5512
+ * @param {number} [limit]
5513
+ * @param {PaginationDirection} [pageDir] Direction of paging
5514
+ * @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
5515
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3971
5516
  * @param {*} [options] Override http request option.
3972
5517
  * @throws {RequiredError}
3973
5518
  * @memberof UnboundApi
3974
5519
  */
3975
- reservationsList(contactId, options) {
3976
- return UnboundApiFp(this.configuration).reservationsList(contactId, options).then((request) => request(this.axios, this.basePath));
5520
+ reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
5521
+ return UnboundApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
3977
5522
  }
3978
5523
  /**
3979
5524
  *
@@ -4056,7 +5601,7 @@ var Configuration = class {
4056
5601
  this.baseOptions = {
4057
5602
  ...param.baseOptions,
4058
5603
  headers: {
4059
- ..._optionalChain([param, 'access', _230 => _230.baseOptions, 'optionalAccess', _231 => _231.headers])
5604
+ ..._optionalChain([param, 'access', _298 => _298.baseOptions, 'optionalAccess', _299 => _299.headers])
4060
5605
  }
4061
5606
  };
4062
5607
  this.formDataCtor = param.formDataCtor;
@@ -4135,5 +5680,21 @@ var Configuration = class {
4135
5680
 
4136
5681
 
4137
5682
 
4138
- exports.AccountsApi = AccountsApi; exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator; exports.AccountsApiFactory = AccountsApiFactory; exports.AccountsApiFp = AccountsApiFp; exports.AddressesApi = AddressesApi; exports.AddressesApiAxiosParamCreator = AddressesApiAxiosParamCreator; exports.AddressesApiFactory = AddressesApiFactory; exports.AddressesApiFp = AddressesApiFp; exports.Configuration = Configuration; exports.ContactListingType = ContactListingType; exports.ContactSortBy = ContactSortBy; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.ConversationStatus = ConversationStatus; exports.ConversationsApi = ConversationsApi; exports.ConversationsApiAxiosParamCreator = ConversationsApiAxiosParamCreator; exports.ConversationsApiFactory = ConversationsApiFactory; exports.ConversationsApiFp = ConversationsApiFp; exports.EmailsApi = EmailsApi; exports.EmailsApiAxiosParamCreator = EmailsApiAxiosParamCreator; exports.EmailsApiFactory = EmailsApiFactory; exports.EmailsApiFp = EmailsApiFp; exports.HostawayApi = HostawayApi; exports.HostawayApiAxiosParamCreator = HostawayApiAxiosParamCreator; exports.HostawayApiFactory = HostawayApiFactory; exports.HostawayApiFp = HostawayApiFp; exports.InquiriesApi = InquiriesApi; exports.InquiriesApiAxiosParamCreator = InquiriesApiAxiosParamCreator; exports.InquiriesApiFactory = InquiriesApiFactory; exports.InquiriesApiFp = InquiriesApiFp; exports.ListingsApi = ListingsApi; exports.ListingsApiAxiosParamCreator = ListingsApiAxiosParamCreator; exports.ListingsApiFactory = ListingsApiFactory; exports.ListingsApiFp = ListingsApiFp; exports.ManagedPhoneNumbersApi = ManagedPhoneNumbersApi; exports.ManagedPhoneNumbersApiAxiosParamCreator = ManagedPhoneNumbersApiAxiosParamCreator; exports.ManagedPhoneNumbersApiFactory = ManagedPhoneNumbersApiFactory; exports.ManagedPhoneNumbersApiFp = ManagedPhoneNumbersApiFp; exports.PaginationDirection = PaginationDirection; exports.PhoneNumbersApi = PhoneNumbersApi; exports.PhoneNumbersApiAxiosParamCreator = PhoneNumbersApiAxiosParamCreator; exports.PhoneNumbersApiFactory = PhoneNumbersApiFactory; exports.PhoneNumbersApiFp = PhoneNumbersApiFp; exports.ReservationsApi = ReservationsApi; exports.ReservationsApiAxiosParamCreator = ReservationsApiAxiosParamCreator; exports.ReservationsApiFactory = ReservationsApiFactory; exports.ReservationsApiFp = ReservationsApiFp; exports.SortOrder = SortOrder; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum; exports.UnboundApi = UnboundApi; exports.UnboundApiAxiosParamCreator = UnboundApiAxiosParamCreator; exports.UnboundApiFactory = UnboundApiFactory; exports.UnboundApiFp = UnboundApiFp;
5683
+
5684
+
5685
+
5686
+
5687
+
5688
+
5689
+
5690
+
5691
+
5692
+
5693
+
5694
+
5695
+
5696
+
5697
+
5698
+
5699
+ exports.AccountsApi = AccountsApi; exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator; exports.AccountsApiFactory = AccountsApiFactory; exports.AccountsApiFp = AccountsApiFp; exports.AddressesApi = AddressesApi; exports.AddressesApiAxiosParamCreator = AddressesApiAxiosParamCreator; exports.AddressesApiFactory = AddressesApiFactory; exports.AddressesApiFp = AddressesApiFp; exports.Configuration = Configuration; exports.ContactListingType = ContactListingType; exports.ContactSortBy = ContactSortBy; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.ConversationStatus = ConversationStatus; exports.ConversationsApi = ConversationsApi; exports.ConversationsApiAxiosParamCreator = ConversationsApiAxiosParamCreator; exports.ConversationsApiFactory = ConversationsApiFactory; exports.ConversationsApiFp = ConversationsApiFp; exports.EmailsApi = EmailsApi; exports.EmailsApiAxiosParamCreator = EmailsApiAxiosParamCreator; exports.EmailsApiFactory = EmailsApiFactory; exports.EmailsApiFp = EmailsApiFp; exports.HostawayApi = HostawayApi; exports.HostawayApiAxiosParamCreator = HostawayApiAxiosParamCreator; exports.HostawayApiFactory = HostawayApiFactory; exports.HostawayApiFp = HostawayApiFp; exports.InquiriesApi = InquiriesApi; exports.InquiriesApiAxiosParamCreator = InquiriesApiAxiosParamCreator; exports.InquiriesApiFactory = InquiriesApiFactory; exports.InquiriesApiFp = InquiriesApiFp; exports.ListingSortBy = ListingSortBy; exports.ListingsApi = ListingsApi; exports.ListingsApiAxiosParamCreator = ListingsApiAxiosParamCreator; exports.ListingsApiFactory = ListingsApiFactory; exports.ListingsApiFp = ListingsApiFp; exports.ManagedPhoneNumbersApi = ManagedPhoneNumbersApi; exports.ManagedPhoneNumbersApiAxiosParamCreator = ManagedPhoneNumbersApiAxiosParamCreator; exports.ManagedPhoneNumbersApiFactory = ManagedPhoneNumbersApiFactory; exports.ManagedPhoneNumbersApiFp = ManagedPhoneNumbersApiFp; exports.MessageDirection = MessageDirection; exports.MessageStatus = MessageStatus; exports.MessagesApi = MessagesApi; exports.MessagesApiAxiosParamCreator = MessagesApiAxiosParamCreator; exports.MessagesApiFactory = MessagesApiFactory; exports.MessagesApiFp = MessagesApiFp; exports.PaginationDirection = PaginationDirection; exports.PhoneNumbersApi = PhoneNumbersApi; exports.PhoneNumbersApiAxiosParamCreator = PhoneNumbersApiAxiosParamCreator; exports.PhoneNumbersApiFactory = PhoneNumbersApiFactory; exports.PhoneNumbersApiFp = PhoneNumbersApiFp; exports.ProviderMessageApiConversationTypeEnum = ProviderMessageApiConversationTypeEnum; exports.ReservationsApi = ReservationsApi; exports.ReservationsApiAxiosParamCreator = ReservationsApiAxiosParamCreator; exports.ReservationsApiFactory = ReservationsApiFactory; exports.ReservationsApiFp = ReservationsApiFp; exports.SortOrder = SortOrder; exports.SrcResourceModelsConversationsModelConversationsModelConversationSortBy = SrcResourceModelsConversationsModelConversationsModelConversationSortBy; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi3ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi3ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi4ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi4ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum; exports.SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy = SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy; exports.SrcResourceModelsReservationsModelReservationBaseModelSortBy = SrcResourceModelsReservationsModelReservationBaseModelSortBy; exports.TwilioInboundSenderTypeDataApiDirectionEnum = TwilioInboundSenderTypeDataApiDirectionEnum; exports.TwilioMessageApiConversationTypeEnum = TwilioMessageApiConversationTypeEnum; exports.TwilioOutboundSenderTypeDataApiDirectionEnum = TwilioOutboundSenderTypeDataApiDirectionEnum; exports.UnboundApi = UnboundApi; exports.UnboundApiAxiosParamCreator = UnboundApiAxiosParamCreator; exports.UnboundApiFactory = UnboundApiFactory; exports.UnboundApiFp = UnboundApiFp;
4139
5700
  //# sourceMappingURL=index.js.map