@ember-home/unbound-ts-client 0.0.68 → 0.0.70
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 +241 -265
- package/dist/index.d.ts +241 -265
- package/dist/index.js +358 -490
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +238 -370
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -139,6 +139,16 @@ var ProviderConversationDataApiConversationTypeEnum = {
|
|
|
139
139
|
var ProviderStaffApiStaffTypeEnum = {
|
|
140
140
|
ProviderStaff: "PROVIDER_STAFF"
|
|
141
141
|
};
|
|
142
|
+
var ReasonType = {
|
|
143
|
+
Correct: "CORRECT",
|
|
144
|
+
FactualError: "FACTUAL_ERROR",
|
|
145
|
+
MisunderstoodIntent: "MISUNDERSTOOD_INTENT",
|
|
146
|
+
ChangeTone: "CHANGE_TONE",
|
|
147
|
+
TooVerbose: "TOO_VERBOSE",
|
|
148
|
+
TooBrief: "TOO_BRIEF",
|
|
149
|
+
GrammerSpelling: "GRAMMER_SPELLING",
|
|
150
|
+
Other: "OTHER"
|
|
151
|
+
};
|
|
142
152
|
var RentalProviderMessageApiMessageTypeEnum = {
|
|
143
153
|
RentalProvider: "RENTAL_PROVIDER"
|
|
144
154
|
};
|
|
@@ -204,6 +214,10 @@ var SrcResourceModelsReservationsModelReservationBaseModelSortBy = {
|
|
|
204
214
|
var StaffApiParticipantTypeEnum = {
|
|
205
215
|
Staff: "STAFF"
|
|
206
216
|
};
|
|
217
|
+
var SuggestionReason = {
|
|
218
|
+
Correct: "CORRECT",
|
|
219
|
+
Incorrect: "INCORRECT"
|
|
220
|
+
};
|
|
207
221
|
var TwilioConversationDataApiConversationTypeEnum = {
|
|
208
222
|
Text: "TEXT"
|
|
209
223
|
};
|
|
@@ -287,6 +301,77 @@ var AccountsApi = class extends BaseAPI {
|
|
|
287
301
|
return AccountsApiFp(this.configuration).accountsList(options).then((request) => request(this.axios, this.basePath));
|
|
288
302
|
}
|
|
289
303
|
};
|
|
304
|
+
var AuthApiAxiosParamCreator = function(configuration) {
|
|
305
|
+
return {
|
|
306
|
+
/**
|
|
307
|
+
* Get the current authenticated user. Returns the user information for the currently authenticated user based on the JWT token in the Authorization header.
|
|
308
|
+
* @summary Get Me
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
*/
|
|
312
|
+
getMeMeGet: async (options = {}) => {
|
|
313
|
+
const localVarPath = `/me`;
|
|
314
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
315
|
+
let baseOptions;
|
|
316
|
+
if (configuration) {
|
|
317
|
+
baseOptions = configuration.baseOptions;
|
|
318
|
+
}
|
|
319
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
320
|
+
const localVarHeaderParameter = {};
|
|
321
|
+
const localVarQueryParameter = {};
|
|
322
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
323
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
324
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
325
|
+
return {
|
|
326
|
+
url: toPathString(localVarUrlObj),
|
|
327
|
+
options: localVarRequestOptions
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
var AuthApiFp = function(configuration) {
|
|
333
|
+
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
|
|
334
|
+
return {
|
|
335
|
+
/**
|
|
336
|
+
* Get the current authenticated user. Returns the user information for the currently authenticated user based on the JWT token in the Authorization header.
|
|
337
|
+
* @summary Get Me
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
*/
|
|
341
|
+
async getMeMeGet(options) {
|
|
342
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMeMeGet(options);
|
|
343
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
344
|
+
const localVarOperationServerBasePath = operationServerMap["AuthApi.getMeMeGet"]?.[localVarOperationServerIndex]?.url;
|
|
345
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
var AuthApiFactory = function(configuration, basePath, axios) {
|
|
350
|
+
const localVarFp = AuthApiFp(configuration);
|
|
351
|
+
return {
|
|
352
|
+
/**
|
|
353
|
+
* Get the current authenticated user. Returns the user information for the currently authenticated user based on the JWT token in the Authorization header.
|
|
354
|
+
* @summary Get Me
|
|
355
|
+
* @param {*} [options] Override http request option.
|
|
356
|
+
* @throws {RequiredError}
|
|
357
|
+
*/
|
|
358
|
+
getMeMeGet(options) {
|
|
359
|
+
return localVarFp.getMeMeGet(options).then((request) => request(axios, basePath));
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
var AuthApi = class extends BaseAPI {
|
|
364
|
+
/**
|
|
365
|
+
* Get the current authenticated user. Returns the user information for the currently authenticated user based on the JWT token in the Authorization header.
|
|
366
|
+
* @summary Get Me
|
|
367
|
+
* @param {*} [options] Override http request option.
|
|
368
|
+
* @throws {RequiredError}
|
|
369
|
+
* @memberof AuthApi
|
|
370
|
+
*/
|
|
371
|
+
getMeMeGet(options) {
|
|
372
|
+
return AuthApiFp(this.configuration).getMeMeGet(options).then((request) => request(this.axios, this.basePath));
|
|
373
|
+
}
|
|
374
|
+
};
|
|
290
375
|
var ContactsApiAxiosParamCreator = function(configuration) {
|
|
291
376
|
return {
|
|
292
377
|
/**
|
|
@@ -1711,6 +1796,32 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1711
1796
|
options: localVarRequestOptions
|
|
1712
1797
|
};
|
|
1713
1798
|
},
|
|
1799
|
+
/**
|
|
1800
|
+
*
|
|
1801
|
+
* @summary Conversations List Suggestions
|
|
1802
|
+
* @param {string} conversationId
|
|
1803
|
+
* @param {*} [options] Override http request option.
|
|
1804
|
+
* @throws {RequiredError}
|
|
1805
|
+
*/
|
|
1806
|
+
conversationsListSuggestions: async (conversationId, options = {}) => {
|
|
1807
|
+
assertParamExists("conversationsListSuggestions", "conversationId", conversationId);
|
|
1808
|
+
const localVarPath = `/conversations/{conversationId}/suggestions`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1809
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1810
|
+
let baseOptions;
|
|
1811
|
+
if (configuration) {
|
|
1812
|
+
baseOptions = configuration.baseOptions;
|
|
1813
|
+
}
|
|
1814
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1815
|
+
const localVarHeaderParameter = {};
|
|
1816
|
+
const localVarQueryParameter = {};
|
|
1817
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1818
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1819
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1820
|
+
return {
|
|
1821
|
+
url: toPathString(localVarUrlObj),
|
|
1822
|
+
options: localVarRequestOptions
|
|
1823
|
+
};
|
|
1824
|
+
},
|
|
1714
1825
|
/**
|
|
1715
1826
|
* Conversations Update
|
|
1716
1827
|
* @summary Conversations Update
|
|
@@ -1745,13 +1856,13 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1745
1856
|
* Messages Create
|
|
1746
1857
|
* @summary Messages Create
|
|
1747
1858
|
* @param {string} conversationId
|
|
1748
|
-
* @param {
|
|
1859
|
+
* @param {Messagecreate} messagecreate
|
|
1749
1860
|
* @param {*} [options] Override http request option.
|
|
1750
1861
|
* @throws {RequiredError}
|
|
1751
1862
|
*/
|
|
1752
|
-
messagesCreate: async (conversationId,
|
|
1863
|
+
messagesCreate: async (conversationId, messagecreate, options = {}) => {
|
|
1753
1864
|
assertParamExists("messagesCreate", "conversationId", conversationId);
|
|
1754
|
-
assertParamExists("messagesCreate", "
|
|
1865
|
+
assertParamExists("messagesCreate", "messagecreate", messagecreate);
|
|
1755
1866
|
const localVarPath = `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1756
1867
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1757
1868
|
let baseOptions;
|
|
@@ -1765,7 +1876,7 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1765
1876
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1766
1877
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1767
1878
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1768
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1879
|
+
localVarRequestOptions.data = serializeDataIfNeeded(messagecreate, localVarRequestOptions, configuration);
|
|
1769
1880
|
return {
|
|
1770
1881
|
url: toPathString(localVarUrlObj),
|
|
1771
1882
|
options: localVarRequestOptions
|
|
@@ -1903,6 +2014,19 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1903
2014
|
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
1904
2015
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1905
2016
|
},
|
|
2017
|
+
/**
|
|
2018
|
+
*
|
|
2019
|
+
* @summary Conversations List Suggestions
|
|
2020
|
+
* @param {string} conversationId
|
|
2021
|
+
* @param {*} [options] Override http request option.
|
|
2022
|
+
* @throws {RequiredError}
|
|
2023
|
+
*/
|
|
2024
|
+
async conversationsListSuggestions(conversationId, options) {
|
|
2025
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsListSuggestions(conversationId, options);
|
|
2026
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2027
|
+
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsListSuggestions"]?.[localVarOperationServerIndex]?.url;
|
|
2028
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2029
|
+
},
|
|
1906
2030
|
/**
|
|
1907
2031
|
* Conversations Update
|
|
1908
2032
|
* @summary Conversations Update
|
|
@@ -1921,12 +2045,12 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1921
2045
|
* Messages Create
|
|
1922
2046
|
* @summary Messages Create
|
|
1923
2047
|
* @param {string} conversationId
|
|
1924
|
-
* @param {
|
|
2048
|
+
* @param {Messagecreate} messagecreate
|
|
1925
2049
|
* @param {*} [options] Override http request option.
|
|
1926
2050
|
* @throws {RequiredError}
|
|
1927
2051
|
*/
|
|
1928
|
-
async messagesCreate(conversationId,
|
|
1929
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId,
|
|
2052
|
+
async messagesCreate(conversationId, messagecreate, options) {
|
|
2053
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messagecreate, options);
|
|
1930
2054
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1931
2055
|
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.messagesCreate"]?.[localVarOperationServerIndex]?.url;
|
|
1932
2056
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1999,6 +2123,16 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
1999
2123
|
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2000
2124
|
return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
|
|
2001
2125
|
},
|
|
2126
|
+
/**
|
|
2127
|
+
*
|
|
2128
|
+
* @summary Conversations List Suggestions
|
|
2129
|
+
* @param {string} conversationId
|
|
2130
|
+
* @param {*} [options] Override http request option.
|
|
2131
|
+
* @throws {RequiredError}
|
|
2132
|
+
*/
|
|
2133
|
+
conversationsListSuggestions(conversationId, options) {
|
|
2134
|
+
return localVarFp.conversationsListSuggestions(conversationId, options).then((request) => request(axios, basePath));
|
|
2135
|
+
},
|
|
2002
2136
|
/**
|
|
2003
2137
|
* Conversations Update
|
|
2004
2138
|
* @summary Conversations Update
|
|
@@ -2014,12 +2148,12 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
2014
2148
|
* Messages Create
|
|
2015
2149
|
* @summary Messages Create
|
|
2016
2150
|
* @param {string} conversationId
|
|
2017
|
-
* @param {
|
|
2151
|
+
* @param {Messagecreate} messagecreate
|
|
2018
2152
|
* @param {*} [options] Override http request option.
|
|
2019
2153
|
* @throws {RequiredError}
|
|
2020
2154
|
*/
|
|
2021
|
-
messagesCreate(conversationId,
|
|
2022
|
-
return localVarFp.messagesCreate(conversationId,
|
|
2155
|
+
messagesCreate(conversationId, messagecreate, options) {
|
|
2156
|
+
return localVarFp.messagesCreate(conversationId, messagecreate, options).then((request) => request(axios, basePath));
|
|
2023
2157
|
},
|
|
2024
2158
|
/**
|
|
2025
2159
|
* Messages Get
|
|
@@ -2083,6 +2217,17 @@ var ConversationsApi = class extends BaseAPI {
|
|
|
2083
2217
|
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2084
2218
|
return ConversationsApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
|
|
2085
2219
|
}
|
|
2220
|
+
/**
|
|
2221
|
+
*
|
|
2222
|
+
* @summary Conversations List Suggestions
|
|
2223
|
+
* @param {string} conversationId
|
|
2224
|
+
* @param {*} [options] Override http request option.
|
|
2225
|
+
* @throws {RequiredError}
|
|
2226
|
+
* @memberof ConversationsApi
|
|
2227
|
+
*/
|
|
2228
|
+
conversationsListSuggestions(conversationId, options) {
|
|
2229
|
+
return ConversationsApiFp(this.configuration).conversationsListSuggestions(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
2230
|
+
}
|
|
2086
2231
|
/**
|
|
2087
2232
|
* Conversations Update
|
|
2088
2233
|
* @summary Conversations Update
|
|
@@ -2099,13 +2244,13 @@ var ConversationsApi = class extends BaseAPI {
|
|
|
2099
2244
|
* Messages Create
|
|
2100
2245
|
* @summary Messages Create
|
|
2101
2246
|
* @param {string} conversationId
|
|
2102
|
-
* @param {
|
|
2247
|
+
* @param {Messagecreate} messagecreate
|
|
2103
2248
|
* @param {*} [options] Override http request option.
|
|
2104
2249
|
* @throws {RequiredError}
|
|
2105
2250
|
* @memberof ConversationsApi
|
|
2106
2251
|
*/
|
|
2107
|
-
messagesCreate(conversationId,
|
|
2108
|
-
return ConversationsApiFp(this.configuration).messagesCreate(conversationId,
|
|
2252
|
+
messagesCreate(conversationId, messagecreate, options) {
|
|
2253
|
+
return ConversationsApiFp(this.configuration).messagesCreate(conversationId, messagecreate, options).then((request) => request(this.axios, this.basePath));
|
|
2109
2254
|
}
|
|
2110
2255
|
/**
|
|
2111
2256
|
* Messages Get
|
|
@@ -3059,146 +3204,6 @@ var ReservationsApi = class extends BaseAPI {
|
|
|
3059
3204
|
return ReservationsApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
3060
3205
|
}
|
|
3061
3206
|
};
|
|
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
3207
|
var UnboundApiAxiosParamCreator = function(configuration) {
|
|
3203
3208
|
return {
|
|
3204
3209
|
/**
|
|
@@ -3673,6 +3678,32 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3673
3678
|
options: localVarRequestOptions
|
|
3674
3679
|
};
|
|
3675
3680
|
},
|
|
3681
|
+
/**
|
|
3682
|
+
*
|
|
3683
|
+
* @summary Conversations List Suggestions
|
|
3684
|
+
* @param {string} conversationId
|
|
3685
|
+
* @param {*} [options] Override http request option.
|
|
3686
|
+
* @throws {RequiredError}
|
|
3687
|
+
*/
|
|
3688
|
+
conversationsListSuggestions: async (conversationId, options = {}) => {
|
|
3689
|
+
assertParamExists("conversationsListSuggestions", "conversationId", conversationId);
|
|
3690
|
+
const localVarPath = `/conversations/{conversationId}/suggestions`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
3691
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3692
|
+
let baseOptions;
|
|
3693
|
+
if (configuration) {
|
|
3694
|
+
baseOptions = configuration.baseOptions;
|
|
3695
|
+
}
|
|
3696
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3697
|
+
const localVarHeaderParameter = {};
|
|
3698
|
+
const localVarQueryParameter = {};
|
|
3699
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3700
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3701
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3702
|
+
return {
|
|
3703
|
+
url: toPathString(localVarUrlObj),
|
|
3704
|
+
options: localVarRequestOptions
|
|
3705
|
+
};
|
|
3706
|
+
},
|
|
3676
3707
|
/**
|
|
3677
3708
|
* Conversations Update
|
|
3678
3709
|
* @summary Conversations Update
|
|
@@ -3997,13 +4028,13 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3997
4028
|
* Messages Create
|
|
3998
4029
|
* @summary Messages Create
|
|
3999
4030
|
* @param {string} conversationId
|
|
4000
|
-
* @param {
|
|
4031
|
+
* @param {Messagecreate} messagecreate
|
|
4001
4032
|
* @param {*} [options] Override http request option.
|
|
4002
4033
|
* @throws {RequiredError}
|
|
4003
4034
|
*/
|
|
4004
|
-
messagesCreate: async (conversationId,
|
|
4035
|
+
messagesCreate: async (conversationId, messagecreate, options = {}) => {
|
|
4005
4036
|
assertParamExists("messagesCreate", "conversationId", conversationId);
|
|
4006
|
-
assertParamExists("messagesCreate", "
|
|
4037
|
+
assertParamExists("messagesCreate", "messagecreate", messagecreate);
|
|
4007
4038
|
const localVarPath = `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
4008
4039
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4009
4040
|
let baseOptions;
|
|
@@ -4017,7 +4048,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
4017
4048
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4018
4049
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4019
4050
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4020
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
4051
|
+
localVarRequestOptions.data = serializeDataIfNeeded(messagecreate, localVarRequestOptions, configuration);
|
|
4021
4052
|
return {
|
|
4022
4053
|
url: toPathString(localVarUrlObj),
|
|
4023
4054
|
options: localVarRequestOptions
|
|
@@ -4415,62 +4446,6 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
4415
4446
|
options: localVarRequestOptions
|
|
4416
4447
|
};
|
|
4417
4448
|
},
|
|
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
4449
|
/**
|
|
4475
4450
|
*
|
|
4476
4451
|
* @summary Unifiedwebhook
|
|
@@ -4720,6 +4695,19 @@ var UnboundApiFp = function(configuration) {
|
|
|
4720
4695
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
4721
4696
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4722
4697
|
},
|
|
4698
|
+
/**
|
|
4699
|
+
*
|
|
4700
|
+
* @summary Conversations List Suggestions
|
|
4701
|
+
* @param {string} conversationId
|
|
4702
|
+
* @param {*} [options] Override http request option.
|
|
4703
|
+
* @throws {RequiredError}
|
|
4704
|
+
*/
|
|
4705
|
+
async conversationsListSuggestions(conversationId, options) {
|
|
4706
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsListSuggestions(conversationId, options);
|
|
4707
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4708
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsListSuggestions"]?.[localVarOperationServerIndex]?.url;
|
|
4709
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4710
|
+
},
|
|
4723
4711
|
/**
|
|
4724
4712
|
* Conversations Update
|
|
4725
4713
|
* @summary Conversations Update
|
|
@@ -4873,12 +4861,12 @@ var UnboundApiFp = function(configuration) {
|
|
|
4873
4861
|
* Messages Create
|
|
4874
4862
|
* @summary Messages Create
|
|
4875
4863
|
* @param {string} conversationId
|
|
4876
|
-
* @param {
|
|
4864
|
+
* @param {Messagecreate} messagecreate
|
|
4877
4865
|
* @param {*} [options] Override http request option.
|
|
4878
4866
|
* @throws {RequiredError}
|
|
4879
4867
|
*/
|
|
4880
|
-
async messagesCreate(conversationId,
|
|
4881
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId,
|
|
4868
|
+
async messagesCreate(conversationId, messagecreate, options) {
|
|
4869
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messagecreate, options);
|
|
4882
4870
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4883
4871
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.messagesCreate"]?.[localVarOperationServerIndex]?.url;
|
|
4884
4872
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5057,32 +5045,6 @@ var UnboundApiFp = function(configuration) {
|
|
|
5057
5045
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.reservationsList"]?.[localVarOperationServerIndex]?.url;
|
|
5058
5046
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5059
5047
|
},
|
|
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
5048
|
/**
|
|
5087
5049
|
*
|
|
5088
5050
|
* @summary Unifiedwebhook
|
|
@@ -5271,6 +5233,16 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5271
5233
|
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
5272
5234
|
return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
|
|
5273
5235
|
},
|
|
5236
|
+
/**
|
|
5237
|
+
*
|
|
5238
|
+
* @summary Conversations List Suggestions
|
|
5239
|
+
* @param {string} conversationId
|
|
5240
|
+
* @param {*} [options] Override http request option.
|
|
5241
|
+
* @throws {RequiredError}
|
|
5242
|
+
*/
|
|
5243
|
+
conversationsListSuggestions(conversationId, options) {
|
|
5244
|
+
return localVarFp.conversationsListSuggestions(conversationId, options).then((request) => request(axios, basePath));
|
|
5245
|
+
},
|
|
5274
5246
|
/**
|
|
5275
5247
|
* Conversations Update
|
|
5276
5248
|
* @summary Conversations Update
|
|
@@ -5391,12 +5363,12 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5391
5363
|
* Messages Create
|
|
5392
5364
|
* @summary Messages Create
|
|
5393
5365
|
* @param {string} conversationId
|
|
5394
|
-
* @param {
|
|
5366
|
+
* @param {Messagecreate} messagecreate
|
|
5395
5367
|
* @param {*} [options] Override http request option.
|
|
5396
5368
|
* @throws {RequiredError}
|
|
5397
5369
|
*/
|
|
5398
|
-
messagesCreate(conversationId,
|
|
5399
|
-
return localVarFp.messagesCreate(conversationId,
|
|
5370
|
+
messagesCreate(conversationId, messagecreate, options) {
|
|
5371
|
+
return localVarFp.messagesCreate(conversationId, messagecreate, options).then((request) => request(axios, basePath));
|
|
5400
5372
|
},
|
|
5401
5373
|
/**
|
|
5402
5374
|
* Messages Get
|
|
@@ -5536,26 +5508,6 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5536
5508
|
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5537
5509
|
return localVarFp.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
5538
5510
|
},
|
|
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
5511
|
/**
|
|
5560
5512
|
*
|
|
5561
5513
|
* @summary Unifiedwebhook
|
|
@@ -5754,6 +5706,17 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5754
5706
|
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
5755
5707
|
return UnboundApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
|
|
5756
5708
|
}
|
|
5709
|
+
/**
|
|
5710
|
+
*
|
|
5711
|
+
* @summary Conversations List Suggestions
|
|
5712
|
+
* @param {string} conversationId
|
|
5713
|
+
* @param {*} [options] Override http request option.
|
|
5714
|
+
* @throws {RequiredError}
|
|
5715
|
+
* @memberof UnboundApi
|
|
5716
|
+
*/
|
|
5717
|
+
conversationsListSuggestions(conversationId, options) {
|
|
5718
|
+
return UnboundApiFp(this.configuration).conversationsListSuggestions(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
5719
|
+
}
|
|
5757
5720
|
/**
|
|
5758
5721
|
* Conversations Update
|
|
5759
5722
|
* @summary Conversations Update
|
|
@@ -5885,13 +5848,13 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5885
5848
|
* Messages Create
|
|
5886
5849
|
* @summary Messages Create
|
|
5887
5850
|
* @param {string} conversationId
|
|
5888
|
-
* @param {
|
|
5851
|
+
* @param {Messagecreate} messagecreate
|
|
5889
5852
|
* @param {*} [options] Override http request option.
|
|
5890
5853
|
* @throws {RequiredError}
|
|
5891
5854
|
* @memberof UnboundApi
|
|
5892
5855
|
*/
|
|
5893
|
-
messagesCreate(conversationId,
|
|
5894
|
-
return UnboundApiFp(this.configuration).messagesCreate(conversationId,
|
|
5856
|
+
messagesCreate(conversationId, messagecreate, options) {
|
|
5857
|
+
return UnboundApiFp(this.configuration).messagesCreate(conversationId, messagecreate, options).then((request) => request(this.axios, this.basePath));
|
|
5895
5858
|
}
|
|
5896
5859
|
/**
|
|
5897
5860
|
* Messages Get
|
|
@@ -6043,28 +6006,6 @@ var UnboundApi = class extends BaseAPI {
|
|
|
6043
6006
|
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
6044
6007
|
return UnboundApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
6045
6008
|
}
|
|
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
6009
|
/**
|
|
6069
6010
|
*
|
|
6070
6011
|
* @summary Unifiedwebhook
|
|
@@ -6077,77 +6018,6 @@ var UnboundApi = class extends BaseAPI {
|
|
|
6077
6018
|
return UnboundApiFp(this.configuration).webhook(hostawayWebhook, options).then((request) => request(this.axios, this.basePath));
|
|
6078
6019
|
}
|
|
6079
6020
|
};
|
|
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
6021
|
|
|
6152
6022
|
// src/configuration.ts
|
|
6153
6023
|
var Configuration = class {
|
|
@@ -6242,6 +6112,10 @@ export {
|
|
|
6242
6112
|
AccountsApiAxiosParamCreator,
|
|
6243
6113
|
AccountsApiFactory,
|
|
6244
6114
|
AccountsApiFp,
|
|
6115
|
+
AuthApi,
|
|
6116
|
+
AuthApiAxiosParamCreator,
|
|
6117
|
+
AuthApiFactory,
|
|
6118
|
+
AuthApiFp,
|
|
6245
6119
|
BotApiParticipantTypeEnum,
|
|
6246
6120
|
Configuration,
|
|
6247
6121
|
ContactListingType,
|
|
@@ -6292,6 +6166,7 @@ export {
|
|
|
6292
6166
|
ProvidersApiAxiosParamCreator,
|
|
6293
6167
|
ProvidersApiFactory,
|
|
6294
6168
|
ProvidersApiFp,
|
|
6169
|
+
ReasonType,
|
|
6295
6170
|
RentalProviderMessageApiMessageTypeEnum,
|
|
6296
6171
|
RentalProviderTypes,
|
|
6297
6172
|
ReservationChannelTypes,
|
|
@@ -6309,10 +6184,7 @@ export {
|
|
|
6309
6184
|
SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy,
|
|
6310
6185
|
SrcResourceModelsReservationsModelReservationBaseModelSortBy,
|
|
6311
6186
|
StaffApiParticipantTypeEnum,
|
|
6312
|
-
|
|
6313
|
-
SuggestedRepliesApiAxiosParamCreator,
|
|
6314
|
-
SuggestedRepliesApiFactory,
|
|
6315
|
-
SuggestedRepliesApiFp,
|
|
6187
|
+
SuggestionReason,
|
|
6316
6188
|
TwilioConversationDataApiConversationTypeEnum,
|
|
6317
6189
|
TwilioInboundSenderTypeDataApiDirectionEnum,
|
|
6318
6190
|
TwilioOutboundSenderTypeDataApiDirectionEnum,
|
|
@@ -6320,10 +6192,6 @@ export {
|
|
|
6320
6192
|
UnboundApi,
|
|
6321
6193
|
UnboundApiAxiosParamCreator,
|
|
6322
6194
|
UnboundApiFactory,
|
|
6323
|
-
UnboundApiFp
|
|
6324
|
-
UsersApi,
|
|
6325
|
-
UsersApiAxiosParamCreator,
|
|
6326
|
-
UsersApiFactory,
|
|
6327
|
-
UsersApiFp
|
|
6195
|
+
UnboundApiFp
|
|
6328
6196
|
};
|
|
6329
6197
|
//# sourceMappingURL=index.mjs.map
|