@livechat/developer-studio-api 2.3.65 → 2.3.67

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
@@ -92,7 +92,7 @@ interface GitHubRepositoryKey {
92
92
 
93
93
  interface GitHubRepositorySeed {
94
94
  sha: string;
95
- size: number;
95
+ size?: number;
96
96
  content: string;
97
97
  encoding: string;
98
98
  }
@@ -258,7 +258,7 @@ declare function updateSentryClientInstance(token: string | undefined): void;
258
258
 
259
259
  interface SentryIntegration {
260
260
  id: string;
261
- status: 'active' | 'disabled';
261
+ status: "active" | "disabled";
262
262
  provider: {
263
263
  name: string;
264
264
  };
@@ -286,37 +286,37 @@ interface SentryProjectIssue {
286
286
  }
287
287
 
288
288
  interface SentryProjectIssueEvent {
289
- id: 'ed5d462d3c324a3c8f57071aff4c817b';
290
- groupID: '3948330870';
291
- eventID: 'ed5d462d3c324a3c8f57071aff4c817b';
292
- projectID: '4504713248571392';
289
+ id: "ed5d462d3c324a3c8f57071aff4c817b";
290
+ groupID: "3948330870";
291
+ eventID: "ed5d462d3c324a3c8f57071aff4c817b";
292
+ projectID: "4504713248571392";
293
293
  size: 49159;
294
294
  entries: {
295
- type: 'exception';
295
+ type: "exception";
296
296
  data: {
297
297
  values: {
298
298
  type: string;
299
299
  value: string;
300
300
  stacktrace: {
301
301
  frames: {
302
- filename: './pages/index.tsx';
303
- absPath: 'webpack://_N_E/./pages/index.tsx';
304
- module: 'pages/index';
302
+ filename: "./pages/index.tsx";
303
+ absPath: "webpack://_N_E/./pages/index.tsx";
304
+ module: "pages/index";
305
305
  package: null;
306
306
  platform: null;
307
307
  instructionAddr: null;
308
308
  symbolAddr: null;
309
- function: '<object>.children.onClick';
309
+ function: "<object>.children.onClick";
310
310
  rawFunction: null;
311
311
  symbol: null;
312
312
  context: [
313
313
  [
314
314
  5,
315
- ' <ViewContainer>'
315
+ " <ViewContainer>"
316
316
  ],
317
317
  [
318
318
  6,
319
- ' <h1>Home page</h1>'
319
+ " <h1>Home page</h1>"
320
320
  ],
321
321
  [
322
322
  7,
@@ -324,19 +324,19 @@ interface SentryProjectIssueEvent {
324
324
  ],
325
325
  [
326
326
  8,
327
- ' const test: any = {}'
327
+ " const test: any = {}"
328
328
  ],
329
329
  [
330
330
  9,
331
- ''
331
+ ""
332
332
  ],
333
333
  [
334
334
  10,
335
- ' test.test.doSomething();'
335
+ " test.test.doSomething();"
336
336
  ],
337
337
  [
338
338
  11,
339
- ' }} />'
339
+ " }} />"
340
340
  ],
341
341
  [
342
342
  12,
@@ -344,15 +344,15 @@ interface SentryProjectIssueEvent {
344
344
  ],
345
345
  [
346
346
  13,
347
- ' const test: any = {}'
347
+ " const test: any = {}"
348
348
  ],
349
349
  [
350
350
  14,
351
- ''
351
+ ""
352
352
  ],
353
353
  [
354
354
  15,
355
- ' test.test.doSomething();'
355
+ " test.test.doSomething();"
356
356
  ]
357
357
  ];
358
358
  lineNo: 10;
@@ -362,9 +362,9 @@ interface SentryProjectIssueEvent {
362
362
  }[];
363
363
  };
364
364
  }[];
365
- message: '';
365
+ message: "";
366
366
  title: "TypeError: Cannot read properties of undefined (reading 'doSomething')";
367
- location: './pages/index.tsx';
367
+ location: "./pages/index.tsx";
368
368
  }
369
369
 
370
370
  interface SentryProjectKey {
@@ -712,13 +712,13 @@ interface CreateClientPayload {
712
712
  visibility: string;
713
713
  redirect_uri: string;
714
714
  scopes: string[];
715
- type: 'server_side_app' | 'javascript_app';
715
+ type: "server_side_app" | "javascript_app";
716
716
  }
717
717
 
718
718
  interface UpdateClientPayload {
719
719
  redirect_uri: string;
720
720
  secret?: string;
721
- type: 'server_side_app' | 'javascript_app';
721
+ type: "server_side_app" | "javascript_app";
722
722
  }
723
723
 
724
724
  interface PatScopeDto {
@@ -1022,9 +1022,9 @@ type LinkAppSentryLoggerPayload = {
1022
1022
  githubIntegrationId?: string;
1023
1023
  netlifySiteId?: string;
1024
1024
  } & ({
1025
- type: 'new';
1025
+ type: "new";
1026
1026
  } | {
1027
- type: 'existing';
1027
+ type: "existing";
1028
1028
  projectSlug: string;
1029
1029
  });
1030
1030
  interface LinkSentryLoggerResponse {
@@ -1180,7 +1180,7 @@ interface AddAppAuthorizationResult {
1180
1180
 
1181
1181
  interface AddAppMonetizationData {
1182
1182
  creditCardRequired: boolean;
1183
- frequency: 'monthly' | 'once';
1183
+ frequency: "monthly" | "once";
1184
1184
  perAccount: boolean;
1185
1185
  price: number;
1186
1186
  tiersPricingConfig: {
@@ -1207,7 +1207,7 @@ interface AddAppWidgetsData {
1207
1207
  }
1208
1208
 
1209
1209
  type AppVariableType = "custom" | "auth" | "storage";
1210
- type AppVariableStatus = "valid" | "invalid" | "warning";
1210
+ type AppVariableStatus = "valid" | "invalid" | "warning" | "unknown";
1211
1211
  type AppVariableLocalProvider = "console";
1212
1212
  type AppVariableExternalProvider = "vercel" | "netlify";
1213
1213
  type AppVariableProvider = AppVariableLocalProvider | AppVariableExternalProvider;
@@ -1298,7 +1298,7 @@ interface CreateDeploymentResponse {
1298
1298
  needToBeInstalled: boolean;
1299
1299
  }
1300
1300
  interface CreateDeploymentAccessibilityPayload {
1301
- provider: 'netlify' | 'vercel';
1301
+ provider: "netlify" | "vercel";
1302
1302
  repositoryName: string;
1303
1303
  }
1304
1304
  interface CreateDeploymentAccessibilityResponse {
@@ -1323,7 +1323,7 @@ interface CreateAuthorizationPayload {
1323
1323
  deploymentUrl: string;
1324
1324
  }
1325
1325
  interface CreateAuthorizationResponse {
1326
- client_id: string;
1326
+ clientId: string;
1327
1327
  }
1328
1328
 
1329
1329
  interface CreateWidgetPayload {
@@ -1408,7 +1408,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
1408
1408
 
1409
1409
  interface ApplicationPaymentDto {
1410
1410
  creditCardRequired: boolean;
1411
- frequency: 'monthly' | 'once';
1411
+ frequency: "monthly" | "once";
1412
1412
  perAccount: boolean;
1413
1413
  price: number;
1414
1414
  tiersPricingConfig: {
@@ -1975,7 +1975,7 @@ declare function getPlatformDpsClientConfig(options?: PlatformDpsClientInstanceO
1975
1975
  declare function initPlatformDpsClientInstance(baseUrl?: string, token?: string): void;
1976
1976
 
1977
1977
  interface ShortcutDto {
1978
- type: 'link' | 'app';
1978
+ type: "link" | "app";
1979
1979
  url: string;
1980
1980
  }
1981
1981
 
@@ -2129,10 +2129,10 @@ interface AgentDto {
2129
2129
  onboarding_completed: number;
2130
2130
  timezone: string;
2131
2131
  last_chat_start_timestamp: string;
2132
- 'integration.botengine.inapp_status': string;
2132
+ "integration.botengine.inapp_status": string;
2133
2133
  suspended: number;
2134
2134
  avatar: string | null;
2135
- 'email.bounce': number;
2135
+ "email.bounce": number;
2136
2136
  awaiting_approval: number;
2137
2137
  ticket_notifications: number;
2138
2138
  daily_summary: number;
@@ -2146,10 +2146,10 @@ interface AgentDto {
2146
2146
  weekly_summary: number;
2147
2147
  state: string;
2148
2148
  mobile: string;
2149
- 'email.bounce.type': number;
2149
+ "email.bounce.type": number;
2150
2150
  customers_enabled: number;
2151
2151
  permission: string;
2152
- 'email.bounce.date': number;
2152
+ "email.bounce.date": number;
2153
2153
  repeat_sound_notifications: number;
2154
2154
  design_version: number;
2155
2155
  status: string;
@@ -2205,9 +2205,9 @@ interface WebhookDto {
2205
2205
  action: string;
2206
2206
  description: string;
2207
2207
  owner_client_id: string;
2208
- type: 'bot' | 'license';
2208
+ type: "bot" | "license";
2209
2209
  filters?: {
2210
- author_type?: 'agent' | 'customer';
2210
+ author_type?: "agent" | "customer";
2211
2211
  only_my_chats?: boolean;
2212
2212
  };
2213
2213
  url: string;
@@ -2219,9 +2219,9 @@ interface Webhook {
2219
2219
  description: string;
2220
2220
  secret_key: string;
2221
2221
  owner_client_id: string;
2222
- type: 'bot' | 'license';
2222
+ type: "bot" | "license";
2223
2223
  filters?: {
2224
- author_type?: 'agent' | 'customer';
2224
+ author_type?: "agent" | "customer";
2225
2225
  only_my_chats?: boolean;
2226
2226
  };
2227
2227
  }
package/dist/index.d.ts CHANGED
@@ -92,7 +92,7 @@ interface GitHubRepositoryKey {
92
92
 
93
93
  interface GitHubRepositorySeed {
94
94
  sha: string;
95
- size: number;
95
+ size?: number;
96
96
  content: string;
97
97
  encoding: string;
98
98
  }
@@ -258,7 +258,7 @@ declare function updateSentryClientInstance(token: string | undefined): void;
258
258
 
259
259
  interface SentryIntegration {
260
260
  id: string;
261
- status: 'active' | 'disabled';
261
+ status: "active" | "disabled";
262
262
  provider: {
263
263
  name: string;
264
264
  };
@@ -286,37 +286,37 @@ interface SentryProjectIssue {
286
286
  }
287
287
 
288
288
  interface SentryProjectIssueEvent {
289
- id: 'ed5d462d3c324a3c8f57071aff4c817b';
290
- groupID: '3948330870';
291
- eventID: 'ed5d462d3c324a3c8f57071aff4c817b';
292
- projectID: '4504713248571392';
289
+ id: "ed5d462d3c324a3c8f57071aff4c817b";
290
+ groupID: "3948330870";
291
+ eventID: "ed5d462d3c324a3c8f57071aff4c817b";
292
+ projectID: "4504713248571392";
293
293
  size: 49159;
294
294
  entries: {
295
- type: 'exception';
295
+ type: "exception";
296
296
  data: {
297
297
  values: {
298
298
  type: string;
299
299
  value: string;
300
300
  stacktrace: {
301
301
  frames: {
302
- filename: './pages/index.tsx';
303
- absPath: 'webpack://_N_E/./pages/index.tsx';
304
- module: 'pages/index';
302
+ filename: "./pages/index.tsx";
303
+ absPath: "webpack://_N_E/./pages/index.tsx";
304
+ module: "pages/index";
305
305
  package: null;
306
306
  platform: null;
307
307
  instructionAddr: null;
308
308
  symbolAddr: null;
309
- function: '<object>.children.onClick';
309
+ function: "<object>.children.onClick";
310
310
  rawFunction: null;
311
311
  symbol: null;
312
312
  context: [
313
313
  [
314
314
  5,
315
- ' <ViewContainer>'
315
+ " <ViewContainer>"
316
316
  ],
317
317
  [
318
318
  6,
319
- ' <h1>Home page</h1>'
319
+ " <h1>Home page</h1>"
320
320
  ],
321
321
  [
322
322
  7,
@@ -324,19 +324,19 @@ interface SentryProjectIssueEvent {
324
324
  ],
325
325
  [
326
326
  8,
327
- ' const test: any = {}'
327
+ " const test: any = {}"
328
328
  ],
329
329
  [
330
330
  9,
331
- ''
331
+ ""
332
332
  ],
333
333
  [
334
334
  10,
335
- ' test.test.doSomething();'
335
+ " test.test.doSomething();"
336
336
  ],
337
337
  [
338
338
  11,
339
- ' }} />'
339
+ " }} />"
340
340
  ],
341
341
  [
342
342
  12,
@@ -344,15 +344,15 @@ interface SentryProjectIssueEvent {
344
344
  ],
345
345
  [
346
346
  13,
347
- ' const test: any = {}'
347
+ " const test: any = {}"
348
348
  ],
349
349
  [
350
350
  14,
351
- ''
351
+ ""
352
352
  ],
353
353
  [
354
354
  15,
355
- ' test.test.doSomething();'
355
+ " test.test.doSomething();"
356
356
  ]
357
357
  ];
358
358
  lineNo: 10;
@@ -362,9 +362,9 @@ interface SentryProjectIssueEvent {
362
362
  }[];
363
363
  };
364
364
  }[];
365
- message: '';
365
+ message: "";
366
366
  title: "TypeError: Cannot read properties of undefined (reading 'doSomething')";
367
- location: './pages/index.tsx';
367
+ location: "./pages/index.tsx";
368
368
  }
369
369
 
370
370
  interface SentryProjectKey {
@@ -712,13 +712,13 @@ interface CreateClientPayload {
712
712
  visibility: string;
713
713
  redirect_uri: string;
714
714
  scopes: string[];
715
- type: 'server_side_app' | 'javascript_app';
715
+ type: "server_side_app" | "javascript_app";
716
716
  }
717
717
 
718
718
  interface UpdateClientPayload {
719
719
  redirect_uri: string;
720
720
  secret?: string;
721
- type: 'server_side_app' | 'javascript_app';
721
+ type: "server_side_app" | "javascript_app";
722
722
  }
723
723
 
724
724
  interface PatScopeDto {
@@ -1022,9 +1022,9 @@ type LinkAppSentryLoggerPayload = {
1022
1022
  githubIntegrationId?: string;
1023
1023
  netlifySiteId?: string;
1024
1024
  } & ({
1025
- type: 'new';
1025
+ type: "new";
1026
1026
  } | {
1027
- type: 'existing';
1027
+ type: "existing";
1028
1028
  projectSlug: string;
1029
1029
  });
1030
1030
  interface LinkSentryLoggerResponse {
@@ -1180,7 +1180,7 @@ interface AddAppAuthorizationResult {
1180
1180
 
1181
1181
  interface AddAppMonetizationData {
1182
1182
  creditCardRequired: boolean;
1183
- frequency: 'monthly' | 'once';
1183
+ frequency: "monthly" | "once";
1184
1184
  perAccount: boolean;
1185
1185
  price: number;
1186
1186
  tiersPricingConfig: {
@@ -1207,7 +1207,7 @@ interface AddAppWidgetsData {
1207
1207
  }
1208
1208
 
1209
1209
  type AppVariableType = "custom" | "auth" | "storage";
1210
- type AppVariableStatus = "valid" | "invalid" | "warning";
1210
+ type AppVariableStatus = "valid" | "invalid" | "warning" | "unknown";
1211
1211
  type AppVariableLocalProvider = "console";
1212
1212
  type AppVariableExternalProvider = "vercel" | "netlify";
1213
1213
  type AppVariableProvider = AppVariableLocalProvider | AppVariableExternalProvider;
@@ -1298,7 +1298,7 @@ interface CreateDeploymentResponse {
1298
1298
  needToBeInstalled: boolean;
1299
1299
  }
1300
1300
  interface CreateDeploymentAccessibilityPayload {
1301
- provider: 'netlify' | 'vercel';
1301
+ provider: "netlify" | "vercel";
1302
1302
  repositoryName: string;
1303
1303
  }
1304
1304
  interface CreateDeploymentAccessibilityResponse {
@@ -1323,7 +1323,7 @@ interface CreateAuthorizationPayload {
1323
1323
  deploymentUrl: string;
1324
1324
  }
1325
1325
  interface CreateAuthorizationResponse {
1326
- client_id: string;
1326
+ clientId: string;
1327
1327
  }
1328
1328
 
1329
1329
  interface CreateWidgetPayload {
@@ -1408,7 +1408,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
1408
1408
 
1409
1409
  interface ApplicationPaymentDto {
1410
1410
  creditCardRequired: boolean;
1411
- frequency: 'monthly' | 'once';
1411
+ frequency: "monthly" | "once";
1412
1412
  perAccount: boolean;
1413
1413
  price: number;
1414
1414
  tiersPricingConfig: {
@@ -1975,7 +1975,7 @@ declare function getPlatformDpsClientConfig(options?: PlatformDpsClientInstanceO
1975
1975
  declare function initPlatformDpsClientInstance(baseUrl?: string, token?: string): void;
1976
1976
 
1977
1977
  interface ShortcutDto {
1978
- type: 'link' | 'app';
1978
+ type: "link" | "app";
1979
1979
  url: string;
1980
1980
  }
1981
1981
 
@@ -2129,10 +2129,10 @@ interface AgentDto {
2129
2129
  onboarding_completed: number;
2130
2130
  timezone: string;
2131
2131
  last_chat_start_timestamp: string;
2132
- 'integration.botengine.inapp_status': string;
2132
+ "integration.botengine.inapp_status": string;
2133
2133
  suspended: number;
2134
2134
  avatar: string | null;
2135
- 'email.bounce': number;
2135
+ "email.bounce": number;
2136
2136
  awaiting_approval: number;
2137
2137
  ticket_notifications: number;
2138
2138
  daily_summary: number;
@@ -2146,10 +2146,10 @@ interface AgentDto {
2146
2146
  weekly_summary: number;
2147
2147
  state: string;
2148
2148
  mobile: string;
2149
- 'email.bounce.type': number;
2149
+ "email.bounce.type": number;
2150
2150
  customers_enabled: number;
2151
2151
  permission: string;
2152
- 'email.bounce.date': number;
2152
+ "email.bounce.date": number;
2153
2153
  repeat_sound_notifications: number;
2154
2154
  design_version: number;
2155
2155
  status: string;
@@ -2205,9 +2205,9 @@ interface WebhookDto {
2205
2205
  action: string;
2206
2206
  description: string;
2207
2207
  owner_client_id: string;
2208
- type: 'bot' | 'license';
2208
+ type: "bot" | "license";
2209
2209
  filters?: {
2210
- author_type?: 'agent' | 'customer';
2210
+ author_type?: "agent" | "customer";
2211
2211
  only_my_chats?: boolean;
2212
2212
  };
2213
2213
  url: string;
@@ -2219,9 +2219,9 @@ interface Webhook {
2219
2219
  description: string;
2220
2220
  secret_key: string;
2221
2221
  owner_client_id: string;
2222
- type: 'bot' | 'license';
2222
+ type: "bot" | "license";
2223
2223
  filters?: {
2224
- author_type?: 'agent' | 'customer';
2224
+ author_type?: "agent" | "customer";
2225
2225
  only_my_chats?: boolean;
2226
2226
  };
2227
2227
  }
package/dist/index.js CHANGED
@@ -4253,9 +4253,7 @@ var platformDpsApplicationInstallApi = {
4253
4253
  );
4254
4254
  } catch (error) {
4255
4255
  if (error instanceof Error) {
4256
- throw new Error(
4257
- `App couldn't be installed. [${error.message}]`
4258
- );
4256
+ throw new Error(`App couldn't be installed. [${error.message}]`);
4259
4257
  }
4260
4258
  throw error;
4261
4259
  }
@@ -4270,9 +4268,7 @@ var platformDpsApplicationInstallApi = {
4270
4268
  );
4271
4269
  } catch (error) {
4272
4270
  if (error instanceof Error) {
4273
- throw new Error(
4274
- `App couldn't be uninstalled. [${error.message}]`
4275
- );
4271
+ throw new Error(`App couldn't be uninstalled. [${error.message}]`);
4276
4272
  }
4277
4273
  throw error;
4278
4274
  }
package/dist/index.mjs CHANGED
@@ -4158,9 +4158,7 @@ var platformDpsApplicationInstallApi = {
4158
4158
  );
4159
4159
  } catch (error) {
4160
4160
  if (error instanceof Error) {
4161
- throw new Error(
4162
- `App couldn't be installed. [${error.message}]`
4163
- );
4161
+ throw new Error(`App couldn't be installed. [${error.message}]`);
4164
4162
  }
4165
4163
  throw error;
4166
4164
  }
@@ -4175,9 +4173,7 @@ var platformDpsApplicationInstallApi = {
4175
4173
  );
4176
4174
  } catch (error) {
4177
4175
  if (error instanceof Error) {
4178
- throw new Error(
4179
- `App couldn't be uninstalled. [${error.message}]`
4180
- );
4176
+ throw new Error(`App couldn't be uninstalled. [${error.message}]`);
4181
4177
  }
4182
4178
  throw error;
4183
4179
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.3.65",
3
+ "version": "2.3.67",
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
- "eslint-config-custom": "0.0.3",
22
- "tsconfig": "0.0.1"
21
+ "tsconfig": "0.0.1",
22
+ "eslint-config-custom": "0.0.3"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup src/index.ts --format esm,cjs --dts",