@ember-home/unbound-ts-client 0.0.83 → 0.0.85

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.mjs CHANGED
@@ -219,11 +219,6 @@ var SuggestionStatus = {
219
219
  AnsweredByStaff: "ANSWERED_BY_STAFF",
220
220
  ReplyGenerated: "REPLY_GENERATED"
221
221
  };
222
- var SuggestionUsedType = {
223
- Accepted: "ACCEPTED",
224
- Modified: "MODIFIED",
225
- Rejected: "REJECTED"
226
- };
227
222
  var TwilioConversationDataApiConversationTypeEnum = {
228
223
  Text: "TEXT"
229
224
  };
@@ -236,6 +231,15 @@ var TwilioOutboundSenderTypeDataApiDirectionEnum = {
236
231
  var TwilioProviderMessageApiMessageTypeEnum = {
237
232
  Text: "TEXT"
238
233
  };
234
+ var UserDeviceOs = {
235
+ Android: "ANDROID",
236
+ Ios: "IOS"
237
+ };
238
+ var UserDeviceType = {
239
+ Mobile: "MOBILE",
240
+ Tablet: "TABLET",
241
+ Desktop: "DESKTOP"
242
+ };
239
243
  var AccountsApiAxiosParamCreator = function(configuration) {
240
244
  return {
241
245
  /**
@@ -1802,32 +1806,6 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
1802
1806
  options: localVarRequestOptions
1803
1807
  };
1804
1808
  },
1805
- /**
1806
- *
1807
- * @summary Conversations List Suggestions
1808
- * @param {string} conversationId
1809
- * @param {*} [options] Override http request option.
1810
- * @throws {RequiredError}
1811
- */
1812
- conversationsListSuggestions: async (conversationId, options = {}) => {
1813
- assertParamExists("conversationsListSuggestions", "conversationId", conversationId);
1814
- const localVarPath = `/conversations/{conversationId}/suggestions`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
1815
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1816
- let baseOptions;
1817
- if (configuration) {
1818
- baseOptions = configuration.baseOptions;
1819
- }
1820
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1821
- const localVarHeaderParameter = {};
1822
- const localVarQueryParameter = {};
1823
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1824
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1825
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1826
- return {
1827
- url: toPathString(localVarUrlObj),
1828
- options: localVarRequestOptions
1829
- };
1830
- },
1831
1809
  /**
1832
1810
  * Conversations Update
1833
1811
  * @summary Conversations Update
@@ -2020,19 +1998,6 @@ var ConversationsApiFp = function(configuration) {
2020
1998
  const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
2021
1999
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2022
2000
  },
2023
- /**
2024
- *
2025
- * @summary Conversations List Suggestions
2026
- * @param {string} conversationId
2027
- * @param {*} [options] Override http request option.
2028
- * @throws {RequiredError}
2029
- */
2030
- async conversationsListSuggestions(conversationId, options) {
2031
- const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsListSuggestions(conversationId, options);
2032
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2033
- const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsListSuggestions"]?.[localVarOperationServerIndex]?.url;
2034
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2035
- },
2036
2001
  /**
2037
2002
  * Conversations Update
2038
2003
  * @summary Conversations Update
@@ -2129,16 +2094,6 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
2129
2094
  conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
2130
2095
  return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
2131
2096
  },
2132
- /**
2133
- *
2134
- * @summary Conversations List Suggestions
2135
- * @param {string} conversationId
2136
- * @param {*} [options] Override http request option.
2137
- * @throws {RequiredError}
2138
- */
2139
- conversationsListSuggestions(conversationId, options) {
2140
- return localVarFp.conversationsListSuggestions(conversationId, options).then((request) => request(axios, basePath));
2141
- },
2142
2097
  /**
2143
2098
  * Conversations Update
2144
2099
  * @summary Conversations Update
@@ -2223,17 +2178,6 @@ var ConversationsApi = class extends BaseAPI {
2223
2178
  conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
2224
2179
  return ConversationsApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
2225
2180
  }
2226
- /**
2227
- *
2228
- * @summary Conversations List Suggestions
2229
- * @param {string} conversationId
2230
- * @param {*} [options] Override http request option.
2231
- * @throws {RequiredError}
2232
- * @memberof ConversationsApi
2233
- */
2234
- conversationsListSuggestions(conversationId, options) {
2235
- return ConversationsApiFp(this.configuration).conversationsListSuggestions(conversationId, options).then((request) => request(this.axios, this.basePath));
2236
- }
2237
2181
  /**
2238
2182
  * Conversations Update
2239
2183
  * @summary Conversations Update
@@ -2296,12 +2240,12 @@ var HostawayApiAxiosParamCreator = function(configuration) {
2296
2240
  /**
2297
2241
  *
2298
2242
  * @summary Unifiedwebhook
2299
- * @param {HostawayWebhook} hostawayWebhook
2243
+ * @param {object} body
2300
2244
  * @param {*} [options] Override http request option.
2301
2245
  * @throws {RequiredError}
2302
2246
  */
2303
- webhook: async (hostawayWebhook, options = {}) => {
2304
- assertParamExists("webhook", "hostawayWebhook", hostawayWebhook);
2247
+ webhook: async (body, options = {}) => {
2248
+ assertParamExists("webhook", "body", body);
2305
2249
  const localVarPath = `/hostaway-unified-webhooks`;
2306
2250
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2307
2251
  let baseOptions;
@@ -2316,7 +2260,7 @@ var HostawayApiAxiosParamCreator = function(configuration) {
2316
2260
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2317
2261
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2318
2262
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2319
- localVarRequestOptions.data = serializeDataIfNeeded(hostawayWebhook, localVarRequestOptions, configuration);
2263
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
2320
2264
  return {
2321
2265
  url: toPathString(localVarUrlObj),
2322
2266
  options: localVarRequestOptions
@@ -2330,12 +2274,12 @@ var HostawayApiFp = function(configuration) {
2330
2274
  /**
2331
2275
  *
2332
2276
  * @summary Unifiedwebhook
2333
- * @param {HostawayWebhook} hostawayWebhook
2277
+ * @param {object} body
2334
2278
  * @param {*} [options] Override http request option.
2335
2279
  * @throws {RequiredError}
2336
2280
  */
2337
- async webhook(hostawayWebhook, options) {
2338
- const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
2281
+ async webhook(body, options) {
2282
+ const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(body, options);
2339
2283
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2340
2284
  const localVarOperationServerBasePath = operationServerMap["HostawayApi.webhook"]?.[localVarOperationServerIndex]?.url;
2341
2285
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2348,12 +2292,12 @@ var HostawayApiFactory = function(configuration, basePath, axios) {
2348
2292
  /**
2349
2293
  *
2350
2294
  * @summary Unifiedwebhook
2351
- * @param {HostawayWebhook} hostawayWebhook
2295
+ * @param {object} body
2352
2296
  * @param {*} [options] Override http request option.
2353
2297
  * @throws {RequiredError}
2354
2298
  */
2355
- webhook(hostawayWebhook, options) {
2356
- return localVarFp.webhook(hostawayWebhook, options).then((request) => request(axios, basePath));
2299
+ webhook(body, options) {
2300
+ return localVarFp.webhook(body, options).then((request) => request(axios, basePath));
2357
2301
  }
2358
2302
  };
2359
2303
  };
@@ -2361,13 +2305,13 @@ var HostawayApi = class extends BaseAPI {
2361
2305
  /**
2362
2306
  *
2363
2307
  * @summary Unifiedwebhook
2364
- * @param {HostawayWebhook} hostawayWebhook
2308
+ * @param {object} body
2365
2309
  * @param {*} [options] Override http request option.
2366
2310
  * @throws {RequiredError}
2367
2311
  * @memberof HostawayApi
2368
2312
  */
2369
- webhook(hostawayWebhook, options) {
2370
- return HostawayApiFp(this.configuration).webhook(hostawayWebhook, options).then((request) => request(this.axios, this.basePath));
2313
+ webhook(body, options) {
2314
+ return HostawayApiFp(this.configuration).webhook(body, options).then((request) => request(this.axios, this.basePath));
2371
2315
  }
2372
2316
  };
2373
2317
  var InboxesApiAxiosParamCreator = function(configuration) {
@@ -3684,32 +3628,6 @@ var UnboundApiAxiosParamCreator = function(configuration) {
3684
3628
  options: localVarRequestOptions
3685
3629
  };
3686
3630
  },
3687
- /**
3688
- *
3689
- * @summary Conversations List Suggestions
3690
- * @param {string} conversationId
3691
- * @param {*} [options] Override http request option.
3692
- * @throws {RequiredError}
3693
- */
3694
- conversationsListSuggestions: async (conversationId, options = {}) => {
3695
- assertParamExists("conversationsListSuggestions", "conversationId", conversationId);
3696
- const localVarPath = `/conversations/{conversationId}/suggestions`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
3697
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3698
- let baseOptions;
3699
- if (configuration) {
3700
- baseOptions = configuration.baseOptions;
3701
- }
3702
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3703
- const localVarHeaderParameter = {};
3704
- const localVarQueryParameter = {};
3705
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3706
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3707
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3708
- return {
3709
- url: toPathString(localVarUrlObj),
3710
- options: localVarRequestOptions
3711
- };
3712
- },
3713
3631
  /**
3714
3632
  * Conversations Update
3715
3633
  * @summary Conversations Update
@@ -4452,15 +4370,43 @@ var UnboundApiAxiosParamCreator = function(configuration) {
4452
4370
  options: localVarRequestOptions
4453
4371
  };
4454
4372
  },
4373
+ /**
4374
+ * UserDevices Create
4375
+ * @summary UserDevices Create
4376
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
4377
+ * @param {*} [options] Override http request option.
4378
+ * @throws {RequiredError}
4379
+ */
4380
+ userDevicesCreate: async (aPIUserDeviceCreate, options = {}) => {
4381
+ assertParamExists("userDevicesCreate", "aPIUserDeviceCreate", aPIUserDeviceCreate);
4382
+ const localVarPath = `/userDevices`;
4383
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4384
+ let baseOptions;
4385
+ if (configuration) {
4386
+ baseOptions = configuration.baseOptions;
4387
+ }
4388
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
4389
+ const localVarHeaderParameter = {};
4390
+ const localVarQueryParameter = {};
4391
+ localVarHeaderParameter["Content-Type"] = "application/json";
4392
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4393
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4394
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4395
+ localVarRequestOptions.data = serializeDataIfNeeded(aPIUserDeviceCreate, localVarRequestOptions, configuration);
4396
+ return {
4397
+ url: toPathString(localVarUrlObj),
4398
+ options: localVarRequestOptions
4399
+ };
4400
+ },
4455
4401
  /**
4456
4402
  *
4457
4403
  * @summary Unifiedwebhook
4458
- * @param {HostawayWebhook} hostawayWebhook
4404
+ * @param {object} body
4459
4405
  * @param {*} [options] Override http request option.
4460
4406
  * @throws {RequiredError}
4461
4407
  */
4462
- webhook: async (hostawayWebhook, options = {}) => {
4463
- assertParamExists("webhook", "hostawayWebhook", hostawayWebhook);
4408
+ webhook: async (body, options = {}) => {
4409
+ assertParamExists("webhook", "body", body);
4464
4410
  const localVarPath = `/hostaway-unified-webhooks`;
4465
4411
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4466
4412
  let baseOptions;
@@ -4475,7 +4421,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
4475
4421
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4476
4422
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4477
4423
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4478
- localVarRequestOptions.data = serializeDataIfNeeded(hostawayWebhook, localVarRequestOptions, configuration);
4424
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
4479
4425
  return {
4480
4426
  url: toPathString(localVarUrlObj),
4481
4427
  options: localVarRequestOptions
@@ -4701,19 +4647,6 @@ var UnboundApiFp = function(configuration) {
4701
4647
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
4702
4648
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4703
4649
  },
4704
- /**
4705
- *
4706
- * @summary Conversations List Suggestions
4707
- * @param {string} conversationId
4708
- * @param {*} [options] Override http request option.
4709
- * @throws {RequiredError}
4710
- */
4711
- async conversationsListSuggestions(conversationId, options) {
4712
- const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsListSuggestions(conversationId, options);
4713
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4714
- const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsListSuggestions"]?.[localVarOperationServerIndex]?.url;
4715
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4716
- },
4717
4650
  /**
4718
4651
  * Conversations Update
4719
4652
  * @summary Conversations Update
@@ -5051,15 +4984,28 @@ var UnboundApiFp = function(configuration) {
5051
4984
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.reservationsList"]?.[localVarOperationServerIndex]?.url;
5052
4985
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5053
4986
  },
4987
+ /**
4988
+ * UserDevices Create
4989
+ * @summary UserDevices Create
4990
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
4991
+ * @param {*} [options] Override http request option.
4992
+ * @throws {RequiredError}
4993
+ */
4994
+ async userDevicesCreate(aPIUserDeviceCreate, options) {
4995
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userDevicesCreate(aPIUserDeviceCreate, options);
4996
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4997
+ const localVarOperationServerBasePath = operationServerMap["UnboundApi.userDevicesCreate"]?.[localVarOperationServerIndex]?.url;
4998
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4999
+ },
5054
5000
  /**
5055
5001
  *
5056
5002
  * @summary Unifiedwebhook
5057
- * @param {HostawayWebhook} hostawayWebhook
5003
+ * @param {object} body
5058
5004
  * @param {*} [options] Override http request option.
5059
5005
  * @throws {RequiredError}
5060
5006
  */
5061
- async webhook(hostawayWebhook, options) {
5062
- const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
5007
+ async webhook(body, options) {
5008
+ const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(body, options);
5063
5009
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5064
5010
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.webhook"]?.[localVarOperationServerIndex]?.url;
5065
5011
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5239,16 +5185,6 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
5239
5185
  conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
5240
5186
  return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
5241
5187
  },
5242
- /**
5243
- *
5244
- * @summary Conversations List Suggestions
5245
- * @param {string} conversationId
5246
- * @param {*} [options] Override http request option.
5247
- * @throws {RequiredError}
5248
- */
5249
- conversationsListSuggestions(conversationId, options) {
5250
- return localVarFp.conversationsListSuggestions(conversationId, options).then((request) => request(axios, basePath));
5251
- },
5252
5188
  /**
5253
5189
  * Conversations Update
5254
5190
  * @summary Conversations Update
@@ -5514,15 +5450,25 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
5514
5450
  reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
5515
5451
  return localVarFp.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
5516
5452
  },
5453
+ /**
5454
+ * UserDevices Create
5455
+ * @summary UserDevices Create
5456
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
5457
+ * @param {*} [options] Override http request option.
5458
+ * @throws {RequiredError}
5459
+ */
5460
+ userDevicesCreate(aPIUserDeviceCreate, options) {
5461
+ return localVarFp.userDevicesCreate(aPIUserDeviceCreate, options).then((request) => request(axios, basePath));
5462
+ },
5517
5463
  /**
5518
5464
  *
5519
5465
  * @summary Unifiedwebhook
5520
- * @param {HostawayWebhook} hostawayWebhook
5466
+ * @param {object} body
5521
5467
  * @param {*} [options] Override http request option.
5522
5468
  * @throws {RequiredError}
5523
5469
  */
5524
- webhook(hostawayWebhook, options) {
5525
- return localVarFp.webhook(hostawayWebhook, options).then((request) => request(axios, basePath));
5470
+ webhook(body, options) {
5471
+ return localVarFp.webhook(body, options).then((request) => request(axios, basePath));
5526
5472
  }
5527
5473
  };
5528
5474
  };
@@ -5712,17 +5658,6 @@ var UnboundApi = class extends BaseAPI {
5712
5658
  conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
5713
5659
  return UnboundApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
5714
5660
  }
5715
- /**
5716
- *
5717
- * @summary Conversations List Suggestions
5718
- * @param {string} conversationId
5719
- * @param {*} [options] Override http request option.
5720
- * @throws {RequiredError}
5721
- * @memberof UnboundApi
5722
- */
5723
- conversationsListSuggestions(conversationId, options) {
5724
- return UnboundApiFp(this.configuration).conversationsListSuggestions(conversationId, options).then((request) => request(this.axios, this.basePath));
5725
- }
5726
5661
  /**
5727
5662
  * Conversations Update
5728
5663
  * @summary Conversations Update
@@ -6012,16 +5947,105 @@ var UnboundApi = class extends BaseAPI {
6012
5947
  reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
6013
5948
  return UnboundApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
6014
5949
  }
5950
+ /**
5951
+ * UserDevices Create
5952
+ * @summary UserDevices Create
5953
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
5954
+ * @param {*} [options] Override http request option.
5955
+ * @throws {RequiredError}
5956
+ * @memberof UnboundApi
5957
+ */
5958
+ userDevicesCreate(aPIUserDeviceCreate, options) {
5959
+ return UnboundApiFp(this.configuration).userDevicesCreate(aPIUserDeviceCreate, options).then((request) => request(this.axios, this.basePath));
5960
+ }
6015
5961
  /**
6016
5962
  *
6017
5963
  * @summary Unifiedwebhook
6018
- * @param {HostawayWebhook} hostawayWebhook
5964
+ * @param {object} body
6019
5965
  * @param {*} [options] Override http request option.
6020
5966
  * @throws {RequiredError}
6021
5967
  * @memberof UnboundApi
6022
5968
  */
6023
- webhook(hostawayWebhook, options) {
6024
- return UnboundApiFp(this.configuration).webhook(hostawayWebhook, options).then((request) => request(this.axios, this.basePath));
5969
+ webhook(body, options) {
5970
+ return UnboundApiFp(this.configuration).webhook(body, options).then((request) => request(this.axios, this.basePath));
5971
+ }
5972
+ };
5973
+ var UserDevicesApiAxiosParamCreator = function(configuration) {
5974
+ return {
5975
+ /**
5976
+ * UserDevices Create
5977
+ * @summary UserDevices Create
5978
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
5979
+ * @param {*} [options] Override http request option.
5980
+ * @throws {RequiredError}
5981
+ */
5982
+ userDevicesCreate: async (aPIUserDeviceCreate, options = {}) => {
5983
+ assertParamExists("userDevicesCreate", "aPIUserDeviceCreate", aPIUserDeviceCreate);
5984
+ const localVarPath = `/userDevices`;
5985
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5986
+ let baseOptions;
5987
+ if (configuration) {
5988
+ baseOptions = configuration.baseOptions;
5989
+ }
5990
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
5991
+ const localVarHeaderParameter = {};
5992
+ const localVarQueryParameter = {};
5993
+ localVarHeaderParameter["Content-Type"] = "application/json";
5994
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5995
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5996
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5997
+ localVarRequestOptions.data = serializeDataIfNeeded(aPIUserDeviceCreate, localVarRequestOptions, configuration);
5998
+ return {
5999
+ url: toPathString(localVarUrlObj),
6000
+ options: localVarRequestOptions
6001
+ };
6002
+ }
6003
+ };
6004
+ };
6005
+ var UserDevicesApiFp = function(configuration) {
6006
+ const localVarAxiosParamCreator = UserDevicesApiAxiosParamCreator(configuration);
6007
+ return {
6008
+ /**
6009
+ * UserDevices Create
6010
+ * @summary UserDevices Create
6011
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
6012
+ * @param {*} [options] Override http request option.
6013
+ * @throws {RequiredError}
6014
+ */
6015
+ async userDevicesCreate(aPIUserDeviceCreate, options) {
6016
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userDevicesCreate(aPIUserDeviceCreate, options);
6017
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6018
+ const localVarOperationServerBasePath = operationServerMap["UserDevicesApi.userDevicesCreate"]?.[localVarOperationServerIndex]?.url;
6019
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6020
+ }
6021
+ };
6022
+ };
6023
+ var UserDevicesApiFactory = function(configuration, basePath, axios) {
6024
+ const localVarFp = UserDevicesApiFp(configuration);
6025
+ return {
6026
+ /**
6027
+ * UserDevices Create
6028
+ * @summary UserDevices Create
6029
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
6030
+ * @param {*} [options] Override http request option.
6031
+ * @throws {RequiredError}
6032
+ */
6033
+ userDevicesCreate(aPIUserDeviceCreate, options) {
6034
+ return localVarFp.userDevicesCreate(aPIUserDeviceCreate, options).then((request) => request(axios, basePath));
6035
+ }
6036
+ };
6037
+ };
6038
+ var UserDevicesApi = class extends BaseAPI {
6039
+ /**
6040
+ * UserDevices Create
6041
+ * @summary UserDevices Create
6042
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
6043
+ * @param {*} [options] Override http request option.
6044
+ * @throws {RequiredError}
6045
+ * @memberof UserDevicesApi
6046
+ */
6047
+ userDevicesCreate(aPIUserDeviceCreate, options) {
6048
+ return UserDevicesApiFp(this.configuration).userDevicesCreate(aPIUserDeviceCreate, options).then((request) => request(this.axios, this.basePath));
6025
6049
  }
6026
6050
  };
6027
6051
 
@@ -6191,7 +6215,6 @@ export {
6191
6215
  SrcResourceModelsReservationsModelReservationBaseModelSortBy,
6192
6216
  StaffApiParticipantTypeEnum,
6193
6217
  SuggestionStatus,
6194
- SuggestionUsedType,
6195
6218
  TwilioConversationDataApiConversationTypeEnum,
6196
6219
  TwilioInboundSenderTypeDataApiDirectionEnum,
6197
6220
  TwilioOutboundSenderTypeDataApiDirectionEnum,
@@ -6199,6 +6222,12 @@ export {
6199
6222
  UnboundApi,
6200
6223
  UnboundApiAxiosParamCreator,
6201
6224
  UnboundApiFactory,
6202
- UnboundApiFp
6225
+ UnboundApiFp,
6226
+ UserDeviceOs,
6227
+ UserDeviceType,
6228
+ UserDevicesApi,
6229
+ UserDevicesApiAxiosParamCreator,
6230
+ UserDevicesApiFactory,
6231
+ UserDevicesApiFp
6203
6232
  };
6204
6233
  //# sourceMappingURL=index.mjs.map