@closerplatform/spinner-openapi 0.12.629 → 0.12.631

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.
Files changed (3) hide show
  1. package/dist/api.d.ts +176 -170
  2. package/dist/api.js +362 -362
  3. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -2058,17 +2058,12 @@ const BotsApiFetchParamCreator = function (configuration) {
2058
2058
  },
2059
2059
  /**
2060
2060
  *
2061
- * @summary create lekta config
2062
- * @param {LektaConfigForm} body
2061
+ * @summary create bot avatar handle
2063
2062
  * @param {*} [options] Override http request option.
2064
2063
  * @throws {RequiredError}
2065
2064
  */
2066
- createLektaConfig(body, options = {}) {
2067
- // verify required parameter 'body' is not null or undefined
2068
- if (body === null || body === undefined) {
2069
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling createLektaConfig.');
2070
- }
2071
- const localVarPath = `/bots/lekta`;
2065
+ createBotAvatarHandle(options = {}) {
2066
+ const localVarPath = `/bots/avatar`;
2072
2067
  const localVarUrlObj = url.parse(localVarPath, true);
2073
2068
  const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
2074
2069
  const localVarHeaderParameter = {};
@@ -2080,13 +2075,10 @@ const BotsApiFetchParamCreator = function (configuration) {
2080
2075
  : configuration.apiKey;
2081
2076
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
2082
2077
  }
2083
- localVarHeaderParameter['Content-Type'] = 'application/json';
2084
2078
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
2085
2079
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
2086
2080
  delete localVarUrlObj.search;
2087
2081
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
2088
- const needsSerialization = ("LektaConfigForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
2089
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
2090
2082
  return {
2091
2083
  url: url.format(localVarUrlObj),
2092
2084
  options: localVarRequestOptions,
@@ -2094,19 +2086,19 @@ const BotsApiFetchParamCreator = function (configuration) {
2094
2086
  },
2095
2087
  /**
2096
2088
  *
2097
- * @summary delete bot avatar
2098
- * @param {ChangeBotTypeForm} body
2089
+ * @summary create lekta config
2090
+ * @param {LektaConfigForm} body
2099
2091
  * @param {*} [options] Override http request option.
2100
2092
  * @throws {RequiredError}
2101
2093
  */
2102
- deleteBotAvatar(body, options = {}) {
2094
+ createLektaConfig(body, options = {}) {
2103
2095
  // verify required parameter 'body' is not null or undefined
2104
2096
  if (body === null || body === undefined) {
2105
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling deleteBotAvatar.');
2097
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling createLektaConfig.');
2106
2098
  }
2107
- const localVarPath = `/bots/avatar`;
2099
+ const localVarPath = `/bots/lekta`;
2108
2100
  const localVarUrlObj = url.parse(localVarPath, true);
2109
- const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
2101
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
2110
2102
  const localVarHeaderParameter = {};
2111
2103
  const localVarQueryParameter = {};
2112
2104
  // authentication apiKey required
@@ -2121,7 +2113,7 @@ const BotsApiFetchParamCreator = function (configuration) {
2121
2113
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
2122
2114
  delete localVarUrlObj.search;
2123
2115
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
2124
- const needsSerialization = ("ChangeBotTypeForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
2116
+ const needsSerialization = ("LektaConfigForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
2125
2117
  localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
2126
2118
  return {
2127
2119
  url: url.format(localVarUrlObj),
@@ -2130,14 +2122,19 @@ const BotsApiFetchParamCreator = function (configuration) {
2130
2122
  },
2131
2123
  /**
2132
2124
  *
2133
- * @summary get bot avatar upload url
2125
+ * @summary delete bot avatar
2126
+ * @param {ChangeBotTypeForm} body
2134
2127
  * @param {*} [options] Override http request option.
2135
2128
  * @throws {RequiredError}
2136
2129
  */
2137
- getBotAvatarUploadUrl(options = {}) {
2130
+ deleteBotAvatar(body, options = {}) {
2131
+ // verify required parameter 'body' is not null or undefined
2132
+ if (body === null || body === undefined) {
2133
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling deleteBotAvatar.');
2134
+ }
2138
2135
  const localVarPath = `/bots/avatar`;
2139
2136
  const localVarUrlObj = url.parse(localVarPath, true);
2140
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
2137
+ const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
2141
2138
  const localVarHeaderParameter = {};
2142
2139
  const localVarQueryParameter = {};
2143
2140
  // authentication apiKey required
@@ -2147,10 +2144,13 @@ const BotsApiFetchParamCreator = function (configuration) {
2147
2144
  : configuration.apiKey;
2148
2145
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
2149
2146
  }
2147
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2150
2148
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
2151
2149
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
2152
2150
  delete localVarUrlObj.search;
2153
2151
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
2152
+ const needsSerialization = ("ChangeBotTypeForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
2153
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
2154
2154
  return {
2155
2155
  url: url.format(localVarUrlObj),
2156
2156
  options: localVarRequestOptions,
@@ -2378,13 +2378,12 @@ const BotsApiFp = function (configuration) {
2378
2378
  },
2379
2379
  /**
2380
2380
  *
2381
- * @summary create lekta config
2382
- * @param {LektaConfigForm} body
2381
+ * @summary create bot avatar handle
2383
2382
  * @param {*} [options] Override http request option.
2384
2383
  * @throws {RequiredError}
2385
2384
  */
2386
- createLektaConfig(body, options) {
2387
- const localVarFetchArgs = (0, exports.BotsApiFetchParamCreator)(configuration).createLektaConfig(body, options);
2385
+ createBotAvatarHandle(options) {
2386
+ const localVarFetchArgs = (0, exports.BotsApiFetchParamCreator)(configuration).createBotAvatarHandle(options);
2388
2387
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
2389
2388
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
2390
2389
  if (response.status >= 200 && response.status < 300) {
@@ -2398,17 +2397,17 @@ const BotsApiFp = function (configuration) {
2398
2397
  },
2399
2398
  /**
2400
2399
  *
2401
- * @summary delete bot avatar
2402
- * @param {ChangeBotTypeForm} body
2400
+ * @summary create lekta config
2401
+ * @param {LektaConfigForm} body
2403
2402
  * @param {*} [options] Override http request option.
2404
2403
  * @throws {RequiredError}
2405
2404
  */
2406
- deleteBotAvatar(body, options) {
2407
- const localVarFetchArgs = (0, exports.BotsApiFetchParamCreator)(configuration).deleteBotAvatar(body, options);
2405
+ createLektaConfig(body, options) {
2406
+ const localVarFetchArgs = (0, exports.BotsApiFetchParamCreator)(configuration).createLektaConfig(body, options);
2408
2407
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
2409
2408
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
2410
2409
  if (response.status >= 200 && response.status < 300) {
2411
- return response;
2410
+ return response.json();
2412
2411
  }
2413
2412
  else {
2414
2413
  throw response;
@@ -2418,16 +2417,17 @@ const BotsApiFp = function (configuration) {
2418
2417
  },
2419
2418
  /**
2420
2419
  *
2421
- * @summary get bot avatar upload url
2420
+ * @summary delete bot avatar
2421
+ * @param {ChangeBotTypeForm} body
2422
2422
  * @param {*} [options] Override http request option.
2423
2423
  * @throws {RequiredError}
2424
2424
  */
2425
- getBotAvatarUploadUrl(options) {
2426
- const localVarFetchArgs = (0, exports.BotsApiFetchParamCreator)(configuration).getBotAvatarUploadUrl(options);
2425
+ deleteBotAvatar(body, options) {
2426
+ const localVarFetchArgs = (0, exports.BotsApiFetchParamCreator)(configuration).deleteBotAvatar(body, options);
2427
2427
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
2428
2428
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
2429
2429
  if (response.status >= 200 && response.status < 300) {
2430
- return response.json();
2430
+ return response;
2431
2431
  }
2432
2432
  else {
2433
2433
  throw response;
@@ -2572,6 +2572,15 @@ const BotsApiFactory = function (configuration, fetch, basePath) {
2572
2572
  changeBotType(body, options) {
2573
2573
  return (0, exports.BotsApiFp)(configuration).changeBotType(body, options)(fetch, basePath);
2574
2574
  },
2575
+ /**
2576
+ *
2577
+ * @summary create bot avatar handle
2578
+ * @param {*} [options] Override http request option.
2579
+ * @throws {RequiredError}
2580
+ */
2581
+ createBotAvatarHandle(options) {
2582
+ return (0, exports.BotsApiFp)(configuration).createBotAvatarHandle(options)(fetch, basePath);
2583
+ },
2575
2584
  /**
2576
2585
  *
2577
2586
  * @summary create lekta config
@@ -2592,15 +2601,6 @@ const BotsApiFactory = function (configuration, fetch, basePath) {
2592
2601
  deleteBotAvatar(body, options) {
2593
2602
  return (0, exports.BotsApiFp)(configuration).deleteBotAvatar(body, options)(fetch, basePath);
2594
2603
  },
2595
- /**
2596
- *
2597
- * @summary get bot avatar upload url
2598
- * @param {*} [options] Override http request option.
2599
- * @throws {RequiredError}
2600
- */
2601
- getBotAvatarUploadUrl(options) {
2602
- return (0, exports.BotsApiFp)(configuration).getBotAvatarUploadUrl(options)(fetch, basePath);
2603
- },
2604
2604
  /**
2605
2605
  *
2606
2606
  * @summary get bot info
@@ -2680,6 +2680,16 @@ class BotsApi extends BaseAPI {
2680
2680
  changeBotType(body, options) {
2681
2681
  return (0, exports.BotsApiFp)(this.configuration).changeBotType(body, options)(this.fetch, this.basePath);
2682
2682
  }
2683
+ /**
2684
+ *
2685
+ * @summary create bot avatar handle
2686
+ * @param {*} [options] Override http request option.
2687
+ * @throws {RequiredError}
2688
+ * @memberof BotsApi
2689
+ */
2690
+ createBotAvatarHandle(options) {
2691
+ return (0, exports.BotsApiFp)(this.configuration).createBotAvatarHandle(options)(this.fetch, this.basePath);
2692
+ }
2683
2693
  /**
2684
2694
  *
2685
2695
  * @summary create lekta config
@@ -2702,16 +2712,6 @@ class BotsApi extends BaseAPI {
2702
2712
  deleteBotAvatar(body, options) {
2703
2713
  return (0, exports.BotsApiFp)(this.configuration).deleteBotAvatar(body, options)(this.fetch, this.basePath);
2704
2714
  }
2705
- /**
2706
- *
2707
- * @summary get bot avatar upload url
2708
- * @param {*} [options] Override http request option.
2709
- * @throws {RequiredError}
2710
- * @memberof BotsApi
2711
- */
2712
- getBotAvatarUploadUrl(options) {
2713
- return (0, exports.BotsApiFp)(this.configuration).getBotAvatarUploadUrl(options)(this.fetch, this.basePath);
2714
- }
2715
2715
  /**
2716
2716
  *
2717
2717
  * @summary get bot info
@@ -5028,16 +5028,16 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
5028
5028
  },
5029
5029
  /**
5030
5030
  *
5031
- * @summary Create knowledge base's file
5031
+ * @summary Create knowledge base's handle
5032
5032
  * @param {string} id
5033
5033
  * @param {KnowledgeBaseFileCreateForm} [body]
5034
5034
  * @param {*} [options] Override http request option.
5035
5035
  * @throws {RequiredError}
5036
5036
  */
5037
- createFile(id, body, options = {}) {
5037
+ createKnowledgeBaseHandle(id, body, options = {}) {
5038
5038
  // verify required parameter 'id' is not null or undefined
5039
5039
  if (id === null || id === undefined) {
5040
- throw new RequiredError('id', 'Required parameter id was null or undefined when calling createFile.');
5040
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling createKnowledgeBaseHandle.');
5041
5041
  }
5042
5042
  const localVarPath = `/knowledge-bases/{id}/files`
5043
5043
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
@@ -5255,14 +5255,14 @@ const KnowledgeBasesApiFp = function (configuration) {
5255
5255
  },
5256
5256
  /**
5257
5257
  *
5258
- * @summary Create knowledge base's file
5258
+ * @summary Create knowledge base's handle
5259
5259
  * @param {string} id
5260
5260
  * @param {KnowledgeBaseFileCreateForm} [body]
5261
5261
  * @param {*} [options] Override http request option.
5262
5262
  * @throws {RequiredError}
5263
5263
  */
5264
- createFile(id, body, options) {
5265
- const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).createFile(id, body, options);
5264
+ createKnowledgeBaseHandle(id, body, options) {
5265
+ const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).createKnowledgeBaseHandle(id, body, options);
5266
5266
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
5267
5267
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
5268
5268
  if (response.status >= 200 && response.status < 300) {
@@ -5386,14 +5386,14 @@ const KnowledgeBasesApiFactory = function (configuration, fetch, basePath) {
5386
5386
  },
5387
5387
  /**
5388
5388
  *
5389
- * @summary Create knowledge base's file
5389
+ * @summary Create knowledge base's handle
5390
5390
  * @param {string} id
5391
5391
  * @param {KnowledgeBaseFileCreateForm} [body]
5392
5392
  * @param {*} [options] Override http request option.
5393
5393
  * @throws {RequiredError}
5394
5394
  */
5395
- createFile(id, body, options) {
5396
- return (0, exports.KnowledgeBasesApiFp)(configuration).createFile(id, body, options)(fetch, basePath);
5395
+ createKnowledgeBaseHandle(id, body, options) {
5396
+ return (0, exports.KnowledgeBasesApiFp)(configuration).createKnowledgeBaseHandle(id, body, options)(fetch, basePath);
5397
5397
  },
5398
5398
  /**
5399
5399
  *
@@ -5470,15 +5470,15 @@ class KnowledgeBasesApi extends BaseAPI {
5470
5470
  }
5471
5471
  /**
5472
5472
  *
5473
- * @summary Create knowledge base's file
5473
+ * @summary Create knowledge base's handle
5474
5474
  * @param {string} id
5475
5475
  * @param {KnowledgeBaseFileCreateForm} [body]
5476
5476
  * @param {*} [options] Override http request option.
5477
5477
  * @throws {RequiredError}
5478
5478
  * @memberof KnowledgeBasesApi
5479
5479
  */
5480
- createFile(id, body, options) {
5481
- return (0, exports.KnowledgeBasesApiFp)(this.configuration).createFile(id, body, options)(this.fetch, this.basePath);
5480
+ createKnowledgeBaseHandle(id, body, options) {
5481
+ return (0, exports.KnowledgeBasesApiFp)(this.configuration).createKnowledgeBaseHandle(id, body, options)(this.fetch, this.basePath);
5482
5482
  }
5483
5483
  /**
5484
5484
  *
@@ -9436,6 +9436,108 @@ const OrgsApiFetchParamCreator = function (configuration) {
9436
9436
  options: localVarRequestOptions,
9437
9437
  };
9438
9438
  },
9439
+ /**
9440
+ *
9441
+ * @summary Create organization cover handle
9442
+ * @param {string} id
9443
+ * @param {*} [options] Override http request option.
9444
+ * @throws {RequiredError}
9445
+ */
9446
+ createOrgCoverHandle(id, options = {}) {
9447
+ // verify required parameter 'id' is not null or undefined
9448
+ if (id === null || id === undefined) {
9449
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling createOrgCoverHandle.');
9450
+ }
9451
+ const localVarPath = `/orgs/{id}/cover`
9452
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
9453
+ const localVarUrlObj = url.parse(localVarPath, true);
9454
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
9455
+ const localVarHeaderParameter = {};
9456
+ const localVarQueryParameter = {};
9457
+ // authentication apiKey required
9458
+ if (configuration && configuration.apiKey) {
9459
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
9460
+ ? configuration.apiKey("X-Api-Key")
9461
+ : configuration.apiKey;
9462
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
9463
+ }
9464
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
9465
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
9466
+ delete localVarUrlObj.search;
9467
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
9468
+ return {
9469
+ url: url.format(localVarUrlObj),
9470
+ options: localVarRequestOptions,
9471
+ };
9472
+ },
9473
+ /**
9474
+ *
9475
+ * @summary Create organization default agent avatar handle
9476
+ * @param {string} id
9477
+ * @param {*} [options] Override http request option.
9478
+ * @throws {RequiredError}
9479
+ */
9480
+ createOrgDefaultAgentAvatarHandle(id, options = {}) {
9481
+ // verify required parameter 'id' is not null or undefined
9482
+ if (id === null || id === undefined) {
9483
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling createOrgDefaultAgentAvatarHandle.');
9484
+ }
9485
+ const localVarPath = `/orgs/{id}/defaultAgentAvatar`
9486
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
9487
+ const localVarUrlObj = url.parse(localVarPath, true);
9488
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
9489
+ const localVarHeaderParameter = {};
9490
+ const localVarQueryParameter = {};
9491
+ // authentication apiKey required
9492
+ if (configuration && configuration.apiKey) {
9493
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
9494
+ ? configuration.apiKey("X-Api-Key")
9495
+ : configuration.apiKey;
9496
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
9497
+ }
9498
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
9499
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
9500
+ delete localVarUrlObj.search;
9501
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
9502
+ return {
9503
+ url: url.format(localVarUrlObj),
9504
+ options: localVarRequestOptions,
9505
+ };
9506
+ },
9507
+ /**
9508
+ *
9509
+ * @summary Create organization logo handle
9510
+ * @param {string} id
9511
+ * @param {*} [options] Override http request option.
9512
+ * @throws {RequiredError}
9513
+ */
9514
+ createOrgLogoHandle(id, options = {}) {
9515
+ // verify required parameter 'id' is not null or undefined
9516
+ if (id === null || id === undefined) {
9517
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling createOrgLogoHandle.');
9518
+ }
9519
+ const localVarPath = `/orgs/{id}/logo`
9520
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
9521
+ const localVarUrlObj = url.parse(localVarPath, true);
9522
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
9523
+ const localVarHeaderParameter = {};
9524
+ const localVarQueryParameter = {};
9525
+ // authentication apiKey required
9526
+ if (configuration && configuration.apiKey) {
9527
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
9528
+ ? configuration.apiKey("X-Api-Key")
9529
+ : configuration.apiKey;
9530
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
9531
+ }
9532
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
9533
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
9534
+ delete localVarUrlObj.search;
9535
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
9536
+ return {
9537
+ url: url.format(localVarUrlObj),
9538
+ options: localVarRequestOptions,
9539
+ };
9540
+ },
9439
9541
  /**
9440
9542
  *
9441
9543
  * @summary Create org and admin account with trial
@@ -9473,7 +9575,7 @@ const OrgsApiFetchParamCreator = function (configuration) {
9473
9575
  },
9474
9576
  /**
9475
9577
  *
9476
- * @summary Delete organization cover image
9578
+ * @summary Delete organization cover graphic
9477
9579
  * @param {string} id
9478
9580
  * @param {*} [options] Override http request option.
9479
9581
  * @throws {RequiredError}
@@ -9704,74 +9806,6 @@ const OrgsApiFetchParamCreator = function (configuration) {
9704
9806
  options: localVarRequestOptions,
9705
9807
  };
9706
9808
  },
9707
- /**
9708
- *
9709
- * @summary Generate organization cover image upload URL.
9710
- * @param {string} id
9711
- * @param {*} [options] Override http request option.
9712
- * @throws {RequiredError}
9713
- */
9714
- getOrgCoverUploadURL(id, options = {}) {
9715
- // verify required parameter 'id' is not null or undefined
9716
- if (id === null || id === undefined) {
9717
- throw new RequiredError('id', 'Required parameter id was null or undefined when calling getOrgCoverUploadURL.');
9718
- }
9719
- const localVarPath = `/orgs/{id}/cover`
9720
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
9721
- const localVarUrlObj = url.parse(localVarPath, true);
9722
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
9723
- const localVarHeaderParameter = {};
9724
- const localVarQueryParameter = {};
9725
- // authentication apiKey required
9726
- if (configuration && configuration.apiKey) {
9727
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
9728
- ? configuration.apiKey("X-Api-Key")
9729
- : configuration.apiKey;
9730
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
9731
- }
9732
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
9733
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
9734
- delete localVarUrlObj.search;
9735
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
9736
- return {
9737
- url: url.format(localVarUrlObj),
9738
- options: localVarRequestOptions,
9739
- };
9740
- },
9741
- /**
9742
- *
9743
- * @summary Generate organization default agent avatar upload URL.
9744
- * @param {string} id
9745
- * @param {*} [options] Override http request option.
9746
- * @throws {RequiredError}
9747
- */
9748
- getOrgDefaultAgentAvatarUploadURL(id, options = {}) {
9749
- // verify required parameter 'id' is not null or undefined
9750
- if (id === null || id === undefined) {
9751
- throw new RequiredError('id', 'Required parameter id was null or undefined when calling getOrgDefaultAgentAvatarUploadURL.');
9752
- }
9753
- const localVarPath = `/orgs/{id}/defaultAgentAvatar`
9754
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
9755
- const localVarUrlObj = url.parse(localVarPath, true);
9756
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
9757
- const localVarHeaderParameter = {};
9758
- const localVarQueryParameter = {};
9759
- // authentication apiKey required
9760
- if (configuration && configuration.apiKey) {
9761
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
9762
- ? configuration.apiKey("X-Api-Key")
9763
- : configuration.apiKey;
9764
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
9765
- }
9766
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
9767
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
9768
- delete localVarUrlObj.search;
9769
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
9770
- return {
9771
- url: url.format(localVarUrlObj),
9772
- options: localVarRequestOptions,
9773
- };
9774
- },
9775
9809
  /**
9776
9810
  *
9777
9811
  * @summary Get org information
@@ -9807,40 +9841,6 @@ const OrgsApiFetchParamCreator = function (configuration) {
9807
9841
  options: localVarRequestOptions,
9808
9842
  };
9809
9843
  },
9810
- /**
9811
- *
9812
- * @summary Generate organization logo upload URL.
9813
- * @param {string} id
9814
- * @param {*} [options] Override http request option.
9815
- * @throws {RequiredError}
9816
- */
9817
- getOrgLogoUploadURL(id, options = {}) {
9818
- // verify required parameter 'id' is not null or undefined
9819
- if (id === null || id === undefined) {
9820
- throw new RequiredError('id', 'Required parameter id was null or undefined when calling getOrgLogoUploadURL.');
9821
- }
9822
- const localVarPath = `/orgs/{id}/logo`
9823
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
9824
- const localVarUrlObj = url.parse(localVarPath, true);
9825
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
9826
- const localVarHeaderParameter = {};
9827
- const localVarQueryParameter = {};
9828
- // authentication apiKey required
9829
- if (configuration && configuration.apiKey) {
9830
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
9831
- ? configuration.apiKey("X-Api-Key")
9832
- : configuration.apiKey;
9833
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
9834
- }
9835
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
9836
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
9837
- delete localVarUrlObj.search;
9838
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
9839
- return {
9840
- url: url.format(localVarUrlObj),
9841
- options: localVarRequestOptions,
9842
- };
9843
- },
9844
9844
  /**
9845
9845
  *
9846
9846
  * @summary Retrieve possible unavailability reasons for org.
@@ -10252,8 +10252,68 @@ const OrgsApiFp = function (configuration) {
10252
10252
  * @param {*} [options] Override http request option.
10253
10253
  * @throws {RequiredError}
10254
10254
  */
10255
- createFreeOrgAdmin(body, token, options) {
10256
- const localVarFetchArgs = (0, exports.OrgsApiFetchParamCreator)(configuration).createFreeOrgAdmin(body, token, options);
10255
+ createFreeOrgAdmin(body, token, options) {
10256
+ const localVarFetchArgs = (0, exports.OrgsApiFetchParamCreator)(configuration).createFreeOrgAdmin(body, token, options);
10257
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
10258
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
10259
+ if (response.status >= 200 && response.status < 300) {
10260
+ return response.json();
10261
+ }
10262
+ else {
10263
+ throw response;
10264
+ }
10265
+ });
10266
+ };
10267
+ },
10268
+ /**
10269
+ *
10270
+ * @summary Create organization cover handle
10271
+ * @param {string} id
10272
+ * @param {*} [options] Override http request option.
10273
+ * @throws {RequiredError}
10274
+ */
10275
+ createOrgCoverHandle(id, options) {
10276
+ const localVarFetchArgs = (0, exports.OrgsApiFetchParamCreator)(configuration).createOrgCoverHandle(id, options);
10277
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
10278
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
10279
+ if (response.status >= 200 && response.status < 300) {
10280
+ return response.json();
10281
+ }
10282
+ else {
10283
+ throw response;
10284
+ }
10285
+ });
10286
+ };
10287
+ },
10288
+ /**
10289
+ *
10290
+ * @summary Create organization default agent avatar handle
10291
+ * @param {string} id
10292
+ * @param {*} [options] Override http request option.
10293
+ * @throws {RequiredError}
10294
+ */
10295
+ createOrgDefaultAgentAvatarHandle(id, options) {
10296
+ const localVarFetchArgs = (0, exports.OrgsApiFetchParamCreator)(configuration).createOrgDefaultAgentAvatarHandle(id, options);
10297
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
10298
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
10299
+ if (response.status >= 200 && response.status < 300) {
10300
+ return response.json();
10301
+ }
10302
+ else {
10303
+ throw response;
10304
+ }
10305
+ });
10306
+ };
10307
+ },
10308
+ /**
10309
+ *
10310
+ * @summary Create organization logo handle
10311
+ * @param {string} id
10312
+ * @param {*} [options] Override http request option.
10313
+ * @throws {RequiredError}
10314
+ */
10315
+ createOrgLogoHandle(id, options) {
10316
+ const localVarFetchArgs = (0, exports.OrgsApiFetchParamCreator)(configuration).createOrgLogoHandle(id, options);
10257
10317
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
10258
10318
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
10259
10319
  if (response.status >= 200 && response.status < 300) {
@@ -10288,7 +10348,7 @@ const OrgsApiFp = function (configuration) {
10288
10348
  },
10289
10349
  /**
10290
10350
  *
10291
- * @summary Delete organization cover image
10351
+ * @summary Delete organization cover graphic
10292
10352
  * @param {string} id
10293
10353
  * @param {*} [options] Override http request option.
10294
10354
  * @throws {RequiredError}
@@ -10426,46 +10486,6 @@ const OrgsApiFp = function (configuration) {
10426
10486
  });
10427
10487
  };
10428
10488
  },
10429
- /**
10430
- *
10431
- * @summary Generate organization cover image upload URL.
10432
- * @param {string} id
10433
- * @param {*} [options] Override http request option.
10434
- * @throws {RequiredError}
10435
- */
10436
- getOrgCoverUploadURL(id, options) {
10437
- const localVarFetchArgs = (0, exports.OrgsApiFetchParamCreator)(configuration).getOrgCoverUploadURL(id, options);
10438
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
10439
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
10440
- if (response.status >= 200 && response.status < 300) {
10441
- return response.json();
10442
- }
10443
- else {
10444
- throw response;
10445
- }
10446
- });
10447
- };
10448
- },
10449
- /**
10450
- *
10451
- * @summary Generate organization default agent avatar upload URL.
10452
- * @param {string} id
10453
- * @param {*} [options] Override http request option.
10454
- * @throws {RequiredError}
10455
- */
10456
- getOrgDefaultAgentAvatarUploadURL(id, options) {
10457
- const localVarFetchArgs = (0, exports.OrgsApiFetchParamCreator)(configuration).getOrgDefaultAgentAvatarUploadURL(id, options);
10458
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
10459
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
10460
- if (response.status >= 200 && response.status < 300) {
10461
- return response.json();
10462
- }
10463
- else {
10464
- throw response;
10465
- }
10466
- });
10467
- };
10468
- },
10469
10489
  /**
10470
10490
  *
10471
10491
  * @summary Get org information
@@ -10485,26 +10505,6 @@ const OrgsApiFp = function (configuration) {
10485
10505
  });
10486
10506
  };
10487
10507
  },
10488
- /**
10489
- *
10490
- * @summary Generate organization logo upload URL.
10491
- * @param {string} id
10492
- * @param {*} [options] Override http request option.
10493
- * @throws {RequiredError}
10494
- */
10495
- getOrgLogoUploadURL(id, options) {
10496
- const localVarFetchArgs = (0, exports.OrgsApiFetchParamCreator)(configuration).getOrgLogoUploadURL(id, options);
10497
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
10498
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
10499
- if (response.status >= 200 && response.status < 300) {
10500
- return response.json();
10501
- }
10502
- else {
10503
- throw response;
10504
- }
10505
- });
10506
- };
10507
- },
10508
10508
  /**
10509
10509
  *
10510
10510
  * @summary Retrieve possible unavailability reasons for org.
@@ -10749,6 +10749,36 @@ const OrgsApiFactory = function (configuration, fetch, basePath) {
10749
10749
  createFreeOrgAdmin(body, token, options) {
10750
10750
  return (0, exports.OrgsApiFp)(configuration).createFreeOrgAdmin(body, token, options)(fetch, basePath);
10751
10751
  },
10752
+ /**
10753
+ *
10754
+ * @summary Create organization cover handle
10755
+ * @param {string} id
10756
+ * @param {*} [options] Override http request option.
10757
+ * @throws {RequiredError}
10758
+ */
10759
+ createOrgCoverHandle(id, options) {
10760
+ return (0, exports.OrgsApiFp)(configuration).createOrgCoverHandle(id, options)(fetch, basePath);
10761
+ },
10762
+ /**
10763
+ *
10764
+ * @summary Create organization default agent avatar handle
10765
+ * @param {string} id
10766
+ * @param {*} [options] Override http request option.
10767
+ * @throws {RequiredError}
10768
+ */
10769
+ createOrgDefaultAgentAvatarHandle(id, options) {
10770
+ return (0, exports.OrgsApiFp)(configuration).createOrgDefaultAgentAvatarHandle(id, options)(fetch, basePath);
10771
+ },
10772
+ /**
10773
+ *
10774
+ * @summary Create organization logo handle
10775
+ * @param {string} id
10776
+ * @param {*} [options] Override http request option.
10777
+ * @throws {RequiredError}
10778
+ */
10779
+ createOrgLogoHandle(id, options) {
10780
+ return (0, exports.OrgsApiFp)(configuration).createOrgLogoHandle(id, options)(fetch, basePath);
10781
+ },
10752
10782
  /**
10753
10783
  *
10754
10784
  * @summary Create org and admin account with trial
@@ -10762,7 +10792,7 @@ const OrgsApiFactory = function (configuration, fetch, basePath) {
10762
10792
  },
10763
10793
  /**
10764
10794
  *
10765
- * @summary Delete organization cover image
10795
+ * @summary Delete organization cover graphic
10766
10796
  * @param {string} id
10767
10797
  * @param {*} [options] Override http request option.
10768
10798
  * @throws {RequiredError}
@@ -10830,26 +10860,6 @@ const OrgsApiFactory = function (configuration, fetch, basePath) {
10830
10860
  getOrg(id, options) {
10831
10861
  return (0, exports.OrgsApiFp)(configuration).getOrg(id, options)(fetch, basePath);
10832
10862
  },
10833
- /**
10834
- *
10835
- * @summary Generate organization cover image upload URL.
10836
- * @param {string} id
10837
- * @param {*} [options] Override http request option.
10838
- * @throws {RequiredError}
10839
- */
10840
- getOrgCoverUploadURL(id, options) {
10841
- return (0, exports.OrgsApiFp)(configuration).getOrgCoverUploadURL(id, options)(fetch, basePath);
10842
- },
10843
- /**
10844
- *
10845
- * @summary Generate organization default agent avatar upload URL.
10846
- * @param {string} id
10847
- * @param {*} [options] Override http request option.
10848
- * @throws {RequiredError}
10849
- */
10850
- getOrgDefaultAgentAvatarUploadURL(id, options) {
10851
- return (0, exports.OrgsApiFp)(configuration).getOrgDefaultAgentAvatarUploadURL(id, options)(fetch, basePath);
10852
- },
10853
10863
  /**
10854
10864
  *
10855
10865
  * @summary Get org information
@@ -10859,16 +10869,6 @@ const OrgsApiFactory = function (configuration, fetch, basePath) {
10859
10869
  getOrgInfo(options) {
10860
10870
  return (0, exports.OrgsApiFp)(configuration).getOrgInfo(options)(fetch, basePath);
10861
10871
  },
10862
- /**
10863
- *
10864
- * @summary Generate organization logo upload URL.
10865
- * @param {string} id
10866
- * @param {*} [options] Override http request option.
10867
- * @throws {RequiredError}
10868
- */
10869
- getOrgLogoUploadURL(id, options) {
10870
- return (0, exports.OrgsApiFp)(configuration).getOrgLogoUploadURL(id, options)(fetch, basePath);
10871
- },
10872
10872
  /**
10873
10873
  *
10874
10874
  * @summary Retrieve possible unavailability reasons for org.
@@ -11029,6 +11029,39 @@ class OrgsApi extends BaseAPI {
11029
11029
  createFreeOrgAdmin(body, token, options) {
11030
11030
  return (0, exports.OrgsApiFp)(this.configuration).createFreeOrgAdmin(body, token, options)(this.fetch, this.basePath);
11031
11031
  }
11032
+ /**
11033
+ *
11034
+ * @summary Create organization cover handle
11035
+ * @param {string} id
11036
+ * @param {*} [options] Override http request option.
11037
+ * @throws {RequiredError}
11038
+ * @memberof OrgsApi
11039
+ */
11040
+ createOrgCoverHandle(id, options) {
11041
+ return (0, exports.OrgsApiFp)(this.configuration).createOrgCoverHandle(id, options)(this.fetch, this.basePath);
11042
+ }
11043
+ /**
11044
+ *
11045
+ * @summary Create organization default agent avatar handle
11046
+ * @param {string} id
11047
+ * @param {*} [options] Override http request option.
11048
+ * @throws {RequiredError}
11049
+ * @memberof OrgsApi
11050
+ */
11051
+ createOrgDefaultAgentAvatarHandle(id, options) {
11052
+ return (0, exports.OrgsApiFp)(this.configuration).createOrgDefaultAgentAvatarHandle(id, options)(this.fetch, this.basePath);
11053
+ }
11054
+ /**
11055
+ *
11056
+ * @summary Create organization logo handle
11057
+ * @param {string} id
11058
+ * @param {*} [options] Override http request option.
11059
+ * @throws {RequiredError}
11060
+ * @memberof OrgsApi
11061
+ */
11062
+ createOrgLogoHandle(id, options) {
11063
+ return (0, exports.OrgsApiFp)(this.configuration).createOrgLogoHandle(id, options)(this.fetch, this.basePath);
11064
+ }
11032
11065
  /**
11033
11066
  *
11034
11067
  * @summary Create org and admin account with trial
@@ -11043,7 +11076,7 @@ class OrgsApi extends BaseAPI {
11043
11076
  }
11044
11077
  /**
11045
11078
  *
11046
- * @summary Delete organization cover image
11079
+ * @summary Delete organization cover graphic
11047
11080
  * @param {string} id
11048
11081
  * @param {*} [options] Override http request option.
11049
11082
  * @throws {RequiredError}
@@ -11118,28 +11151,6 @@ class OrgsApi extends BaseAPI {
11118
11151
  getOrg(id, options) {
11119
11152
  return (0, exports.OrgsApiFp)(this.configuration).getOrg(id, options)(this.fetch, this.basePath);
11120
11153
  }
11121
- /**
11122
- *
11123
- * @summary Generate organization cover image upload URL.
11124
- * @param {string} id
11125
- * @param {*} [options] Override http request option.
11126
- * @throws {RequiredError}
11127
- * @memberof OrgsApi
11128
- */
11129
- getOrgCoverUploadURL(id, options) {
11130
- return (0, exports.OrgsApiFp)(this.configuration).getOrgCoverUploadURL(id, options)(this.fetch, this.basePath);
11131
- }
11132
- /**
11133
- *
11134
- * @summary Generate organization default agent avatar upload URL.
11135
- * @param {string} id
11136
- * @param {*} [options] Override http request option.
11137
- * @throws {RequiredError}
11138
- * @memberof OrgsApi
11139
- */
11140
- getOrgDefaultAgentAvatarUploadURL(id, options) {
11141
- return (0, exports.OrgsApiFp)(this.configuration).getOrgDefaultAgentAvatarUploadURL(id, options)(this.fetch, this.basePath);
11142
- }
11143
11154
  /**
11144
11155
  *
11145
11156
  * @summary Get org information
@@ -11150,17 +11161,6 @@ class OrgsApi extends BaseAPI {
11150
11161
  getOrgInfo(options) {
11151
11162
  return (0, exports.OrgsApiFp)(this.configuration).getOrgInfo(options)(this.fetch, this.basePath);
11152
11163
  }
11153
- /**
11154
- *
11155
- * @summary Generate organization logo upload URL.
11156
- * @param {string} id
11157
- * @param {*} [options] Override http request option.
11158
- * @throws {RequiredError}
11159
- * @memberof OrgsApi
11160
- */
11161
- getOrgLogoUploadURL(id, options) {
11162
- return (0, exports.OrgsApiFp)(this.configuration).getOrgLogoUploadURL(id, options)(this.fetch, this.basePath);
11163
- }
11164
11164
  /**
11165
11165
  *
11166
11166
  * @summary Retrieve possible unavailability reasons for org.
@@ -17021,6 +17021,34 @@ const UsersApiFetchParamCreator = function (configuration) {
17021
17021
  options: localVarRequestOptions,
17022
17022
  };
17023
17023
  },
17024
+ /**
17025
+ *
17026
+ * @summary Create agent avatar handle
17027
+ * @param {*} [options] Override http request option.
17028
+ * @throws {RequiredError}
17029
+ */
17030
+ createAgentAvatarHandle(options = {}) {
17031
+ const localVarPath = `/users/agent/avatar`;
17032
+ const localVarUrlObj = url.parse(localVarPath, true);
17033
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
17034
+ const localVarHeaderParameter = {};
17035
+ const localVarQueryParameter = {};
17036
+ // authentication apiKey required
17037
+ if (configuration && configuration.apiKey) {
17038
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
17039
+ ? configuration.apiKey("X-Api-Key")
17040
+ : configuration.apiKey;
17041
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
17042
+ }
17043
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
17044
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
17045
+ delete localVarUrlObj.search;
17046
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
17047
+ return {
17048
+ url: url.format(localVarUrlObj),
17049
+ options: localVarRequestOptions,
17050
+ };
17051
+ },
17024
17052
  /**
17025
17053
  *
17026
17054
  * @summary Create a Lekta user.
@@ -17164,34 +17192,6 @@ const UsersApiFetchParamCreator = function (configuration) {
17164
17192
  options: localVarRequestOptions,
17165
17193
  };
17166
17194
  },
17167
- /**
17168
- *
17169
- * @summary Generate avatar upload URL.
17170
- * @param {*} [options] Override http request option.
17171
- * @throws {RequiredError}
17172
- */
17173
- getAgentAvatarUploadURL(options = {}) {
17174
- const localVarPath = `/users/agent/avatar`;
17175
- const localVarUrlObj = url.parse(localVarPath, true);
17176
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
17177
- const localVarHeaderParameter = {};
17178
- const localVarQueryParameter = {};
17179
- // authentication apiKey required
17180
- if (configuration && configuration.apiKey) {
17181
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
17182
- ? configuration.apiKey("X-Api-Key")
17183
- : configuration.apiKey;
17184
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
17185
- }
17186
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
17187
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
17188
- delete localVarUrlObj.search;
17189
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
17190
- return {
17191
- url: url.format(localVarUrlObj),
17192
- options: localVarRequestOptions,
17193
- };
17194
- },
17195
17195
  /**
17196
17196
  *
17197
17197
  * @summary Get agent preferences
@@ -18523,6 +18523,25 @@ const UsersApiFp = function (configuration) {
18523
18523
  });
18524
18524
  };
18525
18525
  },
18526
+ /**
18527
+ *
18528
+ * @summary Create agent avatar handle
18529
+ * @param {*} [options] Override http request option.
18530
+ * @throws {RequiredError}
18531
+ */
18532
+ createAgentAvatarHandle(options) {
18533
+ const localVarFetchArgs = (0, exports.UsersApiFetchParamCreator)(configuration).createAgentAvatarHandle(options);
18534
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
18535
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
18536
+ if (response.status >= 200 && response.status < 300) {
18537
+ return response.json();
18538
+ }
18539
+ else {
18540
+ throw response;
18541
+ }
18542
+ });
18543
+ };
18544
+ },
18526
18545
  /**
18527
18546
  *
18528
18547
  * @summary Create a Lekta user.
@@ -18620,25 +18639,6 @@ const UsersApiFp = function (configuration) {
18620
18639
  });
18621
18640
  };
18622
18641
  },
18623
- /**
18624
- *
18625
- * @summary Generate avatar upload URL.
18626
- * @param {*} [options] Override http request option.
18627
- * @throws {RequiredError}
18628
- */
18629
- getAgentAvatarUploadURL(options) {
18630
- const localVarFetchArgs = (0, exports.UsersApiFetchParamCreator)(configuration).getAgentAvatarUploadURL(options);
18631
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
18632
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
18633
- if (response.status >= 200 && response.status < 300) {
18634
- return response.json();
18635
- }
18636
- else {
18637
- throw response;
18638
- }
18639
- });
18640
- };
18641
- },
18642
18642
  /**
18643
18643
  *
18644
18644
  * @summary Get agent preferences
@@ -19350,6 +19350,15 @@ const UsersApiFactory = function (configuration, fetch, basePath) {
19350
19350
  continueConversationLink(body, options) {
19351
19351
  return (0, exports.UsersApiFp)(configuration).continueConversationLink(body, options)(fetch, basePath);
19352
19352
  },
19353
+ /**
19354
+ *
19355
+ * @summary Create agent avatar handle
19356
+ * @param {*} [options] Override http request option.
19357
+ * @throws {RequiredError}
19358
+ */
19359
+ createAgentAvatarHandle(options) {
19360
+ return (0, exports.UsersApiFp)(configuration).createAgentAvatarHandle(options)(fetch, basePath);
19361
+ },
19353
19362
  /**
19354
19363
  *
19355
19364
  * @summary Create a Lekta user.
@@ -19397,15 +19406,6 @@ const UsersApiFactory = function (configuration, fetch, basePath) {
19397
19406
  deleteCustomer(customerId, options) {
19398
19407
  return (0, exports.UsersApiFp)(configuration).deleteCustomer(customerId, options)(fetch, basePath);
19399
19408
  },
19400
- /**
19401
- *
19402
- * @summary Generate avatar upload URL.
19403
- * @param {*} [options] Override http request option.
19404
- * @throws {RequiredError}
19405
- */
19406
- getAgentAvatarUploadURL(options) {
19407
- return (0, exports.UsersApiFp)(configuration).getAgentAvatarUploadURL(options)(fetch, basePath);
19408
- },
19409
19409
  /**
19410
19410
  *
19411
19411
  * @summary Get agent preferences
@@ -19792,6 +19792,16 @@ class UsersApi extends BaseAPI {
19792
19792
  continueConversationLink(body, options) {
19793
19793
  return (0, exports.UsersApiFp)(this.configuration).continueConversationLink(body, options)(this.fetch, this.basePath);
19794
19794
  }
19795
+ /**
19796
+ *
19797
+ * @summary Create agent avatar handle
19798
+ * @param {*} [options] Override http request option.
19799
+ * @throws {RequiredError}
19800
+ * @memberof UsersApi
19801
+ */
19802
+ createAgentAvatarHandle(options) {
19803
+ return (0, exports.UsersApiFp)(this.configuration).createAgentAvatarHandle(options)(this.fetch, this.basePath);
19804
+ }
19795
19805
  /**
19796
19806
  *
19797
19807
  * @summary Create a Lekta user.
@@ -19844,16 +19854,6 @@ class UsersApi extends BaseAPI {
19844
19854
  deleteCustomer(customerId, options) {
19845
19855
  return (0, exports.UsersApiFp)(this.configuration).deleteCustomer(customerId, options)(this.fetch, this.basePath);
19846
19856
  }
19847
- /**
19848
- *
19849
- * @summary Generate avatar upload URL.
19850
- * @param {*} [options] Override http request option.
19851
- * @throws {RequiredError}
19852
- * @memberof UsersApi
19853
- */
19854
- getAgentAvatarUploadURL(options) {
19855
- return (0, exports.UsersApiFp)(this.configuration).getAgentAvatarUploadURL(options)(this.fetch, this.basePath);
19856
- }
19857
19857
  /**
19858
19858
  *
19859
19859
  * @summary Get agent preferences