@livechat/developer-studio-api 2.0.35 → 2.0.37

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
@@ -388,10 +388,10 @@ declare function getSentryClientConfig(options?: SentryClientInstanceOptions): A
388
388
  declare function initSentryClientInstance(token?: string): void;
389
389
  declare function updateSentryClientInstance(token: string | undefined): void;
390
390
 
391
- interface AppMonitoringUptimeReportDto {
392
- [appId: string]: {
393
- [date: string]: number;
394
- };
391
+ interface AppMonitoringReport {
392
+ id: string;
393
+ title: string;
394
+ events: string[];
395
395
  }
396
396
 
397
397
  interface AppMonitoringEvent {
@@ -416,12 +416,6 @@ interface AppMonitoringEventsLogDto {
416
416
  }[];
417
417
  }
418
418
 
419
- interface GetAppMonitoringUptimeReportPayload {
420
- from: string;
421
- to: string;
422
- resolution: "hourly" | "daily" | "monthly";
423
- }
424
-
425
419
  interface GetAppMonitoringEventsLogPayload {
426
420
  from: string;
427
421
  to: string;
@@ -436,6 +430,18 @@ interface GetAppMonitoringEventsReportPayload {
436
430
  resolution: "hourly" | "daily" | "monthly";
437
431
  }
438
432
 
433
+ interface AppMonitoringUptimeReportDto {
434
+ [appId: string]: {
435
+ [date: string]: number;
436
+ };
437
+ }
438
+
439
+ interface GetAppMonitoringUptimeReportPayload {
440
+ from: string;
441
+ to: string;
442
+ resolution: "hourly" | "daily" | "monthly";
443
+ }
444
+
439
445
  interface TextClientInstanceAuthorization {
440
446
  token?: string;
441
447
  tokenType?: "Basic" | "Bearer";
@@ -2304,11 +2310,21 @@ declare const api: {
2304
2310
  text: {
2305
2311
  app: {
2306
2312
  monitoring: {
2307
- getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2308
- getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
2309
- getEvent(appId: string, key: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
2310
- getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2311
- getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsLogDto>;
2313
+ uptime: {
2314
+ getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2315
+ };
2316
+ events: {
2317
+ getEvent(appId: string, key: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
2318
+ getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
2319
+ getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2320
+ getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsLogDto>;
2321
+ upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2322
+ };
2323
+ reports: {
2324
+ getReport(appId: string, reportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringReport>;
2325
+ getReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringReport[]>;
2326
+ upsertReport(appId: string, report: AppMonitoringReport, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2327
+ };
2312
2328
  };
2313
2329
  };
2314
2330
  };
@@ -2377,4 +2393,4 @@ declare const serializerBase64: {
2377
2393
  deserialize<T_1>(message?: string): T_1 | undefined;
2378
2394
  };
2379
2395
 
2380
- export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringEvent, AppMonitoringEventsLogDto, AppMonitoringEventsReportDto, AppMonitoringUptimeReportDto, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateDeveloperMessagePayload, CreatePatPayload, CustomReportingEvent, DeveloperLedgerParams, DeveloperMessage, DeveloperMessageBaseDto, DeveloperMessageDto, ErrorReportingEvent, ErrorType, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, PatDto, PatScopeDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ReportingEvent, ReportingEventBase, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, UnauthorizeApiError, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
2396
+ export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringEvent, AppMonitoringEventsLogDto, AppMonitoringEventsReportDto, AppMonitoringReport, AppMonitoringUptimeReportDto, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateDeveloperMessagePayload, CreatePatPayload, CustomReportingEvent, DeveloperLedgerParams, DeveloperMessage, DeveloperMessageBaseDto, DeveloperMessageDto, ErrorReportingEvent, ErrorType, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, PatDto, PatScopeDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ReportingEvent, ReportingEventBase, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, UnauthorizeApiError, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
package/dist/index.d.ts CHANGED
@@ -388,10 +388,10 @@ declare function getSentryClientConfig(options?: SentryClientInstanceOptions): A
388
388
  declare function initSentryClientInstance(token?: string): void;
389
389
  declare function updateSentryClientInstance(token: string | undefined): void;
390
390
 
391
- interface AppMonitoringUptimeReportDto {
392
- [appId: string]: {
393
- [date: string]: number;
394
- };
391
+ interface AppMonitoringReport {
392
+ id: string;
393
+ title: string;
394
+ events: string[];
395
395
  }
396
396
 
397
397
  interface AppMonitoringEvent {
@@ -416,12 +416,6 @@ interface AppMonitoringEventsLogDto {
416
416
  }[];
417
417
  }
418
418
 
419
- interface GetAppMonitoringUptimeReportPayload {
420
- from: string;
421
- to: string;
422
- resolution: "hourly" | "daily" | "monthly";
423
- }
424
-
425
419
  interface GetAppMonitoringEventsLogPayload {
426
420
  from: string;
427
421
  to: string;
@@ -436,6 +430,18 @@ interface GetAppMonitoringEventsReportPayload {
436
430
  resolution: "hourly" | "daily" | "monthly";
437
431
  }
438
432
 
433
+ interface AppMonitoringUptimeReportDto {
434
+ [appId: string]: {
435
+ [date: string]: number;
436
+ };
437
+ }
438
+
439
+ interface GetAppMonitoringUptimeReportPayload {
440
+ from: string;
441
+ to: string;
442
+ resolution: "hourly" | "daily" | "monthly";
443
+ }
444
+
439
445
  interface TextClientInstanceAuthorization {
440
446
  token?: string;
441
447
  tokenType?: "Basic" | "Bearer";
@@ -2304,11 +2310,21 @@ declare const api: {
2304
2310
  text: {
2305
2311
  app: {
2306
2312
  monitoring: {
2307
- getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2308
- getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
2309
- getEvent(appId: string, key: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
2310
- getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2311
- getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsLogDto>;
2313
+ uptime: {
2314
+ getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2315
+ };
2316
+ events: {
2317
+ getEvent(appId: string, key: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
2318
+ getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
2319
+ getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2320
+ getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsLogDto>;
2321
+ upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2322
+ };
2323
+ reports: {
2324
+ getReport(appId: string, reportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringReport>;
2325
+ getReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringReport[]>;
2326
+ upsertReport(appId: string, report: AppMonitoringReport, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2327
+ };
2312
2328
  };
2313
2329
  };
2314
2330
  };
@@ -2377,4 +2393,4 @@ declare const serializerBase64: {
2377
2393
  deserialize<T_1>(message?: string): T_1 | undefined;
2378
2394
  };
2379
2395
 
2380
- export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringEvent, AppMonitoringEventsLogDto, AppMonitoringEventsReportDto, AppMonitoringUptimeReportDto, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateDeveloperMessagePayload, CreatePatPayload, CustomReportingEvent, DeveloperLedgerParams, DeveloperMessage, DeveloperMessageBaseDto, DeveloperMessageDto, ErrorReportingEvent, ErrorType, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, PatDto, PatScopeDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ReportingEvent, ReportingEventBase, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, UnauthorizeApiError, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
2396
+ export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringEvent, AppMonitoringEventsLogDto, AppMonitoringEventsReportDto, AppMonitoringReport, AppMonitoringUptimeReportDto, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateDeveloperMessagePayload, CreatePatPayload, CustomReportingEvent, DeveloperLedgerParams, DeveloperMessage, DeveloperMessageBaseDto, DeveloperMessageDto, ErrorReportingEvent, ErrorType, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, PatDto, PatScopeDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ReportingEvent, ReportingEventBase, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, UnauthorizeApiError, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
package/dist/index.js CHANGED
@@ -1735,19 +1735,19 @@ function initTextClientInstance(baseUrl, token) {
1735
1735
  }
1736
1736
  }
1737
1737
 
1738
- // src/apis/integrations/text/app/monitoring/api.ts
1739
- var textAppMonitoringApi = {
1740
- getUptimeReports(appId, payload, authorization) {
1738
+ // src/apis/integrations/text/app/monitoring/events/api.ts
1739
+ var textAppMonitoringEventsApi = {
1740
+ getEvent(appId, key, authorization) {
1741
1741
  return __async(this, null, function* () {
1742
1742
  try {
1743
1743
  const response = yield textClientInstance.get(
1744
- `/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1744
+ `/app_monitoring/${appId}/events/${key}`,
1745
1745
  getTextClientConfig(authorization)
1746
1746
  );
1747
1747
  return response.data;
1748
1748
  } catch (error) {
1749
1749
  if (error instanceof Error) {
1750
- throw new Error(`Couldn't load uptime reports. [${error.message}]`);
1750
+ throw new Error(`Couldn't load event. [${error.message}]`);
1751
1751
  }
1752
1752
  throw error;
1753
1753
  }
@@ -1769,49 +1769,103 @@ var textAppMonitoringApi = {
1769
1769
  }
1770
1770
  });
1771
1771
  },
1772
- getEvent(appId, key, authorization) {
1772
+ getEventReports(appId, payload, authorization) {
1773
1773
  return __async(this, null, function* () {
1774
1774
  try {
1775
1775
  const response = yield textClientInstance.get(
1776
- `/app_monitoring/${appId}/events/${key}`,
1776
+ `/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
1777
1777
  getTextClientConfig(authorization)
1778
1778
  );
1779
1779
  return response.data;
1780
1780
  } catch (error) {
1781
1781
  if (error instanceof Error) {
1782
- throw new Error(`Couldn't load events. [${error.message}]`);
1782
+ throw new Error(`Couldn't load event reports. [${error.message}]`);
1783
1783
  }
1784
1784
  throw error;
1785
1785
  }
1786
1786
  });
1787
1787
  },
1788
- getEventReports(appId, payload, authorization) {
1788
+ getEventsLog(appId, payload, authorization) {
1789
1789
  return __async(this, null, function* () {
1790
1790
  try {
1791
1791
  const response = yield textClientInstance.get(
1792
- `/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
1792
+ `/app_monitoring/${appId}/events/logs?from=${payload.from}&to=${payload.to}&type=${payload.type}&search=${payload.search}`,
1793
1793
  getTextClientConfig(authorization)
1794
1794
  );
1795
1795
  return response.data;
1796
1796
  } catch (error) {
1797
1797
  if (error instanceof Error) {
1798
- throw new Error(`Couldn't load event reports. [${error.message}]`);
1798
+ throw new Error(`Couldn't load events log. [${error.message}]`);
1799
1799
  }
1800
1800
  throw error;
1801
1801
  }
1802
1802
  });
1803
1803
  },
1804
- getEventsLog(appId, payload, authorization) {
1804
+ upsertEvent(appId, event, authorization) {
1805
+ return __async(this, null, function* () {
1806
+ try {
1807
+ const response = yield textClientInstance.post(
1808
+ `/app_monitoring/${appId}/events/${event.key}`,
1809
+ event,
1810
+ getTextClientConfig(authorization)
1811
+ );
1812
+ return response.data;
1813
+ } catch (error) {
1814
+ if (error instanceof Error) {
1815
+ throw new Error(`Couldn't upsert event. [${error.message}]`);
1816
+ }
1817
+ throw error;
1818
+ }
1819
+ });
1820
+ }
1821
+ };
1822
+
1823
+ // src/apis/integrations/text/app/monitoring/reports/api.ts
1824
+ var textAppMonitoringReportsApi = {
1825
+ getReport(appId, reportId, authorization) {
1805
1826
  return __async(this, null, function* () {
1806
1827
  try {
1807
1828
  const response = yield textClientInstance.get(
1808
- `/app_monitoring/${appId}/events/logs?from=${payload.from}&to=${payload.to}&type=${payload.type}&search=${payload.search}`,
1829
+ `/app_monitoring/${appId}/reports/${reportId}`,
1809
1830
  getTextClientConfig(authorization)
1810
1831
  );
1811
1832
  return response.data;
1812
1833
  } catch (error) {
1813
1834
  if (error instanceof Error) {
1814
- throw new Error(`Couldn't load events log. [${error.message}]`);
1835
+ throw new Error(`Couldn't load report. [${error.message}]`);
1836
+ }
1837
+ throw error;
1838
+ }
1839
+ });
1840
+ },
1841
+ getReports(appId, authorization) {
1842
+ return __async(this, null, function* () {
1843
+ try {
1844
+ const response = yield textClientInstance.get(
1845
+ `/app_monitoring/${appId}/reports`,
1846
+ getTextClientConfig(authorization)
1847
+ );
1848
+ return response.data;
1849
+ } catch (error) {
1850
+ if (error instanceof Error) {
1851
+ throw new Error(`Couldn't load reports. [${error.message}]`);
1852
+ }
1853
+ throw error;
1854
+ }
1855
+ });
1856
+ },
1857
+ upsertReport(appId, report, authorization) {
1858
+ return __async(this, null, function* () {
1859
+ try {
1860
+ const response = yield textClientInstance.post(
1861
+ `/app_monitoring/${appId}/report/${report.id}`,
1862
+ report,
1863
+ getTextClientConfig(authorization)
1864
+ );
1865
+ return response.data;
1866
+ } catch (error) {
1867
+ if (error instanceof Error) {
1868
+ throw new Error(`Couldn't upsert report. [${error.message}]`);
1815
1869
  }
1816
1870
  throw error;
1817
1871
  }
@@ -1819,6 +1873,33 @@ var textAppMonitoringApi = {
1819
1873
  }
1820
1874
  };
1821
1875
 
1876
+ // src/apis/integrations/text/app/monitoring/uptime/api.ts
1877
+ var textAppMonitoringUptimeApi = {
1878
+ getUptimeReports(appId, payload, authorization) {
1879
+ return __async(this, null, function* () {
1880
+ try {
1881
+ const response = yield textClientInstance.get(
1882
+ `/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1883
+ getTextClientConfig(authorization)
1884
+ );
1885
+ return response.data;
1886
+ } catch (error) {
1887
+ if (error instanceof Error) {
1888
+ throw new Error(`Couldn't load uptime reports. [${error.message}]`);
1889
+ }
1890
+ throw error;
1891
+ }
1892
+ });
1893
+ }
1894
+ };
1895
+
1896
+ // src/apis/integrations/text/app/monitoring/api.ts
1897
+ var textAppMonitoringApi = {
1898
+ uptime: textAppMonitoringUptimeApi,
1899
+ events: textAppMonitoringEventsApi,
1900
+ reports: textAppMonitoringReportsApi
1901
+ };
1902
+
1822
1903
  // src/apis/integrations/text/app/api.ts
1823
1904
  var textAppApi = {
1824
1905
  monitoring: textAppMonitoringApi
package/dist/index.mjs CHANGED
@@ -1647,19 +1647,19 @@ function initTextClientInstance(baseUrl, token) {
1647
1647
  }
1648
1648
  }
1649
1649
 
1650
- // src/apis/integrations/text/app/monitoring/api.ts
1651
- var textAppMonitoringApi = {
1652
- getUptimeReports(appId, payload, authorization) {
1650
+ // src/apis/integrations/text/app/monitoring/events/api.ts
1651
+ var textAppMonitoringEventsApi = {
1652
+ getEvent(appId, key, authorization) {
1653
1653
  return __async(this, null, function* () {
1654
1654
  try {
1655
1655
  const response = yield textClientInstance.get(
1656
- `/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1656
+ `/app_monitoring/${appId}/events/${key}`,
1657
1657
  getTextClientConfig(authorization)
1658
1658
  );
1659
1659
  return response.data;
1660
1660
  } catch (error) {
1661
1661
  if (error instanceof Error) {
1662
- throw new Error(`Couldn't load uptime reports. [${error.message}]`);
1662
+ throw new Error(`Couldn't load event. [${error.message}]`);
1663
1663
  }
1664
1664
  throw error;
1665
1665
  }
@@ -1681,49 +1681,103 @@ var textAppMonitoringApi = {
1681
1681
  }
1682
1682
  });
1683
1683
  },
1684
- getEvent(appId, key, authorization) {
1684
+ getEventReports(appId, payload, authorization) {
1685
1685
  return __async(this, null, function* () {
1686
1686
  try {
1687
1687
  const response = yield textClientInstance.get(
1688
- `/app_monitoring/${appId}/events/${key}`,
1688
+ `/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
1689
1689
  getTextClientConfig(authorization)
1690
1690
  );
1691
1691
  return response.data;
1692
1692
  } catch (error) {
1693
1693
  if (error instanceof Error) {
1694
- throw new Error(`Couldn't load events. [${error.message}]`);
1694
+ throw new Error(`Couldn't load event reports. [${error.message}]`);
1695
1695
  }
1696
1696
  throw error;
1697
1697
  }
1698
1698
  });
1699
1699
  },
1700
- getEventReports(appId, payload, authorization) {
1700
+ getEventsLog(appId, payload, authorization) {
1701
1701
  return __async(this, null, function* () {
1702
1702
  try {
1703
1703
  const response = yield textClientInstance.get(
1704
- `/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
1704
+ `/app_monitoring/${appId}/events/logs?from=${payload.from}&to=${payload.to}&type=${payload.type}&search=${payload.search}`,
1705
1705
  getTextClientConfig(authorization)
1706
1706
  );
1707
1707
  return response.data;
1708
1708
  } catch (error) {
1709
1709
  if (error instanceof Error) {
1710
- throw new Error(`Couldn't load event reports. [${error.message}]`);
1710
+ throw new Error(`Couldn't load events log. [${error.message}]`);
1711
1711
  }
1712
1712
  throw error;
1713
1713
  }
1714
1714
  });
1715
1715
  },
1716
- getEventsLog(appId, payload, authorization) {
1716
+ upsertEvent(appId, event, authorization) {
1717
+ return __async(this, null, function* () {
1718
+ try {
1719
+ const response = yield textClientInstance.post(
1720
+ `/app_monitoring/${appId}/events/${event.key}`,
1721
+ event,
1722
+ getTextClientConfig(authorization)
1723
+ );
1724
+ return response.data;
1725
+ } catch (error) {
1726
+ if (error instanceof Error) {
1727
+ throw new Error(`Couldn't upsert event. [${error.message}]`);
1728
+ }
1729
+ throw error;
1730
+ }
1731
+ });
1732
+ }
1733
+ };
1734
+
1735
+ // src/apis/integrations/text/app/monitoring/reports/api.ts
1736
+ var textAppMonitoringReportsApi = {
1737
+ getReport(appId, reportId, authorization) {
1717
1738
  return __async(this, null, function* () {
1718
1739
  try {
1719
1740
  const response = yield textClientInstance.get(
1720
- `/app_monitoring/${appId}/events/logs?from=${payload.from}&to=${payload.to}&type=${payload.type}&search=${payload.search}`,
1741
+ `/app_monitoring/${appId}/reports/${reportId}`,
1721
1742
  getTextClientConfig(authorization)
1722
1743
  );
1723
1744
  return response.data;
1724
1745
  } catch (error) {
1725
1746
  if (error instanceof Error) {
1726
- throw new Error(`Couldn't load events log. [${error.message}]`);
1747
+ throw new Error(`Couldn't load report. [${error.message}]`);
1748
+ }
1749
+ throw error;
1750
+ }
1751
+ });
1752
+ },
1753
+ getReports(appId, authorization) {
1754
+ return __async(this, null, function* () {
1755
+ try {
1756
+ const response = yield textClientInstance.get(
1757
+ `/app_monitoring/${appId}/reports`,
1758
+ getTextClientConfig(authorization)
1759
+ );
1760
+ return response.data;
1761
+ } catch (error) {
1762
+ if (error instanceof Error) {
1763
+ throw new Error(`Couldn't load reports. [${error.message}]`);
1764
+ }
1765
+ throw error;
1766
+ }
1767
+ });
1768
+ },
1769
+ upsertReport(appId, report, authorization) {
1770
+ return __async(this, null, function* () {
1771
+ try {
1772
+ const response = yield textClientInstance.post(
1773
+ `/app_monitoring/${appId}/report/${report.id}`,
1774
+ report,
1775
+ getTextClientConfig(authorization)
1776
+ );
1777
+ return response.data;
1778
+ } catch (error) {
1779
+ if (error instanceof Error) {
1780
+ throw new Error(`Couldn't upsert report. [${error.message}]`);
1727
1781
  }
1728
1782
  throw error;
1729
1783
  }
@@ -1731,6 +1785,33 @@ var textAppMonitoringApi = {
1731
1785
  }
1732
1786
  };
1733
1787
 
1788
+ // src/apis/integrations/text/app/monitoring/uptime/api.ts
1789
+ var textAppMonitoringUptimeApi = {
1790
+ getUptimeReports(appId, payload, authorization) {
1791
+ return __async(this, null, function* () {
1792
+ try {
1793
+ const response = yield textClientInstance.get(
1794
+ `/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1795
+ getTextClientConfig(authorization)
1796
+ );
1797
+ return response.data;
1798
+ } catch (error) {
1799
+ if (error instanceof Error) {
1800
+ throw new Error(`Couldn't load uptime reports. [${error.message}]`);
1801
+ }
1802
+ throw error;
1803
+ }
1804
+ });
1805
+ }
1806
+ };
1807
+
1808
+ // src/apis/integrations/text/app/monitoring/api.ts
1809
+ var textAppMonitoringApi = {
1810
+ uptime: textAppMonitoringUptimeApi,
1811
+ events: textAppMonitoringEventsApi,
1812
+ reports: textAppMonitoringReportsApi
1813
+ };
1814
+
1734
1815
  // src/apis/integrations/text/app/api.ts
1735
1816
  var textAppApi = {
1736
1817
  monitoring: textAppMonitoringApi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.0.35",
3
+ "version": "2.0.37",
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,9 +18,9 @@
18
18
  "tsup": "^7.1.0",
19
19
  "typescript": "^5.1.6",
20
20
  "config": "0.0.0",
21
+ "eslint-config-custom-lib": "0.0.1",
21
22
  "tsconfig": "0.0.0",
22
- "types": "0.0.1",
23
- "eslint-config-custom-lib": "0.0.1"
23
+ "types": "0.0.1"
24
24
  },
25
25
  "scripts": {
26
26
  "build": "tsup src/index.ts --format esm,cjs --dts",