@livechat/developer-studio-api 3.3.11 → 3.4.0

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
@@ -175,18 +175,6 @@ githubClientInstance.interceptors.response.use(
175
175
  throw error;
176
176
  }
177
177
  );
178
- function getGitHubClientAuthorization(req) {
179
- if (req.headers instanceof Headers) {
180
- return {
181
- appToken: req.headers.get("x-adapter-github-app-token"),
182
- oauthToken: req.headers.get("x-adapter-github-oauth-token")
183
- };
184
- }
185
- return {
186
- appToken: req.headers["x-adapter-github-app-token"],
187
- oauthToken: req.headers["x-adapter-github-oauth-token"]
188
- };
189
- }
190
178
  function getGithubClientConfig(options = {}) {
191
179
  var _a;
192
180
  const currentHeaders = githubClientInstance.defaults.headers;
@@ -645,16 +633,6 @@ netlifyClientInstance.interceptors.response.use(
645
633
  throw error;
646
634
  }
647
635
  );
648
- function getNetlifyClientAuthorization(req) {
649
- if (req.headers instanceof Headers) {
650
- return {
651
- token: req.headers.get("x-adapter-netlify-token")
652
- };
653
- }
654
- return {
655
- token: req.headers["x-adapter-netlify-token"]
656
- };
657
- }
658
636
  function getNetlifyClientConfig(options = {}) {
659
637
  var _a;
660
638
  const currentHeaders = netlifyClientInstance.defaults.headers;
@@ -1152,16 +1130,6 @@ planetScaleClientInstance.interceptors.response.use(
1152
1130
  throw error;
1153
1131
  }
1154
1132
  );
1155
- function getPlanetScaleClientAuthorization(req) {
1156
- if (req.headers instanceof Headers) {
1157
- return {
1158
- token: req.headers.get("x-adapter-planetscale-token")
1159
- };
1160
- }
1161
- return {
1162
- token: req.headers["x-adapter-planetscale-token"]
1163
- };
1164
- }
1165
1133
  function getPlanetScaleClientConfig(options = {}) {
1166
1134
  var _a;
1167
1135
  const currentHeaders = planetScaleClientInstance.defaults.headers;
@@ -1419,20 +1387,6 @@ textClientInstance.interceptors.response.use(
1419
1387
  );
1420
1388
  }
1421
1389
  );
1422
- function getTextClientAuthorization(req, usePlatformToken = true) {
1423
- if (req.headers instanceof Headers) {
1424
- return {
1425
- token: req.headers.get(
1426
- usePlatformToken ? "x-adapter-platform-token" : "x-adapter-text-token"
1427
- ),
1428
- tokenType: "Bearer"
1429
- };
1430
- }
1431
- return {
1432
- token: req.headers[usePlatformToken ? "x-adapter-platform-token" : "x-adapter-text-token"],
1433
- tokenType: "Bearer"
1434
- };
1435
- }
1436
1390
  function getTextClientConfig(option = {}) {
1437
1391
  var _a;
1438
1392
  const currentHeaders = textClientInstance.defaults.headers;
@@ -1625,16 +1579,6 @@ vercelClientInstance.interceptors.response.use(
1625
1579
  throw error;
1626
1580
  }
1627
1581
  );
1628
- function getVercelClientAuthorization(req) {
1629
- if (req.headers instanceof Headers) {
1630
- return {
1631
- token: req.headers.get("x-adapter-vercel-token")
1632
- };
1633
- }
1634
- return {
1635
- token: req.headers["x-adapter-vercel-token"]
1636
- };
1637
- }
1638
1582
  function getVercelClientConfig(options = {}) {
1639
1583
  var _a;
1640
1584
  const currentHeaders = vercelClientInstance.defaults.headers;
@@ -1682,16 +1626,6 @@ neonClientInstance.interceptors.response.use(
1682
1626
  throw error;
1683
1627
  }
1684
1628
  );
1685
- function getNeonClientAuthorization(req) {
1686
- if (req.headers instanceof Headers) {
1687
- return {
1688
- token: req.headers.get("x-adapter-neon-token")
1689
- };
1690
- }
1691
- return {
1692
- token: req.headers["x-adapter-neon-token"]
1693
- };
1694
- }
1695
1629
  function getNeonClientConfig(options = {}) {
1696
1630
  var _a;
1697
1631
  const currentHeaders = neonClientInstance.defaults.headers;
@@ -1751,18 +1685,6 @@ mailchimpClientInstance.interceptors.response.use(
1751
1685
  );
1752
1686
  }
1753
1687
  );
1754
- function getMailchimpClientAuthorization(req) {
1755
- if (req.headers instanceof Headers) {
1756
- return {
1757
- server: req.headers.get("x-adapter-mailchimp-server"),
1758
- token: req.headers.get("x-adapter-mailchimp-token")
1759
- };
1760
- }
1761
- return {
1762
- server: req.headers["x-adapter-mailchimp-server"],
1763
- token: req.headers["x-adapter-mailchimp-token"]
1764
- };
1765
- }
1766
1688
  function getMailchimpClientConfig(options = {}) {
1767
1689
  var _a, _b;
1768
1690
  const currentBaseUrl = mailchimpClientInstance.defaults.baseURL;
@@ -1827,18 +1749,6 @@ shopifyClientInstance.interceptors.response.use(
1827
1749
  }
1828
1750
  );
1829
1751
  var getShopifyClientUrl = (store) => `https://${store}.myshopify.com/admin/api/2024-04`;
1830
- function getShopifyClientAuthorization(req) {
1831
- if (req.headers instanceof Headers) {
1832
- return {
1833
- shop: req.headers.get("x-adapter-shopify-shop"),
1834
- token: req.headers.get("x-adapter-shopify-token")
1835
- };
1836
- }
1837
- return {
1838
- shop: req.headers["x-adapter-shopify-shop"],
1839
- token: req.headers["x-adapter-shopify-token"]
1840
- };
1841
- }
1842
1752
  function getShopifyClientConfig(options = {}) {
1843
1753
  var _a, _b;
1844
1754
  const currentBaseUrl = shopifyClientInstance.defaults.baseURL;
@@ -1914,16 +1824,6 @@ hubspotClientInstance.interceptors.response.use(
1914
1824
  );
1915
1825
  }
1916
1826
  );
1917
- function getHubspotClientAuthorization(req) {
1918
- if (req.headers instanceof Headers) {
1919
- return {
1920
- token: req.headers.get("x-adapter-hubspot-token")
1921
- };
1922
- }
1923
- return {
1924
- token: req.headers["x-adapter-hubspot-token"]
1925
- };
1926
- }
1927
1827
  function getHubspotClientConfig(options = {}) {
1928
1828
  var _a;
1929
1829
  const currentHeaders = hubspotClientInstance.defaults.headers;
@@ -1991,18 +1891,6 @@ bigCommerceClientInstance.interceptors.response.use(
1991
1891
  }
1992
1892
  );
1993
1893
  var getBigCommerceClientUrl = (store) => `https://api.bigcommerce.com/stores/${store}/v3`;
