@ember-home/unbound-ts-client 0.0.94 → 0.0.96
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.d.mts +426 -222
- package/dist/index.d.ts +426 -222
- package/dist/index.js +600 -371
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +482 -253
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -140,12 +140,6 @@ var ProviderConversationDataApiConversationTypeEnum = {
|
|
|
140
140
|
var ProviderStaffApiStaffTypeEnum = {
|
|
141
141
|
ProviderStaff: "PROVIDER_STAFF"
|
|
142
142
|
};
|
|
143
|
-
var ReasonType = {
|
|
144
|
-
Irrelevant: "IRRELEVANT",
|
|
145
|
-
Inaccurate: "INACCURATE",
|
|
146
|
-
InappropriateTone: "INAPPROPRIATE_TONE",
|
|
147
|
-
TooVerboseOrTerse: "TOO_VERBOSE_OR_TERSE"
|
|
148
|
-
};
|
|
149
143
|
var RentalProviderMessageApiMessageTypeEnum = {
|
|
150
144
|
RentalProvider: "RENTAL_PROVIDER"
|
|
151
145
|
};
|
|
@@ -190,6 +184,16 @@ var SMSInboundSenderTypeDataApiDirectionEnum = {
|
|
|
190
184
|
var SMSMessageApiMessageTypeEnum = {
|
|
191
185
|
Text: "TEXT"
|
|
192
186
|
};
|
|
187
|
+
var SMSMessageStatus = {
|
|
188
|
+
Queued: "queued",
|
|
189
|
+
Sending: "sending",
|
|
190
|
+
Sent: "sent",
|
|
191
|
+
Expired: "expired",
|
|
192
|
+
SendingFailed: "sending_failed",
|
|
193
|
+
DeliveryUnconfirmed: "delivery_unconfirmed",
|
|
194
|
+
Delivered: "delivered",
|
|
195
|
+
DeliveryFailed: "delivery_failed"
|
|
196
|
+
};
|
|
193
197
|
var SMSOutboundSenderTypeDataApiDirectionEnum = {
|
|
194
198
|
Outbound: "OUTBOUND"
|
|
195
199
|
};
|
|
@@ -208,13 +212,16 @@ var SrcResourceModelsConversationsModelConversationsHelperModelsProviderCommunic
|
|
|
208
212
|
Channel: "CHANNEL",
|
|
209
213
|
Whatsapp: "WHATSAPP"
|
|
210
214
|
};
|
|
211
|
-
var
|
|
212
|
-
|
|
215
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum = {
|
|
216
|
+
Text: "TEXT"
|
|
213
217
|
};
|
|
214
218
|
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi2MessageTypeEnum = {
|
|
215
|
-
|
|
219
|
+
RentalProvider: "RENTAL_PROVIDER"
|
|
216
220
|
};
|
|
217
221
|
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi3MessageTypeEnum = {
|
|
222
|
+
Text: "TEXT"
|
|
223
|
+
};
|
|
224
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi4MessageTypeEnum = {
|
|
218
225
|
Email: "EMAIL"
|
|
219
226
|
};
|
|
220
227
|
var SrcResourceModelsListingsModelListingBaseSortBy = {
|
|
@@ -236,12 +243,16 @@ var SrcResourceModelsReservationsModelReservationBaseModelSortBy = {
|
|
|
236
243
|
var StaffApiParticipantTypeEnum = {
|
|
237
244
|
Staff: "STAFF"
|
|
238
245
|
};
|
|
246
|
+
var SuggestionRejectionReasonType = {
|
|
247
|
+
Irrelevant: "IRRELEVANT",
|
|
248
|
+
Inaccurate: "INACCURATE",
|
|
249
|
+
InappropriateTone: "INAPPROPRIATE_TONE",
|
|
250
|
+
TooVerboseOrTerse: "TOO_VERBOSE_OR_TERSE"
|
|
251
|
+
};
|
|
239
252
|
var SuggestionStatus = {
|
|
240
253
|
Generating: "GENERATING",
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
AnsweredByStaff: "ANSWERED_BY_STAFF",
|
|
244
|
-
ReplyGenerated: "REPLY_GENERATED"
|
|
254
|
+
ReplyGenerated: "REPLY_GENERATED",
|
|
255
|
+
NoAvailableReply: "NO_AVAILABLE_REPLY"
|
|
245
256
|
};
|
|
246
257
|
var UserDeviceOs = {
|
|
247
258
|
Android: "ANDROID",
|
|
@@ -1733,118 +1744,6 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1733
1744
|
};
|
|
1734
1745
|
var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
1735
1746
|
return {
|
|
1736
|
-
/**
|
|
1737
|
-
* Conversations Get
|
|
1738
|
-
* @summary Conversations Get
|
|
1739
|
-
* @param {string} conversationId
|
|
1740
|
-
* @param {*} [options] Override http request option.
|
|
1741
|
-
* @throws {RequiredError}
|
|
1742
|
-
*/
|
|
1743
|
-
conversationsGet: async (conversationId, options = {}) => {
|
|
1744
|
-
assertParamExists("conversationsGet", "conversationId", conversationId);
|
|
1745
|
-
const localVarPath = `/v1/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1746
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1747
|
-
let baseOptions;
|
|
1748
|
-
if (configuration) {
|
|
1749
|
-
baseOptions = configuration.baseOptions;
|
|
1750
|
-
}
|
|
1751
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1752
|
-
const localVarHeaderParameter = {};
|
|
1753
|
-
const localVarQueryParameter = {};
|
|
1754
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1755
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1756
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1757
|
-
return {
|
|
1758
|
-
url: toPathString(localVarUrlObj),
|
|
1759
|
-
options: localVarRequestOptions
|
|
1760
|
-
};
|
|
1761
|
-
},
|
|
1762
|
-
/**
|
|
1763
|
-
* List all conversations, must filter by contact_id
|
|
1764
|
-
* @summary Conversations List
|
|
1765
|
-
* @param {string | null} [searchString]
|
|
1766
|
-
* @param {string | null} [contactId]
|
|
1767
|
-
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
1768
|
-
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1769
|
-
* @param {number} [limit]
|
|
1770
|
-
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1771
|
-
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1772
|
-
* @param {string | null} [inboxId]
|
|
1773
|
-
* @param {*} [options] Override http request option.
|
|
1774
|
-
* @throws {RequiredError}
|
|
1775
|
-
*/
|
|
1776
|
-
conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options = {}) => {
|
|
1777
|
-
const localVarPath = `/v1/conversations`;
|
|
1778
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1779
|
-
let baseOptions;
|
|
1780
|
-
if (configuration) {
|
|
1781
|
-
baseOptions = configuration.baseOptions;
|
|
1782
|
-
}
|
|
1783
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1784
|
-
const localVarHeaderParameter = {};
|
|
1785
|
-
const localVarQueryParameter = {};
|
|
1786
|
-
if (searchString !== void 0) {
|
|
1787
|
-
localVarQueryParameter["searchString"] = searchString;
|
|
1788
|
-
}
|
|
1789
|
-
if (contactId !== void 0) {
|
|
1790
|
-
localVarQueryParameter["contactId"] = contactId;
|
|
1791
|
-
}
|
|
1792
|
-
if (status) {
|
|
1793
|
-
localVarQueryParameter["status"] = status;
|
|
1794
|
-
}
|
|
1795
|
-
if (cursor !== void 0) {
|
|
1796
|
-
localVarQueryParameter["cursor"] = cursor;
|
|
1797
|
-
}
|
|
1798
|
-
if (limit !== void 0) {
|
|
1799
|
-
localVarQueryParameter["limit"] = limit;
|
|
1800
|
-
}
|
|
1801
|
-
if (pageDir !== void 0) {
|
|
1802
|
-
localVarQueryParameter["pageDir"] = pageDir;
|
|
1803
|
-
}
|
|
1804
|
-
if (sortOrder !== void 0) {
|
|
1805
|
-
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1806
|
-
}
|
|
1807
|
-
if (inboxId !== void 0) {
|
|
1808
|
-
localVarQueryParameter["inboxId"] = inboxId;
|
|
1809
|
-
}
|
|
1810
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1811
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1812
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1813
|
-
return {
|
|
1814
|
-
url: toPathString(localVarUrlObj),
|
|
1815
|
-
options: localVarRequestOptions
|
|
1816
|
-
};
|
|
1817
|
-
},
|
|
1818
|
-
/**
|
|
1819
|
-
* Conversations Update
|
|
1820
|
-
* @summary Conversations Update
|
|
1821
|
-
* @param {string} conversationId
|
|
1822
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
1823
|
-
* @param {*} [options] Override http request option.
|
|
1824
|
-
* @throws {RequiredError}
|
|
1825
|
-
*/
|
|
1826
|
-
conversationsUpdate: async (conversationId, aPIConversationUpdate, options = {}) => {
|
|
1827
|
-
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
1828
|
-
assertParamExists("conversationsUpdate", "aPIConversationUpdate", aPIConversationUpdate);
|
|
1829
|
-
const localVarPath = `/v1/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1830
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1831
|
-
let baseOptions;
|
|
1832
|
-
if (configuration) {
|
|
1833
|
-
baseOptions = configuration.baseOptions;
|
|
1834
|
-
}
|
|
1835
|
-
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
1836
|
-
const localVarHeaderParameter = {};
|
|
1837
|
-
const localVarQueryParameter = {};
|
|
1838
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1839
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1840
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1841
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1842
|
-
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationUpdate, localVarRequestOptions, configuration);
|
|
1843
|
-
return {
|
|
1844
|
-
url: toPathString(localVarUrlObj),
|
|
1845
|
-
options: localVarRequestOptions
|
|
1846
|
-
};
|
|
1847
|
-
},
|
|
1848
1747
|
/**
|
|
1849
1748
|
* Messages Create
|
|
1850
1749
|
* @summary Messages Create
|
|
@@ -1974,53 +1873,6 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1974
1873
|
var ConversationsApiFp = function(configuration) {
|
|
1975
1874
|
const localVarAxiosParamCreator = ConversationsApiAxiosParamCreator(configuration);
|
|
1976
1875
|
return {
|
|
1977
|
-
/**
|
|
1978
|
-
* Conversations Get
|
|
1979
|
-
* @summary Conversations Get
|
|
1980
|
-
* @param {string} conversationId
|
|
1981
|
-
* @param {*} [options] Override http request option.
|
|
1982
|
-
* @throws {RequiredError}
|
|
1983
|
-
*/
|
|
1984
|
-
async conversationsGet(conversationId, options) {
|
|
1985
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
1986
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1987
|
-
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1988
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1989
|
-
},
|
|
1990
|
-
/**
|
|
1991
|
-
* List all conversations, must filter by contact_id
|
|
1992
|
-
* @summary Conversations List
|
|
1993
|
-
* @param {string | null} [searchString]
|
|
1994
|
-
* @param {string | null} [contactId]
|
|
1995
|
-
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
1996
|
-
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1997
|
-
* @param {number} [limit]
|
|
1998
|
-
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1999
|
-
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2000
|
-
* @param {string | null} [inboxId]
|
|
2001
|
-
* @param {*} [options] Override http request option.
|
|
2002
|
-
* @throws {RequiredError}
|
|
2003
|
-
*/
|
|
2004
|
-
async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2005
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options);
|
|
2006
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2007
|
-
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
2008
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2009
|
-
},
|
|
2010
|
-
/**
|
|
2011
|
-
* Conversations Update
|
|
2012
|
-
* @summary Conversations Update
|
|
2013
|
-
* @param {string} conversationId
|
|
2014
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2015
|
-
* @param {*} [options] Override http request option.
|
|
2016
|
-
* @throws {RequiredError}
|
|
2017
|
-
*/
|
|
2018
|
-
async conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2019
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, aPIConversationUpdate, options);
|
|
2020
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2021
|
-
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
2022
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2023
|
-
},
|
|
2024
1876
|
/**
|
|
2025
1877
|
* Messages Create
|
|
2026
1878
|
* @summary Messages Create
|
|
@@ -2076,44 +1928,6 @@ var ConversationsApiFp = function(configuration) {
|
|
|
2076
1928
|
var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
2077
1929
|
const localVarFp = ConversationsApiFp(configuration);
|
|
2078
1930
|
return {
|
|
2079
|
-
/**
|
|
2080
|
-
* Conversations Get
|
|
2081
|
-
* @summary Conversations Get
|
|
2082
|
-
* @param {string} conversationId
|
|
2083
|
-
* @param {*} [options] Override http request option.
|
|
2084
|
-
* @throws {RequiredError}
|
|
2085
|
-
*/
|
|
2086
|
-
conversationsGet(conversationId, options) {
|
|
2087
|
-
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
2088
|
-
},
|
|
2089
|
-
/**
|
|
2090
|
-
* List all conversations, must filter by contact_id
|
|
2091
|
-
* @summary Conversations List
|
|
2092
|
-
* @param {string | null} [searchString]
|
|
2093
|
-
* @param {string | null} [contactId]
|
|
2094
|
-
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2095
|
-
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2096
|
-
* @param {number} [limit]
|
|
2097
|
-
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2098
|
-
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2099
|
-
* @param {string | null} [inboxId]
|
|
2100
|
-
* @param {*} [options] Override http request option.
|
|
2101
|
-
* @throws {RequiredError}
|
|
2102
|
-
*/
|
|
2103
|
-
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2104
|
-
return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
|
|
2105
|
-
},
|
|
2106
|
-
/**
|
|
2107
|
-
* Conversations Update
|
|
2108
|
-
* @summary Conversations Update
|
|
2109
|
-
* @param {string} conversationId
|
|
2110
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2111
|
-
* @param {*} [options] Override http request option.
|
|
2112
|
-
* @throws {RequiredError}
|
|
2113
|
-
*/
|
|
2114
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2115
|
-
return localVarFp.conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(axios, basePath));
|
|
2116
|
-
},
|
|
2117
1931
|
/**
|
|
2118
1932
|
* Messages Create
|
|
2119
1933
|
* @summary Messages Create
|
|
@@ -2158,47 +1972,6 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
2158
1972
|
};
|
|
2159
1973
|
};
|
|
2160
1974
|
var ConversationsApi = class extends BaseAPI {
|
|
2161
|
-
/**
|
|
2162
|
-
* Conversations Get
|
|
2163
|
-
* @summary Conversations Get
|
|
2164
|
-
* @param {string} conversationId
|
|
2165
|
-
* @param {*} [options] Override http request option.
|
|
2166
|
-
* @throws {RequiredError}
|
|
2167
|
-
* @memberof ConversationsApi
|
|
2168
|
-
*/
|
|
2169
|
-
conversationsGet(conversationId, options) {
|
|
2170
|
-
return ConversationsApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
2171
|
-
}
|
|
2172
|
-
/**
|
|
2173
|
-
* List all conversations, must filter by contact_id
|
|
2174
|
-
* @summary Conversations List
|
|
2175
|
-
* @param {string | null} [searchString]
|
|
2176
|
-
* @param {string | null} [contactId]
|
|
2177
|
-
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2178
|
-
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2179
|
-
* @param {number} [limit]
|
|
2180
|
-
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2181
|
-
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2182
|
-
* @param {string | null} [inboxId]
|
|
2183
|
-
* @param {*} [options] Override http request option.
|
|
2184
|
-
* @throws {RequiredError}
|
|
2185
|
-
* @memberof ConversationsApi
|
|
2186
|
-
*/
|
|
2187
|
-
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2188
|
-
return ConversationsApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
|
|
2189
|
-
}
|
|
2190
|
-
/**
|
|
2191
|
-
* Conversations Update
|
|
2192
|
-
* @summary Conversations Update
|
|
2193
|
-
* @param {string} conversationId
|
|
2194
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2195
|
-
* @param {*} [options] Override http request option.
|
|
2196
|
-
* @throws {RequiredError}
|
|
2197
|
-
* @memberof ConversationsApi
|
|
2198
|
-
*/
|
|
2199
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2200
|
-
return ConversationsApiFp(this.configuration).conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2201
|
-
}
|
|
2202
1975
|
/**
|
|
2203
1976
|
* Messages Create
|
|
2204
1977
|
* @summary Messages Create
|
|
@@ -2325,6 +2098,148 @@ var HostawayApi = class extends BaseAPI {
|
|
|
2325
2098
|
};
|
|
2326
2099
|
var InboxesApiAxiosParamCreator = function(configuration) {
|
|
2327
2100
|
return {
|
|
2101
|
+
/**
|
|
2102
|
+
* Conversations Create
|
|
2103
|
+
* @summary Conversations Create
|
|
2104
|
+
* @param {string} inboxId
|
|
2105
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
2106
|
+
* @param {*} [options] Override http request option.
|
|
2107
|
+
* @throws {RequiredError}
|
|
2108
|
+
*/
|
|
2109
|
+
conversationsCreate: async (inboxId, aPIConversationCreate, options = {}) => {
|
|
2110
|
+
assertParamExists("conversationsCreate", "inboxId", inboxId);
|
|
2111
|
+
assertParamExists("conversationsCreate", "aPIConversationCreate", aPIConversationCreate);
|
|
2112
|
+
const localVarPath = `/v1/inboxes/{inboxId}/conversations`.replace(`{${"inboxId"}}`, encodeURIComponent(String(inboxId)));
|
|
2113
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2114
|
+
let baseOptions;
|
|
2115
|
+
if (configuration) {
|
|
2116
|
+
baseOptions = configuration.baseOptions;
|
|
2117
|
+
}
|
|
2118
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2119
|
+
const localVarHeaderParameter = {};
|
|
2120
|
+
const localVarQueryParameter = {};
|
|
2121
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2122
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2123
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2124
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2125
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationCreate, localVarRequestOptions, configuration);
|
|
2126
|
+
return {
|
|
2127
|
+
url: toPathString(localVarUrlObj),
|
|
2128
|
+
options: localVarRequestOptions
|
|
2129
|
+
};
|
|
2130
|
+
},
|
|
2131
|
+
/**
|
|
2132
|
+
* Conversations Get
|
|
2133
|
+
* @summary Conversations Get
|
|
2134
|
+
* @param {string} conversationId
|
|
2135
|
+
* @param {*} [options] Override http request option.
|
|
2136
|
+
* @throws {RequiredError}
|
|
2137
|
+
*/
|
|
2138
|
+
conversationsGet: async (conversationId, options = {}) => {
|
|
2139
|
+
assertParamExists("conversationsGet", "conversationId", conversationId);
|
|
2140
|
+
const localVarPath = `/v1/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
2141
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2142
|
+
let baseOptions;
|
|
2143
|
+
if (configuration) {
|
|
2144
|
+
baseOptions = configuration.baseOptions;
|
|
2145
|
+
}
|
|
2146
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2147
|
+
const localVarHeaderParameter = {};
|
|
2148
|
+
const localVarQueryParameter = {};
|
|
2149
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2150
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2151
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2152
|
+
return {
|
|
2153
|
+
url: toPathString(localVarUrlObj),
|
|
2154
|
+
options: localVarRequestOptions
|
|
2155
|
+
};
|
|
2156
|
+
},
|
|
2157
|
+
/**
|
|
2158
|
+
* List all conversations, must filter by contact_id
|
|
2159
|
+
* @summary Conversations List
|
|
2160
|
+
* @param {string | null} [searchString]
|
|
2161
|
+
* @param {string | null} [contactId]
|
|
2162
|
+
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2163
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2164
|
+
* @param {number} [limit]
|
|
2165
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2166
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2167
|
+
* @param {string | null} [inboxId]
|
|
2168
|
+
* @param {*} [options] Override http request option.
|
|
2169
|
+
* @throws {RequiredError}
|
|
2170
|
+
*/
|
|
2171
|
+
conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options = {}) => {
|
|
2172
|
+
const localVarPath = `/v1/conversations`;
|
|
2173
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2174
|
+
let baseOptions;
|
|
2175
|
+
if (configuration) {
|
|
2176
|
+
baseOptions = configuration.baseOptions;
|
|
2177
|
+
}
|
|
2178
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2179
|
+
const localVarHeaderParameter = {};
|
|
2180
|
+
const localVarQueryParameter = {};
|
|
2181
|
+
if (searchString !== void 0) {
|
|
2182
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
2183
|
+
}
|
|
2184
|
+
if (contactId !== void 0) {
|
|
2185
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
2186
|
+
}
|
|
2187
|
+
if (status) {
|
|
2188
|
+
localVarQueryParameter["status"] = status;
|
|
2189
|
+
}
|
|
2190
|
+
if (cursor !== void 0) {
|
|
2191
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
2192
|
+
}
|
|
2193
|
+
if (limit !== void 0) {
|
|
2194
|
+
localVarQueryParameter["limit"] = limit;
|
|
2195
|
+
}
|
|
2196
|
+
if (pageDir !== void 0) {
|
|
2197
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
2198
|
+
}
|
|
2199
|
+
if (sortOrder !== void 0) {
|
|
2200
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
2201
|
+
}
|
|
2202
|
+
if (inboxId !== void 0) {
|
|
2203
|
+
localVarQueryParameter["inboxId"] = inboxId;
|
|
2204
|
+
}
|
|
2205
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2206
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2207
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2208
|
+
return {
|
|
2209
|
+
url: toPathString(localVarUrlObj),
|
|
2210
|
+
options: localVarRequestOptions
|
|
2211
|
+
};
|
|
2212
|
+
},
|
|
2213
|
+
/**
|
|
2214
|
+
* Conversations Update
|
|
2215
|
+
* @summary Conversations Update
|
|
2216
|
+
* @param {string} conversationId
|
|
2217
|
+
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2218
|
+
* @param {*} [options] Override http request option.
|
|
2219
|
+
* @throws {RequiredError}
|
|
2220
|
+
*/
|
|
2221
|
+
conversationsUpdate: async (conversationId, aPIConversationUpdate, options = {}) => {
|
|
2222
|
+
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
2223
|
+
assertParamExists("conversationsUpdate", "aPIConversationUpdate", aPIConversationUpdate);
|
|
2224
|
+
const localVarPath = `/v1/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
2225
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2226
|
+
let baseOptions;
|
|
2227
|
+
if (configuration) {
|
|
2228
|
+
baseOptions = configuration.baseOptions;
|
|
2229
|
+
}
|
|
2230
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
2231
|
+
const localVarHeaderParameter = {};
|
|
2232
|
+
const localVarQueryParameter = {};
|
|
2233
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2234
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2235
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2236
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2237
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationUpdate, localVarRequestOptions, configuration);
|
|
2238
|
+
return {
|
|
2239
|
+
url: toPathString(localVarUrlObj),
|
|
2240
|
+
options: localVarRequestOptions
|
|
2241
|
+
};
|
|
2242
|
+
},
|
|
2328
2243
|
/**
|
|
2329
2244
|
* Inboxes List
|
|
2330
2245
|
* @summary Inboxes List
|
|
@@ -2354,6 +2269,67 @@ var InboxesApiAxiosParamCreator = function(configuration) {
|
|
|
2354
2269
|
var InboxesApiFp = function(configuration) {
|
|
2355
2270
|
const localVarAxiosParamCreator = InboxesApiAxiosParamCreator(configuration);
|
|
2356
2271
|
return {
|
|
2272
|
+
/**
|
|
2273
|
+
* Conversations Create
|
|
2274
|
+
* @summary Conversations Create
|
|
2275
|
+
* @param {string} inboxId
|
|
2276
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
2277
|
+
* @param {*} [options] Override http request option.
|
|
2278
|
+
* @throws {RequiredError}
|
|
2279
|
+
*/
|
|
2280
|
+
async conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
2281
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(inboxId, aPIConversationCreate, options);
|
|
2282
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2283
|
+
const localVarOperationServerBasePath = operationServerMap["InboxesApi.conversationsCreate"]?.[localVarOperationServerIndex]?.url;
|
|
2284
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2285
|
+
},
|
|
2286
|
+
/**
|
|
2287
|
+
* Conversations Get
|
|
2288
|
+
* @summary Conversations Get
|
|
2289
|
+
* @param {string} conversationId
|
|
2290
|
+
* @param {*} [options] Override http request option.
|
|
2291
|
+
* @throws {RequiredError}
|
|
2292
|
+
*/
|
|
2293
|
+
async conversationsGet(conversationId, options) {
|
|
2294
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
2295
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2296
|
+
const localVarOperationServerBasePath = operationServerMap["InboxesApi.conversationsGet"]?.[localVarOperationServerIndex]?.url;
|
|
2297
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2298
|
+
},
|
|
2299
|
+
/**
|
|
2300
|
+
* List all conversations, must filter by contact_id
|
|
2301
|
+
* @summary Conversations List
|
|
2302
|
+
* @param {string | null} [searchString]
|
|
2303
|
+
* @param {string | null} [contactId]
|
|
2304
|
+
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2305
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2306
|
+
* @param {number} [limit]
|
|
2307
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2308
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2309
|
+
* @param {string | null} [inboxId]
|
|
2310
|
+
* @param {*} [options] Override http request option.
|
|
2311
|
+
* @throws {RequiredError}
|
|
2312
|
+
*/
|
|
2313
|
+
async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2314
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options);
|
|
2315
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2316
|
+
const localVarOperationServerBasePath = operationServerMap["InboxesApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
2317
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2318
|
+
},
|
|
2319
|
+
/**
|
|
2320
|
+
* Conversations Update
|
|
2321
|
+
* @summary Conversations Update
|
|
2322
|
+
* @param {string} conversationId
|
|
2323
|
+
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2324
|
+
* @param {*} [options] Override http request option.
|
|
2325
|
+
* @throws {RequiredError}
|
|
2326
|
+
*/
|
|
2327
|
+
async conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2328
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, aPIConversationUpdate, options);
|
|
2329
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2330
|
+
const localVarOperationServerBasePath = operationServerMap["InboxesApi.conversationsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
2331
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2332
|
+
},
|
|
2357
2333
|
/**
|
|
2358
2334
|
* Inboxes List
|
|
2359
2335
|
* @summary Inboxes List
|
|
@@ -2371,6 +2347,55 @@ var InboxesApiFp = function(configuration) {
|
|
|
2371
2347
|
var InboxesApiFactory = function(configuration, basePath, axios) {
|
|
2372
2348
|
const localVarFp = InboxesApiFp(configuration);
|
|
2373
2349
|
return {
|
|
2350
|
+
/**
|
|
2351
|
+
* Conversations Create
|
|
2352
|
+
* @summary Conversations Create
|
|
2353
|
+
* @param {string} inboxId
|
|
2354
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
2355
|
+
* @param {*} [options] Override http request option.
|
|
2356
|
+
* @throws {RequiredError}
|
|
2357
|
+
*/
|
|
2358
|
+
conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
2359
|
+
return localVarFp.conversationsCreate(inboxId, aPIConversationCreate, options).then((request) => request(axios, basePath));
|
|
2360
|
+
},
|
|
2361
|
+
/**
|
|
2362
|
+
* Conversations Get
|
|
2363
|
+
* @summary Conversations Get
|
|
2364
|
+
* @param {string} conversationId
|
|
2365
|
+
* @param {*} [options] Override http request option.
|
|
2366
|
+
* @throws {RequiredError}
|
|
2367
|
+
*/
|
|
2368
|
+
conversationsGet(conversationId, options) {
|
|
2369
|
+
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
2370
|
+
},
|
|
2371
|
+
/**
|
|
2372
|
+
* List all conversations, must filter by contact_id
|
|
2373
|
+
* @summary Conversations List
|
|
2374
|
+
* @param {string | null} [searchString]
|
|
2375
|
+
* @param {string | null} [contactId]
|
|
2376
|
+
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2377
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2378
|
+
* @param {number} [limit]
|
|
2379
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2380
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2381
|
+
* @param {string | null} [inboxId]
|
|
2382
|
+
* @param {*} [options] Override http request option.
|
|
2383
|
+
* @throws {RequiredError}
|
|
2384
|
+
*/
|
|
2385
|
+
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2386
|
+
return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
|
|
2387
|
+
},
|
|
2388
|
+
/**
|
|
2389
|
+
* Conversations Update
|
|
2390
|
+
* @summary Conversations Update
|
|
2391
|
+
* @param {string} conversationId
|
|
2392
|
+
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2393
|
+
* @param {*} [options] Override http request option.
|
|
2394
|
+
* @throws {RequiredError}
|
|
2395
|
+
*/
|
|
2396
|
+
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2397
|
+
return localVarFp.conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(axios, basePath));
|
|
2398
|
+
},
|
|
2374
2399
|
/**
|
|
2375
2400
|
* Inboxes List
|
|
2376
2401
|
* @summary Inboxes List
|
|
@@ -2383,6 +2408,59 @@ var InboxesApiFactory = function(configuration, basePath, axios) {
|
|
|
2383
2408
|
};
|
|
2384
2409
|
};
|
|
2385
2410
|
var InboxesApi = class extends BaseAPI {
|
|
2411
|
+
/**
|
|
2412
|
+
* Conversations Create
|
|
2413
|
+
* @summary Conversations Create
|
|
2414
|
+
* @param {string} inboxId
|
|
2415
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
2416
|
+
* @param {*} [options] Override http request option.
|
|
2417
|
+
* @throws {RequiredError}
|
|
2418
|
+
* @memberof InboxesApi
|
|
2419
|
+
*/
|
|
2420
|
+
conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
2421
|
+
return InboxesApiFp(this.configuration).conversationsCreate(inboxId, aPIConversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
2422
|
+
}
|
|
2423
|
+
/**
|
|
2424
|
+
* Conversations Get
|
|
2425
|
+
* @summary Conversations Get
|
|
2426
|
+
* @param {string} conversationId
|
|
2427
|
+
* @param {*} [options] Override http request option.
|
|
2428
|
+
* @throws {RequiredError}
|
|
2429
|
+
* @memberof InboxesApi
|
|
2430
|
+
*/
|
|
2431
|
+
conversationsGet(conversationId, options) {
|
|
2432
|
+
return InboxesApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
2433
|
+
}
|
|
2434
|
+
/**
|
|
2435
|
+
* List all conversations, must filter by contact_id
|
|
2436
|
+
* @summary Conversations List
|
|
2437
|
+
* @param {string | null} [searchString]
|
|
2438
|
+
* @param {string | null} [contactId]
|
|
2439
|
+
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2440
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2441
|
+
* @param {number} [limit]
|
|
2442
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2443
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2444
|
+
* @param {string | null} [inboxId]
|
|
2445
|
+
* @param {*} [options] Override http request option.
|
|
2446
|
+
* @throws {RequiredError}
|
|
2447
|
+
* @memberof InboxesApi
|
|
2448
|
+
*/
|
|
2449
|
+
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2450
|
+
return InboxesApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
|
|
2451
|
+
}
|
|
2452
|
+
/**
|
|
2453
|
+
* Conversations Update
|
|
2454
|
+
* @summary Conversations Update
|
|
2455
|
+
* @param {string} conversationId
|
|
2456
|
+
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2457
|
+
* @param {*} [options] Override http request option.
|
|
2458
|
+
* @throws {RequiredError}
|
|
2459
|
+
* @memberof InboxesApi
|
|
2460
|
+
*/
|
|
2461
|
+
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2462
|
+
return InboxesApiFp(this.configuration).conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2463
|
+
}
|
|
2386
2464
|
/**
|
|
2387
2465
|
* Inboxes List
|
|
2388
2466
|
* @summary Inboxes List
|
|
@@ -3163,6 +3241,84 @@ var ReservationsApi = class extends BaseAPI {
|
|
|
3163
3241
|
return ReservationsApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
3164
3242
|
}
|
|
3165
3243
|
};
|
|
3244
|
+
var TelnyxApiAxiosParamCreator = function(configuration) {
|
|
3245
|
+
return {
|
|
3246
|
+
/**
|
|
3247
|
+
*
|
|
3248
|
+
* @summary Telnyx Webhook
|
|
3249
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3250
|
+
* @param {*} [options] Override http request option.
|
|
3251
|
+
* @throws {RequiredError}
|
|
3252
|
+
*/
|
|
3253
|
+
telnyxWebhookTelnyxWebhooksPost: async (requestBody, options = {}) => {
|
|
3254
|
+
assertParamExists("telnyxWebhookTelnyxWebhooksPost", "requestBody", requestBody);
|
|
3255
|
+
const localVarPath = `/telnyx-webhooks`;
|
|
3256
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3257
|
+
let baseOptions;
|
|
3258
|
+
if (configuration) {
|
|
3259
|
+
baseOptions = configuration.baseOptions;
|
|
3260
|
+
}
|
|
3261
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3262
|
+
const localVarHeaderParameter = {};
|
|
3263
|
+
const localVarQueryParameter = {};
|
|
3264
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3265
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3266
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3267
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3268
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
3269
|
+
return {
|
|
3270
|
+
url: toPathString(localVarUrlObj),
|
|
3271
|
+
options: localVarRequestOptions
|
|
3272
|
+
};
|
|
3273
|
+
}
|
|
3274
|
+
};
|
|
3275
|
+
};
|
|
3276
|
+
var TelnyxApiFp = function(configuration) {
|
|
3277
|
+
const localVarAxiosParamCreator = TelnyxApiAxiosParamCreator(configuration);
|
|
3278
|
+
return {
|
|
3279
|
+
/**
|
|
3280
|
+
*
|
|
3281
|
+
* @summary Telnyx Webhook
|
|
3282
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3283
|
+
* @param {*} [options] Override http request option.
|
|
3284
|
+
* @throws {RequiredError}
|
|
3285
|
+
*/
|
|
3286
|
+
async telnyxWebhookTelnyxWebhooksPost(requestBody, options) {
|
|
3287
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.telnyxWebhookTelnyxWebhooksPost(requestBody, options);
|
|
3288
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3289
|
+
const localVarOperationServerBasePath = operationServerMap["TelnyxApi.telnyxWebhookTelnyxWebhooksPost"]?.[localVarOperationServerIndex]?.url;
|
|
3290
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3291
|
+
}
|
|
3292
|
+
};
|
|
3293
|
+
};
|
|
3294
|
+
var TelnyxApiFactory = function(configuration, basePath, axios) {
|
|
3295
|
+
const localVarFp = TelnyxApiFp(configuration);
|
|
3296
|
+
return {
|
|
3297
|
+
/**
|
|
3298
|
+
*
|
|
3299
|
+
* @summary Telnyx Webhook
|
|
3300
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3301
|
+
* @param {*} [options] Override http request option.
|
|
3302
|
+
* @throws {RequiredError}
|
|
3303
|
+
*/
|
|
3304
|
+
telnyxWebhookTelnyxWebhooksPost(requestBody, options) {
|
|
3305
|
+
return localVarFp.telnyxWebhookTelnyxWebhooksPost(requestBody, options).then((request) => request(axios, basePath));
|
|
3306
|
+
}
|
|
3307
|
+
};
|
|
3308
|
+
};
|
|
3309
|
+
var TelnyxApi = class extends BaseAPI {
|
|
3310
|
+
/**
|
|
3311
|
+
*
|
|
3312
|
+
* @summary Telnyx Webhook
|
|
3313
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3314
|
+
* @param {*} [options] Override http request option.
|
|
3315
|
+
* @throws {RequiredError}
|
|
3316
|
+
* @memberof TelnyxApi
|
|
3317
|
+
*/
|
|
3318
|
+
telnyxWebhookTelnyxWebhooksPost(requestBody, options) {
|
|
3319
|
+
return TelnyxApiFp(this.configuration).telnyxWebhookTelnyxWebhooksPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3320
|
+
}
|
|
3321
|
+
};
|
|
3166
3322
|
var UnboundApiAxiosParamCreator = function(configuration) {
|
|
3167
3323
|
return {
|
|
3168
3324
|
/**
|
|
@@ -3555,6 +3711,36 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3555
3711
|
options: localVarRequestOptions
|
|
3556
3712
|
};
|
|
3557
3713
|
},
|
|
3714
|
+
/**
|
|
3715
|
+
* Conversations Create
|
|
3716
|
+
* @summary Conversations Create
|
|
3717
|
+
* @param {string} inboxId
|
|
3718
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
3719
|
+
* @param {*} [options] Override http request option.
|
|
3720
|
+
* @throws {RequiredError}
|
|
3721
|
+
*/
|
|
3722
|
+
conversationsCreate: async (inboxId, aPIConversationCreate, options = {}) => {
|
|
3723
|
+
assertParamExists("conversationsCreate", "inboxId", inboxId);
|
|
3724
|
+
assertParamExists("conversationsCreate", "aPIConversationCreate", aPIConversationCreate);
|
|
3725
|
+
const localVarPath = `/v1/inboxes/{inboxId}/conversations`.replace(`{${"inboxId"}}`, encodeURIComponent(String(inboxId)));
|
|
3726
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3727
|
+
let baseOptions;
|
|
3728
|
+
if (configuration) {
|
|
3729
|
+
baseOptions = configuration.baseOptions;
|
|
3730
|
+
}
|
|
3731
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3732
|
+
const localVarHeaderParameter = {};
|
|
3733
|
+
const localVarQueryParameter = {};
|
|
3734
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3735
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3736
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3737
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3738
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationCreate, localVarRequestOptions, configuration);
|
|
3739
|
+
return {
|
|
3740
|
+
url: toPathString(localVarUrlObj),
|
|
3741
|
+
options: localVarRequestOptions
|
|
3742
|
+
};
|
|
3743
|
+
},
|
|
3558
3744
|
/**
|
|
3559
3745
|
* Conversations Get
|
|
3560
3746
|
* @summary Conversations Get
|
|
@@ -4649,6 +4835,20 @@ var UnboundApiFp = function(configuration) {
|
|
|
4649
4835
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.contactsUpdateListing"]?.[localVarOperationServerIndex]?.url;
|
|
4650
4836
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4651
4837
|
},
|
|
4838
|
+
/**
|
|
4839
|
+
* Conversations Create
|
|
4840
|
+
* @summary Conversations Create
|
|
4841
|
+
* @param {string} inboxId
|
|
4842
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
4843
|
+
* @param {*} [options] Override http request option.
|
|
4844
|
+
* @throws {RequiredError}
|
|
4845
|
+
*/
|
|
4846
|
+
async conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
4847
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(inboxId, aPIConversationCreate, options);
|
|
4848
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4849
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsCreate"]?.[localVarOperationServerIndex]?.url;
|
|
4850
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4851
|
+
},
|
|
4652
4852
|
/**
|
|
4653
4853
|
* Conversations Get
|
|
4654
4854
|
* @summary Conversations Get
|
|
@@ -5206,6 +5406,17 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5206
5406
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
5207
5407
|
return localVarFp.contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(axios, basePath));
|
|
5208
5408
|
},
|
|
5409
|
+
/**
|
|
5410
|
+
* Conversations Create
|
|
5411
|
+
* @summary Conversations Create
|
|
5412
|
+
* @param {string} inboxId
|
|
5413
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
5414
|
+
* @param {*} [options] Override http request option.
|
|
5415
|
+
* @throws {RequiredError}
|
|
5416
|
+
*/
|
|
5417
|
+
conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
5418
|
+
return localVarFp.conversationsCreate(inboxId, aPIConversationCreate, options).then((request) => request(axios, basePath));
|
|
5419
|
+
},
|
|
5209
5420
|
/**
|
|
5210
5421
|
* Conversations Get
|
|
5211
5422
|
* @summary Conversations Get
|
|
@@ -5687,6 +5898,18 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5687
5898
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
5688
5899
|
return UnboundApiFp(this.configuration).contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
5689
5900
|
}
|
|
5901
|
+
/**
|
|
5902
|
+
* Conversations Create
|
|
5903
|
+
* @summary Conversations Create
|
|
5904
|
+
* @param {string} inboxId
|
|
5905
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
5906
|
+
* @param {*} [options] Override http request option.
|
|
5907
|
+
* @throws {RequiredError}
|
|
5908
|
+
* @memberof UnboundApi
|
|
5909
|
+
*/
|
|
5910
|
+
conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
5911
|
+
return UnboundApiFp(this.configuration).conversationsCreate(inboxId, aPIConversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
5912
|
+
}
|
|
5690
5913
|
/**
|
|
5691
5914
|
* Conversations Get
|
|
5692
5915
|
* @summary Conversations Get
|
|
@@ -6325,7 +6548,6 @@ export {
|
|
|
6325
6548
|
ProvidersApiAxiosParamCreator,
|
|
6326
6549
|
ProvidersApiFactory,
|
|
6327
6550
|
ProvidersApiFp,
|
|
6328
|
-
ReasonType,
|
|
6329
6551
|
RentalProviderMessageApiMessageTypeEnum,
|
|
6330
6552
|
RentalProviderTypes,
|
|
6331
6553
|
ReservationChannelTypes,
|
|
@@ -6337,19 +6559,26 @@ export {
|
|
|
6337
6559
|
SMSConversationDataApiConversationTypeEnum,
|
|
6338
6560
|
SMSInboundSenderTypeDataApiDirectionEnum,
|
|
6339
6561
|
SMSMessageApiMessageTypeEnum,
|
|
6562
|
+
SMSMessageStatus,
|
|
6340
6563
|
SMSOutboundSenderTypeDataApiDirectionEnum,
|
|
6341
6564
|
SortOrder,
|
|
6342
6565
|
SrcResourceModelsContactsModelContactsModelContactSortBy,
|
|
6343
6566
|
SrcResourceModelsConversationsModelConversationsHelperModelsProviderCommunicationType,
|
|
6344
|
-
|
|
6567
|
+
SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum,
|
|
6345
6568
|
SrcResourceModelsHelperModelsCustomBaseModelCreateApi2MessageTypeEnum,
|
|
6346
6569
|
SrcResourceModelsHelperModelsCustomBaseModelCreateApi3MessageTypeEnum,
|
|
6570
|
+
SrcResourceModelsHelperModelsCustomBaseModelCreateApi4MessageTypeEnum,
|
|
6347
6571
|
SrcResourceModelsListingsModelListingBaseSortBy,
|
|
6348
6572
|
SrcResourceModelsMessagesModelMessagesHelperModelsProviderCommunicationType,
|
|
6349
6573
|
SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy,
|
|
6350
6574
|
SrcResourceModelsReservationsModelReservationBaseModelSortBy,
|
|
6351
6575
|
StaffApiParticipantTypeEnum,
|
|
6576
|
+
SuggestionRejectionReasonType,
|
|
6352
6577
|
SuggestionStatus,
|
|
6578
|
+
TelnyxApi,
|
|
6579
|
+
TelnyxApiAxiosParamCreator,
|
|
6580
|
+
TelnyxApiFactory,
|
|
6581
|
+
TelnyxApiFp,
|
|
6353
6582
|
UnboundApi,
|
|
6354
6583
|
UnboundApiAxiosParamCreator,
|
|
6355
6584
|
UnboundApiFactory,
|