@livechat/developer-studio-api 2.3.16 → 2.3.18

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
@@ -774,8 +774,8 @@ interface CreateAppPayload {
774
774
  app: CreateApplicationPayload;
775
775
  authorization?: AddAppAuthorizationData;
776
776
  widgets?: AddAppWidgetsData[];
777
- properties?: PropertyDto[];
778
- monetization?: ApplicationPaymentDto;
777
+ properties?: AddAppPropertiesData[];
778
+ monetization?: AddAppMonetizationData;
779
779
  repository?: LinkAppRepositoryData;
780
780
  deployment?: LinkAppDeploymentData;
781
781
  storage?: LinkAppStorageData;
@@ -820,6 +820,9 @@ interface CreateAppStatus {
820
820
  deployment?: CreateAppStepStatus<{
821
821
  needToBeInstalled?: boolean;
822
822
  }> | undefined;
823
+ widgets?: CreateAppStepStatus | undefined;
824
+ properties?: CreateAppStepStatus | undefined;
825
+ monetization?: CreateAppStepStatus | undefined;
823
826
  storage?: CreateAppStepStatus | undefined;
824
827
  }
825
828
  interface CreateAppResult {
@@ -1059,7 +1062,7 @@ interface AddAppAuthorizationData {
1059
1062
  type: "server_side_app" | "javascript_app";
1060
1063
  configurationUri: string;
1061
1064
  redirectUri: string;
1062
- scopes: ClientScopeDto[];
1065
+ scopes: Omit<ClientScopeDto, "description">[];
1063
1066
  visibility: string;
1064
1067
  }
1065
1068
  type AddAppAuthorizationPayload = {
@@ -1902,9 +1905,10 @@ interface AgentDto {
1902
1905
  account_id: string;
1903
1906
  }
1904
1907
 
1908
+ type AccessLevel = "read" | "write";
1905
1909
  interface PropertyAccessItemDto {
1906
- agent: ["read", "write"];
1907
- customer: ["read", "write"];
1910
+ agent?: [AccessLevel];
1911
+ customer?: [AccessLevel];
1908
1912
  }
1909
1913
  interface PropertyAccessDto {
1910
1914
  chat?: PropertyAccessItemDto;
package/dist/index.d.ts CHANGED
@@ -774,8 +774,8 @@ interface CreateAppPayload {
774
774
  app: CreateApplicationPayload;
775
775
  authorization?: AddAppAuthorizationData;
776
776
  widgets?: AddAppWidgetsData[];
777
- properties?: PropertyDto[];
778
- monetization?: ApplicationPaymentDto;
777
+ properties?: AddAppPropertiesData[];
778
+ monetization?: AddAppMonetizationData;
779
779
  repository?: LinkAppRepositoryData;
780
780
  deployment?: LinkAppDeploymentData;
781
781
  storage?: LinkAppStorageData;
@@ -820,6 +820,9 @@ interface CreateAppStatus {
820
820
  deployment?: CreateAppStepStatus<{
821
821
  needToBeInstalled?: boolean;
822
822
  }> | undefined;
823
+ widgets?: CreateAppStepStatus | undefined;
824
+ properties?: CreateAppStepStatus | undefined;
825
+ monetization?: CreateAppStepStatus | undefined;
823
826
  storage?: CreateAppStepStatus | undefined;
824
827
  }
825
828
  interface CreateAppResult {
@@ -1059,7 +1062,7 @@ interface AddAppAuthorizationData {
1059
1062
  type: "server_side_app" | "javascript_app";
1060
1063
  configurationUri: string;
1061
1064
  redirectUri: string;
1062
- scopes: ClientScopeDto[];
1065
+ scopes: Omit<ClientScopeDto, "description">[];
1063
1066
  visibility: string;
1064
1067
  }
1065
1068
  type AddAppAuthorizationPayload = {
@@ -1902,9 +1905,10 @@ interface AgentDto {
1902
1905
  account_id: string;
1903
1906
  }
1904
1907
 
1908
+ type AccessLevel = "read" | "write";
1905
1909
  interface PropertyAccessItemDto {
1906
- agent: ["read", "write"];
1907
- customer: ["read", "write"];
1910
+ agent?: [AccessLevel];
1911
+ customer?: [AccessLevel];
1908
1912
  }
1909
1913
  interface PropertyAccessDto {
1910
1914
  chat?: PropertyAccessItemDto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.3.16",
3
+ "version": "2.3.18",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -17,9 +17,9 @@
17
17
  "@types/node": "^17.0.12",
18
18
  "tsup": "^7.1.0",
19
19
  "typescript": "^5.1.6",
20
+ "tsconfig": "0.0.1",
20
21
  "config": "0.0.1",
21
- "eslint-config-custom": "0.0.2",
22
- "tsconfig": "0.0.1"
22
+ "eslint-config-custom": "0.0.2"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup src/index.ts --format esm,cjs --dts",