1994
- function getBigCommerceClientAuthorization(req) {
1995
- if (req.headers instanceof Headers) {
1996
- return {
1997
- shop: req.headers.get("x-adapter-bigcommerce-shop"),
1998
- token: req.headers.get("x-adapter-bigcommerce-token")
1999
- };
2000
- }
2001
- return {
2002
- shop: req.headers["x-adapter-bigcommerce-shop"],
2003
- token: req.headers["x-adapter-bigcommerce-token"]
2004
- };
2005
- }
2006
1894
  function getBigCommerceClientConfig(options = {}) {
2007
1895
  var _a, _b;
2008
1896
  const currentBaseUrl = bigCommerceClientInstance.defaults.baseURL;
@@ -2066,16 +1954,6 @@ var AccountApiClient = class extends ApiClient {
2066
1954
  var platformAccountsClientInstance = new AccountApiClient({
2067
1955
  baseURL: "https://accounts.labs.livechatinc.com"
2068
1956
  });
2069
- function getPlatformAccountsClientAuthorization(req) {
2070
- if (req.headers instanceof Headers) {
2071
- return {
2072
- token: req.headers.get("x-adapter-platform-token")
2073
- };
2074
- }
2075
- return {
2076
- token: req.headers["x-adapter-platform-token"]
2077
- };
2078
- }
2079
1957
  function initPlatformAccountsClient(baseUrl, token) {
2080
1958
  if (baseUrl) {
2081
1959
  platformAccountsClientInstance.updateConfig({
@@ -2089,22 +1967,12 @@ function initPlatformAccountsClient(baseUrl, token) {
2089
1967
 
2090
1968
  // src/apis/platform/billing/instance.ts
2091
1969
  import axios14 from "axios";
2092
- var platformBillingClientInstance = axios14.create({
1970
+ var billingClientInstance = axios14.create({
2093
1971
  baseURL: "https://billing.labs.livechatinc.com"
2094
1972
  });
2095
- function getPlatformBillingClientAuthorization(req) {
2096
- if (req.headers instanceof Headers) {
2097
- return {
2098
- token: req.headers.get("x-adapter-platform-token")
2099
- };
2100
- }
2101
- return {
2102
- token: req.headers["x-adapter-platform-token"]
2103
- };
2104
- }
2105
- function getPlatformBillingClientConfig(options = {}) {
1973
+ function getBillingClientConfig(options = {}) {
2106
1974
  var _a;
2107
- const defaultAuthorization = platformBillingClientInstance.defaults.headers.Authorization;
1975
+ const defaultAuthorization = billingClientInstance.defaults.headers.Authorization;
2108
1976
  const headers = {
2109
1977
  authorization: (_a = options.token ? `Bearer ${options.token}` : void 0) != null ? _a : defaultAuthorization
2110
1978
  };
@@ -2112,9 +1980,9 @@ function getPlatformBillingClientConfig(options = {}) {
2112
1980
  headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
2113
1981
  };
2114
1982
  }
2115
- function initPlatformBillingClient(baseUrl, token) {
1983
+ function initBillingClient(baseUrl, token) {
2116
1984
  if (baseUrl) {
2117
- platformBillingClientInstance.interceptors.request.use(
1985
+ billingClientInstance.interceptors.request.use(
2118
1986
  (config) => {
2119
1987
  config.baseURL = baseUrl;
2120
1988
  return config;
@@ -2123,9 +1991,9 @@ function initPlatformBillingClient(baseUrl, token) {
2123
1991
  );
2124
1992
  }
2125
1993
  if (token) {
2126
- platformBillingClientInstance.defaults.headers.Authorization = `Bearer ${token}`;
1994
+ billingClientInstance.defaults.headers.Authorization = `Bearer ${token}`;
2127
1995
  } else {
2128
- delete platformBillingClientInstance.defaults.headers.Authorization;
1996
+ delete billingClientInstance.defaults.headers.Authorization;
2129
1997
  }
2130
1998
  }
2131
1999
 
@@ -2614,13 +2482,13 @@ var AdapterApiError = class _AdapterApiError extends ApiErrorBase {
2614
2482
  );
2615
2483
  }
2616
2484
  };
2617
- var platformAdapterClientInstance = axios15.create({
2485
+ var adapterClientInstance = axios15.create({
2618
2486
  baseURL: "https://platform.labs.text.com/console-adapter/api",
2619
2487
  headers: {
2620
2488
  "Content-Type": "application/json"
2621
2489
  }
2622
2490
  });
2623
- platformAdapterClientInstance.interceptors.response.use(
2491
+ adapterClientInstance.interceptors.response.use(
2624
2492
  (response) => response,
2625
2493
  (error) => {
2626
2494
  var _a, _b;
@@ -2636,91 +2504,9 @@ platformAdapterClientInstance.interceptors.response.use(
2636
2504
  return Promise.reject(error);
2637
2505
  }
2638
2506
  );
2639
- function getPlatformAdapterClientAuthorization(req) {
2640
- if (req.headers instanceof Headers) {
2641
- return {
2642
- platform: {
2643
- token: req.headers.get("x-adapter-platform-token")
2644
- },
2645
- github: {
2646
- appToken: req.headers.get("x-adapter-github-app-token"),
2647
- oauthToken: req.headers.get("x-adapter-github-oauth-token")
2648
- },
2649
- netlify: {
2650
- token: req.headers.get("x-adapter-netlify-token")
2651
- },
2652
- vercel: {
2653
- token: req.headers.get("x-adapter-vercel-token")
2654
- },
2655
- planetscale: {
2656
- token: req.headers.get("x-adapter-planetscale-token")
2657
- },
2658
- neon: {
2659
- token: req.headers.get("x-adapter-neon-token")
2660
- },
2661
- mailchimp: {
2662
- token: req.headers.get("x-adapter-mailchimp-token"),
2663
- server: req.headers.get("x-adapter-mailchimp-server")
2664
- },
2665
- shopify: {
2666
- token: req.headers.get("x-adapter-shopify-token"),
2667
- shop: req.headers.get("x-adapter-shopify-shop")
2668
- },
2669
- hubspot: {
2670
- token: req.headers.get("x-adapter-hubspot-token")
2671
- },
2672
- bigcommerce: {
2673
- token: req.headers.get("x-adapter-bigcommerce-token"),
2674
- shop: req.headers.get("x-adapter-bigcommerce-shop")
2675
- },
2676
- text: {
2677
- token: req.headers.get("x-adapter-text-token")
2678
- }
2679
- };
2680
- }
2681
- return {
2682
- platform: {
2683
- token: req.headers["x-adapter-platform-token"]
2684
- },
2685
- github: {
2686
- appToken: req.headers["x-adapter-github-app-token"],
2687
- oauthToken: req.headers["x-adapter-github-oauth-token"]
2688
- },
2689
- netlify: {
2690
- token: req.headers["x-adapter-netlify-token"]
2691
- },
2692
- vercel: {
2693
- token: req.headers["x-adapter-vercel-token"]
2694
- },
2695
- planetscale: {
2696
- token: req.headers["x-adapter-planetscale-token"]
2697
- },
2698
- neon: {
2699
- token: req.headers["x-adapter-neon-token"]
2700
- },
2701
- mailchimp: {
2702
- token: req.headers["x-adapter-mailchimp-token"],
2703
- server: req.headers["x-adapter-mailchimp-server"]
2704
- },
2705
- shopify: {
2706
- token: req.headers["x-adapter-shopify-token"],
2707
- shop: req.headers["x-adapter-shopify-shop"]
2708
- },
2709
- hubspot: {
2710
- token: req.headers["x-adapter-hubspot-token"]
2711
- },
2712
- bigcommerce: {
2713
- token: req.headers["x-adapter-bigcommerce-token"],
2714
- shop: req.headers["x-adapter-bigcommerce-shop"]
2715
- },
2716
- text: {
2717
- token: req.headers["x-adapter-text-token"]
2718
- }
2719
- };
2720
- }
2721
- function getPlatformAdapterClientConfig(options = {}) {
2507
+ function getAdapterClientConfig(options = {}) {
2722
2508
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P;
2723
- const currentHeaders = platformAdapterClientInstance.defaults.headers;
2509
+ const currentHeaders = adapterClientInstance.defaults.headers;
2724
2510
  const headers = {
2725
2511
  platform: {
2726
2512
  token: (_b = currentHeaders["x-adapter-platform-token"]) != null ? _b : (_a = options.platform) == null ? void 0 : _a.token
@@ -2784,14 +2570,14 @@ function getPlatformAdapterClientConfig(options = {}) {
2784
2570
  headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.token ? { "x-adapter-platform-token": headers.platform.token } : {}), headers.integrations.github.app ? { "x-adapter-github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "x-adapter-github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "x-adapter-netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "x-adapter-vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "x-adapter-planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "x-adapter-neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "x-adapter-mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.mailchimpServer ? { "x-adapter-mailchimp-server": headers.integrations.mailchimpServer } : {}), headers.integrations.shopify ? { "x-adapter-shopify-token": headers.integrations.shopify } : {}), headers.integrations.shopifyShop ? { "x-adapter-shopify-shop": headers.integrations.shopifyShop } : {}), headers.integrations.hubspot ? { "x-adapter-hubspot-token": headers.integrations.hubspot } : {}), headers.integrations.bigcommerce ? { "x-adapter-bigcommerce-token": headers.integrations.bigcommerce } : {}), headers.integrations.bigcommerceShop ? { "x-adapter-bigcommerce-shop": headers.integrations.bigcommerceShop } : {}), headers.integrations.text ? { "x-adapter-text-token": headers.integrations.text } : {})
2785
2571
  };
2786
2572
  }
2787
- var getPlatformAdapterClientDefaultConfig = (authorization) => getPlatformAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
2573
+ var getAdapterClientDefaultConfig = (authorization) => getAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
2788
2574
  ensureAuthorizationToken: {
2789
2575
  platform: true
2790
2576
  }
2791
2577
  }));
2792
- function initPlatformAdapterClient(baseUrl, tokens) {
2578
+ function initAdapterClient(baseUrl, tokens) {
2793
2579
  if (baseUrl) {
2794
- platformAdapterClientInstance.interceptors.request.use(
2580
+ adapterClientInstance.interceptors.request.use(
2795
2581
  (config) => {
2796
2582
  config.baseURL = baseUrl;
2797
2583
  return config;
@@ -2800,12 +2586,12 @@ function initPlatformAdapterClient(baseUrl, tokens) {
2800
2586
  );
2801
2587
  }
2802
2588
  if (tokens) {
2803
- updatePlatformAdapterClient(tokens);
2589
+ updateAdapterClient(tokens);
2804
2590
  }
2805
2591
  }
2806
- function updatePlatformAdapterClient(tokens) {
2592
+ function updateAdapterClient(tokens) {
2807
2593
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
2808
- const headers = platformAdapterClientInstance.defaults.headers;
2594
+ const headers = adapterClientInstance.defaults.headers;
2809
2595
  if ((_a = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _a.token) {
2810
2596
  headers["x-adapter-platform-token"] = tokens.platform.token;
2811
2597
  }
@@ -2928,10 +2714,10 @@ var DpsApiError = class extends ApiErrorBase {
2928
2714
  this.name = "dps";
2929
2715
  }
2930
2716
  };
2931
- var platformDpsClientInstance = axios16.create({
2717
+ var dpsClientInstance = axios16.create({
2932
2718
  baseURL: "https://dev-platform.labs.livechatinc.com"
2933
2719
  });
2934
- platformDpsClientInstance.interceptors.response.use(
2720
+ dpsClientInstance.interceptors.response.use(
2935
2721
  (response) => response,
2936
2722
  (error) => {
2937
2723
  var _a, _b, _c, _d;
@@ -2947,28 +2733,9 @@ platformDpsClientInstance.interceptors.response.use(
2947
2733
  );
2948
2734
  }
2949
2735
  );
2950
- function getPlatformDpsClientAuthorization(req) {
2951
- if (req.headers instanceof Headers) {
2952
- return {
2953
- token: req.headers.get("x-adapter-platform-token"),
2954
- tokenType: "Bearer"
2955
- };
2956
- }
2957
- return {
2958
- token: req.headers["x-adapter-platform-token"],
2959
- tokenType: "Bearer"
2960
- };
2961
- }
2962
- function getPlatformDpsAdminClientAuthorization() {
2963
- const token = process.env.PLATFORM_DPS_TOKEN_FOR_GITHUB;
2964
- return {
2965
- token: btoa(`apps@livechatinc.com:${token}`),
2966
- tokenType: "Basic"
2967
- };
2968
- }
2969
- function getPlatformDpsClientConfig(options = {}) {
2736
+ function getDpsClientConfig(options = {}) {
2970
2737
  var _a, _b;
2971
- const currentHeaders = platformDpsClientInstance.defaults.headers;
2738
+ const currentHeaders = dpsClientInstance.defaults.headers;
2972
2739
  const defaultAuthorization = currentHeaders.Authorization;
2973
2740
  const headers = {
2974
2741
  authorization: (_b = options.token ? `${(_a = options.tokenType) != null ? _a : "Bearer"} ${options.token}` : void 0) != null ? _b : defaultAuthorization
@@ -2977,10 +2744,10 @@ function getPlatformDpsClientConfig(options = {}) {
2977
2744
  headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
2978
2745
  };
2979
2746
  }
2980
- function initPlatformDpsClient(baseUrl, token) {
2981
- const headers = platformDpsClientInstance.defaults.headers;
2747
+ function initDpsClient(baseUrl, token) {
2748
+ const headers = dpsClientInstance.defaults.headers;
2982
2749
  if (baseUrl) {
2983
- platformDpsClientInstance.interceptors.request.use(
2750
+ dpsClientInstance.interceptors.request.use(
2984
2751
  (config) => {
2985
2752
  config.baseURL = baseUrl;
2986
2753
  return config;
@@ -3061,16 +2828,6 @@ livechatClientInstance.interceptors.response.use(
3061
2828
  );
3062
2829
  }
3063
2830
  );
3064
- function getLiveChatClientAuthorization(req) {
3065
- if (req.headers instanceof Headers) {
3066
- return {
3067
- token: req.headers.get("x-adapter-platform-token")
3068
- };
3069
- }
3070
- return {
3071
- token: req.headers["x-adapter-platform-token"]
3072
- };
3073
- }
3074
2831
  function getLiveChatClientConfig(options = {}) {
3075
2832
  var _a, _b;
3076
2833
  const currentHeaders = livechatClientInstance.defaults.headers;
@@ -3272,10 +3029,10 @@ var textAppMonitoringReportsApi = {
3272
3029
  getUptimeDetails(appId, authorization) {
3273
3030
  return __async(this, null, function* () {
3274
3031
  try {
3275
- const response = yield platformDpsClientInstance.get(
3032
+ const response = yield dpsClientInstance.get(
3276
3033
  `/v2/applications/${encodeURIComponent(appId)}/monitoring`,
3277
3034
  // proxy endpoint
3278
- getPlatformDpsClientConfig(authorization)
3035
+ getDpsClientConfig(authorization)
3279
3036
  );
3280
3037
  return response.data;
3281
3038
  } catch (error) {
@@ -4460,6 +4217,24 @@ var hubspotWebhooksApi = {
4460
4217
  // })
4461
4218
  );
4462
4219
  });
4220
+ },
4221
+ delete(appId, authorization) {
4222
+ return __async(this, null, function* () {
4223
+ const params = new URLSearchParams(
4224
+ (authorization == null ? void 0 : authorization.apiKey) ? {
4225
+ hapikey: authorization.apiKey
4226
+ } : {}
4227
+ );
4228
+ return hubspotClientInstance.delete(
4229
+ `/webhooks/v1/${encodeURIComponent(
4230
+ appId
4231
+ )}/settings?${params.toString()}`
4232
+ // getHubspotClientConfig({
4233
+ // ...authorization,
4234
+ // ensureAuthorizationToken: true,
4235
+ // })
4236
+ );
4237
+ });
4463
4238
  }
4464
4239
  },
4465
4240
  subscriptions: {
@@ -4660,7 +4435,7 @@ var integrationsApi = {
4660
4435
  neon: neonApi,
4661
4436
  planetscale: planetscaleApi,
4662
4437
  hubspot: hubspotApi,
4663
- bigommerce: bigcommerceApi,
4438
+ bigcommerce: bigcommerceApi,
4664
4439
  openai: openaiApi,
4665
4440
  text: textApi
4666
4441
  };
@@ -5757,10 +5532,10 @@ var platformAccountsApi = {
5757
5532
  var platformDpsApplicationAuthorizationApi = {
5758
5533
  createAuth(appId, payload, authorization) {
5759
5534
  return __async(this, null, function* () {
5760
- yield platformDpsClientInstance.post(
5535
+ yield dpsClientInstance.post(
5761
5536
  `/v2/applications/${encodeURIComponent(appId)}/authorization`,
5762
5537
  payload,
5763
- getPlatformDpsClientConfig(authorization)
5538
+ getDpsClientConfig(authorization)
5764
5539
  ).catch((error) => {
5765
5540
  throw error.withCustomMessage(
5766
5541
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
@@ -5770,9 +5545,9 @@ var platformDpsApplicationAuthorizationApi = {
5770
5545
  },
5771
5546
  deleteAuth(appId, authorization) {
5772
5547
  return __async(this, null, function* () {
5773
- yield platformDpsClientInstance.delete(
5548
+ yield dpsClientInstance.delete(
5774
5549
  `/v2/applications/${encodeURIComponent(appId)}/authorization`,
5775
- getPlatformDpsClientConfig(authorization)
5550
+ getDpsClientConfig(authorization)
5776
5551
  ).catch((error) => {
5777
5552
  throw error.withCustomMessage(
5778
5553
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -5786,9 +5561,9 @@ var platformDpsApplicationAuthorizationApi = {
5786
5561
  var platformDpsApplicationAutoReviewApi = {
5787
5562
  getAutoReview(appId, authorization) {
5788
5563
  return __async(this, null, function* () {
5789
- return platformDpsClientInstance.get(
5564
+ return dpsClientInstance.get(
5790
5565
  `/v2/applications/${encodeURIComponent(appId)}/auto-review`,
5791
- getPlatformDpsClientConfig(authorization)
5566
+ getDpsClientConfig(authorization)
5792
5567
  ).then(({ status, data }) => {
5793
5568
  if (status === 204) {
5794
5569
  return getEmptyAppAutoReview();
@@ -5803,10 +5578,10 @@ var platformDpsApplicationAutoReviewApi = {
5803
5578
  },
5804
5579
  submitAutoReview(appId, payload, authorization) {
5805
5580
  return __async(this, null, function* () {
5806
- yield platformDpsClientInstance.post(
5581
+ yield dpsClientInstance.post(
5807
5582
  `/v2/applications/${encodeURIComponent(appId)}/auto-review`,
5808
5583
  payload,
5809
- getPlatformDpsClientConfig(authorization)
5584
+ getDpsClientConfig(authorization)
5810
5585
  ).catch((error) => {
5811
5586
  throw error.withCustomMessage(
5812
5587
  `The review couldn\u2019t be requested. [${error.message}]`
@@ -5820,12 +5595,12 @@ var platformDpsApplicationAutoReviewApi = {
5820
5595
  var platformDpsApplicationChatActionsApi = {
5821
5596
  createChatAction(appId, payload, authorization) {
5822
5597
  return __async(this, null, function* () {
5823
- yield platformDpsClientInstance.put(
5598
+ yield dpsClientInstance.put(
5824
5599
  `/v2/applications/${encodeURIComponent(
5825
5600
  appId
5826
5601
  )}/chat-actions/${encodeURIComponent(payload.id)}`,
5827
5602
  payload,
5828
- getPlatformDpsClientConfig(authorization)
5603
+ getDpsClientConfig(authorization)
5829
5604
  ).catch((error) => {
5830
5605
  throw error.withCustomMessage(
5831
5606
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
@@ -5835,12 +5610,12 @@ var platformDpsApplicationChatActionsApi = {
5835
5610
  },
5836
5611
  updateChatAction(appId, payload, authorization) {
5837
5612
  return __async(this, null, function* () {
5838
- yield platformDpsClientInstance.patch(
5613
+ yield dpsClientInstance.patch(
5839
5614
  `/v2/applications/${encodeURIComponent(
5840
5615
  appId
5841
5616
  )}/chat-actions/${encodeURIComponent(payload.id)}`,
5842
5617
  payload,
5843
- getPlatformDpsClientConfig(authorization)
5618
+ getDpsClientConfig(authorization)
5844
5619
  ).catch((error) => {
5845
5620
  throw error.withCustomMessage(
5846
5621
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -5850,11 +5625,11 @@ var platformDpsApplicationChatActionsApi = {
5850
5625
  },
5851
5626
  deleteChatAction(appId, chatActionId, authorization) {
5852
5627
  return __async(this, null, function* () {
5853
- yield platformDpsClientInstance.delete(
5628
+ yield dpsClientInstance.delete(
5854
5629
  `/v2/applications/${encodeURIComponent(
5855
5630
  appId
5856
5631
  )}/chat-actions/${encodeURIComponent(chatActionId)}`,
5857
- __spreadValues({}, getPlatformDpsClientConfig(authorization))
5632
+ __spreadValues({}, getDpsClientConfig(authorization))
5858
5633
  ).catch((error) => {
5859
5634
  throw error.withCustomMessage(
5860
5635
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -5867,12 +5642,12 @@ var platformDpsApplicationChatActionsApi = {
5867
5642
  // src/apis/platform/dps/applications/application/chatBoosters/api.ts
5868
5643
  var platformDpsApplicationChatBoostersApi = {
5869
5644
  createChatBooster(appId, chatBoosterId, payload, authorization) {
5870
- return platformDpsClientInstance.put(
5645
+ return dpsClientInstance.put(
5871
5646
  `/v2/applications/${encodeURIComponent(
5872
5647
  appId
5873
5648
  )}/chat-boosters/${encodeURIComponent(chatBoosterId)}`,
5874
5649
  payload,
5875
- getPlatformDpsClientConfig(authorization)
5650
+ getDpsClientConfig(authorization)
5876
5651
  ).catch((error) => {
5877
5652
  throw error.withCustomMessage(
5878
5653
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
@@ -5881,12 +5656,12 @@ var platformDpsApplicationChatBoostersApi = {
5881
5656
  },
5882
5657
  updateChatBooster(appId, chatBoosterId, payload, authorization) {
5883
5658
  return __async(this, null, function* () {
5884
- return platformDpsClientInstance.put(
5659
+ return dpsClientInstance.put(
5885
5660
  `/v2/applications/${encodeURIComponent(
5886
5661
  appId
5887
5662
  )}/chat-boosters/${encodeURIComponent(chatBoosterId)}`,
5888
5663
  payload,
5889
- getPlatformDpsClientConfig(authorization)
5664
+ getDpsClientConfig(authorization)
5890
5665
  ).catch((error) => {
5891
5666
  throw error.withCustomMessage(
5892
5667
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -5896,11 +5671,11 @@ var platformDpsApplicationChatBoostersApi = {
5896
5671
  },
5897
5672
  deleteChatBooster(appId, chatBoosterId, authorization) {
5898
5673
  return __async(this, null, function* () {
5899
- return platformDpsClientInstance.delete(
5674
+ return dpsClientInstance.delete(
5900
5675
  `/v2/applications/${encodeURIComponent(
5901
5676
  appId
5902
5677
  )}/chat-boosters/${encodeURIComponent(chatBoosterId)}`,
5903
- getPlatformDpsClientConfig(authorization)
5678
+ getDpsClientConfig(authorization)
5904
5679
  ).catch((error) => {
5905
5680
  throw error.withCustomMessage(
5906
5681
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -5914,10 +5689,10 @@ var platformDpsApplicationChatBoostersApi = {
5914
5689
  var platformDpsApplicationDisplayApi = {
5915
5690
  updateVersionHistory(appId, payload, authorization) {
5916
5691
  return __async(this, null, function* () {
5917
- yield platformDpsClientInstance.put(
5692
+ yield dpsClientInstance.put(
5918
5693
  `/v2/applications/${encodeURIComponent(appId)}/display/changelog`,
5919
5694
  payload,
5920
- getPlatformDpsClientConfig(authorization)
5695
+ getDpsClientConfig(authorization)
5921
5696
  ).catch((error) => {
5922
5697
  throw error.withCustomMessage(
5923
5698
  `Listing details couldn't be updated. [${error.message}]`
@@ -5927,10 +5702,10 @@ var platformDpsApplicationDisplayApi = {
5927
5702
  },
5928
5703
  updateBasicDetails(appId, basicDetails, authorization) {
5929
5704
  return __async(this, null, function* () {
5930
- yield platformDpsClientInstance.put(
5705
+ yield dpsClientInstance.put(
5931
5706
  `/v2/applications/${encodeURIComponent(appId)}/display`,
5932
5707
  basicDetails,
5933
- getPlatformDpsClientConfig(authorization)
5708
+ getDpsClientConfig(authorization)
5934
5709
  ).catch((error) => {
5935
5710
  throw error.withCustomMessage(
5936
5711
  `Listing details couldn't be updated. [${error.message}]`
@@ -5940,10 +5715,10 @@ var platformDpsApplicationDisplayApi = {
5940
5715
  },
5941
5716
  patchBasicDetails(appId, basicDetails, authorization) {
5942
5717
  return __async(this, null, function* () {
5943
- yield platformDpsClientInstance.patch(
5718
+ yield dpsClientInstance.patch(
5944
5719
  `/v2/applications/${encodeURIComponent(appId)}/display`,
5945
5720
  basicDetails,
5946
- getPlatformDpsClientConfig(authorization)
5721
+ getDpsClientConfig(authorization)
5947
5722
  ).catch((error) => {
5948
5723
  throw error.withCustomMessage(
5949
5724
  `Listing details couldn't be updated. [${error.message}]`
@@ -5953,10 +5728,10 @@ var platformDpsApplicationDisplayApi = {
5953
5728
  },
5954
5729
  updateOverview(appId, data, authorization) {
5955
5730
  return __async(this, null, function* () {
5956
- yield platformDpsClientInstance.put(
5731
+ yield dpsClientInstance.put(
5957
5732
  `/v2/applications/${encodeURIComponent(appId)}/listing/overview`,
5958
5733
  data,
5959
- getPlatformDpsClientConfig(authorization)
5734
+ getDpsClientConfig(authorization)
5960
5735
  ).catch((error) => {
5961
5736
  throw error.withCustomMessage(
5962
5737
  `Listing details couldn't be updated. [${error.message}]`
@@ -5966,10 +5741,10 @@ var platformDpsApplicationDisplayApi = {
5966
5741
  },
5967
5742
  updateTutorialAndSupport(appId, data, authorization) {
5968
5743
  return __async(this, null, function* () {
5969
- yield platformDpsClientInstance.put(
5744
+ yield dpsClientInstance.put(
5970
5745
  `/v2/applications/${encodeURIComponent(appId)}/listing/support`,
5971
5746
  data,
5972
- getPlatformDpsClientConfig(authorization)
5747
+ getDpsClientConfig(authorization)
5973
5748
  ).catch((error) => {
5974
5749
  throw error.withCustomMessage(
5975
5750
  `Listing details couldn't be updated. [${error.message}]`
@@ -5979,10 +5754,10 @@ var platformDpsApplicationDisplayApi = {
5979
5754
  },
5980
5755
  updateAppIcon(appId, payload, authorization) {
5981
5756
  return __async(this, null, function* () {
5982
- yield platformDpsClientInstance.put(
5757
+ yield dpsClientInstance.put(
5983
5758
  `/v2/applications/${encodeURIComponent(appId)}/display/icons`,
5984
5759
  payload,
5985
- getPlatformDpsClientConfig(authorization)
5760
+ getDpsClientConfig(authorization)
5986
5761
  ).catch((error) => {
5987
5762
  throw error.withCustomMessage(
5988
5763
  `Listing details couldn't be updated. [${error.message}]`
@@ -5992,10 +5767,10 @@ var platformDpsApplicationDisplayApi = {
5992
5767
  },
5993
5768
  updateDisplayImages(appId, screenshots, authorization) {
5994
5769
  return __async(this, null, function* () {
5995
- yield platformDpsClientInstance.put(
5770
+ yield dpsClientInstance.put(
5996
5771
  `/v2/applications/${encodeURIComponent(appId)}/screenshots/commit`,
5997
5772
  screenshots,
5998
- getPlatformDpsClientConfig(authorization)
5773
+ getDpsClientConfig(authorization)
5999
5774
  ).catch((error) => {
6000
5775
  throw error.withCustomMessage(
6001
5776
  `Listing details couldn't be updated. [${error.message}]`
@@ -6005,10 +5780,10 @@ var platformDpsApplicationDisplayApi = {
6005
5780
  },
6006
5781
  updateDisplayFeatures(appId, features, authorization) {
6007
5782
  return __async(this, null, function* () {
6008
- yield platformDpsClientInstance.put(
5783
+ yield dpsClientInstance.put(
6009
5784
  `/v2/applications/${encodeURIComponent(appId)}/features`,
6010
5785
  features,
6011
- getPlatformDpsClientConfig(authorization)
5786
+ getDpsClientConfig(authorization)
6012
5787
  ).catch((error) => {
6013
5788
  throw error.withCustomMessage(
6014
5789
  `Listing details couldn't be updated. [${error.message}]`
@@ -6018,10 +5793,10 @@ var platformDpsApplicationDisplayApi = {
6018
5793
  },
6019
5794
  updateDisplayBenefits(appId, benefits, authorization) {
6020
5795
  return __async(this, null, function* () {
6021
- yield platformDpsClientInstance.put(
5796
+ yield dpsClientInstance.put(
6022
5797
  `/v2/applications/${encodeURIComponent(appId)}/benefits`,
6023
5798
  benefits,
6024
- getPlatformDpsClientConfig(authorization)
5799
+ getDpsClientConfig(authorization)
6025
5800
  ).catch((error) => {
6026
5801
  throw error.withCustomMessage(
6027
5802
  `Listing details couldn't be updated. [${error.message}]`
@@ -6031,10 +5806,10 @@ var platformDpsApplicationDisplayApi = {
6031
5806
  },
6032
5807
  uploadImage(appId, body, authorization) {
6033
5808
  return __async(this, null, function* () {
6034
- return platformDpsClientInstance.post(
5809
+ return dpsClientInstance.post(
6035
5810
  `/v2/applications/${encodeURIComponent(appId)}/image`,
6036
5811
  body,
6037
- getPlatformDpsClientConfig(authorization)
5812
+ getDpsClientConfig(authorization)
6038
5813
  ).catch((error) => {
6039
5814
  throw error.withCustomMessage(`Image couldn't be uploaded`);
6040
5815
  });
@@ -6046,9 +5821,9 @@ var platformDpsApplicationDisplayApi = {
6046
5821
  var platformDpsApplicationEventApi = {
6047
5822
  getEvents(appId, authorization) {
6048
5823
  return __async(this, null, function* () {
6049
- return platformDpsClientInstance.get(
5824
+ return dpsClientInstance.get(
6050
5825
  `/v2/applications/${encodeURIComponent(appId)}/events?limit=300`,
6051
- getPlatformDpsClientConfig(authorization)
5826
+ getDpsClientConfig(authorization)
6052
5827
  ).then(({ data }) => data).catch((error) => {
6053
5828
  throw error.withCustomMessage(
6054
5829
  `App Events couldn't be fetched. [${error.message}]`
@@ -6062,9 +5837,9 @@ var platformDpsApplicationEventApi = {
6062
5837
  var platformDpsApplicationInfrastructureBlocksApi = {
6063
5838
  getBlocks(appId, authorization) {
6064
5839
  return __async(this, null, function* () {
6065
- const response = yield platformDpsClientInstance.get(
5840
+ const response = yield dpsClientInstance.get(
6066
5841
  `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
6067
- getPlatformDpsClientConfig(authorization)
5842
+ getDpsClientConfig(authorization)
6068
5843
  );
6069
5844
  delete response.data.appId;
6070
5845
  return response.data;
@@ -6072,26 +5847,26 @@ var platformDpsApplicationInfrastructureBlocksApi = {
6072
5847
  },
6073
5848
  updateBlocks(appId, payload, authorization) {
6074
5849
  return __async(this, null, function* () {
6075
- yield platformDpsClientInstance.patch(
5850
+ yield dpsClientInstance.patch(
6076
5851
  `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
6077
5852
  payload,
6078
- getPlatformDpsClientConfig(authorization)
5853
+ getDpsClientConfig(authorization)
6079
5854
  );
6080
5855
  });
6081
5856
  },
6082
5857
  deleteBlock(appId, block, authorization) {
6083
5858
  return __async(this, null, function* () {
6084
- yield platformDpsClientInstance.delete(
5859
+ yield dpsClientInstance.delete(
6085
5860
  `/v2/applications/${encodeURIComponent(
6086
5861
  appId
6087
5862
  )}/infrastructure/blocks/${encodeURIComponent(block)}`,
6088
- getPlatformDpsClientConfig(authorization)
5863
+ getDpsClientConfig(authorization)
6089
5864
  );
6090
5865
  });
6091
5866
  },
6092
5867
  updateRepository(appId, payload, authorization) {
6093
5868
  return __async(this, null, function* () {
6094
- yield platformDpsClientInstance.patch(
5869
+ yield dpsClientInstance.patch(
6095
5870
  `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
6096
5871
  {
6097
5872
  appId,
@@ -6099,14 +5874,14 @@ var platformDpsApplicationInfrastructureBlocksApi = {
6099
5874
  provider: payload.provider
6100
5875
  }
6101
5876
  },
6102
- getPlatformDpsClientConfig(authorization)
5877
+ getDpsClientConfig(authorization)
6103
5878
  );
6104
5879
  });
6105
5880
  },
6106
5881
  updateDeployment(appId, payload, authorization) {
6107
5882
  return __async(this, null, function* () {
6108
5883
  const config = payload.customUrl ? { custom: { url: payload.customUrl } } : { custom: null };
6109
- yield platformDpsClientInstance.patch(
5884
+ yield dpsClientInstance.patch(
6110
5885
  `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
6111
5886
  {
6112
5887
  appId,
@@ -6115,13 +5890,13 @@ var platformDpsApplicationInfrastructureBlocksApi = {
6115
5890
  config
6116
5891
  }
6117
5892
  },
6118
- getPlatformDpsClientConfig(authorization)
5893
+ getDpsClientConfig(authorization)
6119
5894
  );
6120
5895
  });
6121
5896
  },
6122
5897
  updateStorage(appId, payload, authorization) {
6123
5898
  return __async(this, null, function* () {
6124
- yield platformDpsClientInstance.patch(
5899
+ yield dpsClientInstance.patch(
6125
5900
  `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
6126
5901
  {
6127
5902
  appId,
@@ -6129,7 +5904,7 @@ var platformDpsApplicationInfrastructureBlocksApi = {
6129
5904
  provider: payload.provider
6130
5905
  }
6131
5906
  },
6132
- getPlatformDpsClientConfig(authorization)
5907
+ getDpsClientConfig(authorization)
6133
5908
  );
6134
5909
  });
6135
5910
  }
@@ -6144,9 +5919,9 @@ var platformDpsApplicationInfrastructureApi = {
6144
5919
  var platformDpsApplicationInstallApi = {
6145
5920
  getInstallationsCount(appId, authorization) {
6146
5921
  return __async(this, null, function* () {
6147
- return platformDpsClientInstance.get(
5922
+ return dpsClientInstance.get(
6148
5923
  `/v2/applications/${encodeURIComponent(appId)}/installations/count`,
6149
- getPlatformDpsClientConfig(authorization)
5924
+ getDpsClientConfig(authorization)
6150
5925
  ).catch((error) => {
6151
5926
  throw error.withCustomMessage(
6152
5927
  `Couldn't get app installation count. [${error.message}]`
@@ -6156,10 +5931,10 @@ var platformDpsApplicationInstallApi = {
6156
5931
  },
6157
5932
  install(appId, authorization) {
6158
5933
  return __async(this, null, function* () {
6159
- yield platformDpsClientInstance.put(
5934
+ yield dpsClientInstance.put(
6160
5935
  `/v2/applications/${encodeURIComponent(appId)}/install`,
6161
5936
  {},
6162
- getPlatformDpsClientConfig(authorization)
5937
+ getDpsClientConfig(authorization)
6163
5938
  ).catch((error) => {
6164
5939
  throw error.withCustomMessage(
6165
5940
  `App couldn't be installed. [${error.message}]`
@@ -6169,9 +5944,9 @@ var platformDpsApplicationInstallApi = {
6169
5944
  },
6170
5945
  uninstall(appId, authorization) {
6171
5946
  return __async(this, null, function* () {
6172
- yield platformDpsClientInstance.delete(
5947
+ yield dpsClientInstance.delete(
6173
5948
  `/v2/applications/${encodeURIComponent(appId)}/install`,
6174
- getPlatformDpsClientConfig(authorization)
5949
+ getDpsClientConfig(authorization)
6175
5950
  ).catch((error) => {
6176
5951
  throw error.withCustomMessage(
6177
5952
  `App couldn't be uninstalled. [${error.message}]`
@@ -6181,10 +5956,10 @@ var platformDpsApplicationInstallApi = {
6181
5956
  },
6182
5957
  updateDirectInstallationUrl(appId, payload, authorization) {
6183
5958
  return __async(this, null, function* () {
6184
- yield platformDpsClientInstance.put(
5959
+ yield dpsClientInstance.put(
6185
5960
  `/v2/applications/${encodeURIComponent(appId)}/install/direct`,
6186
5961
  payload,
6187
- getPlatformDpsClientConfig(authorization)
5962
+ getDpsClientConfig(authorization)
6188
5963
  ).catch((error) => {
6189
5964
  throw error.withCustomMessage(
6190
5965
  `Direct installation URL couldn't be updated. [${error.message}]`
@@ -6194,10 +5969,10 @@ var platformDpsApplicationInstallApi = {
6194
5969
  },
6195
5970
  getInstalledApplication(appId, license, authorization) {
6196
5971
  return __async(this, null, function* () {
6197
- return platformDpsClientInstance.get(
5972
+ return dpsClientInstance.get(
6198
5973
  `/v1/applications/${encodeURIComponent(appId)}/installed`,
6199
5974
  {
6200
- headers: __spreadProps(__spreadValues({}, getPlatformDpsClientConfig(authorization).headers), {
5975
+ headers: __spreadProps(__spreadValues({}, getDpsClientConfig(authorization).headers), {
6201
5976
  "X-License": license
6202
5977
  })
6203
5978
  }
@@ -6212,10 +5987,10 @@ var platformDpsApplicationInstallApi = {
6212
5987
  var platformDpsApplicationOnboardingApi = {
6213
5988
  updateOnboarding(appId, payload, authorization) {
6214
5989
  return __async(this, null, function* () {
6215
- yield platformDpsClientInstance.put(
5990
+ yield dpsClientInstance.put(
6216
5991
  `/v2/applications/${encodeURIComponent(appId)}/onboarding`,
6217
5992
  payload,
6218
- getPlatformDpsClientConfig(authorization)
5993
+ getDpsClientConfig(authorization)
6219
5994
  ).catch((error) => {
6220
5995
  throw error.withCustomMessage(
6221
5996
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6225,9 +6000,9 @@ var platformDpsApplicationOnboardingApi = {
6225
6000
  },
6226
6001
  deleteOnboarding(appId, authorization) {
6227
6002
  return __async(this, null, function* () {
6228
- yield platformDpsClientInstance.delete(
6003
+ yield dpsClientInstance.delete(
6229
6004
  `/v2/applications/${encodeURIComponent(appId)}/onboarding`,
6230
- __spreadValues({}, getPlatformDpsClientConfig(authorization))
6005
+ __spreadValues({}, getDpsClientConfig(authorization))
6231
6006
  ).catch((error) => {
6232
6007
  throw error.withCustomMessage(
6233
6008
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6242,12 +6017,12 @@ var platformDpsApplicationPaymentApi = {
6242
6017
  updatePaymentBlock(appId, payment, authorization) {
6243
6018
  return __async(this, null, function* () {
6244
6019
  var _a;
6245
- yield platformDpsClientInstance.put(
6020
+ yield dpsClientInstance.put(
6246
6021
  `/v2/applications/${encodeURIComponent(appId)}/payment`,
6247
6022
  __spreadProps(__spreadValues({}, payment), {
6248
6023
  creditCardRequired: (_a = payment.creditCardRequired) != null ? _a : true
6249
6024
  }),
6250
- getPlatformDpsClientConfig(authorization)
6025
+ getDpsClientConfig(authorization)
6251
6026
  ).catch((error) => {
6252
6027
  throw error.withCustomMessage(
6253
6028
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6257,9 +6032,9 @@ var platformDpsApplicationPaymentApi = {
6257
6032
  },
6258
6033
  deletePaymentBlock(appId, authorization) {
6259
6034
  return __async(this, null, function* () {
6260
- yield platformDpsClientInstance.delete(
6035
+ yield dpsClientInstance.delete(
6261
6036
  `/v2/applications/${encodeURIComponent(appId)}/payment`,
6262
- getPlatformDpsClientConfig(authorization)
6037
+ getDpsClientConfig(authorization)
6263
6038
  ).catch((error) => {
6264
6039
  throw error.withCustomMessage(
6265
6040
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6273,10 +6048,10 @@ var platformDpsApplicationPaymentApi = {
6273
6048
  var platformDpsApplicationProductApi = {
6274
6049
  updateProduct(appId, payload, authorization) {
6275
6050
  return __async(this, null, function* () {
6276
- yield platformDpsClientInstance.put(
6051
+ yield dpsClientInstance.put(
6277
6052
  `/v2/applications/${encodeURIComponent(appId)}/product`,
6278
6053
  payload,
6279
- getPlatformDpsClientConfig(authorization)
6054
+ getDpsClientConfig(authorization)
6280
6055
  ).catch((error) => {
6281
6056
  throw error.withCustomMessage(
6282
6057
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6290,10 +6065,10 @@ var platformDpsApplicationProductApi = {
6290
6065
  var platformDpsApplicationCustomPropsApi = {
6291
6066
  createCustomProps(appId, property, authorization) {
6292
6067
  return __async(this, null, function* () {
6293
- return platformDpsClientInstance.post(
6068
+ return dpsClientInstance.post(
6294
6069
  `/v2/applications/${encodeURIComponent(appId)}/property`,
6295
6070
  property,
6296
- getPlatformDpsClientConfig(authorization)
6071
+ getDpsClientConfig(authorization)
6297
6072
  ).then(({ data }) => data).catch((error) => {
6298
6073
  throw error.withCustomMessage(
6299
6074
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
@@ -6303,10 +6078,10 @@ var platformDpsApplicationCustomPropsApi = {
6303
6078
  },
6304
6079
  updateCustomProps(appId, property, authorization) {
6305
6080
  return __async(this, null, function* () {
6306
- return platformDpsClientInstance.put(
6081
+ return dpsClientInstance.put(
6307
6082
  `/v2/applications/${encodeURIComponent(appId)}/property`,
6308
6083
  property,
6309
- getPlatformDpsClientConfig(authorization)
6084
+ getDpsClientConfig(authorization)
6310
6085
  ).then(({ data }) => data).catch((error) => {
6311
6086
  throw error.withCustomMessage(
6312
6087
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6316,11 +6091,11 @@ var platformDpsApplicationCustomPropsApi = {
6316
6091
  },
6317
6092
  deleteCustomProps(appId, property, authorization) {
6318
6093
  return __async(this, null, function* () {
6319
- return platformDpsClientInstance.delete(
6094
+ return dpsClientInstance.delete(
6320
6095
  `/v2/applications/${encodeURIComponent(appId)}/property`,
6321
6096
  __spreadValues({
6322
6097
  data: property
6323
- }, getPlatformDpsClientConfig(authorization))
6098
+ }, getDpsClientConfig(authorization))
6324
6099
  ).then(({ data }) => data).catch((error) => {
6325
6100
  throw error.withCustomMessage(
6326
6101
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6334,9 +6109,9 @@ var platformDpsApplicationCustomPropsApi = {
6334
6109
  var platformDpsApplicationResourcesApi = {
6335
6110
  getAppUpgrades(appId, authorization) {
6336
6111
  return __async(this, null, function* () {
6337
- return platformDpsClientInstance.get(
6112
+ return dpsClientInstance.get(
6338
6113
  `/v2/applications/${encodeURIComponent(appId)}/resources`,
6339
- getPlatformDpsClientConfig(authorization)
6114
+ getDpsClientConfig(authorization)
6340
6115
  ).catch((error) => {
6341
6116
  throw error.withCustomMessage(
6342
6117
  `App Resources couldn't be loaded. [${error.message}]`
@@ -6346,10 +6121,10 @@ var platformDpsApplicationResourcesApi = {
6346
6121
  },
6347
6122
  createAppUpgrade(appId, body, authorization) {
6348
6123
  return __async(this, null, function* () {
6349
- return platformDpsClientInstance.put(
6124
+ return dpsClientInstance.put(
6350
6125
  `/v2/applications/${encodeURIComponent(appId)}/resources`,
6351
6126
  body,
6352
- getPlatformDpsClientConfig(authorization)
6127
+ getDpsClientConfig(authorization)
6353
6128
  ).catch((error) => {
6354
6129
  throw error.withCustomMessage(
6355
6130
  `App Resources couldn't be created. [${error.message}]`
@@ -6359,10 +6134,10 @@ var platformDpsApplicationResourcesApi = {
6359
6134
  },
6360
6135
  updateAppUpgrade(appId, body, authorization) {
6361
6136
  return __async(this, null, function* () {
6362
- return platformDpsClientInstance.put(
6137
+ return dpsClientInstance.put(
6363
6138
  `/v2/applications/${encodeURIComponent(appId)}/resources`,
6364
6139
  body,
6365
- getPlatformDpsClientConfig(authorization)
6140
+ getDpsClientConfig(authorization)
6366
6141
  ).catch((error) => {
6367
6142
  throw error.withCustomMessage(
6368
6143
  `App Resources couldn't be updated. [${error.message}]`
@@ -6372,11 +6147,11 @@ var platformDpsApplicationResourcesApi = {
6372
6147
  },
6373
6148
  deleteAppUpgrade(appId, resourceId, authorization) {
6374
6149
  return __async(this, null, function* () {
6375
- return platformDpsClientInstance.delete(
6150
+ return dpsClientInstance.delete(
6376
6151
  `/v2/applications/${encodeURIComponent(
6377
6152
  appId
6378
6153
  )}/resources/${encodeURIComponent(resourceId)}`,
6379
- getPlatformDpsClientConfig(authorization)
6154
+ getDpsClientConfig(authorization)
6380
6155
  ).catch((error) => {
6381
6156
  throw error.withCustomMessage(
6382
6157
  `App Resource couldn't be delete. [${error.message}]`
@@ -6386,12 +6161,12 @@ var platformDpsApplicationResourcesApi = {
6386
6161
  },
6387
6162
  copyUpgrade(sourceAppId, destinationAppId, authorization) {
6388
6163
  return __async(this, null, function* () {
6389
- return platformDpsClientInstance.put(
6164
+ return dpsClientInstance.put(
6390
6165
  `/v2/applications/${encodeURIComponent(
6391
6166
  sourceAppId
6392
6167
  )}/resources/copy?application=${encodeURIComponent(destinationAppId)}`,
6393
6168
  {},
6394
- getPlatformDpsClientConfig(authorization)
6169
+ getDpsClientConfig(authorization)
6395
6170
  ).catch((error) => {
6396
6171
  throw error.withCustomMessage(
6397
6172
  `App Resources couldn't be copied. [${error.message}]`
@@ -6405,10 +6180,10 @@ var platformDpsApplicationResourcesApi = {
6405
6180
  var platformDpsApplicationReviewApi = {
6406
6181
  createSubmission(appId, payload, authorization) {
6407
6182
  return __async(this, null, function* () {
6408
- return platformDpsClientInstance.put(
6183
+ return dpsClientInstance.put(
6409
6184
  `/v2/applications/${encodeURIComponent(appId)}/review/submit`,
6410
6185
  payload,
6411
- getPlatformDpsClientConfig(authorization)
6186
+ getDpsClientConfig(authorization)
6412
6187
  ).then(({ data }) => data).catch((error) => {
6413
6188
  throw error.withCustomMessage(
6414
6189
  `App couldn't be submitted for review. [${error.message}]`
@@ -6418,9 +6193,9 @@ var platformDpsApplicationReviewApi = {
6418
6193
  },
6419
6194
  cancelSubmission(appId, authorization) {
6420
6195
  return __async(this, null, function* () {
6421
- return platformDpsClientInstance.put(
6196
+ return dpsClientInstance.put(
6422
6197
  `/v2/applications/${encodeURIComponent(appId)}/review/cancel`,
6423
- getPlatformDpsClientConfig(authorization)
6198
+ getDpsClientConfig(authorization)
6424
6199
  ).then(({ data }) => data).catch((error) => {
6425
6200
  throw error.withCustomMessage(
6426
6201
  `App review couldn't be cancelled. [${error.message}]`
@@ -6434,9 +6209,9 @@ var platformDpsApplicationReviewApi = {
6434
6209
  var platformDpsApplicationStatsApi = {
6435
6210
  getStats(appId, authorization) {
6436
6211
  return __async(this, null, function* () {
6437
- return platformDpsClientInstance.get(
6212
+ return dpsClientInstance.get(
6438
6213
  `/v2/applications/${encodeURIComponent(appId)}/stats`,
6439
- getPlatformDpsClientConfig(authorization)
6214
+ getDpsClientConfig(authorization)
6440
6215
  ).catch((error) => {
6441
6216
  throw error.withCustomMessage(
6442
6217
  `App Stats couldn't be fetched. [${error.message}]`
@@ -6450,10 +6225,10 @@ var platformDpsApplicationStatsApi = {
6450
6225
  var platformDpsApplicationWebhooksApi = {
6451
6226
  updateAppWebhooks(appId, payload, authorization) {
6452
6227
  return __async(this, null, function* () {
6453
- yield platformDpsClientInstance.put(
6228
+ yield dpsClientInstance.put(
6454
6229
  `/v2/applications/${encodeURIComponent(appId)}/webhook`,
6455
6230
  payload,
6456
- getPlatformDpsClientConfig(authorization)
6231
+ getDpsClientConfig(authorization)
6457
6232
  ).catch((error) => {
6458
6233
  throw error.withCustomMessage(
6459
6234
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6463,9 +6238,9 @@ var platformDpsApplicationWebhooksApi = {
6463
6238
  },
6464
6239
  deleteAppWebhooks(appId, authorization) {
6465
6240
  return __async(this, null, function* () {
6466
- yield platformDpsClientInstance.delete(
6241
+ yield dpsClientInstance.delete(
6467
6242
  `/v2/applications/${encodeURIComponent(appId)}/webhook`,
6468
- getPlatformDpsClientConfig(authorization)
6243
+ getDpsClientConfig(authorization)
6469
6244
  ).catch((error) => {
6470
6245
  throw error.withCustomMessage(
6471
6246
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6475,9 +6250,9 @@ var platformDpsApplicationWebhooksApi = {
6475
6250
  },
6476
6251
  getChatWebhook(appId, authorization) {
6477
6252
  return __async(this, null, function* () {
6478
- return platformDpsClientInstance.get(
6253
+ return dpsClientInstance.get(
6479
6254
  `/v2/applications/${encodeURIComponent(appId)}/chat-webhooks`,
6480
- getPlatformDpsClientConfig(authorization)
6255
+ getDpsClientConfig(authorization)
6481
6256
  ).catch((error) => {
6482
6257
  throw error.withCustomMessage(
6483
6258
  `Couldn't get the chat webhook. [${error.message}]`
@@ -6487,10 +6262,10 @@ var platformDpsApplicationWebhooksApi = {
6487
6262
  },
6488
6263
  updateChatWebhook(appId, payload, authorization) {
6489
6264
  return __async(this, null, function* () {
6490
- yield platformDpsClientInstance.post(
6265
+ yield dpsClientInstance.post(
6491
6266
  `/v2/applications/${encodeURIComponent(appId)}/chat-webhooks`,
6492
6267
  payload,
6493
- getPlatformDpsClientConfig(authorization)
6268
+ getDpsClientConfig(authorization)
6494
6269
  ).catch((error) => {
6495
6270
  throw error.withCustomMessage(
6496
6271
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6500,9 +6275,9 @@ var platformDpsApplicationWebhooksApi = {
6500
6275
  },
6501
6276
  deleteChatWebhook(appId, authorization) {
6502
6277
  return __async(this, null, function* () {
6503
- yield platformDpsClientInstance.delete(
6278
+ yield dpsClientInstance.delete(
6504
6279
  `/v2/applications/${encodeURIComponent(appId)}/chat-webhooks`,
6505
- __spreadValues({}, getPlatformDpsClientConfig(authorization))
6280
+ __spreadValues({}, getDpsClientConfig(authorization))
6506
6281
  ).catch((error) => {
6507
6282
  throw error.withCustomMessage(
6508
6283
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6516,12 +6291,12 @@ var platformDpsApplicationWebhooksApi = {
6516
6291
  var platformDpsApplicationWidgetsApi = {
6517
6292
  createWidget(appId, widgetId, widget, authorization) {
6518
6293
  return __async(this, null, function* () {
6519
- yield platformDpsClientInstance.put(
6294
+ yield dpsClientInstance.put(
6520
6295
  `/v2/applications/${encodeURIComponent(
6521
6296
  appId
6522
6297
  )}/widgets/${encodeURIComponent(widgetId)}`,
6523
6298
  widget,
6524
- getPlatformDpsClientConfig(authorization)
6299
+ getDpsClientConfig(authorization)
6525
6300
  ).catch((error) => {
6526
6301
  throw error.withCustomMessage(
6527
6302
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
@@ -6531,12 +6306,12 @@ var platformDpsApplicationWidgetsApi = {
6531
6306
  },
6532
6307
  updateWidget(appId, widgetId, widget, authorization) {
6533
6308
  return __async(this, null, function* () {
6534
- yield platformDpsClientInstance.patch(
6309
+ yield dpsClientInstance.patch(
6535
6310
  `/v2/applications/${encodeURIComponent(
6536
6311
  appId
6537
6312
  )}/widgets/${encodeURIComponent(widgetId)}`,
6538
6313
  widget,
6539
- getPlatformDpsClientConfig(authorization)
6314
+ getDpsClientConfig(authorization)
6540
6315
  ).catch((error) => {
6541
6316
  throw error.withCustomMessage(
6542
6317
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6546,11 +6321,11 @@ var platformDpsApplicationWidgetsApi = {
6546
6321
  },
6547
6322
  deleteWidget(appId, widgetId, authorization) {
6548
6323
  return __async(this, null, function* () {
6549
- yield platformDpsClientInstance.delete(
6324
+ yield dpsClientInstance.delete(
6550
6325
  `/v2/applications/${encodeURIComponent(
6551
6326
  appId
6552
6327
  )}/widgets/${encodeURIComponent(widgetId)}`,
6553
- __spreadValues({}, getPlatformDpsClientConfig(authorization))
6328
+ __spreadValues({}, getDpsClientConfig(authorization))
6554
6329
  ).catch((error) => {
6555
6330
  throw error.withCustomMessage(
6556
6331
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6582,9 +6357,9 @@ var platformDpsApplicationApi = {
6582
6357
  getApp(appId, authorization) {
6583
6358
  return __async(this, null, function* () {
6584
6359
  try {
6585
- const response = yield platformDpsClientInstance.get(
6360
+ const response = yield dpsClientInstance.get(
6586
6361
  `/v2/applications/${encodeURIComponent(appId)}`,
6587
- getPlatformDpsClientConfig(authorization)
6362
+ getDpsClientConfig(authorization)
6588
6363
  );
6589
6364
  return response.data;
6590
6365
  } catch (error) {
@@ -6599,10 +6374,10 @@ var platformDpsApplicationApi = {
6599
6374
  },
6600
6375
  createApp(payload, authorization) {
6601
6376
  return __async(this, null, function* () {
6602
- return platformDpsClientInstance.post(
6377
+ return dpsClientInstance.post(
6603
6378
  `/v2/applications`,
6604
6379
  payload,
6605
- getPlatformDpsClientConfig(authorization)
6380
+ getDpsClientConfig(authorization)
6606
6381
  ).then(({ data }) => data).catch((error) => {
6607
6382
  throw error.withCustomMessage(
6608
6383
  `App couldn't be created. [${error.message}]`
@@ -6612,10 +6387,10 @@ var platformDpsApplicationApi = {
6612
6387
  },
6613
6388
  fork(appId, authorization) {
6614
6389
  return __async(this, null, function* () {
6615
- return platformDpsClientInstance.post(
6390
+ return dpsClientInstance.post(
6616
6391
  `/v2/applications/${encodeURIComponent(appId)}/fork`,
6617
6392
  {},
6618
- getPlatformDpsClientConfig(authorization)
6393
+ getDpsClientConfig(authorization)
6619
6394
  ).catch((error) => {
6620
6395
  throw error.withCustomMessage(
6621
6396
  `App couldn't be forked. [${error.message}]`
@@ -6625,10 +6400,10 @@ var platformDpsApplicationApi = {
6625
6400
  },
6626
6401
  publish(appId, authorization) {
6627
6402
  return __async(this, null, function* () {
6628
- return platformDpsClientInstance.put(
6403
+ return dpsClientInstance.put(
6629
6404
  `/v2/applications/${encodeURIComponent(appId)}/publish`,
6630
6405
  {},
6631
- getPlatformDpsClientConfig(authorization)
6406
+ getDpsClientConfig(authorization)
6632
6407
  ).catch((error) => {
6633
6408
  throw error.withCustomMessage(
6634
6409
  `App couldn't be published. [${error.message}]`
@@ -6638,7 +6413,7 @@ var platformDpsApplicationApi = {
6638
6413
  },
6639
6414
  updateQL(appId) {
6640
6415
  return __async(this, null, function* () {
6641
- yield platformDpsClientInstance.patch(`/v2/applications/${encodeURIComponent(appId)}/qualified-lead`).catch((error) => {
6416
+ yield dpsClientInstance.patch(`/v2/applications/${encodeURIComponent(appId)}/qualified-lead`).catch((error) => {
6642
6417
  throw error.withCustomMessage(
6643
6418
  `QL couldn't be updated. [${error.message}]`
6644
6419
  );
@@ -6647,9 +6422,9 @@ var platformDpsApplicationApi = {
6647
6422
  },
6648
6423
  deleteApp(appId, authorization) {
6649
6424
  return __async(this, null, function* () {
6650
- yield platformDpsClientInstance.delete(
6425
+ yield dpsClientInstance.delete(
6651
6426
  `/v2/applications/${encodeURIComponent(appId)}`,
6652
- getPlatformDpsClientConfig(authorization)
6427
+ getDpsClientConfig(authorization)
6653
6428
  ).catch((error) => {
6654
6429
  throw error.withCustomMessage(
6655
6430
  `App couldn't be deleted. [${error.message}]`
@@ -6659,7 +6434,7 @@ var platformDpsApplicationApi = {
6659
6434
  },
6660
6435
  createAiContent(appId, appName, appSummary) {
6661
6436
  return __async(this, null, function* () {
6662
- return platformDpsClientInstance.post(`/v2/ai/application/${encodeURIComponent(appId)}/content`, {
6437
+ return dpsClientInstance.post(`/v2/ai/application/${encodeURIComponent(appId)}/content`, {
6663
6438
  name: appName,
6664
6439
  summary: appSummary
6665
6440
  }).catch((error) => {
@@ -6679,9 +6454,9 @@ var platformDpsApplicationsPurchasesApi = {
6679
6454
  const { from, to, duration } = options;
6680
6455
  const response = apps.map((app) => __async(this, null, function* () {
6681
6456
  const params = `applications=${app.clientId}${from ? `&from=${from}` : ""}${to ? `&to=${to}` : ""}&duration=${duration}&by=supplier`;
6682
- const singleResponse = yield platformDpsClientInstance.get(
6457
+ const singleResponse = yield dpsClientInstance.get(
6683
6458
  `/v2/applications/purchases?${params}`,
6684
- getPlatformDpsClientConfig(authorization)
6459
+ getDpsClientConfig(authorization)
6685
6460
  );
6686
6461
  return {
6687
6462
  appId: app.appId,
@@ -6704,9 +6479,9 @@ var platformDpsApplicationsPurchasesApi = {
6704
6479
  const { from, to, duration } = options;
6705
6480
  const clientIds = apps.map((app) => app.clientId);
6706
6481
  const params = `applications=${clientIds.join(",")}${from ? `&from=${from}` : ""}${to ? `&to=${to}` : ""}&duration=${duration}&by=supplier`;
6707
- return platformDpsClientInstance.get(
6482
+ return dpsClientInstance.get(
6708
6483
  `/v2/applications/purchases?${params}`,
6709
- getPlatformDpsClientConfig(authorization)
6484
+ getDpsClientConfig(authorization)
6710
6485
  ).then(({ data }) => {
6711
6486
  return [{ data, appId: "All apps" }];
6712
6487
  }).catch((error) => {
@@ -6720,9 +6495,9 @@ var platformDpsApplicationsPurchasesApi = {
6720
6495
  return __async(this, null, function* () {
6721
6496
  const { from, to, duration } = options;
6722
6497
  const params = `applications=${apps.join(",")}${from ? `&from=${from}` : ""}${to ? `&to=${to}` : ""}&duration=${duration}`;
6723
- return platformDpsClientInstance.get(
6498
+ return dpsClientInstance.get(
6724
6499
  `/v2/applications/purchases/history?${params}`,
6725
- getPlatformDpsClientConfig(authorization)
6500
+ getDpsClientConfig(authorization)
6726
6501
  ).then(({ data }) => {
6727
6502
  return [{ data, appId: "All apps" }];
6728
6503
  }).catch((error) => {
@@ -6746,9 +6521,9 @@ var platformDpsApplicationsUsageApi = {
6746
6521
  params += duration ? `&duration=${duration}` : "";
6747
6522
  params += from ? `&from=${from}` : "";
6748
6523
  params += to ? `&to=${to}` : "";
6749
- const singleResponse = yield platformDpsClientInstance.get(
6524
+ const singleResponse = yield dpsClientInstance.get(
6750
6525
  `/v2/applications/usage/organization?${params}`,
6751
- getPlatformDpsClientConfig(authorization)
6526
+ getDpsClientConfig(authorization)
6752
6527
  );
6753
6528
  return singleResponse.data;
6754
6529
  }));
@@ -6771,7 +6546,7 @@ var platformDpsApplicationsApi = {
6771
6546
  getApps() {
6772
6547
  return __async(this, arguments, function* ({ filter = "licensed" } = {}) {
6773
6548
  const params = `filter=${filter}`;
6774
- return platformDpsClientInstance.get(`/v2/applications?${params}`).then(({ data }) => data).catch((error) => {
6549
+ return dpsClientInstance.get(`/v2/applications?${params}`).then(({ data }) => data).catch((error) => {
6775
6550
  throw error.withCustomMessage(
6776
6551
  `Apps couldn't be fetched. [${error.message}]`
6777
6552
  );
@@ -6783,7 +6558,7 @@ var platformDpsApplicationsApi = {
6783
6558
  filter = "organization"
6784
6559
  } = {}) {
6785
6560
  const params = `filter=${filter}`;
6786
- return platformDpsClientInstance.get(`/v2/applications/installations/counters?${params}`).then(({ data }) => data).catch((error) => {
6561
+ return dpsClientInstance.get(`/v2/applications/installations/counters?${params}`).then(({ data }) => data).catch((error) => {
6787
6562
  throw error.withCustomMessage(
6788
6563
  `Apps installations couldn't be fetched. [${error.message}]`
6789
6564
  );
@@ -6796,10 +6571,7 @@ var platformDpsApplicationsApi = {
6796
6571
  var platformDpsCategoriesApi = {
6797
6572
  getCategories(authorization) {
6798
6573
  return __async(this, null, function* () {
6799
- return platformDpsClientInstance.get(
6800
- `/v2/categories`,
6801
- getPlatformDpsClientConfig(authorization)
6802
- ).then(({ data }) => data).catch((error) => {
6574
+ return dpsClientInstance.get(`/v2/categories`, getDpsClientConfig(authorization)).then(({ data }) => data).catch((error) => {
6803
6575
  throw error.withCustomMessage(
6804
6576
  `Categories couldn't be fetched. [${error.message}]`
6805
6577
  );
@@ -6826,9 +6598,9 @@ var platformDpsDeveloperApi = {
6826
6598
  params += `size=${size}&page=${page}`;
6827
6599
  }
6828
6600
  }
6829
- return platformDpsClientInstance.get(
6601
+ return dpsClientInstance.get(
6830
6602
  `/v2/developers/${encodeURIComponent(userId)}/account/ledger${params}`,
6831
- getPlatformDpsClientConfig(authorization)
6603
+ getDpsClientConfig(authorization)
6832
6604
  ).then(({ data }) => data).catch((error) => {
6833
6605
  throw error.withCustomMessage(
6834
6606
  `Ledger couldn't be fetched. [${error.message}]`
@@ -6842,12 +6614,12 @@ var platformDpsDeveloperApi = {
6842
6614
  note,
6843
6615
  userId
6844
6616
  }, authorization) {
6845
- return platformDpsClientInstance.patch(
6617
+ return dpsClientInstance.patch(
6846
6618
  `/v2/developers/${encodeURIComponent(
6847
6619
  userId
6848
6620
  )}/account/withdrawal/request`,
6849
6621
  { amount, note },
6850
- getPlatformDpsClientConfig(authorization)
6622
+ getDpsClientConfig(authorization)
6851
6623
  ).then(({ data }) => data).catch((error) => {
6852
6624
  throw error.withCustomMessage(
6853
6625
  `Withdrawal couldn't be requested. [${error.message}]`
@@ -6866,11 +6638,7 @@ var platformDpsDevelopersApi = {
6866
6638
  var platformDpsLinksApi = {
6867
6639
  updateShortcuts(links, authorization) {
6868
6640
  return __async(this, null, function* () {
6869
- yield platformDpsClientInstance.put(
6870
- `/v2/links`,
6871
- links,
6872
- getPlatformDpsClientConfig(authorization)
6873
- ).catch((error) => {
6641
+ yield dpsClientInstance.put(`/v2/links`, links, getDpsClientConfig(authorization)).catch((error) => {
6874
6642
  throw error.withCustomMessage(
6875
6643
  `Shortcuts couldn't be updated. [${error.message}]`
6876
6644
  );
@@ -6883,9 +6651,9 @@ var platformDpsLinksApi = {
6883
6651
  var dpsResearchCustomerApi = {
6884
6652
  getResearchCustomersLicenses(authorization) {
6885
6653
  return __async(this, null, function* () {
6886
- return platformDpsClientInstance.get(
6654
+ return dpsClientInstance.get(
6887
6655
  `/v2/research/customers/licenses`,
6888
- getPlatformDpsClientConfig(authorization)
6656
+ getDpsClientConfig(authorization)
6889
6657
  ).then(({ data }) => data).catch((error) => {
6890
6658
  throw error.withCustomMessage(
6891
6659
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -6895,9 +6663,9 @@ var dpsResearchCustomerApi = {
6895
6663
  },
6896
6664
  getResearchCustomersBusiness(authorization) {
6897
6665
  return __async(this, null, function* () {
6898
- return platformDpsClientInstance.get(
6666
+ return dpsClientInstance.get(
6899
6667
  `/v2/research/customers/business`,
6900
- getPlatformDpsClientConfig(authorization)
6668
+ getDpsClientConfig(authorization)
6901
6669
  ).then(({ data }) => data).catch((error) => {
6902
6670
  throw error.withCustomMessage(
6903
6671
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -6907,9 +6675,9 @@ var dpsResearchCustomerApi = {
6907
6675
  },
6908
6676
  getResearchCustomersLocation(authorization) {
6909
6677
  return __async(this, null, function* () {
6910
- return platformDpsClientInstance.get(
6678
+ return dpsClientInstance.get(
6911
6679
  `/v2/research/customers/location`,
6912
- getPlatformDpsClientConfig(authorization)
6680
+ getDpsClientConfig(authorization)
6913
6681
  ).then(({ data }) => data).catch((error) => {
6914
6682
  throw error.withCustomMessage(
6915
6683
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -6924,9 +6692,9 @@ var dpsResearchDictionaryApi = {
6924
6692
  getResearchDictionary() {
6925
6693
  return __async(this, arguments, function* (options = {}, authorization) {
6926
6694
  const params = new URLSearchParams(options);
6927
- return platformDpsClientInstance.get(
6695
+ return dpsClientInstance.get(
6928
6696
  `/v2/research/dictionary?${params.toString()}`,
6929
- getPlatformDpsClientConfig(authorization)
6697
+ getDpsClientConfig(authorization)
6930
6698
  ).then(({ data }) => data).catch((error) => {
6931
6699
  throw error.withCustomMessage(
6932
6700
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -6941,9 +6709,9 @@ var dpsResearchMarketplaceApi = {
6941
6709
  getResearchMarketplaceApps() {
6942
6710
  return __async(this, arguments, function* (options = {}, authorization) {
6943
6711
  const params = new URLSearchParams(options);
6944
- return platformDpsClientInstance.get(
6712
+ return dpsClientInstance.get(
6945
6713
  `/v2/research/marketplace/apps?${params.toString()}`,
6946
- getPlatformDpsClientConfig(authorization)
6714
+ getDpsClientConfig(authorization)
6947
6715
  ).then(({ data }) => data).catch((error) => {
6948
6716
  throw error.withCustomMessage(
6949
6717
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -6954,9 +6722,9 @@ var dpsResearchMarketplaceApi = {
6954
6722
  getResearchMarketplaceViews() {
6955
6723
  return __async(this, arguments, function* (options = {}, authorization) {
6956
6724
  const params = new URLSearchParams(options);
6957
- return platformDpsClientInstance.get(
6725
+ return dpsClientInstance.get(
6958
6726
  `/v2/research/marketplace/views?${params.toString()}`,
6959
- getPlatformDpsClientConfig(authorization)
6727
+ getDpsClientConfig(authorization)
6960
6728
  ).then(({ data }) => data).catch((error) => {
6961
6729
  throw error.withCustomMessage(
6962
6730
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -6971,9 +6739,9 @@ var dpsResearchTrafficApi = {
6971
6739
  getResearchTrafficAgents() {
6972
6740
  return __async(this, arguments, function* (options = {}, authorization) {
6973
6741
  const params = new URLSearchParams(options);
6974
- return platformDpsClientInstance.get(
6742
+ return dpsClientInstance.get(
6975
6743
  `/v2/research/traffic/agents?${params.toString()}`,
6976
- getPlatformDpsClientConfig(authorization)
6744
+ getDpsClientConfig(authorization)
6977
6745
  ).then(({ data }) => data).catch((error) => {
6978
6746
  throw error.withCustomMessage(
6979
6747
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -6984,9 +6752,9 @@ var dpsResearchTrafficApi = {
6984
6752
  getResearchTrafficChats() {
6985
6753
  return __async(this, arguments, function* (options = {}, authorization) {
6986
6754
  const params = new URLSearchParams(options);
6987
- return platformDpsClientInstance.get(
6755
+ return dpsClientInstance.get(
6988
6756
  `/v2/research/traffic/chats?${params.toString()}`,
6989
- getPlatformDpsClientConfig(authorization)
6757
+ getDpsClientConfig(authorization)
6990
6758
  ).then(({ data }) => data).catch((error) => {
6991
6759
  throw error.withCustomMessage(
6992
6760
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -7008,62 +6776,62 @@ var platformDpsResearchApi = {
7008
6776
  var platformDpsUserApi = {
7009
6777
  getUser(authorization) {
7010
6778
  return __async(this, null, function* () {
7011
- const response = yield platformDpsClientInstance.get(
6779
+ const response = yield dpsClientInstance.get(
7012
6780
  `/v2/me`,
7013
- getPlatformDpsClientConfig(authorization)
6781
+ getDpsClientConfig(authorization)
7014
6782
  );
7015
6783
  return response.data;
7016
6784
  });
7017
6785
  },
7018
6786
  getUserIntegrations(authorization) {
7019
6787
  return __async(this, null, function* () {
7020
- const response = yield platformDpsClientInstance.get(
6788
+ const response = yield dpsClientInstance.get(
7021
6789
  `/v2/me/integrations`,
7022
- getPlatformDpsClientConfig(authorization)
6790
+ getDpsClientConfig(authorization)
7023
6791
  );
7024
6792
  return response.data;
7025
6793
  });
7026
6794
  },
7027
6795
  updateUser(user, authorization) {
7028
6796
  return __async(this, null, function* () {
7029
- const { status } = yield platformDpsClientInstance.put(
6797
+ const { status } = yield dpsClientInstance.put(
7030
6798
  `/v2/me`,
7031
6799
  user,
7032
- getPlatformDpsClientConfig(authorization)
6800
+ getDpsClientConfig(authorization)
7033
6801
  );
7034
6802
  return status;
7035
6803
  });
7036
6804
  },
7037
6805
  updateUserIntegrations(payload, authorization) {
7038
6806
  return __async(this, null, function* () {
7039
- yield platformDpsClientInstance.patch(
6807
+ yield dpsClientInstance.patch(
7040
6808
  `/v2/me/integrations`,
7041
6809
  payload,
7042
- getPlatformDpsClientConfig(authorization)
6810
+ getDpsClientConfig(authorization)
7043
6811
  );
7044
6812
  });
7045
6813
  },
7046
6814
  updateUserFeatures(payload, authorization) {
7047
6815
  return __async(this, null, function* () {
7048
- yield platformDpsClientInstance.put(
6816
+ yield dpsClientInstance.put(
7049
6817
  "/v2/features",
7050
6818
  payload,
7051
- getPlatformDpsClientConfig(authorization)
6819
+ getDpsClientConfig(authorization)
7052
6820
  );
7053
6821
  });
7054
6822
  },
7055
6823
  updateUserSurvey(payload, authorization) {
7056
6824
  return __async(this, null, function* () {
7057
- yield platformDpsClientInstance.post(
6825
+ yield dpsClientInstance.post(
7058
6826
  "/v2/survey",
7059
6827
  payload,
7060
- getPlatformDpsClientConfig(authorization)
6828
+ getDpsClientConfig(authorization)
7061
6829
  );
7062
6830
  });
7063
6831
  },
7064
6832
  removeUserGitHubIntegrationByInstallationId(installationId, authorization) {
7065
6833
  return __async(this, null, function* () {
7066
- yield platformDpsClientInstance.delete(`/v2/me/integrations/github`, __spreadProps(__spreadValues({}, getPlatformDpsClientConfig(authorization)), {
6834
+ yield dpsClientInstance.delete(`/v2/me/integrations/github`, __spreadProps(__spreadValues({}, getDpsClientConfig(authorization)), {
7067
6835
  data: {
7068
6836
  githubInstallationId: installationId
7069
6837
  }
@@ -7072,17 +6840,17 @@ var platformDpsUserApi = {
7072
6840
  },
7073
6841
  updateUserNetlifyIntegration(userNetlifyIntegration, authorization) {
7074
6842
  return __async(this, null, function* () {
7075
- const { status } = yield platformDpsClientInstance.patch(
6843
+ const { status } = yield dpsClientInstance.patch(
7076
6844
  `/v2/me/integrations`,
7077
6845
  { netlify: userNetlifyIntegration },
7078
- getPlatformDpsClientConfig(authorization)
6846
+ getDpsClientConfig(authorization)
7079
6847
  );
7080
6848
  return status;
7081
6849
  });
7082
6850
  },
7083
6851
  register(authorization) {
7084
6852
  return __async(this, null, function* () {
7085
- return platformDpsClientInstance.post("/v2/register", void 0, getPlatformDpsClientConfig(authorization));
6853
+ return dpsClientInstance.post("/v2/register", void 0, getDpsClientConfig(authorization));
7086
6854
  });
7087
6855
  }
7088
6856
  };
@@ -7101,35 +6869,35 @@ var platformDpsApi = {
7101
6869
  var platformAdapterAppAuthorizationApi = {
7102
6870
  get(appId, authorization) {
7103
6871
  return __async(this, null, function* () {
7104
- return platformAdapterClientInstance.get(
6872
+ return adapterClientInstance.get(
7105
6873
  `/console/app/${encodeURIComponent(appId)}/blocks/authorization`,
7106
- getPlatformAdapterClientDefaultConfig(authorization)
6874
+ getAdapterClientDefaultConfig(authorization)
7107
6875
  );
7108
6876
  });
7109
6877
  },
7110
6878
  add(payload, authorization) {
7111
6879
  return __async(this, null, function* () {
7112
- return platformAdapterClientInstance.post(
6880
+ return adapterClientInstance.post(
7113
6881
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/authorization`,
7114
6882
  payload,
7115
- getPlatformAdapterClientDefaultConfig(authorization)
6883
+ getAdapterClientDefaultConfig(authorization)
7116
6884
  );
7117
6885
  });
7118
6886
  },
7119
6887
  update(payload, authorization) {
7120
6888
  return __async(this, null, function* () {
7121
- return platformAdapterClientInstance.put(
6889
+ return adapterClientInstance.put(
7122
6890
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/authorization`,
7123
6891
  payload,
7124
- getPlatformAdapterClientDefaultConfig(authorization)
6892
+ getAdapterClientDefaultConfig(authorization)
7125
6893
  );
7126
6894
  });
7127
6895
  },
7128
6896
  remove(payload, authorization) {
7129
6897
  return __async(this, null, function* () {
7130
- return platformAdapterClientInstance.delete(
6898
+ return adapterClientInstance.delete(
7131
6899
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/authorization`,
7132
- getPlatformAdapterClientDefaultConfig(authorization)
6900
+ getAdapterClientDefaultConfig(authorization)
7133
6901
  );
7134
6902
  });
7135
6903
  }
@@ -7139,47 +6907,47 @@ var platformAdapterAppAuthorizationApi = {
7139
6907
  var platformAdapterAppDeploymentApi = {
7140
6908
  getAggregate(appId, authorization) {
7141
6909
  return __async(this, null, function* () {
7142
- return platformAdapterClientInstance.get(
6910
+ return adapterClientInstance.get(
7143
6911
  `/console/app/${encodeURIComponent(appId)}/blocks/deployment/aggregate`,
7144
- getPlatformAdapterClientDefaultConfig(authorization)
6912
+ getAdapterClientDefaultConfig(authorization)
7145
6913
  );
7146
6914
  });
7147
6915
  },
7148
6916
  get(appId, authorization) {
7149
6917
  return __async(this, null, function* () {
7150
- return platformAdapterClientInstance.get(
6918
+ return adapterClientInstance.get(
7151
6919
  `/console/app/${encodeURIComponent(appId)}/blocks/deployment`,
7152
- getPlatformAdapterClientDefaultConfig(authorization)
6920
+ getAdapterClientDefaultConfig(authorization)
7153
6921
  );
7154
6922
  });
7155
6923
  },
7156
6924
  link(payload, authorization) {
7157
6925
  return __async(this, null, function* () {
7158
- return platformAdapterClientInstance.put(
6926
+ return adapterClientInstance.put(
7159
6927
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/deployment`,
7160
6928
  payload,
7161
- getPlatformAdapterClientDefaultConfig(authorization)
6929
+ getAdapterClientDefaultConfig(authorization)
7162
6930
  );
7163
6931
  });
7164
6932
  },
7165
6933
  unlink(payload, authorization) {
7166
6934
  return __async(this, null, function* () {
7167
- return platformAdapterClientInstance.delete(
6935
+ return adapterClientInstance.delete(
7168
6936
  `/console/app/${encodeURIComponent(
7169
6937
  payload.appId
7170
6938
  )}/blocks/deployment?${new URLSearchParams(
7171
6939
  payload
7172
6940
  ).toString()}`,
7173
- getPlatformAdapterClientDefaultConfig(authorization)
6941
+ getAdapterClientDefaultConfig(authorization)
7174
6942
  );
7175
6943
  });
7176
6944
  },
7177
6945
  upsert(payload, authorization) {
7178
6946
  return __async(this, null, function* () {
7179
- return platformAdapterClientInstance.patch(
6947
+ return adapterClientInstance.patch(
7180
6948
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/deployment`,
7181
6949
  payload,
7182
- getPlatformAdapterClientDefaultConfig(authorization)
6950
+ getAdapterClientDefaultConfig(authorization)
7183
6951
  );
7184
6952
  });
7185
6953
  }
@@ -7189,26 +6957,26 @@ var platformAdapterAppDeploymentApi = {
7189
6957
  var platformAdapterAppMonetizationApi = {
7190
6958
  get(appId, authorization) {
7191
6959
  return __async(this, null, function* () {
7192
- return platformAdapterClientInstance.get(
6960
+ return adapterClientInstance.get(
7193
6961
  `/console/app/${encodeURIComponent(appId)}/blocks/monetization`,
7194
- getPlatformAdapterClientDefaultConfig(authorization)
6962
+ getAdapterClientDefaultConfig(authorization)
7195
6963
  );
7196
6964
  });
7197
6965
  },
7198
6966
  upsert(payload, authorization) {
7199
6967
  return __async(this, null, function* () {
7200
- return platformAdapterClientInstance.post(
6968
+ return adapterClientInstance.post(
7201
6969
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/monetization`,
7202
6970
  payload,
7203
- getPlatformAdapterClientDefaultConfig(authorization)
6971
+ getAdapterClientDefaultConfig(authorization)
7204
6972
  );
7205
6973
  });
7206
6974
  },
7207
6975
  remove(payload, authorization) {
7208
6976
  return __async(this, null, function* () {
7209
- return platformAdapterClientInstance.delete(
6977
+ return adapterClientInstance.delete(
7210
6978
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/monetization`,
7211
- getPlatformAdapterClientDefaultConfig(authorization)
6979
+ getAdapterClientDefaultConfig(authorization)
7212
6980
  );
7213
6981
  });
7214
6982
  }
@@ -7218,30 +6986,30 @@ var platformAdapterAppMonetizationApi = {
7218
6986
  var platformAdapterAppPropertyApi = {
7219
6987
  get(appId, propertyId, authorization) {
7220
6988
  return __async(this, null, function* () {
7221
- return platformAdapterClientInstance.get(
6989
+ return adapterClientInstance.get(
7222
6990
  `/console/app/${encodeURIComponent(
7223
6991
  appId
7224
6992
  )}/blocks/properties/${encodeURIComponent(propertyId)}`,
7225
- getPlatformAdapterClientDefaultConfig(authorization)
6993
+ getAdapterClientDefaultConfig(authorization)
7226
6994
  );
7227
6995
  });
7228
6996
  },
7229
6997
  upsert(payload, authorization) {
7230
6998
  return __async(this, null, function* () {
7231
- return platformAdapterClientInstance.post(
6999
+ return adapterClientInstance.post(
7232
7000
  `/console/app/${encodeURIComponent(
7233
7001
  payload.appId
7234
7002
  )}/blocks/properties/${encodeURIComponent(payload.propertyId)}`,
7235
7003
  payload,
7236
- getPlatformAdapterClientDefaultConfig(authorization)
7004
+ getAdapterClientDefaultConfig(authorization)
7237
7005
  );
7238
7006
  });
7239
7007
  },
7240
7008
  remove(payload, authorization) {
7241
7009
  return __async(this, null, function* () {
7242
- return platformAdapterClientInstance.delete(
7010
+ return adapterClientInstance.delete(
7243
7011
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/properties/${payload.propertyId}`,
7244
- getPlatformAdapterClientDefaultConfig(authorization)
7012
+ getAdapterClientDefaultConfig(authorization)
7245
7013
  );
7246
7014
  });
7247
7015
  }
@@ -7252,26 +7020,26 @@ var platformAdapterAppPropertiesApi = {
7252
7020
  property: platformAdapterAppPropertyApi,
7253
7021
  get(appId, authorization) {
7254
7022
  return __async(this, null, function* () {
7255
- return platformAdapterClientInstance.get(
7023
+ return adapterClientInstance.get(
7256
7024
  `/console/app/${encodeURIComponent(appId)}/blocks/properties`,
7257
- getPlatformAdapterClientDefaultConfig(authorization)
7025
+ getAdapterClientDefaultConfig(authorization)
7258
7026
  );
7259
7027
  });
7260
7028
  },
7261
7029
  upsert(payload, authorization) {
7262
7030
  return __async(this, null, function* () {
7263
- return platformAdapterClientInstance.post(
7031
+ return adapterClientInstance.post(
7264
7032
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/properties`,
7265
7033
  payload,
7266
- getPlatformAdapterClientDefaultConfig(authorization)
7034
+ getAdapterClientDefaultConfig(authorization)
7267
7035
  );
7268
7036
  });
7269
7037
  },
7270
7038
  remove(payload, authorization) {
7271
7039
  return __async(this, null, function* () {
7272
- return platformAdapterClientInstance.delete(
7040
+ return adapterClientInstance.delete(
7273
7041
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/properties`,
7274
- getPlatformAdapterClientDefaultConfig(authorization)
7042
+ getAdapterClientDefaultConfig(authorization)
7275
7043
  );
7276
7044
  });
7277
7045
  }
@@ -7281,58 +7049,58 @@ var platformAdapterAppPropertiesApi = {
7281
7049
  var platformAdapterAppRepositoryApi = {
7282
7050
  getAggregate(appId, authorization) {
7283
7051
  return __async(this, null, function* () {
7284
- return platformAdapterClientInstance.get(
7052
+ return adapterClientInstance.get(
7285
7053
  `/console/app/${encodeURIComponent(appId)}/blocks/repository/aggregate`,
7286
- getPlatformAdapterClientDefaultConfig(authorization)
7054
+ getAdapterClientDefaultConfig(authorization)
7287
7055
  );
7288
7056
  });
7289
7057
  },
7290
7058
  get(appId, authorization) {
7291
7059
  return __async(this, null, function* () {
7292
- return platformAdapterClientInstance.get(
7060
+ return adapterClientInstance.get(
7293
7061
  `/console/app/${encodeURIComponent(appId)}/blocks/repository`,
7294
- getPlatformAdapterClientDefaultConfig(authorization)
7062
+ getAdapterClientDefaultConfig(authorization)
7295
7063
  );
7296
7064
  });
7297
7065
  },
7298
7066
  link(payload, authorization) {
7299
7067
  return __async(this, null, function* () {
7300
- return platformAdapterClientInstance.put(
7068
+ return adapterClientInstance.put(
7301
7069
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/repository`,
7302
7070
  payload,
7303
- getPlatformAdapterClientDefaultConfig(authorization)
7071
+ getAdapterClientDefaultConfig(authorization)
7304
7072
  );
7305
7073
  });
7306
7074
  },
7307
7075
  unlink(payload, authorization) {
7308
7076
  return __async(this, null, function* () {
7309
- return platformAdapterClientInstance.delete(
7077
+ return adapterClientInstance.delete(
7310
7078
  `/console/app/${encodeURIComponent(
7311
7079
  payload.appId
7312
7080
  )}/blocks/repository?${new URLSearchParams(
7313
7081
  payload
7314
7082
  ).toString()}`,
7315
- getPlatformAdapterClientDefaultConfig(authorization)
7083
+ getAdapterClientDefaultConfig(authorization)
7316
7084
  );
7317
7085
  });
7318
7086
  },
7319
7087
  upsert(payload, authorization) {
7320
7088
  return __async(this, null, function* () {
7321
- return platformAdapterClientInstance.patch(
7089
+ return adapterClientInstance.patch(
7322
7090
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/repository`,
7323
7091
  payload,
7324
- getPlatformAdapterClientDefaultConfig(authorization)
7092
+ getAdapterClientDefaultConfig(authorization)
7325
7093
  );
7326
7094
  });
7327
7095
  },
7328
7096
  seed(payload, authorization) {
7329
7097
  return __async(this, null, function* () {
7330
- return platformAdapterClientInstance.post(
7098
+ return adapterClientInstance.post(
7331
7099
  `/console/app/${encodeURIComponent(
7332
7100
  payload.appId
7333
7101
  )}/blocks/repository/seed`,
7334
7102
  payload,
7335
- getPlatformAdapterClientDefaultConfig(authorization)
7103
+ getAdapterClientDefaultConfig(authorization)
7336
7104
  );
7337
7105
  });
7338
7106
  }
@@ -7342,47 +7110,47 @@ var platformAdapterAppRepositoryApi = {
7342
7110
  var platformAdapterAppStorageApi = {
7343
7111
  getAggregate(appId, authorization) {
7344
7112
  return __async(this, null, function* () {
7345
- return platformAdapterClientInstance.get(
7113
+ return adapterClientInstance.get(
7346
7114
  `/console/app/${encodeURIComponent(appId)}/blocks/storage/aggregate`,
7347
- getPlatformAdapterClientDefaultConfig(authorization)
7115
+ getAdapterClientDefaultConfig(authorization)
7348
7116
  );
7349
7117
  });
7350
7118
  },
7351
7119
  get(appId, authorization) {
7352
7120
  return __async(this, null, function* () {
7353
- return platformAdapterClientInstance.get(
7121
+ return adapterClientInstance.get(
7354
7122
  `/console/app/${encodeURIComponent(appId)}/blocks/storage`,
7355
- getPlatformAdapterClientDefaultConfig(authorization)
7123
+ getAdapterClientDefaultConfig(authorization)
7356
7124
  );
7357
7125
  });
7358
7126
  },
7359
7127
  link(payload, authorization) {
7360
7128
  return __async(this, null, function* () {
7361
- return platformAdapterClientInstance.put(
7129
+ return adapterClientInstance.put(
7362
7130
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/storage`,
7363
7131
  payload,
7364
- getPlatformAdapterClientDefaultConfig(authorization)
7132
+ getAdapterClientDefaultConfig(authorization)
7365
7133
  );
7366
7134
  });
7367
7135
  },
7368
7136
  unlink(payload, authorization) {
7369
7137
  return __async(this, null, function* () {
7370
- return platformAdapterClientInstance.delete(
7138
+ return adapterClientInstance.delete(
7371
7139
  `/console/app/${encodeURIComponent(
7372
7140
  payload.appId
7373
7141
  )}/blocks/storage?${new URLSearchParams(
7374
7142
  payload
7375
7143
  ).toString()}`,
7376
- getPlatformAdapterClientDefaultConfig(authorization)
7144
+ getAdapterClientDefaultConfig(authorization)
7377
7145
  );
7378
7146
  });
7379
7147
  },
7380
7148
  upsert(payload, authorization) {
7381
7149
  return __async(this, null, function* () {
7382
- return platformAdapterClientInstance.patch(
7150
+ return adapterClientInstance.patch(
7383
7151
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/storage`,
7384
7152
  payload,
7385
- getPlatformAdapterClientDefaultConfig(authorization)
7153
+ getAdapterClientDefaultConfig(authorization)
7386
7154
  );
7387
7155
  });
7388
7156
  }
@@ -7392,32 +7160,32 @@ var platformAdapterAppStorageApi = {
7392
7160
  var platformAdapterAppWidgetApi = {
7393
7161
  get(appId, widgetId, authorization) {
7394
7162
  return __async(this, null, function* () {
7395
- return platformAdapterClientInstance.get(
7163
+ return adapterClientInstance.get(
7396
7164
  `/console/app/${encodeURIComponent(
7397
7165
  appId
7398
7166
  )}/blocks/widgets/${encodeURIComponent(widgetId)}`,
7399
- getPlatformAdapterClientDefaultConfig(authorization)
7167
+ getAdapterClientDefaultConfig(authorization)
7400
7168
  );
7401
7169
  });
7402
7170
  },
7403
7171
  upsert(payload, authorization) {
7404
7172
  return __async(this, null, function* () {
7405
- return platformAdapterClientInstance.post(
7173
+ return adapterClientInstance.post(
7406
7174
  `/console/app/${encodeURIComponent(
7407
7175
  payload.appId
7408
7176
  )}/blocks/widgets/${encodeURIComponent(payload.widgetId)}`,
7409
7177
  payload,
7410
- getPlatformAdapterClientDefaultConfig(authorization)
7178
+ getAdapterClientDefaultConfig(authorization)
7411
7179
  );
7412
7180
  });
7413
7181
  },
7414
7182
  remove(payload, authorization) {
7415
7183
  return __async(this, null, function* () {
7416
- return platformAdapterClientInstance.delete(
7184
+ return adapterClientInstance.delete(
7417
7185
  `/console/app/${encodeURIComponent(
7418
7186
  payload.appId
7419
7187
  )}/blocks/widgets/${encodeURIComponent(payload.widgetId)}`,
7420
- getPlatformAdapterClientDefaultConfig(authorization)
7188
+ getAdapterClientDefaultConfig(authorization)
7421
7189
  );
7422
7190
  });
7423
7191
  }
@@ -7428,26 +7196,26 @@ var platformAdapterAppWidgetsApi = {
7428
7196
  widget: platformAdapterAppWidgetApi,
7429
7197
  get(appId, authorization) {
7430
7198
  return __async(this, null, function* () {
7431
- return platformAdapterClientInstance.get(
7199
+ return adapterClientInstance.get(
7432
7200
  `/console/app/${encodeURIComponent(appId)}/blocks/widgets`,
7433
- getPlatformAdapterClientDefaultConfig(authorization)
7201
+ getAdapterClientDefaultConfig(authorization)
7434
7202
  );
7435
7203
  });
7436
7204
  },
7437
7205
  upsert(payload, authorization) {
7438
7206
  return __async(this, null, function* () {
7439
- return platformAdapterClientInstance.post(
7207
+ return adapterClientInstance.post(
7440
7208
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/widgets`,
7441
7209
  payload,
7442
- getPlatformAdapterClientDefaultConfig(authorization)
7210
+ getAdapterClientDefaultConfig(authorization)
7443
7211
  );
7444
7212
  });
7445
7213
  },
7446
7214
  remove(payload, authorization) {
7447
7215
  return __async(this, null, function* () {
7448
- return platformAdapterClientInstance.delete(
7216
+ return adapterClientInstance.delete(
7449
7217
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/widgets`,
7450
- getPlatformAdapterClientDefaultConfig(authorization)
7218
+ getAdapterClientDefaultConfig(authorization)
7451
7219
  );
7452
7220
  });
7453
7221
  }
@@ -7468,64 +7236,64 @@ var platformAdapterAppBlocksApi = {
7468
7236
  var platformAdapterAppVariablesApi = {
7469
7237
  getVariables(appId, decrypted, authorization) {
7470
7238
  return __async(this, null, function* () {
7471
- const response = yield platformAdapterClientInstance.get(
7239
+ const response = yield adapterClientInstance.get(
7472
7240
  `/console/app/${encodeURIComponent(appId)}/variables`,
7473
7241
  __spreadValues({
7474
7242
  params: {
7475
7243
  decrypted
7476
7244
  }
7477
- }, getPlatformAdapterClientDefaultConfig(authorization))
7245
+ }, getAdapterClientDefaultConfig(authorization))
7478
7246
  );
7479
7247
  return response.data;
7480
7248
  });
7481
7249
  },
7482
7250
  getVariable(appId, key, authorization) {
7483
7251
  return __async(this, null, function* () {
7484
- const response = yield platformAdapterClientInstance.get(
7252
+ const response = yield adapterClientInstance.get(
7485
7253
  `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
7486
7254
  key
7487
7255
  )}`,
7488
- getPlatformAdapterClientDefaultConfig(authorization)
7256
+ getAdapterClientDefaultConfig(authorization)
7489
7257
  );
7490
7258
  return response.data;
7491
7259
  });
7492
7260
  },
7493
7261
  syncVariable(appId, key, payload, authorization) {
7494
7262
  return __async(this, null, function* () {
7495
- yield platformAdapterClientInstance.post(
7263
+ yield adapterClientInstance.post(
7496
7264
  `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
7497
7265
  key
7498
7266
  )}/sync`,
7499
7267
  payload,
7500
- getPlatformAdapterClientDefaultConfig(authorization)
7268
+ getAdapterClientDefaultConfig(authorization)
7501
7269
  );
7502
7270
  });
7503
7271
  },
7504
7272
  createVariable(appId, data, authorization) {
7505
7273
  return __async(this, null, function* () {
7506
- yield platformAdapterClientInstance.post(
7274
+ yield adapterClientInstance.post(
7507
7275
  `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
7508
7276
  data.key
7509
7277
  )}`,
7510
7278
  data,
7511
- getPlatformAdapterClientDefaultConfig(authorization)
7279
+ getAdapterClientDefaultConfig(authorization)
7512
7280
  );
7513
7281
  });
7514
7282
  },
7515
7283
  editVariable(appId, data, authorization) {
7516
7284
  return __async(this, null, function* () {
7517
- yield platformAdapterClientInstance.post(
7285
+ yield adapterClientInstance.post(
7518
7286
  `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
7519
7287
  data.key
7520
7288
  )}/edit`,
7521
7289
  data,
7522
- getPlatformAdapterClientDefaultConfig(authorization)
7290
+ getAdapterClientDefaultConfig(authorization)
7523
7291
  );
7524
7292
  });
7525
7293
  },
7526
7294
  deleteVariable(appId, key) {
7527
7295
  return __async(this, null, function* () {
7528
- yield platformAdapterClientInstance.delete(
7296
+ yield adapterClientInstance.delete(
7529
7297
  `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
7530
7298
  key
7531
7299
  )}`
@@ -7538,17 +7306,17 @@ var platformAdapterAppVariablesApi = {
7538
7306
  var platformAdapterAppTemplatesApi = {
7539
7307
  getTemplates(authorization) {
7540
7308
  return __async(this, null, function* () {
7541
- return platformAdapterClientInstance.get(
7309
+ return adapterClientInstance.get(
7542
7310
  `/console/app/templates`,
7543
- getPlatformAdapterClientDefaultConfig(authorization)
7311
+ getAdapterClientDefaultConfig(authorization)
7544
7312
  );
7545
7313
  });
7546
7314
  },
7547
7315
  getRepositoryTemplates(authorization) {
7548
7316
  return __async(this, null, function* () {
7549
- return platformAdapterClientInstance.get(
7317
+ return adapterClientInstance.get(
7550
7318
  `/console/app/templates/repository`,
7551
- getPlatformAdapterClientDefaultConfig(authorization)
7319
+ getAdapterClientDefaultConfig(authorization)
7552
7320
  );
7553
7321
  });
7554
7322
  }
@@ -7561,39 +7329,39 @@ var platformAdapterAppApi = {
7561
7329
  templates: platformAdapterAppTemplatesApi,
7562
7330
  push(payload, authorization) {
7563
7331
  return __async(this, null, function* () {
7564
- return platformAdapterClientInstance.post(
7332
+ return adapterClientInstance.post(
7565
7333
  `/console/app${payload.manifest.id ? `/${encodeURIComponent(payload.manifest.id)}` : ""}`,
7566
7334
  payload,
7567
- getPlatformAdapterClientDefaultConfig(authorization)
7335
+ getAdapterClientDefaultConfig(authorization)
7568
7336
  );
7569
7337
  });
7570
7338
  },
7571
7339
  pull(appId, authorization) {
7572
7340
  return __async(this, null, function* () {
7573
- return platformAdapterClientInstance.get(
7341
+ return adapterClientInstance.get(
7574
7342
  `/console/app/${encodeURIComponent(appId)}`,
7575
- getPlatformAdapterClientDefaultConfig(authorization)
7343
+ getAdapterClientDefaultConfig(authorization)
7576
7344
  );
7577
7345
  });
7578
7346
  },
7579
7347
  verify(payload, authorization) {
7580
7348
  return __async(this, null, function* () {
7581
- return platformAdapterClientInstance.post(
7349
+ return adapterClientInstance.post(
7582
7350
  `/console/app/${encodeURIComponent(payload.appId)}/verify`,
7583
7351
  payload,
7584
- getPlatformAdapterClientDefaultConfig(authorization)
7352
+ getAdapterClientDefaultConfig(authorization)
7585
7353
  );
7586
7354
  });
7587
7355
  },
7588
7356
  status(sagaId, authorization) {
7589
7357
  return __async(this, null, function* () {
7590
- return platformAdapterClientInstance.get(
7358
+ return adapterClientInstance.get(
7591
7359
  `/console/app/status`,
7592
7360
  __spreadValues({
7593
7361
  params: {
7594
7362
  sagaId
7595
7363
  }
7596
- }, getPlatformAdapterClientDefaultConfig(authorization))
7364
+ }, getAdapterClientDefaultConfig(authorization))
7597
7365
  );
7598
7366
  });
7599
7367
  }
@@ -7604,7 +7372,7 @@ var platformAdapterBigCommerceApi = {
7604
7372
  events: {
7605
7373
  subscribe(payload, authorization) {
7606
7374
  return __async(this, null, function* () {
7607
- yield platformAdapterClientInstance.post(
7375
+ yield adapterClientInstance.post(
7608
7376
  `/integrations/bigcommerce/events/subscribe`,
7609
7377
  payload,
7610
7378
  getBigCommerceClientConfig(authorization)
@@ -7613,7 +7381,7 @@ var platformAdapterBigCommerceApi = {
7613
7381
  },
7614
7382
  unsubscribe(payload, authorization) {
7615
7383
  return __async(this, null, function* () {
7616
- yield platformAdapterClientInstance.post(
7384
+ yield adapterClientInstance.post(
7617
7385
  `/integrations/bigcommerce/events/unsubscribe`,
7618
7386
  payload,
7619
7387
  getBigCommerceClientConfig(authorization)
@@ -7628,7 +7396,7 @@ var platformAdapterHubspotApi = {
7628
7396
  events: {
7629
7397
  subscribe(payload, authorization) {
7630
7398
  return __async(this, null, function* () {
7631
- yield platformAdapterClientInstance.post(
7399
+ yield adapterClientInstance.post(
7632
7400
  `/integrations/hubspot/events/subscribe`,
7633
7401
  payload,
7634
7402
  getHubspotClientConfig(authorization)
@@ -7637,7 +7405,7 @@ var platformAdapterHubspotApi = {
7637
7405
  },
7638
7406
  unsubscribe(payload, authorization) {
7639
7407
  return __async(this, null, function* () {
7640
- yield platformAdapterClientInstance.post(
7408
+ yield adapterClientInstance.post(
7641
7409
  `/integrations/hubspot/events/unsubscribe`,
7642
7410
  payload,
7643
7411
  getHubspotClientConfig(authorization)
@@ -7652,7 +7420,7 @@ var platformAdapterMailchimpApi = {
7652
7420
  events: {
7653
7421
  subscribe(payload, authorization) {
7654
7422
  return __async(this, null, function* () {
7655
- yield platformAdapterClientInstance.post(
7423
+ yield adapterClientInstance.post(
7656
7424
  `/integrations/mailchimp/events/subscribe`,
7657
7425
  payload,
7658
7426
  getMailchimpClientConfig(authorization)
@@ -7661,7 +7429,7 @@ var platformAdapterMailchimpApi = {
7661
7429
  },
7662
7430
  unsubscribe(payload, authorization) {
7663
7431
  return __async(this, null, function* () {
7664
- yield platformAdapterClientInstance.post(
7432
+ yield adapterClientInstance.post(
7665
7433
  `/integrations/mailchimp/events/unsubscribe`,
7666
7434
  payload,
7667
7435
  getMailchimpClientConfig(authorization)
@@ -7675,7 +7443,7 @@ var platformAdapterMailchimpApi = {
7675
7443
  var platformAdapterNeonProxyApi = {
7676
7444
  user(authorization) {
7677
7445
  return __async(this, null, function* () {
7678
- const response = yield platformAdapterClientInstance.get(
7446
+ const response = yield adapterClientInstance.get(
7679
7447
  `/integrations/neon/user`,
7680
7448
  getNeonClientConfig(authorization)
7681
7449
  );
@@ -7684,7 +7452,7 @@ var platformAdapterNeonProxyApi = {
7684
7452
  },
7685
7453
  projects(authorization) {
7686
7454
  return __async(this, null, function* () {
7687
- const response = yield platformAdapterClientInstance.get(
7455
+ const response = yield adapterClientInstance.get(
7688
7456
  `/integrations/neon/projects`,
7689
7457
  getNeonClientConfig(authorization)
7690
7458
  );
@@ -7693,7 +7461,7 @@ var platformAdapterNeonProxyApi = {
7693
7461
  },
7694
7462
  databases(projectId, authorization) {
7695
7463
  return __async(this, null, function* () {
7696
- const response = yield platformAdapterClientInstance.get(
7464
+ const response = yield adapterClientInstance.get(
7697
7465
  `/integrations/neon/projects/${encodeURIComponent(projectId)}/databases`,
7698
7466
  getNeonClientConfig(authorization)
7699
7467
  );
@@ -7707,7 +7475,7 @@ var platformAdapterShopifyApi = {
7707
7475
  events: {
7708
7476
  subscribe(payload, authorization) {
7709
7477
  return __async(this, null, function* () {
7710
- yield platformAdapterClientInstance.post(
7478
+ yield adapterClientInstance.post(
7711
7479
  `/integrations/shopify/events/subscribe`,
7712
7480
  payload,
7713
7481
  getShopifyClientConfig(authorization)
@@ -7716,7 +7484,7 @@ var platformAdapterShopifyApi = {
7716
7484
  },
7717
7485
  unsubscribe(payload, authorization) {
7718
7486
  return __async(this, null, function* () {
7719
- yield platformAdapterClientInstance.post(
7487
+ yield adapterClientInstance.post(
7720
7488
  `/integrations/shopify/events/unsubscribe`,
7721
7489
  payload,
7722
7490
  getShopifyClientConfig(authorization)
@@ -7731,7 +7499,7 @@ var platformAdapterTextApi = {
7731
7499
  events: {
7732
7500
  subscribe(payload, authorization) {
7733
7501
  return __async(this, null, function* () {
7734
- yield platformAdapterClientInstance.post(
7502
+ yield adapterClientInstance.post(
7735
7503
  `/integrations/text/events/subscribe`,
7736
7504
  payload,
7737
7505
  getTextClientConfig(authorization)
@@ -7740,7 +7508,7 @@ var platformAdapterTextApi = {
7740
7508
  },
7741
7509
  unsubscribe(payload, authorization) {
7742
7510
  return __async(this, null, function* () {
7743
- yield platformAdapterClientInstance.post(
7511
+ yield adapterClientInstance.post(
7744
7512
  `/integrations/text/events/unsubscribe`,
7745
7513
  payload,
7746
7514
  getTextClientConfig(authorization)
@@ -7766,10 +7534,10 @@ var platformAdapterApi = {
7766
7534
  integrations: platformAdapterIntegrationsApi,
7767
7535
  log(payload, authorization) {
7768
7536
  return __async(this, null, function* () {
7769
- return platformAdapterClientInstance.post(
7537
+ return adapterClientInstance.post(
7770
7538
  `/log`,
7771
7539
  payload,
7772
- getPlatformAdapterClientConfig(authorization)
7540
+ getAdapterClientConfig(authorization)
7773
7541
  );
7774
7542
  });
7775
7543
  }
@@ -7780,9 +7548,9 @@ var platformBillingAccountApi = {
7780
7548
  getAccount(authorization) {
7781
7549
  return __async(this, null, function* () {
7782
7550
  try {
7783
- return yield platformBillingClientInstance.get(
7551
+ return yield billingClientInstance.get(
7784
7552
  `/v3/account`,
7785
- getPlatformBillingClientConfig(authorization)
7553
+ getBillingClientConfig(authorization)
7786
7554
  );
7787
7555
  } catch (error) {
7788
7556
  if (error instanceof Error) {
@@ -7796,9 +7564,9 @@ var platformBillingAccountApi = {
7796
7564
  getAccountInfo(product, authorization) {
7797
7565
  return __async(this, null, function* () {
7798
7566
  try {
7799
- return yield platformBillingClientInstance.get(
7567
+ return yield billingClientInstance.get(
7800
7568
  `/v3/account/${encodeURIComponent(product)}/billing_info`,
7801
- getPlatformBillingClientConfig(authorization)
7569
+ getBillingClientConfig(authorization)
7802
7570
  );
7803
7571
  } catch (error) {
7804
7572
  if (error instanceof Error) {
@@ -7818,9 +7586,9 @@ var platformBillingInvoicesApi = {
7818
7586
  getInvoices(product, authorization) {
7819
7587
  return __async(this, null, function* () {
7820
7588
  try {
7821
- return yield platformBillingClientInstance.get(
7589
+ return yield billingClientInstance.get(
7822
7590
  `/v2/invoices/${encodeURIComponent(product)}`,
7823
- getPlatformBillingClientConfig(authorization)
7591
+ getBillingClientConfig(authorization)
7824
7592
  );
7825
7593
  } catch (error) {
7826
7594
  if (error instanceof Error) {
@@ -7834,7 +7602,7 @@ var platformBillingInvoicesApi = {
7834
7602
  downloadInvoices(number, authorization) {
7835
7603
  return __async(this, null, function* () {
7836
7604
  try {
7837
- const response = yield platformBillingClientInstance.request(__spreadValues({
7605
+ const response = yield billingClientInstance.request(__spreadValues({
7838
7606
  url: `https://api.labs.livechatinc.com/v2/invoices/${encodeURIComponent(
7839
7607
  number
7840
7608
  )}`,
@@ -7843,7 +7611,7 @@ var platformBillingInvoicesApi = {
7843
7611
  //gave the values directly for testing
7844
7612
  }),
7845
7613
  responseType: "blob"
7846
- }, getPlatformBillingClientConfig(authorization)));
7614
+ }, getBillingClientConfig(authorization)));
7847
7615
  const href = URL.createObjectURL(response.data);
7848
7616
  const link = document.createElement("a");
7849
7617
  link.href = href;
@@ -7890,12 +7658,9 @@ function initApi(config, tokens) {
7890
7658
  (_a = config.urls.platform) == null ? void 0 : _a.accounts,
7891
7659
  (_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.token
7892
7660
  );
7893
- initPlatformBillingClient(
7894
- (_c = config.urls.platform) == null ? void 0 : _c.billing,
7895
- (_d = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _d.token
7896
- );
7897
- initPlatformDpsClient((_e = config.urls.platform) == null ? void 0 : _e.dps, (_f = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _f.token);
7898
- initPlatformAdapterClient(
7661
+ initBillingClient((_c = config.urls.platform) == null ? void 0 : _c.billing, (_d = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _d.token);
7662
+ initDpsClient((_e = config.urls.platform) == null ? void 0 : _e.dps, (_f = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _f.token);
7663
+ initAdapterClient(
7899
7664
  (_g = config.urls.platform) == null ? void 0 : _g.adapter,
7900
7665
  tokens ? {
7901
7666
  platform: tokens.platform,
@@ -8052,6 +7817,7 @@ export {
8052
7817
  UnauthorizeAccountsApiError,
8053
7818
  UnauthorizeApiError,
8054
7819
  WorkflowDefinitionTaskType,
7820
+ adapterClientInstance,
8055
7821
  allAppTemplates,
8056
7822
  api,
8057
7823
  appBaseTemplates,
@@ -8061,51 +7827,40 @@ export {
8061
7827
  appTemplatesMap,
8062
7828
  bigCommerceClientInstance,
8063
7829
  bigcommerceEventsZods,
7830
+ billingClientInstance,
8064
7831
  debounce,
7832
+ dpsClientInstance,
7833
+ getAdapterClientConfig,
7834
+ getAdapterClientDefaultConfig,
8065
7835
  getAppAutoReviewPayload,
8066
- getBigCommerceClientAuthorization,
8067
7836
  getBigCommerceClientConfig,
8068
7837
  getBigCommerceClientUrl,
7838
+ getBillingClientConfig,
7839
+ getDpsClientConfig,
8069
7840
  getEmptyAppAutoReview,
8070
- getGitHubClientAuthorization,
8071
7841
  getGithubClientConfig,
8072
- getHubspotClientAuthorization,
8073
7842
  getHubspotClientConfig,
8074
7843
  getIntegrationFlowUrl,
8075
7844
  getIntegrationFlowUrlOld,
8076
- getLiveChatClientAuthorization,
8077
7845
  getLiveChatClientConfig,
8078
- getMailchimpClientAuthorization,
8079
7846
  getMailchimpClientConfig,
8080
7847
  getMailchimpClientUrl,
8081
- getNeonClientAuthorization,
8082
7848
  getNeonClientConfig,
8083
- getNetlifyClientAuthorization,
8084
7849
  getNetlifyClientConfig,
8085
- getPlanetScaleClientAuthorization,
8086
7850
  getPlanetScaleClientConfig,
8087
- getPlatformAccountsClientAuthorization,
8088
- getPlatformAdapterClientAuthorization,
8089
- getPlatformAdapterClientConfig,
8090
- getPlatformAdapterClientDefaultConfig,
8091
- getPlatformBillingClientAuthorization,
8092
- getPlatformBillingClientConfig,
8093
- getPlatformDpsAdminClientAuthorization,
8094
- getPlatformDpsClientAuthorization,
8095
- getPlatformDpsClientConfig,
8096
7851
  getRegion2 as getRegion,
8097
- getShopifyClientAuthorization,
8098
7852
  getShopifyClientConfig,
8099
7853
  getShopifyClientUrl,
8100
- getTextClientAuthorization,
8101
7854
  getTextClientConfig,
8102
- getVercelClientAuthorization,
8103
7855
  getVercelClientConfig,
8104
7856
  githubClientInstance,
8105
7857
  hubspotClientInstance,
8106
7858
  hubspotEventsZods,
7859
+ initAdapterClient,
8107
7860
  initApi,
8108
7861
  initBigCommerceClient,
7862
+ initBillingClient,
7863
+ initDpsClient,
8109
7864
  initGithubClient,
8110
7865
  initHubspotClient,
8111
7866
  initLiveChatClient,
@@ -8114,9 +7869,6 @@ export {
8114
7869
  initNetlifyClient,
8115
7870
  initPlanetScaleClient,
8116
7871
  initPlatformAccountsClient,
8117
- initPlatformAdapterClient,
8118
- initPlatformBillingClient,
8119
- initPlatformDpsClient,
8120
7872
  initShopifyClient,
8121
7873
  initTextClient,
8122
7874
  initVercelClient,
@@ -8129,13 +7881,11 @@ export {
8129
7881
  netlifyClientInstance,
8130
7882
  planetScaleClientInstance,
8131
7883
  platformAccountsClientInstance,
8132
- platformAdapterClientInstance,
8133
- platformBillingClientInstance,
8134
- platformDpsClientInstance,
8135
7884
  shopifyClientInstance,
8136
7885
  shopifyEventsZods,
8137
7886
  textClientInstance,
8138
7887
  textLivechatEventsZods,
7888
+ updateAdapterClient,
8139
7889
  updateBigCommerceClient,
8140
7890
  updateGithubClient,
8141
7891
  updateHubspotClient,
@@ -8143,7 +7893,6 @@ export {
8143
7893
  updateNeonClient,
8144
7894
  updateNetlifyClient,
8145
7895
  updatePlanetScaleClient,
8146
- updatePlatformAdapterClient,
8147
7896
  updateShopifyClient,
8148
7897
  updateVercelClient,
8149
7898
  vercelClientInstance