@livechat/developer-studio-api 3.1.48 → 3.1.50

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
@@ -4,6 +4,17 @@ import * as axios from 'axios';
4
4
  import { AxiosRequestConfig } from 'axios';
5
5
  import { z } from 'zod';
6
6
 
7
+ interface AppMonitoringUptimeDetails {
8
+ url: string;
9
+ organizationId: string;
10
+ }
11
+
12
+ interface AppMonitoringUptimeError {
13
+ checked_at: string;
14
+ error_message: string;
15
+ status_code: number;
16
+ }
17
+
7
18
  interface GitHubUser {
8
19
  avatar_url: string;
9
20
  bio: string | null;
@@ -362,7 +373,7 @@ interface TextPlatformDashboardPaymentDto {
362
373
  interface TextPlatformDashboardReportItemDto {
363
374
  usage: number;
364
375
  amount: number;
365
- service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api" | "lang-id-api";
376
+ service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api" | "lang-id-api" | "chat-api";
366
377
  action?: string;
367
378
  source?: string;
368
379
  }
@@ -378,7 +389,7 @@ interface TextPlatformDashboardCreditsDto {
378
389
  interface GetTextPlatformDashboardReportParams {
379
390
  from: string;
380
391
  to: string;
381
- service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api" | "lang-id-api";
392
+ service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api" | "lang-id-api" | "chat-api";
382
393
  action?: string;
383
394
  source?: string;
384
395
  time_distribution: "hour" | "day";
@@ -5900,6 +5911,8 @@ declare const api: {
5900
5911
  createCustomReport(appId: string, customReport: Omit<AppMonitoringCustomReport, "id">, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5901
5912
  updateCustomReport(appId: string, customReport: AppMonitoringCustomReport, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5902
5913
  deleteCustomReport(appId: string, customReportId: string, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5914
+ getUptimeErrors(appId: string, authorization?: PlatformClientAuthorization | undefined): Promise<AppMonitoringUptimeError[]>;
5915
+ getUptimeDetails(appId: string, authorization?: PlatformClientAuthorization | undefined): Promise<AppMonitoringUptimeDetails>;
5903
5916
  };
5904
5917
  };
5905
5918
  };
@@ -5914,11 +5927,17 @@ declare const api: {
5914
5927
  workflows: {
5915
5928
  getWorkflows(authorization?: PlatformClientAuthorization | undefined): Promise<WorkflowsDto[]>;
5916
5929
  getWorkflow(payload: GetWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<WorkflowDto>;
5917
- createWorkflow(payload: UpsertWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5918
- updateWorkflow(payload: UpsertWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<{
5930
+ createWorkflow(payload: UpsertWorkflowPayload & {
5931
+ third_party_headers: Record<string, string[]>;
5932
+ }, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5933
+ updateWorkflow(payload: UpsertWorkflowPayload & {
5934
+ third_party_headers: Record<string, string[]>;
5935
+ }, authorization?: PlatformClientAuthorization | undefined): Promise<{
5919
5936
  version: number;
5920
5937
  }>;
5921
- deleteWorkflow(payload: GetWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5938
+ deleteWorkflow(payload: GetWorkflowPayload & {
5939
+ third_party_headers: Record<string, string[]>;
5940
+ }, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5922
5941
  executeWorkflow(payload: {
5923
5942
  name: string;
5924
5943
  input: unknown;
package/dist/index.d.ts CHANGED
@@ -4,6 +4,17 @@ import * as axios from 'axios';
4
4
  import { AxiosRequestConfig } from 'axios';
5
5
  import { z } from 'zod';
6
6
 
7
+ interface AppMonitoringUptimeDetails {
8
+ url: string;
9
+ organizationId: string;
10
+ }
11
+
12
+ interface AppMonitoringUptimeError {
13
+ checked_at: string;
14
+ error_message: string;
15
+ status_code: number;
16
+ }
17
+
7
18
  interface GitHubUser {
8
19
  avatar_url: string;
9
20
  bio: string | null;
@@ -362,7 +373,7 @@ interface TextPlatformDashboardPaymentDto {
362
373
  interface TextPlatformDashboardReportItemDto {
363
374
  usage: number;
364
375
  amount: number;
365
- service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api" | "lang-id-api";
376
+ service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api" | "lang-id-api" | "chat-api";
366
377
  action?: string;
367
378
  source?: string;
368
379
  }
@@ -378,7 +389,7 @@ interface TextPlatformDashboardCreditsDto {
378
389
  interface GetTextPlatformDashboardReportParams {
379
390
  from: string;
380
391
  to: string;
381
- service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api" | "lang-id-api";
392
+ service?: "agent-api" | "customer-api" | "configuration-api" | "lc-webhooks" | "reports-api" | "lang-id-api" | "chat-api";
382
393
  action?: string;
383
394
  source?: string;
384
395
  time_distribution: "hour" | "day";
@@ -5900,6 +5911,8 @@ declare const api: {
5900
5911
  createCustomReport(appId: string, customReport: Omit<AppMonitoringCustomReport, "id">, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5901
5912
  updateCustomReport(appId: string, customReport: AppMonitoringCustomReport, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5902
5913
  deleteCustomReport(appId: string, customReportId: string, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5914
+ getUptimeErrors(appId: string, authorization?: PlatformClientAuthorization | undefined): Promise<AppMonitoringUptimeError[]>;
5915
+ getUptimeDetails(appId: string, authorization?: PlatformClientAuthorization | undefined): Promise<AppMonitoringUptimeDetails>;
5903
5916
  };
5904
5917
  };
5905
5918
  };
@@ -5914,11 +5927,17 @@ declare const api: {
5914
5927
  workflows: {
5915
5928
  getWorkflows(authorization?: PlatformClientAuthorization | undefined): Promise<WorkflowsDto[]>;
5916
5929
  getWorkflow(payload: GetWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<WorkflowDto>;
5917
- createWorkflow(payload: UpsertWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5918
- updateWorkflow(payload: UpsertWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<{
5930
+ createWorkflow(payload: UpsertWorkflowPayload & {
5931
+ third_party_headers: Record<string, string[]>;
5932
+ }, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5933
+ updateWorkflow(payload: UpsertWorkflowPayload & {
5934
+ third_party_headers: Record<string, string[]>;
5935
+ }, authorization?: PlatformClientAuthorization | undefined): Promise<{
5919
5936
  version: number;
5920
5937
  }>;
5921
- deleteWorkflow(payload: GetWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5938
+ deleteWorkflow(payload: GetWorkflowPayload & {
5939
+ third_party_headers: Record<string, string[]>;
5940
+ }, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
5922
5941
  executeWorkflow(payload: {
5923
5942
  name: string;
5924
5943
  input: unknown;