@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.js CHANGED
@@ -95,6 +95,7 @@ __export(src_exports, {
95
95
  UnauthorizeAccountsApiError: () => UnauthorizeAccountsApiError,
96
96
  UnauthorizeApiError: () => UnauthorizeApiError,
97
97
  WorkflowDefinitionTaskType: () => WorkflowDefinitionTaskType,
98
+ adapterClientInstance: () => adapterClientInstance,
98
99
  allAppTemplates: () => allAppTemplates,
99
100
  api: () => api,
100
101
  appBaseTemplates: () => appBaseTemplates,
@@ -104,51 +105,40 @@ __export(src_exports, {
104
105
  appTemplatesMap: () => appTemplatesMap,
105
106
  bigCommerceClientInstance: () => bigCommerceClientInstance,
106
107
  bigcommerceEventsZods: () => bigcommerceEventsZods,
108
+ billingClientInstance: () => billingClientInstance,
107
109
  debounce: () => debounce,
110
+ dpsClientInstance: () => dpsClientInstance,
111
+ getAdapterClientConfig: () => getAdapterClientConfig,
112
+ getAdapterClientDefaultConfig: () => getAdapterClientDefaultConfig,
108
113
  getAppAutoReviewPayload: () => getAppAutoReviewPayload,
109
- getBigCommerceClientAuthorization: () => getBigCommerceClientAuthorization,
110
114
  getBigCommerceClientConfig: () => getBigCommerceClientConfig,
111
115
  getBigCommerceClientUrl: () => getBigCommerceClientUrl,
116
+ getBillingClientConfig: () => getBillingClientConfig,
117
+ getDpsClientConfig: () => getDpsClientConfig,
112
118
  getEmptyAppAutoReview: () => getEmptyAppAutoReview,
113
- getGitHubClientAuthorization: () => getGitHubClientAuthorization,
114
119
  getGithubClientConfig: () => getGithubClientConfig,
115
- getHubspotClientAuthorization: () => getHubspotClientAuthorization,
116
120
  getHubspotClientConfig: () => getHubspotClientConfig,
117
121
  getIntegrationFlowUrl: () => getIntegrationFlowUrl,
118
122
  getIntegrationFlowUrlOld: () => getIntegrationFlowUrlOld,
119
- getLiveChatClientAuthorization: () => getLiveChatClientAuthorization,
120
123
  getLiveChatClientConfig: () => getLiveChatClientConfig,
121
- getMailchimpClientAuthorization: () => getMailchimpClientAuthorization,
122
124
  getMailchimpClientConfig: () => getMailchimpClientConfig,
123
125
  getMailchimpClientUrl: () => getMailchimpClientUrl,
124
- getNeonClientAuthorization: () => getNeonClientAuthorization,
125
126
  getNeonClientConfig: () => getNeonClientConfig,
126
- getNetlifyClientAuthorization: () => getNetlifyClientAuthorization,
127
127
  getNetlifyClientConfig: () => getNetlifyClientConfig,
128
- getPlanetScaleClientAuthorization: () => getPlanetScaleClientAuthorization,
129
128
  getPlanetScaleClientConfig: () => getPlanetScaleClientConfig,
130
- getPlatformAccountsClientAuthorization: () => getPlatformAccountsClientAuthorization,
131
- getPlatformAdapterClientAuthorization: () => getPlatformAdapterClientAuthorization,
132
- getPlatformAdapterClientConfig: () => getPlatformAdapterClientConfig,
133
- getPlatformAdapterClientDefaultConfig: () => getPlatformAdapterClientDefaultConfig,
134
- getPlatformBillingClientAuthorization: () => getPlatformBillingClientAuthorization,
135
- getPlatformBillingClientConfig: () => getPlatformBillingClientConfig,
136
- getPlatformDpsAdminClientAuthorization: () => getPlatformDpsAdminClientAuthorization,
137
- getPlatformDpsClientAuthorization: () => getPlatformDpsClientAuthorization,
138
- getPlatformDpsClientConfig: () => getPlatformDpsClientConfig,
139
129
  getRegion: () => getRegion2,
140
- getShopifyClientAuthorization: () => getShopifyClientAuthorization,
141
130
  getShopifyClientConfig: () => getShopifyClientConfig,
142
131
  getShopifyClientUrl: () => getShopifyClientUrl,
143
- getTextClientAuthorization: () => getTextClientAuthorization,
144
132
  getTextClientConfig: () => getTextClientConfig,
145
- getVercelClientAuthorization: () => getVercelClientAuthorization,
146
133
  getVercelClientConfig: () => getVercelClientConfig,
147
134
  githubClientInstance: () => githubClientInstance,
148
135
  hubspotClientInstance: () => hubspotClientInstance,
149
136
  hubspotEventsZods: () => hubspotEventsZods,
137
+ initAdapterClient: () => initAdapterClient,
150
138
  initApi: () => initApi,
151
139
  initBigCommerceClient: () => initBigCommerceClient,
140
+ initBillingClient: () => initBillingClient,
141
+ initDpsClient: () => initDpsClient,
152
142
  initGithubClient: () => initGithubClient,
153
143
  initHubspotClient: () => initHubspotClient,
154
144
  initLiveChatClient: () => initLiveChatClient,
@@ -157,9 +147,6 @@ __export(src_exports, {
157
147
  initNetlifyClient: () => initNetlifyClient,
158
148
  initPlanetScaleClient: () => initPlanetScaleClient,
159
149
  initPlatformAccountsClient: () => initPlatformAccountsClient,
160
- initPlatformAdapterClient: () => initPlatformAdapterClient,
161
- initPlatformBillingClient: () => initPlatformBillingClient,
162
- initPlatformDpsClient: () => initPlatformDpsClient,
163
150
  initShopifyClient: () => initShopifyClient,
164
151
  initTextClient: () => initTextClient,
165
152
  initVercelClient: () => initVercelClient,
@@ -172,13 +159,11 @@ __export(src_exports, {
172
159
  netlifyClientInstance: () => netlifyClientInstance,
173
160
  planetScaleClientInstance: () => planetScaleClientInstance,
174
161
  platformAccountsClientInstance: () => platformAccountsClientInstance,
175
- platformAdapterClientInstance: () => platformAdapterClientInstance,
176
- platformBillingClientInstance: () => platformBillingClientInstance,
177
- platformDpsClientInstance: () => platformDpsClientInstance,
178
162
  shopifyClientInstance: () => shopifyClientInstance,
179
163
  shopifyEventsZods: () => shopifyEventsZods,
180
164
  textClientInstance: () => textClientInstance,
181
165
  textLivechatEventsZods: () => textLivechatEventsZods,
166
+ updateAdapterClient: () => updateAdapterClient,
182
167
  updateBigCommerceClient: () => updateBigCommerceClient,
183
168
  updateGithubClient: () => updateGithubClient,
184
169
  updateHubspotClient: () => updateHubspotClient,
@@ -186,7 +171,6 @@ __export(src_exports, {
186
171
  updateNeonClient: () => updateNeonClient,
187
172
  updateNetlifyClient: () => updateNetlifyClient,
188
173
  updatePlanetScaleClient: () => updatePlanetScaleClient,
189
- updatePlatformAdapterClient: () => updatePlatformAdapterClient,
190
174
  updateShopifyClient: () => updateShopifyClient,
191
175
  updateVercelClient: () => updateVercelClient,
192
176
  vercelClientInstance: () => vercelClientInstance
@@ -330,18 +314,6 @@ githubClientInstance.interceptors.response.use(
330
314
  throw error;
331
315
  }
332
316
  );
333
- function getGitHubClientAuthorization(req) {
334
- if (req.headers instanceof Headers) {
335
- return {
336
- appToken: req.headers.get("x-adapter-github-app-token"),
337
- oauthToken: req.headers.get("x-adapter-github-oauth-token")
338
- };
339
- }
340
- return {
341
- appToken: req.headers["x-adapter-github-app-token"],
342
- oauthToken: req.headers["x-adapter-github-oauth-token"]
343
- };
344
- }
345
317
  function getGithubClientConfig(options = {}) {
346
318
  var _a;
347
319
  const currentHeaders = githubClientInstance.defaults.headers;
@@ -800,16 +772,6 @@ netlifyClientInstance.interceptors.response.use(
800
772
  throw error;
801
773
  }
802
774
  );
803
- function getNetlifyClientAuthorization(req) {
804
- if (req.headers instanceof Headers) {
805
- return {
806
- token: req.headers.get("x-adapter-netlify-token")
807
- };
808
- }
809
- return {
810
- token: req.headers["x-adapter-netlify-token"]
811
- };
812
- }
813
775
  function getNetlifyClientConfig(options = {}) {
814
776
  var _a;
815
777
  const currentHeaders = netlifyClientInstance.defaults.headers;
@@ -1307,16 +1269,6 @@ planetScaleClientInstance.interceptors.response.use(
1307
1269
  throw error;
1308
1270
  }
1309
1271
  );
1310
- function getPlanetScaleClientAuthorization(req) {
1311
- if (req.headers instanceof Headers) {
1312
- return {
1313
- token: req.headers.get("x-adapter-planetscale-token")
1314
- };
1315
- }
1316
- return {
1317
- token: req.headers["x-adapter-planetscale-token"]
1318
- };
1319
- }
1320
1272
  function getPlanetScaleClientConfig(options = {}) {
1321
1273
  var _a;
1322
1274
  const currentHeaders = planetScaleClientInstance.defaults.headers;
@@ -1574,20 +1526,6 @@ textClientInstance.interceptors.response.use(
1574
1526
  );
1575
1527
  }
1576
1528
  );
1577
- function getTextClientAuthorization(req, usePlatformToken = true) {
1578
- if (req.headers instanceof Headers) {
1579
- return {
1580
- token: req.headers.get(
1581
- usePlatformToken ? "x-adapter-platform-token" : "x-adapter-text-token"
1582
- ),
1583
- tokenType: "Bearer"
1584
- };
1585
- }
1586
- return {
1587
- token: req.headers[usePlatformToken ? "x-adapter-platform-token" : "x-adapter-text-token"],
1588
- tokenType: "Bearer"
1589
- };
1590
- }
1591
1529
  function getTextClientConfig(option = {}) {
1592
1530
  var _a;
1593
1531
  const currentHeaders = textClientInstance.defaults.headers;
@@ -1780,16 +1718,6 @@ vercelClientInstance.interceptors.response.use(
1780
1718
  throw error;
1781
1719
  }
1782
1720
  );
1783
- function getVercelClientAuthorization(req) {
1784
- if (req.headers instanceof Headers) {
1785
- return {
1786
- token: req.headers.get("x-adapter-vercel-token")
1787
- };
1788
- }
1789
- return {
1790
- token: req.headers["x-adapter-vercel-token"]
1791
- };
1792
- }
1793
1721
  function getVercelClientConfig(options = {}) {
1794
1722
  var _a;
1795
1723
  const currentHeaders = vercelClientInstance.defaults.headers;
@@ -1837,16 +1765,6 @@ neonClientInstance.interceptors.response.use(
1837
1765
  throw error;
1838
1766
  }
1839
1767
  );
1840
- function getNeonClientAuthorization(req) {
1841
- if (req.headers instanceof Headers) {
1842
- return {
1843
- token: req.headers.get("x-adapter-neon-token")
1844
- };
1845
- }
1846
- return {
1847
- token: req.headers["x-adapter-neon-token"]
1848
- };
1849
- }
1850
1768
  function getNeonClientConfig(options = {}) {
1851
1769
  var _a;
1852
1770
  const currentHeaders = neonClientInstance.defaults.headers;
@@ -1906,18 +1824,6 @@ mailchimpClientInstance.interceptors.response.use(
1906
1824
  );
1907
1825
  }
1908
1826
  );
1909
- function getMailchimpClientAuthorization(req) {
1910
- if (req.headers instanceof Headers) {
1911
- return {
1912
- server: req.headers.get("x-adapter-mailchimp-server"),
1913
- token: req.headers.get("x-adapter-mailchimp-token")
1914
- };
1915
- }
1916
- return {
1917
- server: req.headers["x-adapter-mailchimp-server"],
1918
- token: req.headers["x-adapter-mailchimp-token"]
1919
- };
1920
- }
1921
1827
  function getMailchimpClientConfig(options = {}) {
1922
1828
  var _a, _b;
1923
1829
  const currentBaseUrl = mailchimpClientInstance.defaults.baseURL;
@@ -1982,18 +1888,6 @@ shopifyClientInstance.interceptors.response.use(
1982
1888
  }
1983
1889
  );
1984
1890
  var getShopifyClientUrl = (store) => `https://${store}.myshopify.com/admin/api/2024-04`;
1985
- function getShopifyClientAuthorization(req) {
1986
- if (req.headers instanceof Headers) {
1987
- return {
1988
- shop: req.headers.get("x-adapter-shopify-shop"),
1989
- token: req.headers.get("x-adapter-shopify-token")
1990
- };
1991
- }
1992
- return {
1993
- shop: req.headers["x-adapter-shopify-shop"],
1994
- token: req.headers["x-adapter-shopify-token"]
1995
- };
1996
- }
1997
1891
  function getShopifyClientConfig(options = {}) {
1998
1892
  var _a, _b;
1999
1893
  const currentBaseUrl = shopifyClientInstance.defaults.baseURL;
@@ -2069,16 +1963,6 @@ hubspotClientInstance.interceptors.response.use(
2069
1963
  );
2070
1964
  }
2071
1965
  );
2072
- function getHubspotClientAuthorization(req) {
2073
- if (req.headers instanceof Headers) {
2074
- return {
2075
- token: req.headers.get("x-adapter-hubspot-token")
2076
- };
2077
- }
2078
- return {
2079
- token: req.headers["x-adapter-hubspot-token"]
2080
- };
2081
- }
2082
1966
  function getHubspotClientConfig(options = {}) {
2083
1967
  var _a;
2084
1968
  const currentHeaders = hubspotClientInstance.defaults.headers;
@@ -2146,18 +2030,6 @@ bigCommerceClientInstance.interceptors.response.use(
2146
2030
  }
2147
2031
  );
2148
2032
  var getBigCommerceClientUrl = (store) => `https://api.bigcommerce.com/stores/${store}/v3`;
2149
- function getBigCommerceClientAuthorization(req) {
2150
- if (req.headers instanceof Headers) {
2151
- return {
2152
- shop: req.headers.get("x-adapter-bigcommerce-shop"),
2153
- token: req.headers.get("x-adapter-bigcommerce-token")
2154
- };
2155
- }
2156
- return {
2157
- shop: req.headers["x-adapter-bigcommerce-shop"],
2158
- token: req.headers["x-adapter-bigcommerce-token"]
2159
- };
2160
- }
2161
2033
  function getBigCommerceClientConfig(options = {}) {
2162
2034
  var _a, _b;
2163
2035
  const currentBaseUrl = bigCommerceClientInstance.defaults.baseURL;
@@ -2221,16 +2093,6 @@ var AccountApiClient = class extends ApiClient {
2221
2093
  var platformAccountsClientInstance = new AccountApiClient({
2222
2094
  baseURL: "https://accounts.labs.livechatinc.com"
2223
2095
  });
2224
- function getPlatformAccountsClientAuthorization(req) {
2225
- if (req.headers instanceof Headers) {
2226
- return {
2227
- token: req.headers.get("x-adapter-platform-token")
2228
- };
2229
- }
2230
- return {
2231
- token: req.headers["x-adapter-platform-token"]
2232
- };
2233
- }
2234
2096
  function initPlatformAccountsClient(baseUrl, token) {
2235
2097
  if (baseUrl) {
2236
2098
  platformAccountsClientInstance.updateConfig({
@@ -2244,22 +2106,12 @@ function initPlatformAccountsClient(baseUrl, token) {
2244
2106
 
2245
2107
  // src/apis/platform/billing/instance.ts
2246
2108
  var import_axios16 = __toESM(require("axios"));
2247
- var platformBillingClientInstance = import_axios16.default.create({
2109
+ var billingClientInstance = import_axios16.default.create({
2248
2110
  baseURL: "https://billing.labs.livechatinc.com"
2249
2111
  });
2250
- function getPlatformBillingClientAuthorization(req) {
2251
- if (req.headers instanceof Headers) {
2252
- return {
2253
- token: req.headers.get("x-adapter-platform-token")
2254
- };
2255
- }
2256
- return {
2257
- token: req.headers["x-adapter-platform-token"]
2258
- };
2259
- }
2260
- function getPlatformBillingClientConfig(options = {}) {
2112
+ function getBillingClientConfig(options = {}) {
2261
2113
  var _a;
2262
- const defaultAuthorization = platformBillingClientInstance.defaults.headers.Authorization;
2114
+ const defaultAuthorization = billingClientInstance.defaults.headers.Authorization;
2263
2115
  const headers = {
2264
2116
  authorization: (_a = options.token ? `Bearer ${options.token}` : void 0) != null ? _a : defaultAuthorization
2265
2117
  };
@@ -2267,9 +2119,9 @@ function getPlatformBillingClientConfig(options = {}) {
2267
2119
  headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
2268
2120
  };
2269
2121
  }
2270
- function initPlatformBillingClient(baseUrl, token) {
2122
+ function initBillingClient(baseUrl, token) {
2271
2123
  if (baseUrl) {
2272
- platformBillingClientInstance.interceptors.request.use(
2124
+ billingClientInstance.interceptors.request.use(
2273
2125
  (config) => {
2274
2126
  config.baseURL = baseUrl;
2275
2127
  return config;
@@ -2278,9 +2130,9 @@ function initPlatformBillingClient(baseUrl, token) {
2278
2130
  );
2279
2131
  }
2280
2132
  if (token) {
2281
- platformBillingClientInstance.defaults.headers.Authorization = `Bearer ${token}`;
2133
+ billingClientInstance.defaults.headers.Authorization = `Bearer ${token}`;
2282
2134
  } else {
2283
- delete platformBillingClientInstance.defaults.headers.Authorization;
2135
+ delete billingClientInstance.defaults.headers.Authorization;
2284
2136
  }
2285
2137
  }
2286
2138
 
@@ -2769,13 +2621,13 @@ var AdapterApiError = class _AdapterApiError extends ApiErrorBase {
2769
2621
  );
2770
2622
  }
2771
2623
  };
2772
- var platformAdapterClientInstance = import_axios17.default.create({
2624
+ var adapterClientInstance = import_axios17.default.create({
2773
2625
  baseURL: "https://platform.labs.text.com/console-adapter/api",
2774
2626
  headers: {
2775
2627
  "Content-Type": "application/json"
2776
2628
  }
2777
2629
  });
2778
- platformAdapterClientInstance.interceptors.response.use(
2630
+ adapterClientInstance.interceptors.response.use(
2779
2631
  (response) => response,
2780
2632
  (error) => {
2781
2633
  var _a, _b;
@@ -2791,91 +2643,9 @@ platformAdapterClientInstance.interceptors.response.use(
2791
2643
  return Promise.reject(error);
2792
2644
  }
2793
2645
  );
2794
- function getPlatformAdapterClientAuthorization(req) {
2795
- if (req.headers instanceof Headers) {
2796
- return {
2797
- platform: {
2798
- token: req.headers.get("x-adapter-platform-token")
2799
- },
2800
- github: {
2801
- appToken: req.headers.get("x-adapter-github-app-token"),
2802
- oauthToken: req.headers.get("x-adapter-github-oauth-token")
2803
- },
2804
- netlify: {
2805
- token: req.headers.get("x-adapter-netlify-token")
2806
- },
2807
- vercel: {
2808
- token: req.headers.get("x-adapter-vercel-token")
2809
- },
2810
- planetscale: {
2811
- token: req.headers.get("x-adapter-planetscale-token")
2812
- },
2813
- neon: {
2814
- token: req.headers.get("x-adapter-neon-token")
2815
- },
2816
- mailchimp: {
2817
- token: req.headers.get("x-adapter-mailchimp-token"),
2818
- server: req.headers.get("x-adapter-mailchimp-server")
2819
- },
2820
- shopify: {
2821
- token: req.headers.get("x-adapter-shopify-token"),
2822
- shop: req.headers.get("x-adapter-shopify-shop")
2823
- },
2824
- hubspot: {
2825
- token: req.headers.get("x-adapter-hubspot-token")
2826
- },
2827
- bigcommerce: {
2828
- token: req.headers.get("x-adapter-bigcommerce-token"),
2829
- shop: req.headers.get("x-adapter-bigcommerce-shop")
2830
- },
2831
- text: {
2832
- token: req.headers.get("x-adapter-text-token")
2833
- }
2834
- };
2835
- }
2836
- return {
2837
- platform: {
2838
- token: req.headers["x-adapter-platform-token"]
2839
- },
2840
- github: {
2841
- appToken: req.headers["x-adapter-github-app-token"],
2842
- oauthToken: req.headers["x-adapter-github-oauth-token"]
2843
- },
2844
- netlify: {
2845
- token: req.headers["x-adapter-netlify-token"]
2846
- },
2847
- vercel: {
2848
- token: req.headers["x-adapter-vercel-token"]
2849
- },
2850
- planetscale: {
2851
- token: req.headers["x-adapter-planetscale-token"]
2852
- },
2853
- neon: {
2854
- token: req.headers["x-adapter-neon-token"]
2855
- },
2856
- mailchimp: {
2857
- token: req.headers["x-adapter-mailchimp-token"],
2858
- server: req.headers["x-adapter-mailchimp-server"]
2859
- },
2860
- shopify: {
2861
- token: req.headers["x-adapter-shopify-token"],
2862
- shop: req.headers["x-adapter-shopify-shop"]
2863
- },
2864
- hubspot: {
2865
- token: req.headers["x-adapter-hubspot-token"]
2866
- },
2867
- bigcommerce: {
2868
- token: req.headers["x-adapter-bigcommerce-token"],
2869
- shop: req.headers["x-adapter-bigcommerce-shop"]
2870
- },
2871
- text: {
2872
- token: req.headers["x-adapter-text-token"]
2873
- }
2874
- };
2875
- }
2876
- function getPlatformAdapterClientConfig(options = {}) {
2646
+ function getAdapterClientConfig(options = {}) {
2877
2647
  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;
2878
- const currentHeaders = platformAdapterClientInstance.defaults.headers;
2648
+ const currentHeaders = adapterClientInstance.defaults.headers;
2879
2649
  const headers = {
2880
2650
  platform: {
2881
2651
  token: (_b = currentHeaders["x-adapter-platform-token"]) != null ? _b : (_a = options.platform) == null ? void 0 : _a.token
@@ -2939,14 +2709,14 @@ function getPlatformAdapterClientConfig(options = {}) {
2939
2709
  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 } : {})
2940
2710
  };
2941
2711
  }
2942
- var getPlatformAdapterClientDefaultConfig = (authorization) => getPlatformAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
2712
+ var getAdapterClientDefaultConfig = (authorization) => getAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
2943
2713
  ensureAuthorizationToken: {
2944
2714
  platform: true
2945
2715
  }
2946
2716
  }));
2947
- function initPlatformAdapterClient(baseUrl, tokens) {
2717
+ function initAdapterClient(baseUrl, tokens) {
2948
2718
  if (baseUrl) {
2949
- platformAdapterClientInstance.interceptors.request.use(
2719
+ adapterClientInstance.interceptors.request.use(
2950
2720
  (config) => {
2951
2721
  config.baseURL = baseUrl;
2952
2722
  return config;
@@ -2955,12 +2725,12 @@ function initPlatformAdapterClient(baseUrl, tokens) {
2955
2725
  );
2956
2726
  }
2957
2727
  if (tokens) {
2958
- updatePlatformAdapterClient(tokens);
2728
+ updateAdapterClient(tokens);
2959
2729
  }
2960
2730
  }
2961
- function updatePlatformAdapterClient(tokens) {
2731
+ function updateAdapterClient(tokens) {
2962
2732
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
2963
- const headers = platformAdapterClientInstance.defaults.headers;
2733
+ const headers = adapterClientInstance.defaults.headers;
2964
2734
  if ((_a = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _a.token) {
2965
2735
  headers["x-adapter-platform-token"] = tokens.platform.token;
2966
2736
  }
@@ -3083,10 +2853,10 @@ var DpsApiError = class extends ApiErrorBase {
3083
2853
  this.name = "dps";
3084
2854
  }
3085
2855
  };
3086
- var platformDpsClientInstance = import_axios18.default.create({
2856
+ var dpsClientInstance = import_axios18.default.create({
3087
2857
  baseURL: "https://dev-platform.labs.livechatinc.com"
3088
2858
  });
3089
- platformDpsClientInstance.interceptors.response.use(
2859
+ dpsClientInstance.interceptors.response.use(
3090
2860
  (response) => response,
3091
2861
  (error) => {
3092
2862
  var _a, _b, _c, _d;
@@ -3102,28 +2872,9 @@ platformDpsClientInstance.interceptors.response.use(
3102
2872
  );
3103
2873
  }
3104
2874
  );
3105
- function getPlatformDpsClientAuthorization(req) {
3106
- if (req.headers instanceof Headers) {
3107
- return {
3108
- token: req.headers.get("x-adapter-platform-token"),
3109
- tokenType: "Bearer"
3110
- };
3111
- }
3112
- return {
3113
- token: req.headers["x-adapter-platform-token"],
3114
- tokenType: "Bearer"
3115
- };
3116
- }
3117
- function getPlatformDpsAdminClientAuthorization() {
3118
- const token = process.env.PLATFORM_DPS_TOKEN_FOR_GITHUB;
3119
- return {
3120
- token: btoa(`apps@livechatinc.com:${token}`),
3121
- tokenType: "Basic"
3122
- };
3123
- }
3124
- function getPlatformDpsClientConfig(options = {}) {
2875
+ function getDpsClientConfig(options = {}) {
3125
2876
  var _a, _b;
3126
- const currentHeaders = platformDpsClientInstance.defaults.headers;
2877
+ const currentHeaders = dpsClientInstance.defaults.headers;
3127
2878
  const defaultAuthorization = currentHeaders.Authorization;
3128
2879
  const headers = {
3129
2880
  authorization: (_b = options.token ? `${(_a = options.tokenType) != null ? _a : "Bearer"} ${options.token}` : void 0) != null ? _b : defaultAuthorization
@@ -3132,10 +2883,10 @@ function getPlatformDpsClientConfig(options = {}) {
3132
2883
  headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
3133
2884
  };
3134
2885
  }
3135
- function initPlatformDpsClient(baseUrl, token) {
3136
- const headers = platformDpsClientInstance.defaults.headers;
2886
+ function initDpsClient(baseUrl, token) {
2887
+ const headers = dpsClientInstance.defaults.headers;
3137
2888
  if (baseUrl) {
3138
- platformDpsClientInstance.interceptors.request.use(
2889
+ dpsClientInstance.interceptors.request.use(
3139
2890
  (config) => {
3140
2891
  config.baseURL = baseUrl;
3141
2892
  return config;
@@ -3216,16 +2967,6 @@ livechatClientInstance.interceptors.response.use(
3216
2967
  );
3217
2968
  }
3218
2969
  );
3219
- function getLiveChatClientAuthorization(req) {
3220
- if (req.headers instanceof Headers) {
3221
- return {
3222
- token: req.headers.get("x-adapter-platform-token")
3223
- };
3224
- }
3225
- return {
3226
- token: req.headers["x-adapter-platform-token"]
3227
- };
3228
- }
3229
2970
  function getLiveChatClientConfig(options = {}) {
3230
2971
  var _a, _b;
3231
2972
  const currentHeaders = livechatClientInstance.defaults.headers;
@@ -3427,10 +3168,10 @@ var textAppMonitoringReportsApi = {
3427
3168
  getUptimeDetails(appId, authorization) {
3428
3169
  return __async(this, null, function* () {
3429
3170
  try {
3430
- const response = yield platformDpsClientInstance.get(
3171
+ const response = yield dpsClientInstance.get(
3431
3172
  `/v2/applications/${encodeURIComponent(appId)}/monitoring`,
3432
3173
  // proxy endpoint
3433
- getPlatformDpsClientConfig(authorization)
3174
+ getDpsClientConfig(authorization)
3434
3175
  );
3435
3176
  return response.data;
3436
3177
  } catch (error) {
@@ -4615,6 +4356,24 @@ var hubspotWebhooksApi = {
4615
4356
  // })
4616
4357
  );
4617
4358
  });
4359
+ },
4360
+ delete(appId, authorization) {
4361
+ return __async(this, null, function* () {
4362
+ const params = new URLSearchParams(
4363
+ (authorization == null ? void 0 : authorization.apiKey) ? {
4364
+ hapikey: authorization.apiKey
4365
+ } : {}
4366
+ );
4367
+ return hubspotClientInstance.delete(
4368
+ `/webhooks/v1/${encodeURIComponent(
4369
+ appId
4370
+ )}/settings?${params.toString()}`
4371
+ // getHubspotClientConfig({
4372
+ // ...authorization,
4373
+ // ensureAuthorizationToken: true,
4374
+ // })
4375
+ );
4376
+ });
4618
4377
  }
4619
4378
  },
4620
4379
  subscriptions: {
@@ -4815,7 +4574,7 @@ var integrationsApi = {
4815
4574
  neon: neonApi,
4816
4575
  planetscale: planetscaleApi,
4817
4576
  hubspot: hubspotApi,
4818
- bigommerce: bigcommerceApi,
4577
+ bigcommerce: bigcommerceApi,
4819
4578
  openai: openaiApi,
4820
4579
  text: textApi
4821
4580
  };
@@ -5912,10 +5671,10 @@ var platformAccountsApi = {
5912
5671
  var platformDpsApplicationAuthorizationApi = {
5913
5672
  createAuth(appId, payload, authorization) {
5914
5673
  return __async(this, null, function* () {
5915
- yield platformDpsClientInstance.post(
5674
+ yield dpsClientInstance.post(
5916
5675
  `/v2/applications/${encodeURIComponent(appId)}/authorization`,
5917
5676
  payload,
5918
- getPlatformDpsClientConfig(authorization)
5677
+ getDpsClientConfig(authorization)
5919
5678
  ).catch((error) => {
5920
5679
  throw error.withCustomMessage(
5921
5680
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
@@ -5925,9 +5684,9 @@ var platformDpsApplicationAuthorizationApi = {
5925
5684
  },
5926
5685
  deleteAuth(appId, authorization) {
5927
5686
  return __async(this, null, function* () {
5928
- yield platformDpsClientInstance.delete(
5687
+ yield dpsClientInstance.delete(
5929
5688
  `/v2/applications/${encodeURIComponent(appId)}/authorization`,
5930
- getPlatformDpsClientConfig(authorization)
5689
+ getDpsClientConfig(authorization)
5931
5690
  ).catch((error) => {
5932
5691
  throw error.withCustomMessage(
5933
5692
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -5941,9 +5700,9 @@ var platformDpsApplicationAuthorizationApi = {
5941
5700
  var platformDpsApplicationAutoReviewApi = {
5942
5701
  getAutoReview(appId, authorization) {
5943
5702
  return __async(this, null, function* () {
5944
- return platformDpsClientInstance.get(
5703
+ return dpsClientInstance.get(
5945
5704
  `/v2/applications/${encodeURIComponent(appId)}/auto-review`,
5946
- getPlatformDpsClientConfig(authorization)
5705
+ getDpsClientConfig(authorization)
5947
5706
  ).then(({ status, data }) => {
5948
5707
  if (status === 204) {
5949
5708
  return getEmptyAppAutoReview();
@@ -5958,10 +5717,10 @@ var platformDpsApplicationAutoReviewApi = {
5958
5717
  },
5959
5718
  submitAutoReview(appId, payload, authorization) {
5960
5719
  return __async(this, null, function* () {
5961
- yield platformDpsClientInstance.post(
5720
+ yield dpsClientInstance.post(
5962
5721
  `/v2/applications/${encodeURIComponent(appId)}/auto-review`,
5963
5722
  payload,
5964
- getPlatformDpsClientConfig(authorization)
5723
+ getDpsClientConfig(authorization)
5965
5724
  ).catch((error) => {
5966
5725
  throw error.withCustomMessage(
5967
5726
  `The review couldn\u2019t be requested. [${error.message}]`
@@ -5975,12 +5734,12 @@ var platformDpsApplicationAutoReviewApi = {
5975
5734
  var platformDpsApplicationChatActionsApi = {
5976
5735
  createChatAction(appId, payload, authorization) {
5977
5736
  return __async(this, null, function* () {
5978
- yield platformDpsClientInstance.put(
5737
+ yield dpsClientInstance.put(
5979
5738
  `/v2/applications/${encodeURIComponent(
5980
5739
  appId
5981
5740
  )}/chat-actions/${encodeURIComponent(payload.id)}`,
5982
5741
  payload,
5983
- getPlatformDpsClientConfig(authorization)
5742
+ getDpsClientConfig(authorization)
5984
5743
  ).catch((error) => {
5985
5744
  throw error.withCustomMessage(
5986
5745
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
@@ -5990,12 +5749,12 @@ var platformDpsApplicationChatActionsApi = {
5990
5749
  },
5991
5750
  updateChatAction(appId, payload, authorization) {
5992
5751
  return __async(this, null, function* () {
5993
- yield platformDpsClientInstance.patch(
5752
+ yield dpsClientInstance.patch(
5994
5753
  `/v2/applications/${encodeURIComponent(
5995
5754
  appId
5996
5755
  )}/chat-actions/${encodeURIComponent(payload.id)}`,
5997
5756
  payload,
5998
- getPlatformDpsClientConfig(authorization)
5757
+ getDpsClientConfig(authorization)
5999
5758
  ).catch((error) => {
6000
5759
  throw error.withCustomMessage(
6001
5760
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6005,11 +5764,11 @@ var platformDpsApplicationChatActionsApi = {
6005
5764
  },
6006
5765
  deleteChatAction(appId, chatActionId, authorization) {
6007
5766
  return __async(this, null, function* () {
6008
- yield platformDpsClientInstance.delete(
5767
+ yield dpsClientInstance.delete(
6009
5768
  `/v2/applications/${encodeURIComponent(
6010
5769
  appId
6011
5770
  )}/chat-actions/${encodeURIComponent(chatActionId)}`,
6012
- __spreadValues({}, getPlatformDpsClientConfig(authorization))
5771
+ __spreadValues({}, getDpsClientConfig(authorization))
6013
5772
  ).catch((error) => {
6014
5773
  throw error.withCustomMessage(
6015
5774
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6022,12 +5781,12 @@ var platformDpsApplicationChatActionsApi = {
6022
5781
  // src/apis/platform/dps/applications/application/chatBoosters/api.ts
6023
5782
  var platformDpsApplicationChatBoostersApi = {
6024
5783
  createChatBooster(appId, chatBoosterId, payload, authorization) {
6025
- return platformDpsClientInstance.put(
5784
+ return dpsClientInstance.put(
6026
5785
  `/v2/applications/${encodeURIComponent(
6027
5786
  appId
6028
5787
  )}/chat-boosters/${encodeURIComponent(chatBoosterId)}`,
6029
5788
  payload,
6030
- getPlatformDpsClientConfig(authorization)
5789
+ getDpsClientConfig(authorization)
6031
5790
  ).catch((error) => {
6032
5791
  throw error.withCustomMessage(
6033
5792
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
@@ -6036,12 +5795,12 @@ var platformDpsApplicationChatBoostersApi = {
6036
5795
  },
6037
5796
  updateChatBooster(appId, chatBoosterId, payload, authorization) {
6038
5797
  return __async(this, null, function* () {
6039
- return platformDpsClientInstance.put(
5798
+ return dpsClientInstance.put(
6040
5799
  `/v2/applications/${encodeURIComponent(
6041
5800
  appId
6042
5801
  )}/chat-boosters/${encodeURIComponent(chatBoosterId)}`,
6043
5802
  payload,
6044
- getPlatformDpsClientConfig(authorization)
5803
+ getDpsClientConfig(authorization)
6045
5804
  ).catch((error) => {
6046
5805
  throw error.withCustomMessage(
6047
5806
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6051,11 +5810,11 @@ var platformDpsApplicationChatBoostersApi = {
6051
5810
  },
6052
5811
  deleteChatBooster(appId, chatBoosterId, authorization) {
6053
5812
  return __async(this, null, function* () {
6054
- return platformDpsClientInstance.delete(
5813
+ return dpsClientInstance.delete(
6055
5814
  `/v2/applications/${encodeURIComponent(
6056
5815
  appId
6057
5816
  )}/chat-boosters/${encodeURIComponent(chatBoosterId)}`,
6058
- getPlatformDpsClientConfig(authorization)
5817
+ getDpsClientConfig(authorization)
6059
5818
  ).catch((error) => {
6060
5819
  throw error.withCustomMessage(
6061
5820
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6069,10 +5828,10 @@ var platformDpsApplicationChatBoostersApi = {
6069
5828
  var platformDpsApplicationDisplayApi = {
6070
5829
  updateVersionHistory(appId, payload, authorization) {
6071
5830
  return __async(this, null, function* () {
6072
- yield platformDpsClientInstance.put(
5831
+ yield dpsClientInstance.put(
6073
5832
  `/v2/applications/${encodeURIComponent(appId)}/display/changelog`,
6074
5833
  payload,
6075
- getPlatformDpsClientConfig(authorization)
5834
+ getDpsClientConfig(authorization)
6076
5835
  ).catch((error) => {
6077
5836
  throw error.withCustomMessage(
6078
5837
  `Listing details couldn't be updated. [${error.message}]`
@@ -6082,10 +5841,10 @@ var platformDpsApplicationDisplayApi = {
6082
5841
  },
6083
5842
  updateBasicDetails(appId, basicDetails, authorization) {
6084
5843
  return __async(this, null, function* () {
6085
- yield platformDpsClientInstance.put(
5844
+ yield dpsClientInstance.put(
6086
5845
  `/v2/applications/${encodeURIComponent(appId)}/display`,
6087
5846
  basicDetails,
6088
- getPlatformDpsClientConfig(authorization)
5847
+ getDpsClientConfig(authorization)
6089
5848
  ).catch((error) => {
6090
5849
  throw error.withCustomMessage(
6091
5850
  `Listing details couldn't be updated. [${error.message}]`
@@ -6095,10 +5854,10 @@ var platformDpsApplicationDisplayApi = {
6095
5854
  },
6096
5855
  patchBasicDetails(appId, basicDetails, authorization) {
6097
5856
  return __async(this, null, function* () {
6098
- yield platformDpsClientInstance.patch(
5857
+ yield dpsClientInstance.patch(
6099
5858
  `/v2/applications/${encodeURIComponent(appId)}/display`,
6100
5859
  basicDetails,
6101
- getPlatformDpsClientConfig(authorization)
5860
+ getDpsClientConfig(authorization)
6102
5861
  ).catch((error) => {
6103
5862
  throw error.withCustomMessage(
6104
5863
  `Listing details couldn't be updated. [${error.message}]`
@@ -6108,10 +5867,10 @@ var platformDpsApplicationDisplayApi = {
6108
5867
  },
6109
5868
  updateOverview(appId, data, authorization) {
6110
5869
  return __async(this, null, function* () {
6111
- yield platformDpsClientInstance.put(
5870
+ yield dpsClientInstance.put(
6112
5871
  `/v2/applications/${encodeURIComponent(appId)}/listing/overview`,
6113
5872
  data,
6114
- getPlatformDpsClientConfig(authorization)
5873
+ getDpsClientConfig(authorization)
6115
5874
  ).catch((error) => {
6116
5875
  throw error.withCustomMessage(
6117
5876
  `Listing details couldn't be updated. [${error.message}]`
@@ -6121,10 +5880,10 @@ var platformDpsApplicationDisplayApi = {
6121
5880
  },
6122
5881
  updateTutorialAndSupport(appId, data, authorization) {
6123
5882
  return __async(this, null, function* () {
6124
- yield platformDpsClientInstance.put(
5883
+ yield dpsClientInstance.put(
6125
5884
  `/v2/applications/${encodeURIComponent(appId)}/listing/support`,
6126
5885
  data,
6127
- getPlatformDpsClientConfig(authorization)
5886
+ getDpsClientConfig(authorization)
6128
5887
  ).catch((error) => {
6129
5888
  throw error.withCustomMessage(
6130
5889
  `Listing details couldn't be updated. [${error.message}]`
@@ -6134,10 +5893,10 @@ var platformDpsApplicationDisplayApi = {
6134
5893
  },
6135
5894
  updateAppIcon(appId, payload, authorization) {
6136
5895
  return __async(this, null, function* () {
6137
- yield platformDpsClientInstance.put(
5896
+ yield dpsClientInstance.put(
6138
5897
  `/v2/applications/${encodeURIComponent(appId)}/display/icons`,
6139
5898
  payload,
6140
- getPlatformDpsClientConfig(authorization)
5899
+ getDpsClientConfig(authorization)
6141
5900
  ).catch((error) => {
6142
5901
  throw error.withCustomMessage(
6143
5902
  `Listing details couldn't be updated. [${error.message}]`
@@ -6147,10 +5906,10 @@ var platformDpsApplicationDisplayApi = {
6147
5906
  },
6148
5907
  updateDisplayImages(appId, screenshots, authorization) {
6149
5908
  return __async(this, null, function* () {
6150
- yield platformDpsClientInstance.put(
5909
+ yield dpsClientInstance.put(
6151
5910
  `/v2/applications/${encodeURIComponent(appId)}/screenshots/commit`,
6152
5911
  screenshots,
6153
- getPlatformDpsClientConfig(authorization)
5912
+ getDpsClientConfig(authorization)
6154
5913
  ).catch((error) => {
6155
5914
  throw error.withCustomMessage(
6156
5915
  `Listing details couldn't be updated. [${error.message}]`
@@ -6160,10 +5919,10 @@ var platformDpsApplicationDisplayApi = {
6160
5919
  },
6161
5920
  updateDisplayFeatures(appId, features, authorization) {
6162
5921
  return __async(this, null, function* () {
6163
- yield platformDpsClientInstance.put(
5922
+ yield dpsClientInstance.put(
6164
5923
  `/v2/applications/${encodeURIComponent(appId)}/features`,
6165
5924
  features,
6166
- getPlatformDpsClientConfig(authorization)
5925
+ getDpsClientConfig(authorization)
6167
5926
  ).catch((error) => {
6168
5927
  throw error.withCustomMessage(
6169
5928
  `Listing details couldn't be updated. [${error.message}]`
@@ -6173,10 +5932,10 @@ var platformDpsApplicationDisplayApi = {
6173
5932
  },
6174
5933
  updateDisplayBenefits(appId, benefits, authorization) {
6175
5934
  return __async(this, null, function* () {
6176
- yield platformDpsClientInstance.put(
5935
+ yield dpsClientInstance.put(
6177
5936
  `/v2/applications/${encodeURIComponent(appId)}/benefits`,
6178
5937
  benefits,
6179
- getPlatformDpsClientConfig(authorization)
5938
+ getDpsClientConfig(authorization)
6180
5939
  ).catch((error) => {
6181
5940
  throw error.withCustomMessage(
6182
5941
  `Listing details couldn't be updated. [${error.message}]`
@@ -6186,10 +5945,10 @@ var platformDpsApplicationDisplayApi = {
6186
5945
  },
6187
5946
  uploadImage(appId, body, authorization) {
6188
5947
  return __async(this, null, function* () {
6189
- return platformDpsClientInstance.post(
5948
+ return dpsClientInstance.post(
6190
5949
  `/v2/applications/${encodeURIComponent(appId)}/image`,
6191
5950
  body,
6192
- getPlatformDpsClientConfig(authorization)
5951
+ getDpsClientConfig(authorization)
6193
5952
  ).catch((error) => {
6194
5953
  throw error.withCustomMessage(`Image couldn't be uploaded`);
6195
5954
  });
@@ -6201,9 +5960,9 @@ var platformDpsApplicationDisplayApi = {
6201
5960
  var platformDpsApplicationEventApi = {
6202
5961
  getEvents(appId, authorization) {
6203
5962
  return __async(this, null, function* () {
6204
- return platformDpsClientInstance.get(
5963
+ return dpsClientInstance.get(
6205
5964
  `/v2/applications/${encodeURIComponent(appId)}/events?limit=300`,
6206
- getPlatformDpsClientConfig(authorization)
5965
+ getDpsClientConfig(authorization)
6207
5966
  ).then(({ data }) => data).catch((error) => {
6208
5967
  throw error.withCustomMessage(
6209
5968
  `App Events couldn't be fetched. [${error.message}]`
@@ -6217,9 +5976,9 @@ var platformDpsApplicationEventApi = {
6217
5976
  var platformDpsApplicationInfrastructureBlocksApi = {
6218
5977
  getBlocks(appId, authorization) {
6219
5978
  return __async(this, null, function* () {
6220
- const response = yield platformDpsClientInstance.get(
5979
+ const response = yield dpsClientInstance.get(
6221
5980
  `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
6222
- getPlatformDpsClientConfig(authorization)
5981
+ getDpsClientConfig(authorization)
6223
5982
  );
6224
5983
  delete response.data.appId;
6225
5984
  return response.data;
@@ -6227,26 +5986,26 @@ var platformDpsApplicationInfrastructureBlocksApi = {
6227
5986
  },
6228
5987
  updateBlocks(appId, payload, authorization) {
6229
5988
  return __async(this, null, function* () {
6230
- yield platformDpsClientInstance.patch(
5989
+ yield dpsClientInstance.patch(
6231
5990
  `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
6232
5991
  payload,
6233
- getPlatformDpsClientConfig(authorization)
5992
+ getDpsClientConfig(authorization)
6234
5993
  );
6235
5994
  });
6236
5995
  },
6237
5996
  deleteBlock(appId, block, authorization) {
6238
5997
  return __async(this, null, function* () {
6239
- yield platformDpsClientInstance.delete(
5998
+ yield dpsClientInstance.delete(
6240
5999
  `/v2/applications/${encodeURIComponent(
6241
6000
  appId
6242
6001
  )}/infrastructure/blocks/${encodeURIComponent(block)}`,
6243
- getPlatformDpsClientConfig(authorization)
6002
+ getDpsClientConfig(authorization)
6244
6003
  );
6245
6004
  });
6246
6005
  },
6247
6006
  updateRepository(appId, payload, authorization) {
6248
6007
  return __async(this, null, function* () {
6249
- yield platformDpsClientInstance.patch(
6008
+ yield dpsClientInstance.patch(
6250
6009
  `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
6251
6010
  {
6252
6011
  appId,
@@ -6254,14 +6013,14 @@ var platformDpsApplicationInfrastructureBlocksApi = {
6254
6013
  provider: payload.provider
6255
6014
  }
6256
6015
  },
6257
- getPlatformDpsClientConfig(authorization)
6016
+ getDpsClientConfig(authorization)
6258
6017
  );
6259
6018
  });
6260
6019
  },
6261
6020
  updateDeployment(appId, payload, authorization) {
6262
6021
  return __async(this, null, function* () {
6263
6022
  const config = payload.customUrl ? { custom: { url: payload.customUrl } } : { custom: null };
6264
- yield platformDpsClientInstance.patch(
6023
+ yield dpsClientInstance.patch(
6265
6024
  `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
6266
6025
  {
6267
6026
  appId,
@@ -6270,13 +6029,13 @@ var platformDpsApplicationInfrastructureBlocksApi = {
6270
6029
  config
6271
6030
  }
6272
6031
  },
6273
- getPlatformDpsClientConfig(authorization)
6032
+ getDpsClientConfig(authorization)
6274
6033
  );
6275
6034
  });
6276
6035
  },
6277
6036
  updateStorage(appId, payload, authorization) {
6278
6037
  return __async(this, null, function* () {
6279
- yield platformDpsClientInstance.patch(
6038
+ yield dpsClientInstance.patch(
6280
6039
  `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
6281
6040
  {
6282
6041
  appId,
@@ -6284,7 +6043,7 @@ var platformDpsApplicationInfrastructureBlocksApi = {
6284
6043
  provider: payload.provider
6285
6044
  }
6286
6045
  },
6287
- getPlatformDpsClientConfig(authorization)
6046
+ getDpsClientConfig(authorization)
6288
6047
  );
6289
6048
  });
6290
6049
  }
@@ -6299,9 +6058,9 @@ var platformDpsApplicationInfrastructureApi = {
6299
6058
  var platformDpsApplicationInstallApi = {
6300
6059
  getInstallationsCount(appId, authorization) {
6301
6060
  return __async(this, null, function* () {
6302
- return platformDpsClientInstance.get(
6061
+ return dpsClientInstance.get(
6303
6062
  `/v2/applications/${encodeURIComponent(appId)}/installations/count`,
6304
- getPlatformDpsClientConfig(authorization)
6063
+ getDpsClientConfig(authorization)
6305
6064
  ).catch((error) => {
6306
6065
  throw error.withCustomMessage(
6307
6066
  `Couldn't get app installation count. [${error.message}]`
@@ -6311,10 +6070,10 @@ var platformDpsApplicationInstallApi = {
6311
6070
  },
6312
6071
  install(appId, authorization) {
6313
6072
  return __async(this, null, function* () {
6314
- yield platformDpsClientInstance.put(
6073
+ yield dpsClientInstance.put(
6315
6074
  `/v2/applications/${encodeURIComponent(appId)}/install`,
6316
6075
  {},
6317
- getPlatformDpsClientConfig(authorization)
6076
+ getDpsClientConfig(authorization)
6318
6077
  ).catch((error) => {
6319
6078
  throw error.withCustomMessage(
6320
6079
  `App couldn't be installed. [${error.message}]`
@@ -6324,9 +6083,9 @@ var platformDpsApplicationInstallApi = {
6324
6083
  },
6325
6084
  uninstall(appId, authorization) {
6326
6085
  return __async(this, null, function* () {
6327
- yield platformDpsClientInstance.delete(
6086
+ yield dpsClientInstance.delete(
6328
6087
  `/v2/applications/${encodeURIComponent(appId)}/install`,
6329
- getPlatformDpsClientConfig(authorization)
6088
+ getDpsClientConfig(authorization)
6330
6089
  ).catch((error) => {
6331
6090
  throw error.withCustomMessage(
6332
6091
  `App couldn't be uninstalled. [${error.message}]`
@@ -6336,10 +6095,10 @@ var platformDpsApplicationInstallApi = {
6336
6095
  },
6337
6096
  updateDirectInstallationUrl(appId, payload, authorization) {
6338
6097
  return __async(this, null, function* () {
6339
- yield platformDpsClientInstance.put(
6098
+ yield dpsClientInstance.put(
6340
6099
  `/v2/applications/${encodeURIComponent(appId)}/install/direct`,
6341
6100
  payload,
6342
- getPlatformDpsClientConfig(authorization)
6101
+ getDpsClientConfig(authorization)
6343
6102
  ).catch((error) => {
6344
6103
  throw error.withCustomMessage(
6345
6104
  `Direct installation URL couldn't be updated. [${error.message}]`
@@ -6349,10 +6108,10 @@ var platformDpsApplicationInstallApi = {
6349
6108
  },
6350
6109
  getInstalledApplication(appId, license, authorization) {
6351
6110
  return __async(this, null, function* () {
6352
- return platformDpsClientInstance.get(
6111
+ return dpsClientInstance.get(
6353
6112
  `/v1/applications/${encodeURIComponent(appId)}/installed`,
6354
6113
  {
6355
- headers: __spreadProps(__spreadValues({}, getPlatformDpsClientConfig(authorization).headers), {
6114
+ headers: __spreadProps(__spreadValues({}, getDpsClientConfig(authorization).headers), {
6356
6115
  "X-License": license
6357
6116
  })
6358
6117
  }
@@ -6367,10 +6126,10 @@ var platformDpsApplicationInstallApi = {
6367
6126
  var platformDpsApplicationOnboardingApi = {
6368
6127
  updateOnboarding(appId, payload, authorization) {
6369
6128
  return __async(this, null, function* () {
6370
- yield platformDpsClientInstance.put(
6129
+ yield dpsClientInstance.put(
6371
6130
  `/v2/applications/${encodeURIComponent(appId)}/onboarding`,
6372
6131
  payload,
6373
- getPlatformDpsClientConfig(authorization)
6132
+ getDpsClientConfig(authorization)
6374
6133
  ).catch((error) => {
6375
6134
  throw error.withCustomMessage(
6376
6135
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6380,9 +6139,9 @@ var platformDpsApplicationOnboardingApi = {
6380
6139
  },
6381
6140
  deleteOnboarding(appId, authorization) {
6382
6141
  return __async(this, null, function* () {
6383
- yield platformDpsClientInstance.delete(
6142
+ yield dpsClientInstance.delete(
6384
6143
  `/v2/applications/${encodeURIComponent(appId)}/onboarding`,
6385
- __spreadValues({}, getPlatformDpsClientConfig(authorization))
6144
+ __spreadValues({}, getDpsClientConfig(authorization))
6386
6145
  ).catch((error) => {
6387
6146
  throw error.withCustomMessage(
6388
6147
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6397,12 +6156,12 @@ var platformDpsApplicationPaymentApi = {
6397
6156
  updatePaymentBlock(appId, payment, authorization) {
6398
6157
  return __async(this, null, function* () {
6399
6158
  var _a;
6400
- yield platformDpsClientInstance.put(
6159
+ yield dpsClientInstance.put(
6401
6160
  `/v2/applications/${encodeURIComponent(appId)}/payment`,
6402
6161
  __spreadProps(__spreadValues({}, payment), {
6403
6162
  creditCardRequired: (_a = payment.creditCardRequired) != null ? _a : true
6404
6163
  }),
6405
- getPlatformDpsClientConfig(authorization)
6164
+ getDpsClientConfig(authorization)
6406
6165
  ).catch((error) => {
6407
6166
  throw error.withCustomMessage(
6408
6167
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6412,9 +6171,9 @@ var platformDpsApplicationPaymentApi = {
6412
6171
  },
6413
6172
  deletePaymentBlock(appId, authorization) {
6414
6173
  return __async(this, null, function* () {
6415
- yield platformDpsClientInstance.delete(
6174
+ yield dpsClientInstance.delete(
6416
6175
  `/v2/applications/${encodeURIComponent(appId)}/payment`,
6417
- getPlatformDpsClientConfig(authorization)
6176
+ getDpsClientConfig(authorization)
6418
6177
  ).catch((error) => {
6419
6178
  throw error.withCustomMessage(
6420
6179
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6428,10 +6187,10 @@ var platformDpsApplicationPaymentApi = {
6428
6187
  var platformDpsApplicationProductApi = {
6429
6188
  updateProduct(appId, payload, authorization) {
6430
6189
  return __async(this, null, function* () {
6431
- yield platformDpsClientInstance.put(
6190
+ yield dpsClientInstance.put(
6432
6191
  `/v2/applications/${encodeURIComponent(appId)}/product`,
6433
6192
  payload,
6434
- getPlatformDpsClientConfig(authorization)
6193
+ getDpsClientConfig(authorization)
6435
6194
  ).catch((error) => {
6436
6195
  throw error.withCustomMessage(
6437
6196
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6445,10 +6204,10 @@ var platformDpsApplicationProductApi = {
6445
6204
  var platformDpsApplicationCustomPropsApi = {
6446
6205
  createCustomProps(appId, property, authorization) {
6447
6206
  return __async(this, null, function* () {
6448
- return platformDpsClientInstance.post(
6207
+ return dpsClientInstance.post(
6449
6208
  `/v2/applications/${encodeURIComponent(appId)}/property`,
6450
6209
  property,
6451
- getPlatformDpsClientConfig(authorization)
6210
+ getDpsClientConfig(authorization)
6452
6211
  ).then(({ data }) => data).catch((error) => {
6453
6212
  throw error.withCustomMessage(
6454
6213
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
@@ -6458,10 +6217,10 @@ var platformDpsApplicationCustomPropsApi = {
6458
6217
  },
6459
6218
  updateCustomProps(appId, property, authorization) {
6460
6219
  return __async(this, null, function* () {
6461
- return platformDpsClientInstance.put(
6220
+ return dpsClientInstance.put(
6462
6221
  `/v2/applications/${encodeURIComponent(appId)}/property`,
6463
6222
  property,
6464
- getPlatformDpsClientConfig(authorization)
6223
+ getDpsClientConfig(authorization)
6465
6224
  ).then(({ data }) => data).catch((error) => {
6466
6225
  throw error.withCustomMessage(
6467
6226
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6471,11 +6230,11 @@ var platformDpsApplicationCustomPropsApi = {
6471
6230
  },
6472
6231
  deleteCustomProps(appId, property, authorization) {
6473
6232
  return __async(this, null, function* () {
6474
- return platformDpsClientInstance.delete(
6233
+ return dpsClientInstance.delete(
6475
6234
  `/v2/applications/${encodeURIComponent(appId)}/property`,
6476
6235
  __spreadValues({
6477
6236
  data: property
6478
- }, getPlatformDpsClientConfig(authorization))
6237
+ }, getDpsClientConfig(authorization))
6479
6238
  ).then(({ data }) => data).catch((error) => {
6480
6239
  throw error.withCustomMessage(
6481
6240
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6489,9 +6248,9 @@ var platformDpsApplicationCustomPropsApi = {
6489
6248
  var platformDpsApplicationResourcesApi = {
6490
6249
  getAppUpgrades(appId, authorization) {
6491
6250
  return __async(this, null, function* () {
6492
- return platformDpsClientInstance.get(
6251
+ return dpsClientInstance.get(
6493
6252
  `/v2/applications/${encodeURIComponent(appId)}/resources`,
6494
- getPlatformDpsClientConfig(authorization)
6253
+ getDpsClientConfig(authorization)
6495
6254
  ).catch((error) => {
6496
6255
  throw error.withCustomMessage(
6497
6256
  `App Resources couldn't be loaded. [${error.message}]`
@@ -6501,10 +6260,10 @@ var platformDpsApplicationResourcesApi = {
6501
6260
  },
6502
6261
  createAppUpgrade(appId, body, authorization) {
6503
6262
  return __async(this, null, function* () {
6504
- return platformDpsClientInstance.put(
6263
+ return dpsClientInstance.put(
6505
6264
  `/v2/applications/${encodeURIComponent(appId)}/resources`,
6506
6265
  body,
6507
- getPlatformDpsClientConfig(authorization)
6266
+ getDpsClientConfig(authorization)
6508
6267
  ).catch((error) => {
6509
6268
  throw error.withCustomMessage(
6510
6269
  `App Resources couldn't be created. [${error.message}]`
@@ -6514,10 +6273,10 @@ var platformDpsApplicationResourcesApi = {
6514
6273
  },
6515
6274
  updateAppUpgrade(appId, body, authorization) {
6516
6275
  return __async(this, null, function* () {
6517
- return platformDpsClientInstance.put(
6276
+ return dpsClientInstance.put(
6518
6277
  `/v2/applications/${encodeURIComponent(appId)}/resources`,
6519
6278
  body,
6520
- getPlatformDpsClientConfig(authorization)
6279
+ getDpsClientConfig(authorization)
6521
6280
  ).catch((error) => {
6522
6281
  throw error.withCustomMessage(
6523
6282
  `App Resources couldn't be updated. [${error.message}]`
@@ -6527,11 +6286,11 @@ var platformDpsApplicationResourcesApi = {
6527
6286
  },
6528
6287
  deleteAppUpgrade(appId, resourceId, authorization) {
6529
6288
  return __async(this, null, function* () {
6530
- return platformDpsClientInstance.delete(
6289
+ return dpsClientInstance.delete(
6531
6290
  `/v2/applications/${encodeURIComponent(
6532
6291
  appId
6533
6292
  )}/resources/${encodeURIComponent(resourceId)}`,
6534
- getPlatformDpsClientConfig(authorization)
6293
+ getDpsClientConfig(authorization)
6535
6294
  ).catch((error) => {
6536
6295
  throw error.withCustomMessage(
6537
6296
  `App Resource couldn't be delete. [${error.message}]`
@@ -6541,12 +6300,12 @@ var platformDpsApplicationResourcesApi = {
6541
6300
  },
6542
6301
  copyUpgrade(sourceAppId, destinationAppId, authorization) {
6543
6302
  return __async(this, null, function* () {
6544
- return platformDpsClientInstance.put(
6303
+ return dpsClientInstance.put(
6545
6304
  `/v2/applications/${encodeURIComponent(
6546
6305
  sourceAppId
6547
6306
  )}/resources/copy?application=${encodeURIComponent(destinationAppId)}`,
6548
6307
  {},
6549
- getPlatformDpsClientConfig(authorization)
6308
+ getDpsClientConfig(authorization)
6550
6309
  ).catch((error) => {
6551
6310
  throw error.withCustomMessage(
6552
6311
  `App Resources couldn't be copied. [${error.message}]`
@@ -6560,10 +6319,10 @@ var platformDpsApplicationResourcesApi = {
6560
6319
  var platformDpsApplicationReviewApi = {
6561
6320
  createSubmission(appId, payload, authorization) {
6562
6321
  return __async(this, null, function* () {
6563
- return platformDpsClientInstance.put(
6322
+ return dpsClientInstance.put(
6564
6323
  `/v2/applications/${encodeURIComponent(appId)}/review/submit`,
6565
6324
  payload,
6566
- getPlatformDpsClientConfig(authorization)
6325
+ getDpsClientConfig(authorization)
6567
6326
  ).then(({ data }) => data).catch((error) => {
6568
6327
  throw error.withCustomMessage(
6569
6328
  `App couldn't be submitted for review. [${error.message}]`
@@ -6573,9 +6332,9 @@ var platformDpsApplicationReviewApi = {
6573
6332
  },
6574
6333
  cancelSubmission(appId, authorization) {
6575
6334
  return __async(this, null, function* () {
6576
- return platformDpsClientInstance.put(
6335
+ return dpsClientInstance.put(
6577
6336
  `/v2/applications/${encodeURIComponent(appId)}/review/cancel`,
6578
- getPlatformDpsClientConfig(authorization)
6337
+ getDpsClientConfig(authorization)
6579
6338
  ).then(({ data }) => data).catch((error) => {
6580
6339
  throw error.withCustomMessage(
6581
6340
  `App review couldn't be cancelled. [${error.message}]`
@@ -6589,9 +6348,9 @@ var platformDpsApplicationReviewApi = {
6589
6348
  var platformDpsApplicationStatsApi = {
6590
6349
  getStats(appId, authorization) {
6591
6350
  return __async(this, null, function* () {
6592
- return platformDpsClientInstance.get(
6351
+ return dpsClientInstance.get(
6593
6352
  `/v2/applications/${encodeURIComponent(appId)}/stats`,
6594
- getPlatformDpsClientConfig(authorization)
6353
+ getDpsClientConfig(authorization)
6595
6354
  ).catch((error) => {
6596
6355
  throw error.withCustomMessage(
6597
6356
  `App Stats couldn't be fetched. [${error.message}]`
@@ -6605,10 +6364,10 @@ var platformDpsApplicationStatsApi = {
6605
6364
  var platformDpsApplicationWebhooksApi = {
6606
6365
  updateAppWebhooks(appId, payload, authorization) {
6607
6366
  return __async(this, null, function* () {
6608
- yield platformDpsClientInstance.put(
6367
+ yield dpsClientInstance.put(
6609
6368
  `/v2/applications/${encodeURIComponent(appId)}/webhook`,
6610
6369
  payload,
6611
- getPlatformDpsClientConfig(authorization)
6370
+ getDpsClientConfig(authorization)
6612
6371
  ).catch((error) => {
6613
6372
  throw error.withCustomMessage(
6614
6373
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6618,9 +6377,9 @@ var platformDpsApplicationWebhooksApi = {
6618
6377
  },
6619
6378
  deleteAppWebhooks(appId, authorization) {
6620
6379
  return __async(this, null, function* () {
6621
- yield platformDpsClientInstance.delete(
6380
+ yield dpsClientInstance.delete(
6622
6381
  `/v2/applications/${encodeURIComponent(appId)}/webhook`,
6623
- getPlatformDpsClientConfig(authorization)
6382
+ getDpsClientConfig(authorization)
6624
6383
  ).catch((error) => {
6625
6384
  throw error.withCustomMessage(
6626
6385
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6630,9 +6389,9 @@ var platformDpsApplicationWebhooksApi = {
6630
6389
  },
6631
6390
  getChatWebhook(appId, authorization) {
6632
6391
  return __async(this, null, function* () {
6633
- return platformDpsClientInstance.get(
6392
+ return dpsClientInstance.get(
6634
6393
  `/v2/applications/${encodeURIComponent(appId)}/chat-webhooks`,
6635
- getPlatformDpsClientConfig(authorization)
6394
+ getDpsClientConfig(authorization)
6636
6395
  ).catch((error) => {
6637
6396
  throw error.withCustomMessage(
6638
6397
  `Couldn't get the chat webhook. [${error.message}]`
@@ -6642,10 +6401,10 @@ var platformDpsApplicationWebhooksApi = {
6642
6401
  },
6643
6402
  updateChatWebhook(appId, payload, authorization) {
6644
6403
  return __async(this, null, function* () {
6645
- yield platformDpsClientInstance.post(
6404
+ yield dpsClientInstance.post(
6646
6405
  `/v2/applications/${encodeURIComponent(appId)}/chat-webhooks`,
6647
6406
  payload,
6648
- getPlatformDpsClientConfig(authorization)
6407
+ getDpsClientConfig(authorization)
6649
6408
  ).catch((error) => {
6650
6409
  throw error.withCustomMessage(
6651
6410
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6655,9 +6414,9 @@ var platformDpsApplicationWebhooksApi = {
6655
6414
  },
6656
6415
  deleteChatWebhook(appId, authorization) {
6657
6416
  return __async(this, null, function* () {
6658
- yield platformDpsClientInstance.delete(
6417
+ yield dpsClientInstance.delete(
6659
6418
  `/v2/applications/${encodeURIComponent(appId)}/chat-webhooks`,
6660
- __spreadValues({}, getPlatformDpsClientConfig(authorization))
6419
+ __spreadValues({}, getDpsClientConfig(authorization))
6661
6420
  ).catch((error) => {
6662
6421
  throw error.withCustomMessage(
6663
6422
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6671,12 +6430,12 @@ var platformDpsApplicationWebhooksApi = {
6671
6430
  var platformDpsApplicationWidgetsApi = {
6672
6431
  createWidget(appId, widgetId, widget, authorization) {
6673
6432
  return __async(this, null, function* () {
6674
- yield platformDpsClientInstance.put(
6433
+ yield dpsClientInstance.put(
6675
6434
  `/v2/applications/${encodeURIComponent(
6676
6435
  appId
6677
6436
  )}/widgets/${encodeURIComponent(widgetId)}`,
6678
6437
  widget,
6679
- getPlatformDpsClientConfig(authorization)
6438
+ getDpsClientConfig(authorization)
6680
6439
  ).catch((error) => {
6681
6440
  throw error.withCustomMessage(
6682
6441
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
@@ -6686,12 +6445,12 @@ var platformDpsApplicationWidgetsApi = {
6686
6445
  },
6687
6446
  updateWidget(appId, widgetId, widget, authorization) {
6688
6447
  return __async(this, null, function* () {
6689
- yield platformDpsClientInstance.patch(
6448
+ yield dpsClientInstance.patch(
6690
6449
  `/v2/applications/${encodeURIComponent(
6691
6450
  appId
6692
6451
  )}/widgets/${encodeURIComponent(widgetId)}`,
6693
6452
  widget,
6694
- getPlatformDpsClientConfig(authorization)
6453
+ getDpsClientConfig(authorization)
6695
6454
  ).catch((error) => {
6696
6455
  throw error.withCustomMessage(
6697
6456
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.UPDATED} [${error.message}]`
@@ -6701,11 +6460,11 @@ var platformDpsApplicationWidgetsApi = {
6701
6460
  },
6702
6461
  deleteWidget(appId, widgetId, authorization) {
6703
6462
  return __async(this, null, function* () {
6704
- yield platformDpsClientInstance.delete(
6463
+ yield dpsClientInstance.delete(
6705
6464
  `/v2/applications/${encodeURIComponent(
6706
6465
  appId
6707
6466
  )}/widgets/${encodeURIComponent(widgetId)}`,
6708
- __spreadValues({}, getPlatformDpsClientConfig(authorization))
6467
+ __spreadValues({}, getDpsClientConfig(authorization))
6709
6468
  ).catch((error) => {
6710
6469
  throw error.withCustomMessage(
6711
6470
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
@@ -6737,9 +6496,9 @@ var platformDpsApplicationApi = {
6737
6496
  getApp(appId, authorization) {
6738
6497
  return __async(this, null, function* () {
6739
6498
  try {
6740
- const response = yield platformDpsClientInstance.get(
6499
+ const response = yield dpsClientInstance.get(
6741
6500
  `/v2/applications/${encodeURIComponent(appId)}`,
6742
- getPlatformDpsClientConfig(authorization)
6501
+ getDpsClientConfig(authorization)
6743
6502
  );
6744
6503
  return response.data;
6745
6504
  } catch (error) {
@@ -6754,10 +6513,10 @@ var platformDpsApplicationApi = {
6754
6513
  },
6755
6514
  createApp(payload, authorization) {
6756
6515
  return __async(this, null, function* () {
6757
- return platformDpsClientInstance.post(
6516
+ return dpsClientInstance.post(
6758
6517
  `/v2/applications`,
6759
6518
  payload,
6760
- getPlatformDpsClientConfig(authorization)
6519
+ getDpsClientConfig(authorization)
6761
6520
  ).then(({ data }) => data).catch((error) => {
6762
6521
  throw error.withCustomMessage(
6763
6522
  `App couldn't be created. [${error.message}]`
@@ -6767,10 +6526,10 @@ var platformDpsApplicationApi = {
6767
6526
  },
6768
6527
  fork(appId, authorization) {
6769
6528
  return __async(this, null, function* () {
6770
- return platformDpsClientInstance.post(
6529
+ return dpsClientInstance.post(
6771
6530
  `/v2/applications/${encodeURIComponent(appId)}/fork`,
6772
6531
  {},
6773
- getPlatformDpsClientConfig(authorization)
6532
+ getDpsClientConfig(authorization)
6774
6533
  ).catch((error) => {
6775
6534
  throw error.withCustomMessage(
6776
6535
  `App couldn't be forked. [${error.message}]`
@@ -6780,10 +6539,10 @@ var platformDpsApplicationApi = {
6780
6539
  },
6781
6540
  publish(appId, authorization) {
6782
6541
  return __async(this, null, function* () {
6783
- return platformDpsClientInstance.put(
6542
+ return dpsClientInstance.put(
6784
6543
  `/v2/applications/${encodeURIComponent(appId)}/publish`,
6785
6544
  {},
6786
- getPlatformDpsClientConfig(authorization)
6545
+ getDpsClientConfig(authorization)
6787
6546
  ).catch((error) => {
6788
6547
  throw error.withCustomMessage(
6789
6548
  `App couldn't be published. [${error.message}]`
@@ -6793,7 +6552,7 @@ var platformDpsApplicationApi = {
6793
6552
  },
6794
6553
  updateQL(appId) {
6795
6554
  return __async(this, null, function* () {
6796
- yield platformDpsClientInstance.patch(`/v2/applications/${encodeURIComponent(appId)}/qualified-lead`).catch((error) => {
6555
+ yield dpsClientInstance.patch(`/v2/applications/${encodeURIComponent(appId)}/qualified-lead`).catch((error) => {
6797
6556
  throw error.withCustomMessage(
6798
6557
  `QL couldn't be updated. [${error.message}]`
6799
6558
  );
@@ -6802,9 +6561,9 @@ var platformDpsApplicationApi = {
6802
6561
  },
6803
6562
  deleteApp(appId, authorization) {
6804
6563
  return __async(this, null, function* () {
6805
- yield platformDpsClientInstance.delete(
6564
+ yield dpsClientInstance.delete(
6806
6565
  `/v2/applications/${encodeURIComponent(appId)}`,
6807
- getPlatformDpsClientConfig(authorization)
6566
+ getDpsClientConfig(authorization)
6808
6567
  ).catch((error) => {
6809
6568
  throw error.withCustomMessage(
6810
6569
  `App couldn't be deleted. [${error.message}]`
@@ -6814,7 +6573,7 @@ var platformDpsApplicationApi = {
6814
6573
  },
6815
6574
  createAiContent(appId, appName, appSummary) {
6816
6575
  return __async(this, null, function* () {
6817
- return platformDpsClientInstance.post(`/v2/ai/application/${encodeURIComponent(appId)}/content`, {
6576
+ return dpsClientInstance.post(`/v2/ai/application/${encodeURIComponent(appId)}/content`, {
6818
6577
  name: appName,
6819
6578
  summary: appSummary
6820
6579
  }).catch((error) => {
@@ -6834,9 +6593,9 @@ var platformDpsApplicationsPurchasesApi = {
6834
6593
  const { from, to, duration } = options;
6835
6594
  const response = apps.map((app) => __async(this, null, function* () {
6836
6595
  const params = `applications=${app.clientId}${from ? `&from=${from}` : ""}${to ? `&to=${to}` : ""}&duration=${duration}&by=supplier`;
6837
- const singleResponse = yield platformDpsClientInstance.get(
6596
+ const singleResponse = yield dpsClientInstance.get(
6838
6597
  `/v2/applications/purchases?${params}`,
6839
- getPlatformDpsClientConfig(authorization)
6598
+ getDpsClientConfig(authorization)
6840
6599
  );
6841
6600
  return {
6842
6601
  appId: app.appId,
@@ -6859,9 +6618,9 @@ var platformDpsApplicationsPurchasesApi = {
6859
6618
  const { from, to, duration } = options;
6860
6619
  const clientIds = apps.map((app) => app.clientId);
6861
6620
  const params = `applications=${clientIds.join(",")}${from ? `&from=${from}` : ""}${to ? `&to=${to}` : ""}&duration=${duration}&by=supplier`;
6862
- return platformDpsClientInstance.get(
6621
+ return dpsClientInstance.get(
6863
6622
  `/v2/applications/purchases?${params}`,
6864
- getPlatformDpsClientConfig(authorization)
6623
+ getDpsClientConfig(authorization)
6865
6624
  ).then(({ data }) => {
6866
6625
  return [{ data, appId: "All apps" }];
6867
6626
  }).catch((error) => {
@@ -6875,9 +6634,9 @@ var platformDpsApplicationsPurchasesApi = {
6875
6634
  return __async(this, null, function* () {
6876
6635
  const { from, to, duration } = options;
6877
6636
  const params = `applications=${apps.join(",")}${from ? `&from=${from}` : ""}${to ? `&to=${to}` : ""}&duration=${duration}`;
6878
- return platformDpsClientInstance.get(
6637
+ return dpsClientInstance.get(
6879
6638
  `/v2/applications/purchases/history?${params}`,
6880
- getPlatformDpsClientConfig(authorization)
6639
+ getDpsClientConfig(authorization)
6881
6640
  ).then(({ data }) => {
6882
6641
  return [{ data, appId: "All apps" }];
6883
6642
  }).catch((error) => {
@@ -6901,9 +6660,9 @@ var platformDpsApplicationsUsageApi = {
6901
6660
  params += duration ? `&duration=${duration}` : "";
6902
6661
  params += from ? `&from=${from}` : "";
6903
6662
  params += to ? `&to=${to}` : "";
6904
- const singleResponse = yield platformDpsClientInstance.get(
6663
+ const singleResponse = yield dpsClientInstance.get(
6905
6664
  `/v2/applications/usage/organization?${params}`,
6906
- getPlatformDpsClientConfig(authorization)
6665
+ getDpsClientConfig(authorization)
6907
6666
  );
6908
6667
  return singleResponse.data;
6909
6668
  }));
@@ -6926,7 +6685,7 @@ var platformDpsApplicationsApi = {
6926
6685
  getApps() {
6927
6686
  return __async(this, arguments, function* ({ filter = "licensed" } = {}) {
6928
6687
  const params = `filter=${filter}`;
6929
- return platformDpsClientInstance.get(`/v2/applications?${params}`).then(({ data }) => data).catch((error) => {
6688
+ return dpsClientInstance.get(`/v2/applications?${params}`).then(({ data }) => data).catch((error) => {
6930
6689
  throw error.withCustomMessage(
6931
6690
  `Apps couldn't be fetched. [${error.message}]`
6932
6691
  );
@@ -6938,7 +6697,7 @@ var platformDpsApplicationsApi = {
6938
6697
  filter = "organization"
6939
6698
  } = {}) {
6940
6699
  const params = `filter=${filter}`;
6941
- return platformDpsClientInstance.get(`/v2/applications/installations/counters?${params}`).then(({ data }) => data).catch((error) => {
6700
+ return dpsClientInstance.get(`/v2/applications/installations/counters?${params}`).then(({ data }) => data).catch((error) => {
6942
6701
  throw error.withCustomMessage(
6943
6702
  `Apps installations couldn't be fetched. [${error.message}]`
6944
6703
  );
@@ -6951,10 +6710,7 @@ var platformDpsApplicationsApi = {
6951
6710
  var platformDpsCategoriesApi = {
6952
6711
  getCategories(authorization) {
6953
6712
  return __async(this, null, function* () {
6954
- return platformDpsClientInstance.get(
6955
- `/v2/categories`,
6956
- getPlatformDpsClientConfig(authorization)
6957
- ).then(({ data }) => data).catch((error) => {
6713
+ return dpsClientInstance.get(`/v2/categories`, getDpsClientConfig(authorization)).then(({ data }) => data).catch((error) => {
6958
6714
  throw error.withCustomMessage(
6959
6715
  `Categories couldn't be fetched. [${error.message}]`
6960
6716
  );
@@ -6981,9 +6737,9 @@ var platformDpsDeveloperApi = {
6981
6737
  params += `size=${size}&page=${page}`;
6982
6738
  }
6983
6739
  }
6984
- return platformDpsClientInstance.get(
6740
+ return dpsClientInstance.get(
6985
6741
  `/v2/developers/${encodeURIComponent(userId)}/account/ledger${params}`,
6986
- getPlatformDpsClientConfig(authorization)
6742
+ getDpsClientConfig(authorization)
6987
6743
  ).then(({ data }) => data).catch((error) => {
6988
6744
  throw error.withCustomMessage(
6989
6745
  `Ledger couldn't be fetched. [${error.message}]`
@@ -6997,12 +6753,12 @@ var platformDpsDeveloperApi = {
6997
6753
  note,
6998
6754
  userId
6999
6755
  }, authorization) {
7000
- return platformDpsClientInstance.patch(
6756
+ return dpsClientInstance.patch(
7001
6757
  `/v2/developers/${encodeURIComponent(
7002
6758
  userId
7003
6759
  )}/account/withdrawal/request`,
7004
6760
  { amount, note },
7005
- getPlatformDpsClientConfig(authorization)
6761
+ getDpsClientConfig(authorization)
7006
6762
  ).then(({ data }) => data).catch((error) => {
7007
6763
  throw error.withCustomMessage(
7008
6764
  `Withdrawal couldn't be requested. [${error.message}]`
@@ -7021,11 +6777,7 @@ var platformDpsDevelopersApi = {
7021
6777
  var platformDpsLinksApi = {
7022
6778
  updateShortcuts(links, authorization) {
7023
6779
  return __async(this, null, function* () {
7024
- yield platformDpsClientInstance.put(
7025
- `/v2/links`,
7026
- links,
7027
- getPlatformDpsClientConfig(authorization)
7028
- ).catch((error) => {
6780
+ yield dpsClientInstance.put(`/v2/links`, links, getDpsClientConfig(authorization)).catch((error) => {
7029
6781
  throw error.withCustomMessage(
7030
6782
  `Shortcuts couldn't be updated. [${error.message}]`
7031
6783
  );
@@ -7038,9 +6790,9 @@ var platformDpsLinksApi = {
7038
6790
  var dpsResearchCustomerApi = {
7039
6791
  getResearchCustomersLicenses(authorization) {
7040
6792
  return __async(this, null, function* () {
7041
- return platformDpsClientInstance.get(
6793
+ return dpsClientInstance.get(
7042
6794
  `/v2/research/customers/licenses`,
7043
- getPlatformDpsClientConfig(authorization)
6795
+ getDpsClientConfig(authorization)
7044
6796
  ).then(({ data }) => data).catch((error) => {
7045
6797
  throw error.withCustomMessage(
7046
6798
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -7050,9 +6802,9 @@ var dpsResearchCustomerApi = {
7050
6802
  },
7051
6803
  getResearchCustomersBusiness(authorization) {
7052
6804
  return __async(this, null, function* () {
7053
- return platformDpsClientInstance.get(
6805
+ return dpsClientInstance.get(
7054
6806
  `/v2/research/customers/business`,
7055
- getPlatformDpsClientConfig(authorization)
6807
+ getDpsClientConfig(authorization)
7056
6808
  ).then(({ data }) => data).catch((error) => {
7057
6809
  throw error.withCustomMessage(
7058
6810
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -7062,9 +6814,9 @@ var dpsResearchCustomerApi = {
7062
6814
  },
7063
6815
  getResearchCustomersLocation(authorization) {
7064
6816
  return __async(this, null, function* () {
7065
- return platformDpsClientInstance.get(
6817
+ return dpsClientInstance.get(
7066
6818
  `/v2/research/customers/location`,
7067
- getPlatformDpsClientConfig(authorization)
6819
+ getDpsClientConfig(authorization)
7068
6820
  ).then(({ data }) => data).catch((error) => {
7069
6821
  throw error.withCustomMessage(
7070
6822
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -7079,9 +6831,9 @@ var dpsResearchDictionaryApi = {
7079
6831
  getResearchDictionary() {
7080
6832
  return __async(this, arguments, function* (options = {}, authorization) {
7081
6833
  const params = new URLSearchParams(options);
7082
- return platformDpsClientInstance.get(
6834
+ return dpsClientInstance.get(
7083
6835
  `/v2/research/dictionary?${params.toString()}`,
7084
- getPlatformDpsClientConfig(authorization)
6836
+ getDpsClientConfig(authorization)
7085
6837
  ).then(({ data }) => data).catch((error) => {
7086
6838
  throw error.withCustomMessage(
7087
6839
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -7096,9 +6848,9 @@ var dpsResearchMarketplaceApi = {
7096
6848
  getResearchMarketplaceApps() {
7097
6849
  return __async(this, arguments, function* (options = {}, authorization) {
7098
6850
  const params = new URLSearchParams(options);
7099
- return platformDpsClientInstance.get(
6851
+ return dpsClientInstance.get(
7100
6852
  `/v2/research/marketplace/apps?${params.toString()}`,
7101
- getPlatformDpsClientConfig(authorization)
6853
+ getDpsClientConfig(authorization)
7102
6854
  ).then(({ data }) => data).catch((error) => {
7103
6855
  throw error.withCustomMessage(
7104
6856
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -7109,9 +6861,9 @@ var dpsResearchMarketplaceApi = {
7109
6861
  getResearchMarketplaceViews() {
7110
6862
  return __async(this, arguments, function* (options = {}, authorization) {
7111
6863
  const params = new URLSearchParams(options);
7112
- return platformDpsClientInstance.get(
6864
+ return dpsClientInstance.get(
7113
6865
  `/v2/research/marketplace/views?${params.toString()}`,
7114
- getPlatformDpsClientConfig(authorization)
6866
+ getDpsClientConfig(authorization)
7115
6867
  ).then(({ data }) => data).catch((error) => {
7116
6868
  throw error.withCustomMessage(
7117
6869
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -7126,9 +6878,9 @@ var dpsResearchTrafficApi = {
7126
6878
  getResearchTrafficAgents() {
7127
6879
  return __async(this, arguments, function* (options = {}, authorization) {
7128
6880
  const params = new URLSearchParams(options);
7129
- return platformDpsClientInstance.get(
6881
+ return dpsClientInstance.get(
7130
6882
  `/v2/research/traffic/agents?${params.toString()}`,
7131
- getPlatformDpsClientConfig(authorization)
6883
+ getDpsClientConfig(authorization)
7132
6884
  ).then(({ data }) => data).catch((error) => {
7133
6885
  throw error.withCustomMessage(
7134
6886
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -7139,9 +6891,9 @@ var dpsResearchTrafficApi = {
7139
6891
  getResearchTrafficChats() {
7140
6892
  return __async(this, arguments, function* (options = {}, authorization) {
7141
6893
  const params = new URLSearchParams(options);
7142
- return platformDpsClientInstance.get(
6894
+ return dpsClientInstance.get(
7143
6895
  `/v2/research/traffic/chats?${params.toString()}`,
7144
- getPlatformDpsClientConfig(authorization)
6896
+ getDpsClientConfig(authorization)
7145
6897
  ).then(({ data }) => data).catch((error) => {
7146
6898
  throw error.withCustomMessage(
7147
6899
  `We couldn't fetch the research toolkit data. [${error.message}]`
@@ -7163,62 +6915,62 @@ var platformDpsResearchApi = {
7163
6915
  var platformDpsUserApi = {
7164
6916
  getUser(authorization) {
7165
6917
  return __async(this, null, function* () {
7166
- const response = yield platformDpsClientInstance.get(
6918
+ const response = yield dpsClientInstance.get(
7167
6919
  `/v2/me`,
7168
- getPlatformDpsClientConfig(authorization)
6920
+ getDpsClientConfig(authorization)
7169
6921
  );
7170
6922
  return response.data;
7171
6923
  });
7172
6924
  },
7173
6925
  getUserIntegrations(authorization) {
7174
6926
  return __async(this, null, function* () {
7175
- const response = yield platformDpsClientInstance.get(
6927
+ const response = yield dpsClientInstance.get(
7176
6928
  `/v2/me/integrations`,
7177
- getPlatformDpsClientConfig(authorization)
6929
+ getDpsClientConfig(authorization)
7178
6930
  );
7179
6931
  return response.data;
7180
6932
  });
7181
6933
  },
7182
6934
  updateUser(user, authorization) {
7183
6935
  return __async(this, null, function* () {
7184
- const { status } = yield platformDpsClientInstance.put(
6936
+ const { status } = yield dpsClientInstance.put(
7185
6937
  `/v2/me`,
7186
6938
  user,
7187
- getPlatformDpsClientConfig(authorization)
6939
+ getDpsClientConfig(authorization)
7188
6940
  );
7189
6941
  return status;
7190
6942
  });
7191
6943
  },
7192
6944
  updateUserIntegrations(payload, authorization) {
7193
6945
  return __async(this, null, function* () {
7194
- yield platformDpsClientInstance.patch(
6946
+ yield dpsClientInstance.patch(
7195
6947
  `/v2/me/integrations`,
7196
6948
  payload,
7197
- getPlatformDpsClientConfig(authorization)
6949
+ getDpsClientConfig(authorization)
7198
6950
  );
7199
6951
  });
7200
6952
  },
7201
6953
  updateUserFeatures(payload, authorization) {
7202
6954
  return __async(this, null, function* () {
7203
- yield platformDpsClientInstance.put(
6955
+ yield dpsClientInstance.put(
7204
6956
  "/v2/features",
7205
6957
  payload,
7206
- getPlatformDpsClientConfig(authorization)
6958
+ getDpsClientConfig(authorization)
7207
6959
  );
7208
6960
  });
7209
6961
  },
7210
6962
  updateUserSurvey(payload, authorization) {
7211
6963
  return __async(this, null, function* () {
7212
- yield platformDpsClientInstance.post(
6964
+ yield dpsClientInstance.post(
7213
6965
  "/v2/survey",
7214
6966
  payload,
7215
- getPlatformDpsClientConfig(authorization)
6967
+ getDpsClientConfig(authorization)
7216
6968
  );
7217
6969
  });
7218
6970
  },
7219
6971
  removeUserGitHubIntegrationByInstallationId(installationId, authorization) {
7220
6972
  return __async(this, null, function* () {
7221
- yield platformDpsClientInstance.delete(`/v2/me/integrations/github`, __spreadProps(__spreadValues({}, getPlatformDpsClientConfig(authorization)), {
6973
+ yield dpsClientInstance.delete(`/v2/me/integrations/github`, __spreadProps(__spreadValues({}, getDpsClientConfig(authorization)), {
7222
6974
  data: {
7223
6975
  githubInstallationId: installationId
7224
6976
  }
@@ -7227,17 +6979,17 @@ var platformDpsUserApi = {
7227
6979
  },
7228
6980
  updateUserNetlifyIntegration(userNetlifyIntegration, authorization) {
7229
6981
  return __async(this, null, function* () {
7230
- const { status } = yield platformDpsClientInstance.patch(
6982
+ const { status } = yield dpsClientInstance.patch(
7231
6983
  `/v2/me/integrations`,
7232
6984
  { netlify: userNetlifyIntegration },
7233
- getPlatformDpsClientConfig(authorization)
6985
+ getDpsClientConfig(authorization)
7234
6986
  );
7235
6987
  return status;
7236
6988
  });
7237
6989
  },
7238
6990
  register(authorization) {
7239
6991
  return __async(this, null, function* () {
7240
- return platformDpsClientInstance.post("/v2/register", void 0, getPlatformDpsClientConfig(authorization));
6992
+ return dpsClientInstance.post("/v2/register", void 0, getDpsClientConfig(authorization));
7241
6993
  });
7242
6994
  }
7243
6995
  };
@@ -7256,35 +7008,35 @@ var platformDpsApi = {
7256
7008
  var platformAdapterAppAuthorizationApi = {
7257
7009
  get(appId, authorization) {
7258
7010
  return __async(this, null, function* () {
7259
- return platformAdapterClientInstance.get(
7011
+ return adapterClientInstance.get(
7260
7012
  `/console/app/${encodeURIComponent(appId)}/blocks/authorization`,
7261
- getPlatformAdapterClientDefaultConfig(authorization)
7013
+ getAdapterClientDefaultConfig(authorization)
7262
7014
  );
7263
7015
  });
7264
7016
  },
7265
7017
  add(payload, authorization) {
7266
7018
  return __async(this, null, function* () {
7267
- return platformAdapterClientInstance.post(
7019
+ return adapterClientInstance.post(
7268
7020
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/authorization`,
7269
7021
  payload,
7270
- getPlatformAdapterClientDefaultConfig(authorization)
7022
+ getAdapterClientDefaultConfig(authorization)
7271
7023
  );
7272
7024
  });
7273
7025
  },
7274
7026
  update(payload, authorization) {
7275
7027
  return __async(this, null, function* () {
7276
- return platformAdapterClientInstance.put(
7028
+ return adapterClientInstance.put(
7277
7029
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/authorization`,
7278
7030
  payload,
7279
- getPlatformAdapterClientDefaultConfig(authorization)
7031
+ getAdapterClientDefaultConfig(authorization)
7280
7032
  );
7281
7033
  });
7282
7034
  },
7283
7035
  remove(payload, authorization) {
7284
7036
  return __async(this, null, function* () {
7285
- return platformAdapterClientInstance.delete(
7037
+ return adapterClientInstance.delete(
7286
7038
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/authorization`,
7287
- getPlatformAdapterClientDefaultConfig(authorization)
7039
+ getAdapterClientDefaultConfig(authorization)
7288
7040
  );
7289
7041
  });
7290
7042
  }
@@ -7294,47 +7046,47 @@ var platformAdapterAppAuthorizationApi = {
7294
7046
  var platformAdapterAppDeploymentApi = {
7295
7047
  getAggregate(appId, authorization) {
7296
7048
  return __async(this, null, function* () {
7297
- return platformAdapterClientInstance.get(
7049
+ return adapterClientInstance.get(
7298
7050
  `/console/app/${encodeURIComponent(appId)}/blocks/deployment/aggregate`,
7299
- getPlatformAdapterClientDefaultConfig(authorization)
7051
+ getAdapterClientDefaultConfig(authorization)
7300
7052
  );
7301
7053
  });
7302
7054
  },
7303
7055
  get(appId, authorization) {
7304
7056
  return __async(this, null, function* () {
7305
- return platformAdapterClientInstance.get(
7057
+ return adapterClientInstance.get(
7306
7058
  `/console/app/${encodeURIComponent(appId)}/blocks/deployment`,
7307
- getPlatformAdapterClientDefaultConfig(authorization)
7059
+ getAdapterClientDefaultConfig(authorization)
7308
7060
  );
7309
7061
  });
7310
7062
  },
7311
7063
  link(payload, authorization) {
7312
7064
  return __async(this, null, function* () {
7313
- return platformAdapterClientInstance.put(
7065
+ return adapterClientInstance.put(
7314
7066
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/deployment`,
7315
7067
  payload,
7316
- getPlatformAdapterClientDefaultConfig(authorization)
7068
+ getAdapterClientDefaultConfig(authorization)
7317
7069
  );
7318
7070
  });
7319
7071
  },
7320
7072
  unlink(payload, authorization) {
7321
7073
  return __async(this, null, function* () {
7322
- return platformAdapterClientInstance.delete(
7074
+ return adapterClientInstance.delete(
7323
7075
  `/console/app/${encodeURIComponent(
7324
7076
  payload.appId
7325
7077
  )}/blocks/deployment?${new URLSearchParams(
7326
7078
  payload
7327
7079
  ).toString()}`,
7328
- getPlatformAdapterClientDefaultConfig(authorization)
7080
+ getAdapterClientDefaultConfig(authorization)
7329
7081
  );
7330
7082
  });
7331
7083
  },
7332
7084
  upsert(payload, authorization) {
7333
7085
  return __async(this, null, function* () {
7334
- return platformAdapterClientInstance.patch(
7086
+ return adapterClientInstance.patch(
7335
7087
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/deployment`,
7336
7088
  payload,
7337
- getPlatformAdapterClientDefaultConfig(authorization)
7089
+ getAdapterClientDefaultConfig(authorization)
7338
7090
  );
7339
7091
  });
7340
7092
  }
@@ -7344,26 +7096,26 @@ var platformAdapterAppDeploymentApi = {
7344
7096
  var platformAdapterAppMonetizationApi = {
7345
7097
  get(appId, authorization) {
7346
7098
  return __async(this, null, function* () {
7347
- return platformAdapterClientInstance.get(
7099
+ return adapterClientInstance.get(
7348
7100
  `/console/app/${encodeURIComponent(appId)}/blocks/monetization`,
7349
- getPlatformAdapterClientDefaultConfig(authorization)
7101
+ getAdapterClientDefaultConfig(authorization)
7350
7102
  );
7351
7103
  });
7352
7104
  },
7353
7105
  upsert(payload, authorization) {
7354
7106
  return __async(this, null, function* () {
7355
- return platformAdapterClientInstance.post(
7107
+ return adapterClientInstance.post(
7356
7108
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/monetization`,
7357
7109
  payload,
7358
- getPlatformAdapterClientDefaultConfig(authorization)
7110
+ getAdapterClientDefaultConfig(authorization)
7359
7111
  );
7360
7112
  });
7361
7113
  },
7362
7114
  remove(payload, authorization) {
7363
7115
  return __async(this, null, function* () {
7364
- return platformAdapterClientInstance.delete(
7116
+ return adapterClientInstance.delete(
7365
7117
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/monetization`,
7366
- getPlatformAdapterClientDefaultConfig(authorization)
7118
+ getAdapterClientDefaultConfig(authorization)
7367
7119
  );
7368
7120
  });
7369
7121
  }
@@ -7373,30 +7125,30 @@ var platformAdapterAppMonetizationApi = {
7373
7125
  var platformAdapterAppPropertyApi = {
7374
7126
  get(appId, propertyId, authorization) {
7375
7127
  return __async(this, null, function* () {
7376
- return platformAdapterClientInstance.get(
7128
+ return adapterClientInstance.get(
7377
7129
  `/console/app/${encodeURIComponent(
7378
7130
  appId
7379
7131
  )}/blocks/properties/${encodeURIComponent(propertyId)}`,
7380
- getPlatformAdapterClientDefaultConfig(authorization)
7132
+ getAdapterClientDefaultConfig(authorization)
7381
7133
  );
7382
7134
  });
7383
7135
  },
7384
7136
  upsert(payload, authorization) {
7385
7137
  return __async(this, null, function* () {
7386
- return platformAdapterClientInstance.post(
7138
+ return adapterClientInstance.post(
7387
7139
  `/console/app/${encodeURIComponent(
7388
7140
  payload.appId
7389
7141
  )}/blocks/properties/${encodeURIComponent(payload.propertyId)}`,
7390
7142
  payload,
7391
- getPlatformAdapterClientDefaultConfig(authorization)
7143
+ getAdapterClientDefaultConfig(authorization)
7392
7144
  );
7393
7145
  });
7394
7146
  },
7395
7147
  remove(payload, authorization) {
7396
7148
  return __async(this, null, function* () {
7397
- return platformAdapterClientInstance.delete(
7149
+ return adapterClientInstance.delete(
7398
7150
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/properties/${payload.propertyId}`,
7399
- getPlatformAdapterClientDefaultConfig(authorization)
7151
+ getAdapterClientDefaultConfig(authorization)
7400
7152
  );
7401
7153
  });
7402
7154
  }
@@ -7407,26 +7159,26 @@ var platformAdapterAppPropertiesApi = {
7407
7159
  property: platformAdapterAppPropertyApi,
7408
7160
  get(appId, authorization) {
7409
7161
  return __async(this, null, function* () {
7410
- return platformAdapterClientInstance.get(
7162
+ return adapterClientInstance.get(
7411
7163
  `/console/app/${encodeURIComponent(appId)}/blocks/properties`,
7412
- getPlatformAdapterClientDefaultConfig(authorization)
7164
+ getAdapterClientDefaultConfig(authorization)
7413
7165
  );
7414
7166
  });
7415
7167
  },
7416
7168
  upsert(payload, authorization) {
7417
7169
  return __async(this, null, function* () {
7418
- return platformAdapterClientInstance.post(
7170
+ return adapterClientInstance.post(
7419
7171
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/properties`,
7420
7172
  payload,
7421
- getPlatformAdapterClientDefaultConfig(authorization)
7173
+ getAdapterClientDefaultConfig(authorization)
7422
7174
  );
7423
7175
  });
7424
7176
  },
7425
7177
  remove(payload, authorization) {
7426
7178
  return __async(this, null, function* () {
7427
- return platformAdapterClientInstance.delete(
7179
+ return adapterClientInstance.delete(
7428
7180
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/properties`,
7429
- getPlatformAdapterClientDefaultConfig(authorization)
7181
+ getAdapterClientDefaultConfig(authorization)
7430
7182
  );
7431
7183
  });
7432
7184
  }
@@ -7436,58 +7188,58 @@ var platformAdapterAppPropertiesApi = {
7436
7188
  var platformAdapterAppRepositoryApi = {
7437
7189
  getAggregate(appId, authorization) {
7438
7190
  return __async(this, null, function* () {
7439
- return platformAdapterClientInstance.get(
7191
+ return adapterClientInstance.get(
7440
7192
  `/console/app/${encodeURIComponent(appId)}/blocks/repository/aggregate`,
7441
- getPlatformAdapterClientDefaultConfig(authorization)
7193
+ getAdapterClientDefaultConfig(authorization)
7442
7194
  );
7443
7195
  });
7444
7196
  },
7445
7197
  get(appId, authorization) {
7446
7198
  return __async(this, null, function* () {
7447
- return platformAdapterClientInstance.get(
7199
+ return adapterClientInstance.get(
7448
7200
  `/console/app/${encodeURIComponent(appId)}/blocks/repository`,
7449
- getPlatformAdapterClientDefaultConfig(authorization)
7201
+ getAdapterClientDefaultConfig(authorization)
7450
7202
  );
7451
7203
  });
7452
7204
  },
7453
7205
  link(payload, authorization) {
7454
7206
  return __async(this, null, function* () {
7455
- return platformAdapterClientInstance.put(
7207
+ return adapterClientInstance.put(
7456
7208
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/repository`,
7457
7209
  payload,
7458
- getPlatformAdapterClientDefaultConfig(authorization)
7210
+ getAdapterClientDefaultConfig(authorization)
7459
7211
  );
7460
7212
  });
7461
7213
  },
7462
7214
  unlink(payload, authorization) {
7463
7215
  return __async(this, null, function* () {
7464
- return platformAdapterClientInstance.delete(
7216
+ return adapterClientInstance.delete(
7465
7217
  `/console/app/${encodeURIComponent(
7466
7218
  payload.appId
7467
7219
  )}/blocks/repository?${new URLSearchParams(
7468
7220
  payload
7469
7221
  ).toString()}`,
7470
- getPlatformAdapterClientDefaultConfig(authorization)
7222
+ getAdapterClientDefaultConfig(authorization)
7471
7223
  );
7472
7224
  });
7473
7225
  },
7474
7226
  upsert(payload, authorization) {
7475
7227
  return __async(this, null, function* () {
7476
- return platformAdapterClientInstance.patch(
7228
+ return adapterClientInstance.patch(
7477
7229
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/repository`,
7478
7230
  payload,
7479
- getPlatformAdapterClientDefaultConfig(authorization)
7231
+ getAdapterClientDefaultConfig(authorization)
7480
7232
  );
7481
7233
  });
7482
7234
  },
7483
7235
  seed(payload, authorization) {
7484
7236
  return __async(this, null, function* () {
7485
- return platformAdapterClientInstance.post(
7237
+ return adapterClientInstance.post(
7486
7238
  `/console/app/${encodeURIComponent(
7487
7239
  payload.appId
7488
7240
  )}/blocks/repository/seed`,
7489
7241
  payload,
7490
- getPlatformAdapterClientDefaultConfig(authorization)
7242
+ getAdapterClientDefaultConfig(authorization)
7491
7243
  );
7492
7244
  });
7493
7245
  }
@@ -7497,47 +7249,47 @@ var platformAdapterAppRepositoryApi = {
7497
7249
  var platformAdapterAppStorageApi = {
7498
7250
  getAggregate(appId, authorization) {
7499
7251
  return __async(this, null, function* () {
7500
- return platformAdapterClientInstance.get(
7252
+ return adapterClientInstance.get(
7501
7253
  `/console/app/${encodeURIComponent(appId)}/blocks/storage/aggregate`,
7502
- getPlatformAdapterClientDefaultConfig(authorization)
7254
+ getAdapterClientDefaultConfig(authorization)
7503
7255
  );
7504
7256
  });
7505
7257
  },
7506
7258
  get(appId, authorization) {
7507
7259
  return __async(this, null, function* () {
7508
- return platformAdapterClientInstance.get(
7260
+ return adapterClientInstance.get(
7509
7261
  `/console/app/${encodeURIComponent(appId)}/blocks/storage`,
7510
- getPlatformAdapterClientDefaultConfig(authorization)
7262
+ getAdapterClientDefaultConfig(authorization)
7511
7263
  );
7512
7264
  });
7513
7265
  },
7514
7266
  link(payload, authorization) {
7515
7267
  return __async(this, null, function* () {
7516
- return platformAdapterClientInstance.put(
7268
+ return adapterClientInstance.put(
7517
7269
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/storage`,
7518
7270
  payload,
7519
- getPlatformAdapterClientDefaultConfig(authorization)
7271
+ getAdapterClientDefaultConfig(authorization)
7520
7272
  );
7521
7273
  });
7522
7274
  },
7523
7275
  unlink(payload, authorization) {
7524
7276
  return __async(this, null, function* () {
7525
- return platformAdapterClientInstance.delete(
7277
+ return adapterClientInstance.delete(
7526
7278
  `/console/app/${encodeURIComponent(
7527
7279
  payload.appId
7528
7280
  )}/blocks/storage?${new URLSearchParams(
7529
7281
  payload
7530
7282
  ).toString()}`,
7531
- getPlatformAdapterClientDefaultConfig(authorization)
7283
+ getAdapterClientDefaultConfig(authorization)
7532
7284
  );
7533
7285
  });
7534
7286
  },
7535
7287
  upsert(payload, authorization) {
7536
7288
  return __async(this, null, function* () {
7537
- return platformAdapterClientInstance.patch(
7289
+ return adapterClientInstance.patch(
7538
7290
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/storage`,
7539
7291
  payload,
7540
- getPlatformAdapterClientDefaultConfig(authorization)
7292
+ getAdapterClientDefaultConfig(authorization)
7541
7293
  );
7542
7294
  });
7543
7295
  }
@@ -7547,32 +7299,32 @@ var platformAdapterAppStorageApi = {
7547
7299
  var platformAdapterAppWidgetApi = {
7548
7300
  get(appId, widgetId, authorization) {
7549
7301
  return __async(this, null, function* () {
7550
- return platformAdapterClientInstance.get(
7302
+ return adapterClientInstance.get(
7551
7303
  `/console/app/${encodeURIComponent(
7552
7304
  appId
7553
7305
  )}/blocks/widgets/${encodeURIComponent(widgetId)}`,
7554
- getPlatformAdapterClientDefaultConfig(authorization)
7306
+ getAdapterClientDefaultConfig(authorization)
7555
7307
  );
7556
7308
  });
7557
7309
  },
7558
7310
  upsert(payload, authorization) {
7559
7311
  return __async(this, null, function* () {
7560
- return platformAdapterClientInstance.post(
7312
+ return adapterClientInstance.post(
7561
7313
  `/console/app/${encodeURIComponent(
7562
7314
  payload.appId
7563
7315
  )}/blocks/widgets/${encodeURIComponent(payload.widgetId)}`,
7564
7316
  payload,
7565
- getPlatformAdapterClientDefaultConfig(authorization)
7317
+ getAdapterClientDefaultConfig(authorization)
7566
7318
  );
7567
7319
  });
7568
7320
  },
7569
7321
  remove(payload, authorization) {
7570
7322
  return __async(this, null, function* () {
7571
- return platformAdapterClientInstance.delete(
7323
+ return adapterClientInstance.delete(
7572
7324
  `/console/app/${encodeURIComponent(
7573
7325
  payload.appId
7574
7326
  )}/blocks/widgets/${encodeURIComponent(payload.widgetId)}`,
7575
- getPlatformAdapterClientDefaultConfig(authorization)
7327
+ getAdapterClientDefaultConfig(authorization)
7576
7328
  );
7577
7329
  });
7578
7330
  }
@@ -7583,26 +7335,26 @@ var platformAdapterAppWidgetsApi = {
7583
7335
  widget: platformAdapterAppWidgetApi,
7584
7336
  get(appId, authorization) {
7585
7337
  return __async(this, null, function* () {
7586
- return platformAdapterClientInstance.get(
7338
+ return adapterClientInstance.get(
7587
7339
  `/console/app/${encodeURIComponent(appId)}/blocks/widgets`,
7588
- getPlatformAdapterClientDefaultConfig(authorization)
7340
+ getAdapterClientDefaultConfig(authorization)
7589
7341
  );
7590
7342
  });
7591
7343
  },
7592
7344
  upsert(payload, authorization) {
7593
7345
  return __async(this, null, function* () {
7594
- return platformAdapterClientInstance.post(
7346
+ return adapterClientInstance.post(
7595
7347
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/widgets`,
7596
7348
  payload,
7597
- getPlatformAdapterClientDefaultConfig(authorization)
7349
+ getAdapterClientDefaultConfig(authorization)
7598
7350
  );
7599
7351
  });
7600
7352
  },
7601
7353
  remove(payload, authorization) {
7602
7354
  return __async(this, null, function* () {
7603
- return platformAdapterClientInstance.delete(
7355
+ return adapterClientInstance.delete(
7604
7356
  `/console/app/${encodeURIComponent(payload.appId)}/blocks/widgets`,
7605
- getPlatformAdapterClientDefaultConfig(authorization)
7357
+ getAdapterClientDefaultConfig(authorization)
7606
7358
  );
7607
7359
  });
7608
7360
  }
@@ -7623,64 +7375,64 @@ var platformAdapterAppBlocksApi = {
7623
7375
  var platformAdapterAppVariablesApi = {
7624
7376
  getVariables(appId, decrypted, authorization) {
7625
7377
  return __async(this, null, function* () {
7626
- const response = yield platformAdapterClientInstance.get(
7378
+ const response = yield adapterClientInstance.get(
7627
7379
  `/console/app/${encodeURIComponent(appId)}/variables`,
7628
7380
  __spreadValues({
7629
7381
  params: {
7630
7382
  decrypted
7631
7383
  }
7632
- }, getPlatformAdapterClientDefaultConfig(authorization))
7384
+ }, getAdapterClientDefaultConfig(authorization))
7633
7385
  );
7634
7386
  return response.data;
7635
7387
  });
7636
7388
  },
7637
7389
  getVariable(appId, key, authorization) {
7638
7390
  return __async(this, null, function* () {
7639
- const response = yield platformAdapterClientInstance.get(
7391
+ const response = yield adapterClientInstance.get(
7640
7392
  `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
7641
7393
  key
7642
7394
  )}`,
7643
- getPlatformAdapterClientDefaultConfig(authorization)
7395
+ getAdapterClientDefaultConfig(authorization)
7644
7396
  );
7645
7397
  return response.data;
7646
7398
  });
7647
7399
  },
7648
7400
  syncVariable(appId, key, payload, authorization) {
7649
7401
  return __async(this, null, function* () {
7650
- yield platformAdapterClientInstance.post(
7402
+ yield adapterClientInstance.post(
7651
7403
  `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
7652
7404
  key
7653
7405
  )}/sync`,
7654
7406
  payload,
7655
- getPlatformAdapterClientDefaultConfig(authorization)
7407
+ getAdapterClientDefaultConfig(authorization)
7656
7408
  );
7657
7409
  });
7658
7410
  },
7659
7411
  createVariable(appId, data, authorization) {
7660
7412
  return __async(this, null, function* () {
7661
- yield platformAdapterClientInstance.post(
7413
+ yield adapterClientInstance.post(
7662
7414
  `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
7663
7415
  data.key
7664
7416
  )}`,
7665
7417
  data,
7666
- getPlatformAdapterClientDefaultConfig(authorization)
7418
+ getAdapterClientDefaultConfig(authorization)
7667
7419
  );
7668
7420
  });
7669
7421
  },
7670
7422
  editVariable(appId, data, authorization) {
7671
7423
  return __async(this, null, function* () {
7672
- yield platformAdapterClientInstance.post(
7424
+ yield adapterClientInstance.post(
7673
7425
  `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
7674
7426
  data.key
7675
7427
  )}/edit`,
7676
7428
  data,
7677
- getPlatformAdapterClientDefaultConfig(authorization)
7429
+ getAdapterClientDefaultConfig(authorization)
7678
7430
  );
7679
7431
  });
7680
7432
  },
7681
7433
  deleteVariable(appId, key) {
7682
7434
  return __async(this, null, function* () {
7683
- yield platformAdapterClientInstance.delete(
7435
+ yield adapterClientInstance.delete(
7684
7436
  `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
7685
7437
  key
7686
7438
  )}`
@@ -7693,17 +7445,17 @@ var platformAdapterAppVariablesApi = {
7693
7445
  var platformAdapterAppTemplatesApi = {
7694
7446
  getTemplates(authorization) {
7695
7447
  return __async(this, null, function* () {
7696
- return platformAdapterClientInstance.get(
7448
+ return adapterClientInstance.get(
7697
7449
  `/console/app/templates`,
7698
- getPlatformAdapterClientDefaultConfig(authorization)
7450
+ getAdapterClientDefaultConfig(authorization)
7699
7451
  );
7700
7452
  });
7701
7453
  },
7702
7454
  getRepositoryTemplates(authorization) {
7703
7455
  return __async(this, null, function* () {
7704
- return platformAdapterClientInstance.get(
7456
+ return adapterClientInstance.get(
7705
7457
  `/console/app/templates/repository`,
7706
- getPlatformAdapterClientDefaultConfig(authorization)
7458
+ getAdapterClientDefaultConfig(authorization)
7707
7459
  );
7708
7460
  });
7709
7461
  }
@@ -7716,39 +7468,39 @@ var platformAdapterAppApi = {
7716
7468
  templates: platformAdapterAppTemplatesApi,
7717
7469
  push(payload, authorization) {
7718
7470
  return __async(this, null, function* () {
7719
- return platformAdapterClientInstance.post(
7471
+ return adapterClientInstance.post(
7720
7472
  `/console/app${payload.manifest.id ? `/${encodeURIComponent(payload.manifest.id)}` : ""}`,
7721
7473
  payload,
7722
- getPlatformAdapterClientDefaultConfig(authorization)
7474
+ getAdapterClientDefaultConfig(authorization)
7723
7475
  );
7724
7476
  });
7725
7477
  },
7726
7478
  pull(appId, authorization) {
7727
7479
  return __async(this, null, function* () {
7728
- return platformAdapterClientInstance.get(
7480
+ return adapterClientInstance.get(
7729
7481
  `/console/app/${encodeURIComponent(appId)}`,
7730
- getPlatformAdapterClientDefaultConfig(authorization)
7482
+ getAdapterClientDefaultConfig(authorization)
7731
7483
  );
7732
7484
  });
7733
7485
  },
7734
7486
  verify(payload, authorization) {
7735
7487
  return __async(this, null, function* () {
7736
- return platformAdapterClientInstance.post(
7488
+ return adapterClientInstance.post(
7737
7489
  `/console/app/${encodeURIComponent(payload.appId)}/verify`,
7738
7490
  payload,
7739
- getPlatformAdapterClientDefaultConfig(authorization)
7491
+ getAdapterClientDefaultConfig(authorization)
7740
7492
  );
7741
7493
  });
7742
7494
  },
7743
7495
  status(sagaId, authorization) {
7744
7496
  return __async(this, null, function* () {
7745
- return platformAdapterClientInstance.get(
7497
+ return adapterClientInstance.get(
7746
7498
  `/console/app/status`,
7747
7499
  __spreadValues({
7748
7500
  params: {
7749
7501
  sagaId
7750
7502
  }
7751
- }, getPlatformAdapterClientDefaultConfig(authorization))
7503
+ }, getAdapterClientDefaultConfig(authorization))
7752
7504
  );
7753
7505
  });
7754
7506
  }
@@ -7759,7 +7511,7 @@ var platformAdapterBigCommerceApi = {
7759
7511
  events: {
7760
7512
  subscribe(payload, authorization) {
7761
7513
  return __async(this, null, function* () {
7762
- yield platformAdapterClientInstance.post(
7514
+ yield adapterClientInstance.post(
7763
7515
  `/integrations/bigcommerce/events/subscribe`,
7764
7516
  payload,
7765
7517
  getBigCommerceClientConfig(authorization)
@@ -7768,7 +7520,7 @@ var platformAdapterBigCommerceApi = {
7768
7520
  },
7769
7521
  unsubscribe(payload, authorization) {
7770
7522
  return __async(this, null, function* () {
7771
- yield platformAdapterClientInstance.post(
7523
+ yield adapterClientInstance.post(
7772
7524
  `/integrations/bigcommerce/events/unsubscribe`,
7773
7525
  payload,
7774
7526
  getBigCommerceClientConfig(authorization)
@@ -7783,7 +7535,7 @@ var platformAdapterHubspotApi = {
7783
7535
  events: {
7784
7536
  subscribe(payload, authorization) {
7785
7537
  return __async(this, null, function* () {
7786
- yield platformAdapterClientInstance.post(
7538
+ yield adapterClientInstance.post(
7787
7539
  `/integrations/hubspot/events/subscribe`,
7788
7540
  payload,
7789
7541
  getHubspotClientConfig(authorization)
@@ -7792,7 +7544,7 @@ var platformAdapterHubspotApi = {
7792
7544
  },
7793
7545
  unsubscribe(payload, authorization) {
7794
7546
  return __async(this, null, function* () {
7795
- yield platformAdapterClientInstance.post(
7547
+ yield adapterClientInstance.post(
7796
7548
  `/integrations/hubspot/events/unsubscribe`,
7797
7549
  payload,
7798
7550
  getHubspotClientConfig(authorization)
@@ -7807,7 +7559,7 @@ var platformAdapterMailchimpApi = {
7807
7559
  events: {
7808
7560
  subscribe(payload, authorization) {
7809
7561
  return __async(this, null, function* () {
7810
- yield platformAdapterClientInstance.post(
7562
+ yield adapterClientInstance.post(
7811
7563
  `/integrations/mailchimp/events/subscribe`,
7812
7564
  payload,
7813
7565
  getMailchimpClientConfig(authorization)
@@ -7816,7 +7568,7 @@ var platformAdapterMailchimpApi = {
7816
7568
  },
7817
7569
  unsubscribe(payload, authorization) {
7818
7570
  return __async(this, null, function* () {
7819
- yield platformAdapterClientInstance.post(
7571
+ yield adapterClientInstance.post(
7820
7572
  `/integrations/mailchimp/events/unsubscribe`,
7821
7573
  payload,
7822
7574
  getMailchimpClientConfig(authorization)
@@ -7830,7 +7582,7 @@ var platformAdapterMailchimpApi = {
7830
7582
  var platformAdapterNeonProxyApi = {
7831
7583
  user(authorization) {
7832
7584
  return __async(this, null, function* () {
7833
- const response = yield platformAdapterClientInstance.get(
7585
+ const response = yield adapterClientInstance.get(
7834
7586
  `/integrations/neon/user`,
7835
7587
  getNeonClientConfig(authorization)
7836
7588
  );
@@ -7839,7 +7591,7 @@ var platformAdapterNeonProxyApi = {
7839
7591
  },
7840
7592
  projects(authorization) {
7841
7593
  return __async(this, null, function* () {
7842
- const response = yield platformAdapterClientInstance.get(
7594
+ const response = yield adapterClientInstance.get(
7843
7595
  `/integrations/neon/projects`,
7844
7596
  getNeonClientConfig(authorization)
7845
7597
  );
@@ -7848,7 +7600,7 @@ var platformAdapterNeonProxyApi = {
7848
7600
  },
7849
7601
  databases(projectId, authorization) {
7850
7602
  return __async(this, null, function* () {
7851
- const response = yield platformAdapterClientInstance.get(
7603
+ const response = yield adapterClientInstance.get(
7852
7604
  `/integrations/neon/projects/${encodeURIComponent(projectId)}/databases`,
7853
7605
  getNeonClientConfig(authorization)
7854
7606
  );
@@ -7862,7 +7614,7 @@ var platformAdapterShopifyApi = {
7862
7614
  events: {
7863
7615
  subscribe(payload, authorization) {
7864
7616
  return __async(this, null, function* () {
7865
- yield platformAdapterClientInstance.post(
7617
+ yield adapterClientInstance.post(
7866
7618
  `/integrations/shopify/events/subscribe`,
7867
7619
  payload,
7868
7620
  getShopifyClientConfig(authorization)
@@ -7871,7 +7623,7 @@ var platformAdapterShopifyApi = {
7871
7623
  },
7872
7624
  unsubscribe(payload, authorization) {
7873
7625
  return __async(this, null, function* () {
7874
- yield platformAdapterClientInstance.post(
7626
+ yield adapterClientInstance.post(
7875
7627
  `/integrations/shopify/events/unsubscribe`,
7876
7628
  payload,
7877
7629
  getShopifyClientConfig(authorization)
@@ -7886,7 +7638,7 @@ var platformAdapterTextApi = {
7886
7638
  events: {
7887
7639
  subscribe(payload, authorization) {
7888
7640
  return __async(this, null, function* () {
7889
- yield platformAdapterClientInstance.post(
7641
+ yield adapterClientInstance.post(
7890
7642
  `/integrations/text/events/subscribe`,
7891
7643
  payload,
7892
7644
  getTextClientConfig(authorization)
@@ -7895,7 +7647,7 @@ var platformAdapterTextApi = {
7895
7647
  },
7896
7648
  unsubscribe(payload, authorization) {
7897
7649
  return __async(this, null, function* () {
7898
- yield platformAdapterClientInstance.post(
7650
+ yield adapterClientInstance.post(
7899
7651
  `/integrations/text/events/unsubscribe`,
7900
7652
  payload,
7901
7653
  getTextClientConfig(authorization)
@@ -7921,10 +7673,10 @@ var platformAdapterApi = {
7921
7673
  integrations: platformAdapterIntegrationsApi,
7922
7674
  log(payload, authorization) {
7923
7675
  return __async(this, null, function* () {
7924
- return platformAdapterClientInstance.post(
7676
+ return adapterClientInstance.post(
7925
7677
  `/log`,
7926
7678
  payload,
7927
- getPlatformAdapterClientConfig(authorization)
7679
+ getAdapterClientConfig(authorization)
7928
7680
  );
7929
7681
  });
7930
7682
  }
@@ -7935,9 +7687,9 @@ var platformBillingAccountApi = {
7935
7687
  getAccount(authorization) {
7936
7688
  return __async(this, null, function* () {
7937
7689
  try {
7938
- return yield platformBillingClientInstance.get(
7690
+ return yield billingClientInstance.get(
7939
7691
  `/v3/account`,
7940
- getPlatformBillingClientConfig(authorization)
7692
+ getBillingClientConfig(authorization)
7941
7693
  );
7942
7694
  } catch (error) {
7943
7695
  if (error instanceof Error) {
@@ -7951,9 +7703,9 @@ var platformBillingAccountApi = {
7951
7703
  getAccountInfo(product, authorization) {
7952
7704
  return __async(this, null, function* () {
7953
7705
  try {
7954
- return yield platformBillingClientInstance.get(
7706
+ return yield billingClientInstance.get(
7955
7707
  `/v3/account/${encodeURIComponent(product)}/billing_info`,
7956
- getPlatformBillingClientConfig(authorization)
7708
+ getBillingClientConfig(authorization)
7957
7709
  );
7958
7710
  } catch (error) {
7959
7711
  if (error instanceof Error) {
@@ -7973,9 +7725,9 @@ var platformBillingInvoicesApi = {
7973
7725
  getInvoices(product, authorization) {
7974
7726
  return __async(this, null, function* () {
7975
7727
  try {
7976
- return yield platformBillingClientInstance.get(
7728
+ return yield billingClientInstance.get(
7977
7729
  `/v2/invoices/${encodeURIComponent(product)}`,
7978
- getPlatformBillingClientConfig(authorization)
7730
+ getBillingClientConfig(authorization)
7979
7731
  );
7980
7732
  } catch (error) {
7981
7733
  if (error instanceof Error) {
@@ -7989,7 +7741,7 @@ var platformBillingInvoicesApi = {
7989
7741
  downloadInvoices(number, authorization) {
7990
7742
  return __async(this, null, function* () {
7991
7743
  try {
7992
- const response = yield platformBillingClientInstance.request(__spreadValues({
7744
+ const response = yield billingClientInstance.request(__spreadValues({
7993
7745
  url: `https://api.labs.livechatinc.com/v2/invoices/${encodeURIComponent(
7994
7746
  number
7995
7747
  )}`,
@@ -7998,7 +7750,7 @@ var platformBillingInvoicesApi = {
7998
7750
  //gave the values directly for testing
7999
7751
  }),
8000
7752
  responseType: "blob"
8001
- }, getPlatformBillingClientConfig(authorization)));
7753
+ }, getBillingClientConfig(authorization)));
8002
7754
  const href = URL.createObjectURL(response.data);
8003
7755
  const link = document.createElement("a");
8004
7756
  link.href = href;
@@ -8045,12 +7797,9 @@ function initApi(config, tokens) {
8045
7797
  (_a = config.urls.platform) == null ? void 0 : _a.accounts,
8046
7798
  (_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.token
8047
7799
  );
8048
- initPlatformBillingClient(
8049
- (_c = config.urls.platform) == null ? void 0 : _c.billing,
8050
- (_d = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _d.token
8051
- );
8052
- initPlatformDpsClient((_e = config.urls.platform) == null ? void 0 : _e.dps, (_f = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _f.token);
8053
- initPlatformAdapterClient(
7800
+ initBillingClient((_c = config.urls.platform) == null ? void 0 : _c.billing, (_d = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _d.token);
7801
+ initDpsClient((_e = config.urls.platform) == null ? void 0 : _e.dps, (_f = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _f.token);
7802
+ initAdapterClient(
8054
7803
  (_g = config.urls.platform) == null ? void 0 : _g.adapter,
8055
7804
  tokens ? {
8056
7805
  platform: tokens.platform,
@@ -8208,6 +7957,7 @@ var debounce = (func, wait) => {
8208
7957
  UnauthorizeAccountsApiError,
8209
7958
  UnauthorizeApiError,
8210
7959
  WorkflowDefinitionTaskType,
7960
+ adapterClientInstance,
8211
7961
  allAppTemplates,
8212
7962
  api,
8213
7963
  appBaseTemplates,
@@ -8217,51 +7967,40 @@ var debounce = (func, wait) => {
8217
7967
  appTemplatesMap,
8218
7968
  bigCommerceClientInstance,
8219
7969
  bigcommerceEventsZods,
7970
+ billingClientInstance,
8220
7971
  debounce,
7972
+ dpsClientInstance,
7973
+ getAdapterClientConfig,
7974
+ getAdapterClientDefaultConfig,
8221
7975
  getAppAutoReviewPayload,
8222
- getBigCommerceClientAuthorization,
8223
7976
  getBigCommerceClientConfig,
8224
7977
  getBigCommerceClientUrl,
7978
+ getBillingClientConfig,
7979
+ getDpsClientConfig,
8225
7980
  getEmptyAppAutoReview,
8226
- getGitHubClientAuthorization,
8227
7981
  getGithubClientConfig,
8228
- getHubspotClientAuthorization,
8229
7982
  getHubspotClientConfig,
8230
7983
  getIntegrationFlowUrl,
8231
7984
  getIntegrationFlowUrlOld,
8232
- getLiveChatClientAuthorization,
8233
7985
  getLiveChatClientConfig,
8234
- getMailchimpClientAuthorization,
8235
7986
  getMailchimpClientConfig,
8236
7987
  getMailchimpClientUrl,
8237
- getNeonClientAuthorization,
8238
7988
  getNeonClientConfig,
8239
- getNetlifyClientAuthorization,
8240
7989
  getNetlifyClientConfig,
8241
- getPlanetScaleClientAuthorization,
8242
7990
  getPlanetScaleClientConfig,
8243
- getPlatformAccountsClientAuthorization,
8244
- getPlatformAdapterClientAuthorization,
8245
- getPlatformAdapterClientConfig,
8246
- getPlatformAdapterClientDefaultConfig,
8247
- getPlatformBillingClientAuthorization,
8248
- getPlatformBillingClientConfig,
8249
- getPlatformDpsAdminClientAuthorization,
8250
- getPlatformDpsClientAuthorization,
8251
- getPlatformDpsClientConfig,
8252
7991
  getRegion,
8253
- getShopifyClientAuthorization,
8254
7992
  getShopifyClientConfig,
8255
7993
  getShopifyClientUrl,
8256
- getTextClientAuthorization,
8257
7994
  getTextClientConfig,
8258
- getVercelClientAuthorization,
8259
7995
  getVercelClientConfig,
8260
7996
  githubClientInstance,
8261
7997
  hubspotClientInstance,
8262
7998
  hubspotEventsZods,
7999
+ initAdapterClient,
8263
8000
  initApi,
8264
8001
  initBigCommerceClient,
8002
+ initBillingClient,
8003
+ initDpsClient,
8265
8004
  initGithubClient,
8266
8005
  initHubspotClient,
8267
8006
  initLiveChatClient,
@@ -8270,9 +8009,6 @@ var debounce = (func, wait) => {
8270
8009
  initNetlifyClient,
8271
8010
  initPlanetScaleClient,
8272
8011
  initPlatformAccountsClient,
8273
- initPlatformAdapterClient,
8274
- initPlatformBillingClient,
8275
- initPlatformDpsClient,
8276
8012
  initShopifyClient,
8277
8013
  initTextClient,
8278
8014
  initVercelClient,
@@ -8285,13 +8021,11 @@ var debounce = (func, wait) => {
8285
8021
  netlifyClientInstance,
8286
8022
  planetScaleClientInstance,
8287
8023
  platformAccountsClientInstance,
8288
- platformAdapterClientInstance,
8289
- platformBillingClientInstance,
8290
- platformDpsClientInstance,
8291
8024
  shopifyClientInstance,
8292
8025
  shopifyEventsZods,
8293
8026
  textClientInstance,
8294
8027
  textLivechatEventsZods,
8028
+ updateAdapterClient,
8295
8029
  updateBigCommerceClient,
8296
8030
  updateGithubClient,
8297
8031
  updateHubspotClient,
@@ -8299,7 +8033,6 @@ var debounce = (func, wait) => {
8299
8033
  updateNeonClient,
8300
8034
  updateNetlifyClient,
8301
8035
  updatePlanetScaleClient,
8302
- updatePlatformAdapterClient,
8303
8036
  updateShopifyClient,
8304
8037
  updateVercelClient,
8305
8038
  vercelClientInstance