@livechat/developer-studio-api 2.3.27 → 2.3.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1164,9 +1164,10 @@ interface CreateRepositoryResponse {
1164
1164
  needToBeSeeded: boolean;
1165
1165
  }
1166
1166
  interface CreateSeedPayload {
1167
- appid: string;
1168
- clientId: string;
1167
+ appId: string;
1169
1168
  name: string;
1169
+ provider?: string;
1170
+ clientId?: string;
1170
1171
  }
1171
1172
  interface CreateSeedResponse {
1172
1173
  isSeeded: boolean;
@@ -1178,7 +1179,7 @@ interface CreateDeploymentPayload {
1178
1179
  provider: string;
1179
1180
  repositoryName: string;
1180
1181
  repositoryBranch: string;
1181
- repositoryTarget: string;
1182
+ repositoryTarget?: string;
1182
1183
  siteName?: string;
1183
1184
  projectName?: string;
1184
1185
  type: string;
@@ -1220,7 +1221,7 @@ interface CreatePropertiesPayload {
1220
1221
 
1221
1222
  interface CreateMonetizationPayload {
1222
1223
  appId: string;
1223
- payload: AddAppMonetizationData;
1224
+ payment: AddAppMonetizationData;
1224
1225
  }
1225
1226
 
1226
1227
  interface PlatformAdapterClientInstanceAuthorization {
@@ -2101,9 +2102,6 @@ declare const api: {
2101
2102
  sessions: {
2102
2103
  readonly deleteSessions: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<void>>;
2103
2104
  };
2104
- token: {
2105
- exchangeCode(code: string, clientId: string, clientSecret: string, redirectUrl: string): Promise<axios.AxiosResponse<AuthorizeData>>;
2106
- };
2107
2105
  };
2108
2106
  billing: {
2109
2107
  account: {
package/dist/index.d.ts CHANGED
@@ -1164,9 +1164,10 @@ interface CreateRepositoryResponse {
1164
1164
  needToBeSeeded: boolean;
1165
1165
  }
1166
1166
  interface CreateSeedPayload {
1167
- appid: string;
1168
- clientId: string;
1167
+ appId: string;
1169
1168
  name: string;
1169
+ provider?: string;
1170
+ clientId?: string;
1170
1171
  }
1171
1172
  interface CreateSeedResponse {
1172
1173
  isSeeded: boolean;
@@ -1178,7 +1179,7 @@ interface CreateDeploymentPayload {
1178
1179
  provider: string;
1179
1180
  repositoryName: string;
1180
1181
  repositoryBranch: string;
1181
- repositoryTarget: string;
1182
+ repositoryTarget?: string;
1182
1183
  siteName?: string;
1183
1184
  projectName?: string;
1184
1185
  type: string;
@@ -1220,7 +1221,7 @@ interface CreatePropertiesPayload {
1220
1221
 
1221
1222
  interface CreateMonetizationPayload {
1222
1223
  appId: string;
1223
- payload: AddAppMonetizationData;
1224
+ payment: AddAppMonetizationData;
1224
1225
  }
1225
1226
 
1226
1227
  interface PlatformAdapterClientInstanceAuthorization {
@@ -2101,9 +2102,6 @@ declare const api: {
2101
2102
  sessions: {
2102
2103
  readonly deleteSessions: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<void>>;
2103
2104
  };
2104
- token: {
2105
- exchangeCode(code: string, clientId: string, clientSecret: string, redirectUrl: string): Promise<axios.AxiosResponse<AuthorizeData>>;
2106
- };
2107
2105
  };
2108
2106
  billing: {
2109
2107
  account: {
package/dist/index.js CHANGED
@@ -3376,37 +3376,6 @@ var platformAccountsSessionsApi = {
3376
3376
  }
3377
3377
  };
3378
3378
 
3379
- // src/apis/platform/accounts/token/api.ts
3380
- var platformAccountsTokenApi = {
3381
- exchangeCode(code, clientId, clientSecret, redirectUrl) {
3382
- return __async(this, null, function* () {
3383
- const data = new URLSearchParams({
3384
- code,
3385
- client_id: clientId,
3386
- client_secret: clientSecret,
3387
- redirect_uri: redirectUrl
3388
- });
3389
- try {
3390
- return yield platformAccountsClientInstance.post(
3391
- `/v2/token`,
3392
- data,
3393
- {
3394
- headers: {
3395
- "Content-Type": "application/x-www-form-urlencoded"
3396
- }
3397
- }
3398
- );
3399
- } catch (error) {
3400
- if (error instanceof Error) {
3401
- throw new Error(`Couldn't exchange code for token. [${error.message}]`);
3402
- } else {
3403
- throw error;
3404
- }
3405
- }
3406
- });
3407
- }
3408
- };
3409
-
3410
3379
  // src/apis/platform/accounts/api.ts
3411
3380
  var platformAccountsApi = {
3412
3381
  account: platformAccountsAccountApi,
@@ -3415,8 +3384,7 @@ var platformAccountsApi = {
3415
3384
  organization: platformAccountsOrganizationApi,
3416
3385
  products: platformAccountsProductsApi,
3417
3386
  scopes: platformAccountsScopesApi,
3418
- sessions: platformAccountsSessionsApi,
3419
- token: platformAccountsTokenApi
3387
+ sessions: platformAccountsSessionsApi
3420
3388
  };
3421
3389
 
3422
3390
  // src/apis/platform/dps/instance.ts
package/dist/index.mjs CHANGED
@@ -3285,37 +3285,6 @@ var platformAccountsSessionsApi = {
3285
3285
  }
3286
3286
  };
3287
3287
 
3288
- // src/apis/platform/accounts/token/api.ts
3289
- var platformAccountsTokenApi = {
3290
- exchangeCode(code, clientId, clientSecret, redirectUrl) {
3291
- return __async(this, null, function* () {
3292
- const data = new URLSearchParams({
3293
- code,
3294
- client_id: clientId,
3295
- client_secret: clientSecret,
3296
- redirect_uri: redirectUrl
3297
- });
3298
- try {
3299
- return yield platformAccountsClientInstance.post(
3300
- `/v2/token`,
3301
- data,
3302
- {
3303
- headers: {
3304
- "Content-Type": "application/x-www-form-urlencoded"
3305
- }
3306
- }
3307
- );
3308
- } catch (error) {
3309
- if (error instanceof Error) {
3310
- throw new Error(`Couldn't exchange code for token. [${error.message}]`);
3311
- } else {
3312
- throw error;
3313
- }
3314
- }
3315
- });
3316
- }
3317
- };
3318
-
3319
3288
  // src/apis/platform/accounts/api.ts
3320
3289
  var platformAccountsApi = {
3321
3290
  account: platformAccountsAccountApi,
@@ -3324,8 +3293,7 @@ var platformAccountsApi = {
3324
3293
  organization: platformAccountsOrganizationApi,
3325
3294
  products: platformAccountsProductsApi,
3326
3295
  scopes: platformAccountsScopesApi,
3327
- sessions: platformAccountsSessionsApi,
3328
- token: platformAccountsTokenApi
3296
+ sessions: platformAccountsSessionsApi
3329
3297
  };
3330
3298
 
3331
3299
  // src/apis/platform/dps/instance.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.3.27",
3
+ "version": "2.3.28",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "tsup": "^7.1.0",
19
19
  "typescript": "^5.1.6",
20
20
  "config": "0.0.1",
21
- "tsconfig": "0.0.1",
22
- "eslint-config-custom": "0.0.2"
21
+ "eslint-config-custom": "0.0.2",
22
+ "tsconfig": "0.0.1"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup src/index.ts --format esm,cjs --dts",