@ember-home/unbound-ts-client 0.0.67 → 0.0.69
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 +270 -250
- package/dist/index.d.ts +270 -250
- package/dist/index.js +348 -491
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +227 -370
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -204,6 +204,10 @@ var SrcResourceModelsReservationsModelReservationBaseModelSortBy = {
|
|
|
204
204
|
var StaffApiParticipantTypeEnum = {
|
|
205
205
|
Staff: "STAFF"
|
|
206
206
|
};
|
|
207
|
+
var SuggestionReason = {
|
|
208
|
+
Correct: "CORRECT",
|
|
209
|
+
Incorrect: "INCORRECT"
|
|
210
|
+
};
|
|
207
211
|
var TwilioConversationDataApiConversationTypeEnum = {
|
|
208
212
|
Text: "TEXT"
|
|
209
213
|
};
|
|
@@ -287,6 +291,77 @@ var AccountsApi = class extends BaseAPI {
|
|
|
287
291
|
return AccountsApiFp(this.configuration).accountsList(options).then((request) => request(this.axios, this.basePath));
|
|
288
292
|
}
|
|
289
293
|
};
|
|
294
|
+
var AuthApiAxiosParamCreator = function(configuration) {
|
|
295
|
+
return {
|
|
296
|
+
/**
|
|
297
|
+
* Get the current authenticated user. Returns the user information for the currently authenticated user based on the JWT token in the Authorization header.
|
|
298
|
+
* @summary Get Me
|
|
299
|
+
* @param {*} [options] Override http request option.
|
|
300
|
+
* @throws {RequiredError}
|
|
301
|
+
*/
|
|
302
|
+
getMeMeGet: async (options = {}) => {
|
|
303
|
+
const localVarPath = `/me`;
|
|
304
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
305
|
+
let baseOptions;
|
|
306
|
+
if (configuration) {
|
|
307
|
+
baseOptions = configuration.baseOptions;
|
|
308
|
+
}
|
|
309
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
310
|
+
const localVarHeaderParameter = {};
|
|
311
|
+
const localVarQueryParameter = {};
|
|
312
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
313
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
314
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
315
|
+
return {
|
|
316
|
+
url: toPathString(localVarUrlObj),
|
|
317
|
+
options: localVarRequestOptions
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
var AuthApiFp = function(configuration) {
|
|
323
|
+
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
|
|
324
|
+
return {
|
|
325
|
+
/**
|
|
326
|
+
* Get the current authenticated user. Returns the user information for the currently authenticated user based on the JWT token in the Authorization header.
|
|
327
|
+
* @summary Get Me
|
|
328
|
+
* @param {*} [options] Override http request option.
|
|
329
|
+
* @throws {RequiredError}
|
|
330
|
+
*/
|
|
331
|
+
async getMeMeGet(options) {
|
|
332
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMeMeGet(options);
|
|
333
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
334
|
+
const localVarOperationServerBasePath = operationServerMap["AuthApi.getMeMeGet"]?.[localVarOperationServerIndex]?.url;
|
|
335
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
var AuthApiFactory = function(configuration, basePath, axios) {
|
|
340
|
+
const localVarFp = AuthApiFp(configuration);
|
|
341
|
+
return {
|
|
342
|
+
/**
|
|
343
|
+
* Get the current authenticated user. Returns the user information for the currently authenticated user based on the JWT token in the Authorization header.
|
|
344
|
+
* @summary Get Me
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
getMeMeGet(options) {
|
|
349
|
+
return localVarFp.getMeMeGet(options).then((request) => request(axios, basePath));
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
var AuthApi = class extends BaseAPI {
|
|
354
|
+
/**
|
|
355
|
+
* Get the current authenticated user. Returns the user information for the currently authenticated user based on the JWT token in the Authorization header.
|
|
356
|
+
* @summary Get Me
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
* @memberof AuthApi
|
|
360
|
+
*/
|
|
361
|
+
getMeMeGet(options) {
|
|
362
|
+
return AuthApiFp(this.configuration).getMeMeGet(options).then((request) => request(this.axios, this.basePath));
|
|
363
|
+
}
|
|
364
|
+
};
|
|
290
365
|
var ContactsApiAxiosParamCreator = function(configuration) {
|
|
291
366
|
return {
|
|
292
367
|
/**
|
|
@@ -1711,6 +1786,32 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1711
1786
|
options: localVarRequestOptions
|
|
1712
1787
|
};
|
|
1713
1788
|
},
|
|
1789
|
+
/**
|
|
1790
|
+
*
|
|
1791
|
+
* @summary Conversations List Suggestions
|
|
1792
|
+
* @param {string} conversationId
|
|
1793
|
+
* @param {*} [options] Override http request option.
|
|
1794
|
+
* @throws {RequiredError}
|
|
1795
|
+
*/
|
|
1796
|
+
conversationsListSuggestions: async (conversationId, options = {}) => {
|
|
1797
|
+
assertParamExists("conversationsListSuggestions", "conversationId", conversationId);
|
|
1798
|
+
const localVarPath = `/conversations/{conversationId}/suggestions`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1799
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1800
|
+
let baseOptions;
|
|
1801
|
+
if (configuration) {
|
|
1802
|
+
baseOptions = configuration.baseOptions;
|
|
1803
|
+
}
|
|
1804
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1805
|
+
const localVarHeaderParameter = {};
|
|
1806
|
+
const localVarQueryParameter = {};
|
|
1807
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1808
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1809
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1810
|
+
return {
|
|
1811
|
+
url: toPathString(localVarUrlObj),
|
|
1812
|
+
options: localVarRequestOptions
|
|
1813
|
+
};
|
|
1814
|
+
},
|
|
1714
1815
|
/**
|
|
1715
1816
|
* Conversations Update
|
|
1716
1817
|
* @summary Conversations Update
|
|
@@ -1745,13 +1846,13 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1745
1846
|
* Messages Create
|
|
1746
1847
|
* @summary Messages Create
|
|
1747
1848
|
* @param {string} conversationId
|
|
1748
|
-
* @param {
|
|
1849
|
+
* @param {Messagecreate} messagecreate
|
|
1749
1850
|
* @param {*} [options] Override http request option.
|
|
1750
1851
|
* @throws {RequiredError}
|
|
1751
1852
|
*/
|
|
1752
|
-
messagesCreate: async (conversationId,
|
|
1853
|
+
messagesCreate: async (conversationId, messagecreate, options = {}) => {
|
|
1753
1854
|
assertParamExists("messagesCreate", "conversationId", conversationId);
|
|
1754
|
-
assertParamExists("messagesCreate", "
|
|
1855
|
+
assertParamExists("messagesCreate", "messagecreate", messagecreate);
|
|
1755
1856
|
const localVarPath = `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1756
1857
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1757
1858
|
let baseOptions;
|
|
@@ -1765,7 +1866,7 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1765
1866
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1766
1867
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1767
1868
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1768
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1869
|
+
localVarRequestOptions.data = serializeDataIfNeeded(messagecreate, localVarRequestOptions, configuration);
|
|
1769
1870
|
return {
|
|
1770
1871
|
url: toPathString(localVarUrlObj),
|
|
1771
1872
|
options: localVarRequestOptions
|
|
@@ -1903,6 +2004,19 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1903
2004
|
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
1904
2005
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1905
2006
|
},
|
|
2007
|
+
/**
|
|
2008
|
+
*
|
|
2009
|
+
* @summary Conversations List Suggestions
|
|
2010
|
+
* @param {string} conversationId
|
|
2011
|
+
* @param {*} [options] Override http request option.
|
|
2012
|
+
* @throws {RequiredError}
|
|
2013
|
+
*/
|
|
2014
|
+
async conversationsListSuggestions(conversationId, options) {
|
|
2015
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsListSuggestions(conversationId, options);
|
|
2016
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2017
|
+
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsListSuggestions"]?.[localVarOperationServerIndex]?.url;
|
|
2018
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2019
|
+
},
|
|
1906
2020
|
/**
|
|
1907
2021
|
* Conversations Update
|
|
1908
2022
|
* @summary Conversations Update
|
|
@@ -1921,12 +2035,12 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1921
2035
|
* Messages Create
|
|
1922
2036
|
* @summary Messages Create
|
|
1923
2037
|
* @param {string} conversationId
|
|
1924
|
-
* @param {
|
|
2038
|
+
* @param {Messagecreate} messagecreate
|
|
1925
2039
|
* @param {*} [options] Override http request option.
|
|
1926
2040
|
* @throws {RequiredError}
|
|
1927
2041
|
*/
|
|
1928
|
-
async messagesCreate(conversationId,
|
|
1929
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId,
|
|
2042
|
+
async messagesCreate(conversationId, messagecreate, options) {
|
|
2043
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messagecreate, options);
|
|
1930
2044
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1931
2045
|
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.messagesCreate"]?.[localVarOperationServerIndex]?.url;
|
|
1932
2046
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1999,6 +2113,16 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
1999
2113
|
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2000
2114
|
return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
|
|
2001
2115
|
},
|
|
2116
|
+
/**
|
|
2117
|
+
*
|
|
2118
|
+
* @summary Conversations List Suggestions
|
|
2119
|
+
* @param {string} conversationId
|
|
2120
|
+
* @param {*} [options] Override http request option.
|
|
2121
|
+
* @throws {RequiredError}
|
|
2122
|
+
*/
|
|
2123
|
+
conversationsListSuggestions(conversationId, options) {
|
|
2124
|
+
return localVarFp.conversationsListSuggestions(conversationId, options).then((request) => request(axios, basePath));
|
|
2125
|
+
},
|
|
2002
2126
|
/**
|
|
2003
2127
|
* Conversations Update
|
|
2004
2128
|
* @summary Conversations Update
|
|
@@ -2014,12 +2138,12 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
2014
2138
|
* Messages Create
|
|
2015
2139
|
* @summary Messages Create
|
|
2016
2140
|
* @param {string} conversationId
|
|
2017
|
-
* @param {
|
|
2141
|
+
* @param {Messagecreate} messagecreate
|
|
2018
2142
|
* @param {*} [options] Override http request option.
|
|
2019
2143
|
* @throws {RequiredError}
|
|
2020
2144
|
*/
|
|
2021
|
-
messagesCreate(conversationId,
|
|
2022
|
-
return localVarFp.messagesCreate(conversationId,
|
|
2145
|
+
messagesCreate(conversationId, messagecreate, options) {
|
|
2146
|
+
return localVarFp.messagesCreate(conversationId, messagecreate, options).then((request) => request(axios, basePath));
|
|
2023
2147
|
},
|
|
2024
2148
|
/**
|
|
2025
2149
|
* Messages Get
|
|
@@ -2083,6 +2207,17 @@ var ConversationsApi = class extends BaseAPI {
|
|
|
2083
2207
|
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2084
2208
|
return ConversationsApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
|
|
2085
2209
|
}
|
|
2210
|
+
/**
|
|
2211
|
+
*
|
|
2212
|
+
* @summary Conversations List Suggestions
|
|
2213
|
+
* @param {string} conversationId
|
|
2214
|
+
* @param {*} [options] Override http request option.
|
|
2215
|
+
* @throws {RequiredError}
|
|
2216
|
+
* @memberof ConversationsApi
|
|
2217
|
+
*/
|
|
2218
|
+
conversationsListSuggestions(conversationId, options) {
|
|
2219
|
+
return ConversationsApiFp(this.configuration).conversationsListSuggestions(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
2220
|
+
}
|
|
2086
2221
|
/**
|
|
2087
2222
|
* Conversations Update
|
|
2088
2223
|
* @summary Conversations Update
|
|
@@ -2099,13 +2234,13 @@ var ConversationsApi = class extends BaseAPI {
|
|
|
2099
2234
|
* Messages Create
|
|
2100
2235
|
* @summary Messages Create
|
|
2101
2236
|
* @param {string} conversationId
|
|
2102
|
-
* @param {
|
|
2237
|
+
* @param {Messagecreate} messagecreate
|
|
2103
2238
|
* @param {*} [options] Override http request option.
|
|
2104
2239
|
* @throws {RequiredError}
|
|
2105
2240
|
* @memberof ConversationsApi
|
|
2106
2241
|
*/
|
|
2107
|
-
messagesCreate(conversationId,
|
|
2108
|
-
return ConversationsApiFp(this.configuration).messagesCreate(conversationId,
|
|
2242
|
+
messagesCreate(conversationId, messagecreate, options) {
|
|
2243
|
+
return ConversationsApiFp(this.configuration).messagesCreate(conversationId, messagecreate, options).then((request) => request(this.axios, this.basePath));
|
|
2109
2244
|
}
|
|
2110
2245
|
/**
|
|
2111
2246
|
* Messages Get
|
|
@@ -3059,146 +3194,6 @@ var ReservationsApi = class extends BaseAPI {
|
|
|
3059
3194
|
return ReservationsApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
3060
3195
|
}
|
|
3061
3196
|
};
|
|
3062
|
-
var SuggestedRepliesApiAxiosParamCreator = function(configuration) {
|
|
3063
|
-
return {
|
|
3064
|
-
/**
|
|
3065
|
-
* SuggestedReplies Create
|
|
3066
|
-
* @summary SuggestedReplies Create
|
|
3067
|
-
* @param {object} body
|
|
3068
|
-
* @param {*} [options] Override http request option.
|
|
3069
|
-
* @throws {RequiredError}
|
|
3070
|
-
*/
|
|
3071
|
-
suggestedRepliesCreate: async (body, options = {}) => {
|
|
3072
|
-
assertParamExists("suggestedRepliesCreate", "body", body);
|
|
3073
|
-
const localVarPath = `/suggestedReplies`;
|
|
3074
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3075
|
-
let baseOptions;
|
|
3076
|
-
if (configuration) {
|
|
3077
|
-
baseOptions = configuration.baseOptions;
|
|
3078
|
-
}
|
|
3079
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3080
|
-
const localVarHeaderParameter = {};
|
|
3081
|
-
const localVarQueryParameter = {};
|
|
3082
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3083
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3084
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3085
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3086
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
3087
|
-
return {
|
|
3088
|
-
url: toPathString(localVarUrlObj),
|
|
3089
|
-
options: localVarRequestOptions
|
|
3090
|
-
};
|
|
3091
|
-
},
|
|
3092
|
-
/**
|
|
3093
|
-
* List all suggested replies, optionally filtered by conversation_id
|
|
3094
|
-
* @summary SuggestedReplies List
|
|
3095
|
-
* @param {string | null} [conversationId] Filter by conversation ID
|
|
3096
|
-
* @param {*} [options] Override http request option.
|
|
3097
|
-
* @throws {RequiredError}
|
|
3098
|
-
*/
|
|
3099
|
-
suggestedRepliesList: async (conversationId, options = {}) => {
|
|
3100
|
-
const localVarPath = `/suggestedReplies`;
|
|
3101
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3102
|
-
let baseOptions;
|
|
3103
|
-
if (configuration) {
|
|
3104
|
-
baseOptions = configuration.baseOptions;
|
|
3105
|
-
}
|
|
3106
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3107
|
-
const localVarHeaderParameter = {};
|
|
3108
|
-
const localVarQueryParameter = {};
|
|
3109
|
-
if (conversationId !== void 0) {
|
|
3110
|
-
localVarQueryParameter["conversationId"] = conversationId;
|
|
3111
|
-
}
|
|
3112
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3113
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3114
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3115
|
-
return {
|
|
3116
|
-
url: toPathString(localVarUrlObj),
|
|
3117
|
-
options: localVarRequestOptions
|
|
3118
|
-
};
|
|
3119
|
-
}
|
|
3120
|
-
};
|
|
3121
|
-
};
|
|
3122
|
-
var SuggestedRepliesApiFp = function(configuration) {
|
|
3123
|
-
const localVarAxiosParamCreator = SuggestedRepliesApiAxiosParamCreator(configuration);
|
|
3124
|
-
return {
|
|
3125
|
-
/**
|
|
3126
|
-
* SuggestedReplies Create
|
|
3127
|
-
* @summary SuggestedReplies Create
|
|
3128
|
-
* @param {object} body
|
|
3129
|
-
* @param {*} [options] Override http request option.
|
|
3130
|
-
* @throws {RequiredError}
|
|
3131
|
-
*/
|
|
3132
|
-
async suggestedRepliesCreate(body, options) {
|
|
3133
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.suggestedRepliesCreate(body, options);
|
|
3134
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3135
|
-
const localVarOperationServerBasePath = operationServerMap["SuggestedRepliesApi.suggestedRepliesCreate"]?.[localVarOperationServerIndex]?.url;
|
|
3136
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3137
|
-
},
|
|
3138
|
-
/**
|
|
3139
|
-
* List all suggested replies, optionally filtered by conversation_id
|
|
3140
|
-
* @summary SuggestedReplies List
|
|
3141
|
-
* @param {string | null} [conversationId] Filter by conversation ID
|
|
3142
|
-
* @param {*} [options] Override http request option.
|
|
3143
|
-
* @throws {RequiredError}
|
|
3144
|
-
*/
|
|
3145
|
-
async suggestedRepliesList(conversationId, options) {
|
|
3146
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.suggestedRepliesList(conversationId, options);
|
|
3147
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3148
|
-
const localVarOperationServerBasePath = operationServerMap["SuggestedRepliesApi.suggestedRepliesList"]?.[localVarOperationServerIndex]?.url;
|
|
3149
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3150
|
-
}
|
|
3151
|
-
};
|
|
3152
|
-
};
|
|
3153
|
-
var SuggestedRepliesApiFactory = function(configuration, basePath, axios) {
|
|
3154
|
-
const localVarFp = SuggestedRepliesApiFp(configuration);
|
|
3155
|
-
return {
|
|
3156
|
-
/**
|
|
3157
|
-
* SuggestedReplies Create
|
|
3158
|
-
* @summary SuggestedReplies Create
|
|
3159
|
-
* @param {object} body
|
|
3160
|
-
* @param {*} [options] Override http request option.
|
|
3161
|
-
* @throws {RequiredError}
|
|
3162
|
-
*/
|
|
3163
|
-
suggestedRepliesCreate(body, options) {
|
|
3164
|
-
return localVarFp.suggestedRepliesCreate(body, options).then((request) => request(axios, basePath));
|
|
3165
|
-
},
|
|
3166
|
-
/**
|
|
3167
|
-
* List all suggested replies, optionally filtered by conversation_id
|
|
3168
|
-
* @summary SuggestedReplies List
|
|
3169
|
-
* @param {string | null} [conversationId] Filter by conversation ID
|
|
3170
|
-
* @param {*} [options] Override http request option.
|
|
3171
|
-
* @throws {RequiredError}
|
|
3172
|
-
*/
|
|
3173
|
-
suggestedRepliesList(conversationId, options) {
|
|
3174
|
-
return localVarFp.suggestedRepliesList(conversationId, options).then((request) => request(axios, basePath));
|
|
3175
|
-
}
|
|
3176
|
-
};
|
|
3177
|
-
};
|
|
3178
|
-
var SuggestedRepliesApi = class extends BaseAPI {
|
|
3179
|
-
/**
|
|
3180
|
-
* SuggestedReplies Create
|
|
3181
|
-
* @summary SuggestedReplies Create
|
|
3182
|
-
* @param {object} body
|
|
3183
|
-
* @param {*} [options] Override http request option.
|
|
3184
|
-
* @throws {RequiredError}
|
|
3185
|
-
* @memberof SuggestedRepliesApi
|
|
3186
|
-
*/
|
|
3187
|
-
suggestedRepliesCreate(body, options) {
|
|
3188
|
-
return SuggestedRepliesApiFp(this.configuration).suggestedRepliesCreate(body, options).then((request) => request(this.axios, this.basePath));
|
|
3189
|
-
}
|
|
3190
|
-
/**
|
|
3191
|
-
* List all suggested replies, optionally filtered by conversation_id
|
|
3192
|
-
* @summary SuggestedReplies List
|
|
3193
|
-
* @param {string | null} [conversationId] Filter by conversation ID
|
|
3194
|
-
* @param {*} [options] Override http request option.
|
|
3195
|
-
* @throws {RequiredError}
|
|
3196
|
-
* @memberof SuggestedRepliesApi
|
|
3197
|
-
*/
|
|
3198
|
-
suggestedRepliesList(conversationId, options) {
|
|
3199
|
-
return SuggestedRepliesApiFp(this.configuration).suggestedRepliesList(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
3200
|
-
}
|
|
3201
|
-
};
|
|
3202
3197
|
var UnboundApiAxiosParamCreator = function(configuration) {
|
|
3203
3198
|
return {
|
|
3204
3199
|
/**
|
|
@@ -3673,6 +3668,32 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3673
3668
|
options: localVarRequestOptions
|
|
3674
3669
|
};
|
|
3675
3670
|
},
|
|
3671
|
+
/**
|
|
3672
|
+
*
|
|
3673
|
+
* @summary Conversations List Suggestions
|
|
3674
|
+
* @param {string} conversationId
|
|
3675
|
+
* @param {*} [options] Override http request option.
|
|
3676
|
+
* @throws {RequiredError}
|
|
3677
|
+
*/
|
|
3678
|
+
conversationsListSuggestions: async (conversationId, options = {}) => {
|
|
3679
|
+
assertParamExists("conversationsListSuggestions", "conversationId", conversationId);
|
|
3680
|
+
const localVarPath = `/conversations/{conversationId}/suggestions`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
3681
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3682
|
+
let baseOptions;
|
|
3683
|
+
if (configuration) {
|
|
3684
|
+
baseOptions = configuration.baseOptions;
|
|
3685
|
+
}
|
|
3686
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3687
|
+
const localVarHeaderParameter = {};
|
|
3688
|
+
const localVarQueryParameter = {};
|
|
3689
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3690
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3691
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3692
|
+
return {
|
|
3693
|
+
url: toPathString(localVarUrlObj),
|
|
3694
|
+
options: localVarRequestOptions
|
|
3695
|
+
};
|
|
3696
|
+
},
|
|
3676
3697
|
/**
|
|
3677
3698
|
* Conversations Update
|
|
3678
3699
|
* @summary Conversations Update
|
|
@@ -3997,13 +4018,13 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3997
4018
|
* Messages Create
|
|
3998
4019
|
* @summary Messages Create
|
|
3999
4020
|
* @param {string} conversationId
|
|
4000
|
-
* @param {
|
|
4021
|
+
* @param {Messagecreate} messagecreate
|
|
4001
4022
|
* @param {*} [options] Override http request option.
|
|
4002
4023
|
* @throws {RequiredError}
|
|
4003
4024
|
*/
|
|
4004
|
-
messagesCreate: async (conversationId,
|
|
4025
|
+
messagesCreate: async (conversationId, messagecreate, options = {}) => {
|
|
4005
4026
|
assertParamExists("messagesCreate", "conversationId", conversationId);
|
|
4006
|
-
assertParamExists("messagesCreate", "
|
|
4027
|
+
assertParamExists("messagesCreate", "messagecreate", messagecreate);
|
|
4007
4028
|
const localVarPath = `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
4008
4029
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4009
4030
|
let baseOptions;
|
|
@@ -4017,7 +4038,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
4017
4038
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4018
4039
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4019
4040
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4020
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
4041
|
+
localVarRequestOptions.data = serializeDataIfNeeded(messagecreate, localVarRequestOptions, configuration);
|
|
4021
4042
|
return {
|
|
4022
4043
|
url: toPathString(localVarUrlObj),
|
|
4023
4044
|
options: localVarRequestOptions
|
|
@@ -4415,62 +4436,6 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
4415
4436
|
options: localVarRequestOptions
|
|
4416
4437
|
};
|
|
4417
4438
|
},
|
|
4418
|
-
/**
|
|
4419
|
-
* SuggestedReplies Create
|
|
4420
|
-
* @summary SuggestedReplies Create
|
|
4421
|
-
* @param {object} body
|
|
4422
|
-
* @param {*} [options] Override http request option.
|
|
4423
|
-
* @throws {RequiredError}
|
|
4424
|
-
*/
|
|
4425
|
-
suggestedRepliesCreate: async (body, options = {}) => {
|
|
4426
|
-
assertParamExists("suggestedRepliesCreate", "body", body);
|
|
4427
|
-
const localVarPath = `/suggestedReplies`;
|
|
4428
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4429
|
-
let baseOptions;
|
|
4430
|
-
if (configuration) {
|
|
4431
|
-
baseOptions = configuration.baseOptions;
|
|
4432
|
-
}
|
|
4433
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
4434
|
-
const localVarHeaderParameter = {};
|
|
4435
|
-
const localVarQueryParameter = {};
|
|
4436
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4437
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4438
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4439
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4440
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
4441
|
-
return {
|
|
4442
|
-
url: toPathString(localVarUrlObj),
|
|
4443
|
-
options: localVarRequestOptions
|
|
4444
|
-
};
|
|
4445
|
-
},
|
|
4446
|
-
/**
|
|
4447
|
-
* List all suggested replies, optionally filtered by conversation_id
|
|
4448
|
-
* @summary SuggestedReplies List
|
|
4449
|
-
* @param {string | null} [conversationId] Filter by conversation ID
|
|
4450
|
-
* @param {*} [options] Override http request option.
|
|
4451
|
-
* @throws {RequiredError}
|
|
4452
|
-
*/
|
|
4453
|
-
suggestedRepliesList: async (conversationId, options = {}) => {
|
|
4454
|
-
const localVarPath = `/suggestedReplies`;
|
|
4455
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4456
|
-
let baseOptions;
|
|
4457
|
-
if (configuration) {
|
|
4458
|
-
baseOptions = configuration.baseOptions;
|
|
4459
|
-
}
|
|
4460
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
4461
|
-
const localVarHeaderParameter = {};
|
|
4462
|
-
const localVarQueryParameter = {};
|
|
4463
|
-
if (conversationId !== void 0) {
|
|
4464
|
-
localVarQueryParameter["conversationId"] = conversationId;
|
|
4465
|
-
}
|
|
4466
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4467
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4468
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4469
|
-
return {
|
|
4470
|
-
url: toPathString(localVarUrlObj),
|
|
4471
|
-
options: localVarRequestOptions
|
|
4472
|
-
};
|
|
4473
|
-
},
|
|
4474
4439
|
/**
|
|
4475
4440
|
*
|
|
4476
4441
|
* @summary Unifiedwebhook
|
|
@@ -4720,6 +4685,19 @@ var UnboundApiFp = function(configuration) {
|
|
|
4720
4685
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
4721
4686
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4722
4687
|
},
|
|
4688
|
+
/**
|
|
4689
|
+
*
|
|
4690
|
+
* @summary Conversations List Suggestions
|
|
4691
|
+
* @param {string} conversationId
|
|
4692
|
+
* @param {*} [options] Override http request option.
|
|
4693
|
+
* @throws {RequiredError}
|
|
4694
|
+
*/
|
|
4695
|
+
async conversationsListSuggestions(conversationId, options) {
|
|
4696
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsListSuggestions(conversationId, options);
|
|
4697
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4698
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsListSuggestions"]?.[localVarOperationServerIndex]?.url;
|
|
4699
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4700
|
+
},
|
|
4723
4701
|
/**
|
|
4724
4702
|
* Conversations Update
|
|
4725
4703
|
* @summary Conversations Update
|
|
@@ -4873,12 +4851,12 @@ var UnboundApiFp = function(configuration) {
|
|
|
4873
4851
|
* Messages Create
|
|
4874
4852
|
* @summary Messages Create
|
|
4875
4853
|
* @param {string} conversationId
|
|
4876
|
-
* @param {
|
|
4854
|
+
* @param {Messagecreate} messagecreate
|
|
4877
4855
|
* @param {*} [options] Override http request option.
|
|
4878
4856
|
* @throws {RequiredError}
|
|
4879
4857
|
*/
|
|
4880
|
-
async messagesCreate(conversationId,
|
|
4881
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId,
|
|
4858
|
+
async messagesCreate(conversationId, messagecreate, options) {
|
|
4859
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messagecreate, options);
|
|
4882
4860
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4883
4861
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.messagesCreate"]?.[localVarOperationServerIndex]?.url;
|
|
4884
4862
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5057,32 +5035,6 @@ var UnboundApiFp = function(configuration) {
|
|
|
5057
5035
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.reservationsList"]?.[localVarOperationServerIndex]?.url;
|
|
5058
5036
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5059
5037
|
},
|
|
5060
|
-
/**
|
|
5061
|
-
* SuggestedReplies Create
|
|
5062
|
-
* @summary SuggestedReplies Create
|
|
5063
|
-
* @param {object} body
|
|
5064
|
-
* @param {*} [options] Override http request option.
|
|
5065
|
-
* @throws {RequiredError}
|
|
5066
|
-
*/
|
|
5067
|
-
async suggestedRepliesCreate(body, options) {
|
|
5068
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.suggestedRepliesCreate(body, options);
|
|
5069
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5070
|
-
const localVarOperationServerBasePath = operationServerMap["UnboundApi.suggestedRepliesCreate"]?.[localVarOperationServerIndex]?.url;
|
|
5071
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5072
|
-
},
|
|
5073
|
-
/**
|
|
5074
|
-
* List all suggested replies, optionally filtered by conversation_id
|
|
5075
|
-
* @summary SuggestedReplies List
|
|
5076
|
-
* @param {string | null} [conversationId] Filter by conversation ID
|
|
5077
|
-
* @param {*} [options] Override http request option.
|
|
5078
|
-
* @throws {RequiredError}
|
|
5079
|
-
*/
|
|
5080
|
-
async suggestedRepliesList(conversationId, options) {
|
|
5081
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.suggestedRepliesList(conversationId, options);
|
|
5082
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5083
|
-
const localVarOperationServerBasePath = operationServerMap["UnboundApi.suggestedRepliesList"]?.[localVarOperationServerIndex]?.url;
|
|
5084
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5085
|
-
},
|
|
5086
5038
|
/**
|
|
5087
5039
|
*
|
|
5088
5040
|
* @summary Unifiedwebhook
|
|
@@ -5271,6 +5223,16 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5271
5223
|
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
5272
5224
|
return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
|
|
5273
5225
|
},
|
|
5226
|
+
/**
|
|
5227
|
+
*
|
|
5228
|
+
* @summary Conversations List Suggestions
|
|
5229
|
+
* @param {string} conversationId
|
|
5230
|
+
* @param {*} [options] Override http request option.
|
|
5231
|
+
* @throws {RequiredError}
|
|
5232
|
+
*/
|
|
5233
|
+
conversationsListSuggestions(conversationId, options) {
|
|
5234
|
+
return localVarFp.conversationsListSuggestions(conversationId, options).then((request) => request(axios, basePath));
|
|
5235
|
+
},
|
|
5274
5236
|
/**
|
|
5275
5237
|
* Conversations Update
|
|
5276
5238
|
* @summary Conversations Update
|
|
@@ -5391,12 +5353,12 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5391
5353
|
* Messages Create
|
|
5392
5354
|
* @summary Messages Create
|
|
5393
5355
|
* @param {string} conversationId
|
|
5394
|
-
* @param {
|
|
5356
|
+
* @param {Messagecreate} messagecreate
|
|
5395
5357
|
* @param {*} [options] Override http request option.
|
|
5396
5358
|
* @throws {RequiredError}
|
|
5397
5359
|
*/
|
|
5398
|
-
messagesCreate(conversationId,
|
|
5399
|
-
return localVarFp.messagesCreate(conversationId,
|
|
5360
|
+
messagesCreate(conversationId, messagecreate, options) {
|
|
5361
|
+
return localVarFp.messagesCreate(conversationId, messagecreate, options).then((request) => request(axios, basePath));
|
|
5400
5362
|
},
|
|
5401
5363
|
/**
|
|
5402
5364
|
* Messages Get
|
|
@@ -5536,26 +5498,6 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5536
5498
|
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5537
5499
|
return localVarFp.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
5538
5500
|
},
|
|
5539
|
-
/**
|
|
5540
|
-
* SuggestedReplies Create
|
|
5541
|
-
* @summary SuggestedReplies Create
|
|
5542
|
-
* @param {object} body
|
|
5543
|
-
* @param {*} [options] Override http request option.
|
|
5544
|
-
* @throws {RequiredError}
|
|
5545
|
-
*/
|
|
5546
|
-
suggestedRepliesCreate(body, options) {
|
|
5547
|
-
return localVarFp.suggestedRepliesCreate(body, options).then((request) => request(axios, basePath));
|
|
5548
|
-
},
|
|
5549
|
-
/**
|
|
5550
|
-
* List all suggested replies, optionally filtered by conversation_id
|
|
5551
|
-
* @summary SuggestedReplies List
|
|
5552
|
-
* @param {string | null} [conversationId] Filter by conversation ID
|
|
5553
|
-
* @param {*} [options] Override http request option.
|
|
5554
|
-
* @throws {RequiredError}
|
|
5555
|
-
*/
|
|
5556
|
-
suggestedRepliesList(conversationId, options) {
|
|
5557
|
-
return localVarFp.suggestedRepliesList(conversationId, options).then((request) => request(axios, basePath));
|
|
5558
|
-
},
|
|
5559
5501
|
/**
|
|
5560
5502
|
*
|
|
5561
5503
|
* @summary Unifiedwebhook
|
|
@@ -5754,6 +5696,17 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5754
5696
|
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
5755
5697
|
return UnboundApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
|
|
5756
5698
|
}
|
|
5699
|
+
/**
|
|
5700
|
+
*
|
|
5701
|
+
* @summary Conversations List Suggestions
|
|
5702
|
+
* @param {string} conversationId
|
|
5703
|
+
* @param {*} [options] Override http request option.
|
|
5704
|
+
* @throws {RequiredError}
|
|
5705
|
+
* @memberof UnboundApi
|
|
5706
|
+
*/
|
|
5707
|
+
conversationsListSuggestions(conversationId, options) {
|
|
5708
|
+
return UnboundApiFp(this.configuration).conversationsListSuggestions(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
5709
|
+
}
|
|
5757
5710
|
/**
|
|
5758
5711
|
* Conversations Update
|
|
5759
5712
|
* @summary Conversations Update
|
|
@@ -5885,13 +5838,13 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5885
5838
|
* Messages Create
|
|
5886
5839
|
* @summary Messages Create
|
|
5887
5840
|
* @param {string} conversationId
|
|
5888
|
-
* @param {
|
|
5841
|
+
* @param {Messagecreate} messagecreate
|
|
5889
5842
|
* @param {*} [options] Override http request option.
|
|
5890
5843
|
* @throws {RequiredError}
|
|
5891
5844
|
* @memberof UnboundApi
|
|
5892
5845
|
*/
|
|
5893
|
-
messagesCreate(conversationId,
|
|
5894
|
-
return UnboundApiFp(this.configuration).messagesCreate(conversationId,
|
|
5846
|
+
messagesCreate(conversationId, messagecreate, options) {
|
|
5847
|
+
return UnboundApiFp(this.configuration).messagesCreate(conversationId, messagecreate, options).then((request) => request(this.axios, this.basePath));
|
|
5895
5848
|
}
|
|
5896
5849
|
/**
|
|
5897
5850
|
* Messages Get
|
|
@@ -6043,28 +5996,6 @@ var UnboundApi = class extends BaseAPI {
|
|
|
6043
5996
|
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
6044
5997
|
return UnboundApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
6045
5998
|
}
|
|
6046
|
-
/**
|
|
6047
|
-
* SuggestedReplies Create
|
|
6048
|
-
* @summary SuggestedReplies Create
|
|
6049
|
-
* @param {object} body
|
|
6050
|
-
* @param {*} [options] Override http request option.
|
|
6051
|
-
* @throws {RequiredError}
|
|
6052
|
-
* @memberof UnboundApi
|
|
6053
|
-
*/
|
|
6054
|
-
suggestedRepliesCreate(body, options) {
|
|
6055
|
-
return UnboundApiFp(this.configuration).suggestedRepliesCreate(body, options).then((request) => request(this.axios, this.basePath));
|
|
6056
|
-
}
|
|
6057
|
-
/**
|
|
6058
|
-
* List all suggested replies, optionally filtered by conversation_id
|
|
6059
|
-
* @summary SuggestedReplies List
|
|
6060
|
-
* @param {string | null} [conversationId] Filter by conversation ID
|
|
6061
|
-
* @param {*} [options] Override http request option.
|
|
6062
|
-
* @throws {RequiredError}
|
|
6063
|
-
* @memberof UnboundApi
|
|
6064
|
-
*/
|
|
6065
|
-
suggestedRepliesList(conversationId, options) {
|
|
6066
|
-
return UnboundApiFp(this.configuration).suggestedRepliesList(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
6067
|
-
}
|
|
6068
5999
|
/**
|
|
6069
6000
|
*
|
|
6070
6001
|
* @summary Unifiedwebhook
|
|
@@ -6077,77 +6008,6 @@ var UnboundApi = class extends BaseAPI {
|
|
|
6077
6008
|
return UnboundApiFp(this.configuration).webhook(hostawayWebhook, options).then((request) => request(this.axios, this.basePath));
|
|
6078
6009
|
}
|
|
6079
6010
|
};
|
|
6080
|
-
var UsersApiAxiosParamCreator = function(configuration) {
|
|
6081
|
-
return {
|
|
6082
|
-
/**
|
|
6083
|
-
* Get the current authenticated user. Returns the user information for the currently authenticated user based on the JWT token in the Authorization header.
|
|
6084
|
-
* @summary Get Me
|
|
6085
|
-
* @param {*} [options] Override http request option.
|
|
6086
|
-
* @throws {RequiredError}
|
|
6087
|
-
*/
|
|
6088
|
-
getMeMeGet: async (options = {}) => {
|
|
6089
|
-
const localVarPath = `/me`;
|
|
6090
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6091
|
-
let baseOptions;
|
|
6092
|
-
if (configuration) {
|
|
6093
|
-
baseOptions = configuration.baseOptions;
|
|
6094
|
-
}
|
|
6095
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
6096
|
-
const localVarHeaderParameter = {};
|
|
6097
|
-
const localVarQueryParameter = {};
|
|
6098
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6099
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6100
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6101
|
-
return {
|
|
6102
|
-
url: toPathString(localVarUrlObj),
|
|
6103
|
-
options: localVarRequestOptions
|
|
6104
|
-
};
|
|
6105
|
-
}
|
|
6106
|
-
};
|
|
6107
|
-
};
|
|
6108
|
-
var UsersApiFp = function(configuration) {
|
|
6109
|
-
const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration);
|
|
6110
|
-
return {
|
|
6111
|
-
/**
|
|
6112
|
-
* Get the current authenticated user. Returns the user information for the currently authenticated user based on the JWT token in the Authorization header.
|
|
6113
|
-
* @summary Get Me
|
|
6114
|
-
* @param {*} [options] Override http request option.
|
|
6115
|
-
* @throws {RequiredError}
|
|
6116
|
-
*/
|
|
6117
|
-
async getMeMeGet(options) {
|
|
6118
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getMeMeGet(options);
|
|
6119
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6120
|
-
const localVarOperationServerBasePath = operationServerMap["UsersApi.getMeMeGet"]?.[localVarOperationServerIndex]?.url;
|
|
6121
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6122
|
-
}
|
|
6123
|
-
};
|
|
6124
|
-
};
|
|
6125
|
-
var UsersApiFactory = function(configuration, basePath, axios) {
|
|
6126
|
-
const localVarFp = UsersApiFp(configuration);
|
|
6127
|
-
return {
|
|
6128
|
-
/**
|
|
6129
|
-
* Get the current authenticated user. Returns the user information for the currently authenticated user based on the JWT token in the Authorization header.
|
|
6130
|
-
* @summary Get Me
|
|
6131
|
-
* @param {*} [options] Override http request option.
|
|
6132
|
-
* @throws {RequiredError}
|
|
6133
|
-
*/
|
|
6134
|
-
getMeMeGet(options) {
|
|
6135
|
-
return localVarFp.getMeMeGet(options).then((request) => request(axios, basePath));
|
|
6136
|
-
}
|
|
6137
|
-
};
|
|
6138
|
-
};
|
|
6139
|
-
var UsersApi = class extends BaseAPI {
|
|
6140
|
-
/**
|
|
6141
|
-
* Get the current authenticated user. Returns the user information for the currently authenticated user based on the JWT token in the Authorization header.
|
|
6142
|
-
* @summary Get Me
|
|
6143
|
-
* @param {*} [options] Override http request option.
|
|
6144
|
-
* @throws {RequiredError}
|
|
6145
|
-
* @memberof UsersApi
|
|
6146
|
-
*/
|
|
6147
|
-
getMeMeGet(options) {
|
|
6148
|
-
return UsersApiFp(this.configuration).getMeMeGet(options).then((request) => request(this.axios, this.basePath));
|
|
6149
|
-
}
|
|
6150
|
-
};
|
|
6151
6011
|
|
|
6152
6012
|
// src/configuration.ts
|
|
6153
6013
|
var Configuration = class {
|
|
@@ -6242,6 +6102,10 @@ export {
|
|
|
6242
6102
|
AccountsApiAxiosParamCreator,
|
|
6243
6103
|
AccountsApiFactory,
|
|
6244
6104
|
AccountsApiFp,
|
|
6105
|
+
AuthApi,
|
|
6106
|
+
AuthApiAxiosParamCreator,
|
|
6107
|
+
AuthApiFactory,
|
|
6108
|
+
AuthApiFp,
|
|
6245
6109
|
BotApiParticipantTypeEnum,
|
|
6246
6110
|
Configuration,
|
|
6247
6111
|
ContactListingType,
|
|
@@ -6309,10 +6173,7 @@ export {
|
|
|
6309
6173
|
SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy,
|
|
6310
6174
|
SrcResourceModelsReservationsModelReservationBaseModelSortBy,
|
|
6311
6175
|
StaffApiParticipantTypeEnum,
|
|
6312
|
-
|
|
6313
|
-
SuggestedRepliesApiAxiosParamCreator,
|
|
6314
|
-
SuggestedRepliesApiFactory,
|
|
6315
|
-
SuggestedRepliesApiFp,
|
|
6176
|
+
SuggestionReason,
|
|
6316
6177
|
TwilioConversationDataApiConversationTypeEnum,
|
|
6317
6178
|
TwilioInboundSenderTypeDataApiDirectionEnum,
|
|
6318
6179
|
TwilioOutboundSenderTypeDataApiDirectionEnum,
|
|
@@ -6320,10 +6181,6 @@ export {
|
|
|
6320
6181
|
UnboundApi,
|
|
6321
6182
|
UnboundApiAxiosParamCreator,
|
|
6322
6183
|
UnboundApiFactory,
|
|
6323
|
-
UnboundApiFp
|
|
6324
|
-
UsersApi,
|
|
6325
|
-
UsersApiAxiosParamCreator,
|
|
6326
|
-
UsersApiFactory,
|
|
6327
|
-
UsersApiFp
|
|
6184
|
+
UnboundApiFp
|
|
6328
6185
|
};
|
|
6329
6186
|
//# sourceMappingURL=index.mjs.map
|