@livechat/developer-studio-api 2.0.53 → 2.1.1

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,69 +388,16 @@ 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 AppMonitoringCustomReport {
392
- id: string;
393
- title: string;
394
- events: string[];
395
- }
396
-
397
- interface AppMonitoringCustomReportDataDto {
398
- [appId: string]: {
399
- [date: string]: {
400
- [eventKey: string]: number;
401
- };
402
- };
403
- }
404
-
405
- interface AppMonitoringUptimeReportDto {
406
- [appId: string]: {
407
- [date: string]: number;
391
+ interface UptimeDto {
392
+ [k: string]: {
393
+ [k: string]: number;
408
394
  };
409
395
  }
410
396
 
411
- interface AppMonitoringEventsReportDto {
412
- [appId: string]: {
413
- [date: string]: {
414
- [eventKey: string]: number;
415
- };
416
- };
417
- }
418
-
419
- interface AppMonitoringReportParams {
397
+ interface GetAppUptimeReportsPayload {
420
398
  from: string;
421
399
  to: string;
422
- resolution: "hourly" | "daily" | "monthly";
423
- }
424
-
425
- type GetAppMonitoringCustomReportDataPayload = AppMonitoringReportParams;
426
-
427
- type GetAppMonitoringUptimeReportPayload = AppMonitoringReportParams;
428
-
429
- type GetAppMonitoringEventsReportPayload = AppMonitoringReportParams;
430
-
431
- interface AppMonitoringEvent {
432
- key: string;
433
- name: string;
434
- }
435
-
436
- interface AppMonitoringEventsLogItem {
437
- sent_at: string;
438
- organization_id: string;
439
- type: string;
440
- payload: string;
441
- }
442
- interface AppMonitoringEventsLog {
443
- [appId: string]: AppMonitoringEventsLogItem[];
444
- }
445
-
446
- interface GetAppMonitoringEventsLogPayload {
447
- from?: string;
448
- type?: string[];
449
- search?: string;
450
- }
451
- interface GetAppMonitoringEventsLogResponse {
452
- events: AppMonitoringEventsLog;
453
- next_page_from?: string;
400
+ resolution: 'hourly' | 'daily' | 'monthly';
454
401
  }
455
402
 
456
403
  interface TextClientInstanceAuthorization {
@@ -2334,26 +2281,8 @@ declare const api: {
2334
2281
  deleteProject(projectFullName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<any>;
2335
2282
  };
2336
2283
  text: {
2337
- app: {
2338
- monitoring: {
2339
- events: {
2340
- getEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
2341
- getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
2342
- upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2343
- deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2344
- getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<GetAppMonitoringEventsLogResponse>;
2345
- };
2346
- reports: {
2347
- getUptimeReports(appId: string, payload: AppMonitoringReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2348
- getEventReports(appId: string, payload: AppMonitoringReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2349
- getCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport>;
2350
- getCustomReportData(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReportDataDto>;
2351
- getCustomReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport[]>;
2352
- createCustomReport(appId: string, customReport: Omit<AppMonitoringCustomReport, "id">, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2353
- updateCustomReport(appId: string, customReport: AppMonitoringCustomReport, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2354
- deleteCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2355
- };
2356
- };
2284
+ uptime: {
2285
+ getAppUptimeReports(appId: string, payload: GetAppUptimeReportsPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<UptimeDto>;
2357
2286
  };
2358
2287
  };
2359
2288
  };
@@ -2421,4 +2350,4 @@ declare const serializerBase64: {
2421
2350
  deserialize<T_1>(message?: string): T_1 | undefined;
2422
2351
  };
2423
2352
 
2424
- export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, 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, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, 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 };
2353
+ export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, 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, GetAppUptimeReportsPayload, 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, UptimeDto, 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,69 +388,16 @@ 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 AppMonitoringCustomReport {
392
- id: string;
393
- title: string;
394
- events: string[];
395
- }
396
-
397
- interface AppMonitoringCustomReportDataDto {
398
- [appId: string]: {
399
- [date: string]: {
400
- [eventKey: string]: number;
401
- };
402
- };
403
- }
404
-
405
- interface AppMonitoringUptimeReportDto {
406
- [appId: string]: {
407
- [date: string]: number;
391
+ interface UptimeDto {
392
+ [k: string]: {
393
+ [k: string]: number;
408
394
  };
409
395
  }
410
396
 
411
- interface AppMonitoringEventsReportDto {
412
- [appId: string]: {
413
- [date: string]: {
414
- [eventKey: string]: number;
415
- };
416
- };
417
- }
418
-
419
- interface AppMonitoringReportParams {
397
+ interface GetAppUptimeReportsPayload {
420
398
  from: string;
421
399
  to: string;
422
- resolution: "hourly" | "daily" | "monthly";
423
- }
424
-
425
- type GetAppMonitoringCustomReportDataPayload = AppMonitoringReportParams;
426
-
427
- type GetAppMonitoringUptimeReportPayload = AppMonitoringReportParams;
428
-
429
- type GetAppMonitoringEventsReportPayload = AppMonitoringReportParams;
430
-
431
- interface AppMonitoringEvent {
432
- key: string;
433
- name: string;
434
- }
435
-
436
- interface AppMonitoringEventsLogItem {
437
- sent_at: string;
438
- organization_id: string;
439
- type: string;
440
- payload: string;
441
- }
442
- interface AppMonitoringEventsLog {
443
- [appId: string]: AppMonitoringEventsLogItem[];
444
- }
445
-
446
- interface GetAppMonitoringEventsLogPayload {
447
- from?: string;
448
- type?: string[];
449
- search?: string;
450
- }
451
- interface GetAppMonitoringEventsLogResponse {
452
- events: AppMonitoringEventsLog;
453
- next_page_from?: string;
400
+ resolution: 'hourly' | 'daily' | 'monthly';
454
401
  }
455
402
 
456
403
  interface TextClientInstanceAuthorization {
@@ -2334,26 +2281,8 @@ declare const api: {
2334
2281
  deleteProject(projectFullName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<any>;
2335
2282
  };
2336
2283
  text: {
2337
- app: {
2338
- monitoring: {
2339
- events: {
2340
- getEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
2341
- getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
2342
- upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2343
- deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2344
- getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<GetAppMonitoringEventsLogResponse>;
2345
- };
2346
- reports: {
2347
- getUptimeReports(appId: string, payload: AppMonitoringReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2348
- getEventReports(appId: string, payload: AppMonitoringReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2349
- getCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport>;
2350
- getCustomReportData(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReportDataDto>;
2351
- getCustomReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport[]>;
2352
- createCustomReport(appId: string, customReport: Omit<AppMonitoringCustomReport, "id">, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2353
- updateCustomReport(appId: string, customReport: AppMonitoringCustomReport, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2354
- deleteCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2355
- };
2356
- };
2284
+ uptime: {
2285
+ getAppUptimeReports(appId: string, payload: GetAppUptimeReportsPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<UptimeDto>;
2357
2286
  };
2358
2287
  };
2359
2288
  };
@@ -2421,4 +2350,4 @@ declare const serializerBase64: {
2421
2350
  deserialize<T_1>(message?: string): T_1 | undefined;
2422
2351
  };
2423
2352
 
2424
- export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, 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, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, 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 };
2353
+ export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, 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, GetAppUptimeReportsPayload, 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, UptimeDto, 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,112 +1735,13 @@ function initTextClientInstance(baseUrl, token) {
1735
1735
  }
1736
1736
  }
1737
1737
 
1738
- // src/apis/integrations/text/app/monitoring/events/api.ts
1739
- var textAppMonitoringEventsApi = {
1740
- getEvent(appId, eventKey, authorization) {
1738
+ // src/apis/integrations/text/uptime/api.ts
1739
+ var textUptimeApi = {
1740
+ getAppUptimeReports(appId, payload, authorization) {
1741
1741
  return __async(this, null, function* () {
1742
1742
  try {
1743
1743
  const response = yield textClientInstance.get(
1744
- `/app_monitoring/${appId}/events/${eventKey}`,
1745
- getTextClientConfig(authorization)
1746
- );
1747
- return response.data;
1748
- } catch (error) {
1749
- if (error instanceof Error) {
1750
- throw new Error(`Couldn't load event. [${error.message}]`);
1751
- }
1752
- throw error;
1753
- }
1754
- });
1755
- },
1756
- getEvents(appId, authorization) {
1757
- return __async(this, null, function* () {
1758
- try {
1759
- const response = yield textClientInstance.get(
1760
- `/app_monitoring/${appId}/events`,
1761
- getTextClientConfig(authorization)
1762
- );
1763
- return response.data;
1764
- } catch (error) {
1765
- if (error instanceof Error) {
1766
- throw new Error(`Couldn't load events. [${error.message}]`);
1767
- }
1768
- throw error;
1769
- }
1770
- });
1771
- },
1772
- upsertEvent(appId, event, authorization) {
1773
- return __async(this, null, function* () {
1774
- try {
1775
- const response = yield textClientInstance.post(
1776
- `/app_monitoring/${appId}/events/${event.key}`,
1777
- event,
1778
- getTextClientConfig(authorization)
1779
- );
1780
- return response.data;
1781
- } catch (error) {
1782
- if (error instanceof Error) {
1783
- throw new Error(`Couldn't upsert event. [${error.message}]`);
1784
- }
1785
- throw error;
1786
- }
1787
- });
1788
- },
1789
- deleteEvent(appId, eventKey, authorization) {
1790
- return __async(this, null, function* () {
1791
- try {
1792
- const response = yield textClientInstance.delete(
1793
- `/app_monitoring/${appId}/events/${eventKey}`,
1794
- getTextClientConfig(authorization)
1795
- );
1796
- return response.data;
1797
- } catch (error) {
1798
- if (error instanceof Error) {
1799
- throw new Error(`Couldn't delete event. [${error.message}]`);
1800
- }
1801
- throw error;
1802
- }
1803
- });
1804
- },
1805
- getEventsLog(appId, payload, authorization) {
1806
- return __async(this, null, function* () {
1807
- var _a, _b;
1808
- try {
1809
- const searchParams = new URLSearchParams({
1810
- from: (_a = payload.from) != null ? _a : "",
1811
- search: (_b = payload.search) != null ? _b : ""
1812
- });
1813
- if (payload.type) {
1814
- payload.type.forEach((type) => searchParams.append("type[]", type));
1815
- }
1816
- const response = yield textClientInstance.get(
1817
- `/app_monitoring/${appId}/events?${searchParams.toString()}`,
1818
- // v1
1819
- // `/app_monitoring/${appId}/events/logs?${searchParams.toString()}`, // v2
1820
- getTextClientConfig(authorization)
1821
- );
1822
- return response.data;
1823
- } catch (error) {
1824
- if (error instanceof Error) {
1825
- throw new Error(`Couldn't load events log. [${error.message}]`);
1826
- }
1827
- throw error;
1828
- }
1829
- });
1830
- }
1831
- };
1832
-
1833
- // src/apis/integrations/text/app/monitoring/reports/api.ts
1834
- var textAppMonitoringReportsApi = {
1835
- getUptimeReports(appId, payload, authorization) {
1836
- return __async(this, null, function* () {
1837
- try {
1838
- const response = yield textClientInstance.get(
1839
- `/app_monitoring/${appId}/reports/uptime?${new URLSearchParams({
1840
- from: payload.from,
1841
- to: payload.to,
1842
- resolution: payload.resolution
1843
- }).toString()}`,
1744
+ `/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1844
1745
  getTextClientConfig(authorization)
1845
1746
  );
1846
1747
  return response.data;
@@ -1851,141 +1752,12 @@ var textAppMonitoringReportsApi = {
1851
1752
  throw error;
1852
1753
  }
1853
1754
  });
1854
- },
1855
- getEventReports(appId, payload, authorization) {
1856
- return __async(this, null, function* () {
1857
- try {
1858
- const response = yield textClientInstance.get(
1859
- `/app_monitoring/${appId}/reports/events?${new URLSearchParams({
1860
- from: payload.from,
1861
- to: payload.to,
1862
- resolution: payload.resolution
1863
- }).toString()}`,
1864
- getTextClientConfig(authorization)
1865
- );
1866
- return response.data;
1867
- } catch (error) {
1868
- if (error instanceof Error) {
1869
- throw new Error(`Couldn't load event reports. [${error.message}]`);
1870
- }
1871
- throw error;
1872
- }
1873
- });
1874
- },
1875
- getCustomReport(appId, customReportId, authorization) {
1876
- return __async(this, null, function* () {
1877
- try {
1878
- const response = yield textClientInstance.get(
1879
- `/app_monitoring/${appId}/reports/custom/${customReportId}`,
1880
- getTextClientConfig(authorization)
1881
- );
1882
- return response.data;
1883
- } catch (error) {
1884
- if (error instanceof Error) {
1885
- throw new Error(`Couldn't load custom report. [${error.message}]`);
1886
- }
1887
- throw error;
1888
- }
1889
- });
1890
- },
1891
- getCustomReportData(appId, customReportId, authorization) {
1892
- return __async(this, null, function* () {
1893
- try {
1894
- const response = yield textClientInstance.get(
1895
- `/app_monitoring/${appId}/reports/custom/${customReportId}/data`,
1896
- getTextClientConfig(authorization)
1897
- );
1898
- return response.data;
1899
- } catch (error) {
1900
- if (error instanceof Error) {
1901
- throw new Error(`Couldn't load custom report data. [${error.message}]`);
1902
- }
1903
- throw error;
1904
- }
1905
- });
1906
- },
1907
- getCustomReports(appId, authorization) {
1908
- return __async(this, null, function* () {
1909
- try {
1910
- const response = yield textClientInstance.get(
1911
- `/app_monitoring/${appId}/reports/custom`,
1912
- getTextClientConfig(authorization)
1913
- );
1914
- return response.data;
1915
- } catch (error) {
1916
- if (error instanceof Error) {
1917
- throw new Error(`Couldn't load custom reports. [${error.message}]`);
1918
- }
1919
- throw error;
1920
- }
1921
- });
1922
- },
1923
- createCustomReport(appId, customReport, authorization) {
1924
- return __async(this, null, function* () {
1925
- try {
1926
- const response = yield textClientInstance.post(
1927
- `/app_monitoring/${appId}/reports/custom`,
1928
- customReport,
1929
- getTextClientConfig(authorization)
1930
- );
1931
- return response.data;
1932
- } catch (error) {
1933
- if (error instanceof Error) {
1934
- throw new Error(`Couldn't create custom report. [${error.message}]`);
1935
- }
1936
- throw error;
1937
- }
1938
- });
1939
- },
1940
- updateCustomReport(appId, customReport, authorization) {
1941
- return __async(this, null, function* () {
1942
- try {
1943
- const response = yield textClientInstance.post(
1944
- `/app_monitoring/${appId}/reports/custom/${customReport.id}`,
1945
- customReport,
1946
- getTextClientConfig(authorization)
1947
- );
1948
- return response.data;
1949
- } catch (error) {
1950
- if (error instanceof Error) {
1951
- throw new Error(`Couldn't update custom report. [${error.message}]`);
1952
- }
1953
- throw error;
1954
- }
1955
- });
1956
- },
1957
- deleteCustomReport(appId, customReportId, authorization) {
1958
- return __async(this, null, function* () {
1959
- try {
1960
- const response = yield textClientInstance.delete(
1961
- `/app_monitoring/${appId}/reports/custom/${customReportId}`,
1962
- getTextClientConfig(authorization)
1963
- );
1964
- return response.data;
1965
- } catch (error) {
1966
- if (error instanceof Error) {
1967
- throw new Error(`Couldn't delete custom report. [${error.message}]`);
1968
- }
1969
- throw error;
1970
- }
1971
- });
1972
1755
  }
1973
1756
  };
1974
1757
 
1975
- // src/apis/integrations/text/app/monitoring/api.ts
1976
- var textAppMonitoringApi = {
1977
- events: textAppMonitoringEventsApi,
1978
- reports: textAppMonitoringReportsApi
1979
- };
1980
-
1981
- // src/apis/integrations/text/app/api.ts
1982
- var textAppApi = {
1983
- monitoring: textAppMonitoringApi
1984
- };
1985
-
1986
1758
  // src/apis/integrations/text/api.ts
1987
1759
  var textApi = {
1988
- app: textAppApi
1760
+ uptime: textUptimeApi
1989
1761
  };
1990
1762
 
1991
1763
  // src/apis/integrations/vercel/api.ts
package/dist/index.mjs CHANGED
@@ -1647,112 +1647,13 @@ function initTextClientInstance(baseUrl, token) {
1647
1647
  }
1648
1648
  }
1649
1649
 
1650
- // src/apis/integrations/text/app/monitoring/events/api.ts
1651
- var textAppMonitoringEventsApi = {
1652
- getEvent(appId, eventKey, authorization) {
1650
+ // src/apis/integrations/text/uptime/api.ts
1651
+ var textUptimeApi = {
1652
+ getAppUptimeReports(appId, payload, authorization) {
1653
1653
  return __async(this, null, function* () {
1654
1654
  try {
1655
1655
  const response = yield textClientInstance.get(
1656
- `/app_monitoring/${appId}/events/${eventKey}`,
1657
- getTextClientConfig(authorization)
1658
- );
1659
- return response.data;
1660
- } catch (error) {
1661
- if (error instanceof Error) {
1662
- throw new Error(`Couldn't load event. [${error.message}]`);
1663
- }
1664
- throw error;
1665
- }
1666
- });
1667
- },
1668
- getEvents(appId, authorization) {
1669
- return __async(this, null, function* () {
1670
- try {
1671
- const response = yield textClientInstance.get(
1672
- `/app_monitoring/${appId}/events`,
1673
- getTextClientConfig(authorization)
1674
- );
1675
- return response.data;
1676
- } catch (error) {
1677
- if (error instanceof Error) {
1678
- throw new Error(`Couldn't load events. [${error.message}]`);
1679
- }
1680
- throw error;
1681
- }
1682
- });
1683
- },
1684
- upsertEvent(appId, event, authorization) {
1685
- return __async(this, null, function* () {
1686
- try {
1687
- const response = yield textClientInstance.post(
1688
- `/app_monitoring/${appId}/events/${event.key}`,
1689
- event,
1690
- getTextClientConfig(authorization)
1691
- );
1692
- return response.data;
1693
- } catch (error) {
1694
- if (error instanceof Error) {
1695
- throw new Error(`Couldn't upsert event. [${error.message}]`);
1696
- }
1697
- throw error;
1698
- }
1699
- });
1700
- },
1701
- deleteEvent(appId, eventKey, authorization) {
1702
- return __async(this, null, function* () {
1703
- try {
1704
- const response = yield textClientInstance.delete(
1705
- `/app_monitoring/${appId}/events/${eventKey}`,
1706
- getTextClientConfig(authorization)
1707
- );
1708
- return response.data;
1709
- } catch (error) {
1710
- if (error instanceof Error) {
1711
- throw new Error(`Couldn't delete event. [${error.message}]`);
1712
- }
1713
- throw error;
1714
- }
1715
- });
1716
- },
1717
- getEventsLog(appId, payload, authorization) {
1718
- return __async(this, null, function* () {
1719
- var _a, _b;
1720
- try {
1721
- const searchParams = new URLSearchParams({
1722
- from: (_a = payload.from) != null ? _a : "",
1723
- search: (_b = payload.search) != null ? _b : ""
1724
- });
1725
- if (payload.type) {
1726
- payload.type.forEach((type) => searchParams.append("type[]", type));
1727
- }
1728
- const response = yield textClientInstance.get(
1729
- `/app_monitoring/${appId}/events?${searchParams.toString()}`,
1730
- // v1
1731
- // `/app_monitoring/${appId}/events/logs?${searchParams.toString()}`, // v2
1732
- getTextClientConfig(authorization)
1733
- );
1734
- return response.data;
1735
- } catch (error) {
1736
- if (error instanceof Error) {
1737
- throw new Error(`Couldn't load events log. [${error.message}]`);
1738
- }
1739
- throw error;
1740
- }
1741
- });
1742
- }
1743
- };
1744
-
1745
- // src/apis/integrations/text/app/monitoring/reports/api.ts
1746
- var textAppMonitoringReportsApi = {
1747
- getUptimeReports(appId, payload, authorization) {
1748
- return __async(this, null, function* () {
1749
- try {
1750
- const response = yield textClientInstance.get(
1751
- `/app_monitoring/${appId}/reports/uptime?${new URLSearchParams({
1752
- from: payload.from,
1753
- to: payload.to,
1754
- resolution: payload.resolution
1755
- }).toString()}`,
1656
+ `/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1756
1657
  getTextClientConfig(authorization)
1757
1658
  );
1758
1659
  return response.data;
@@ -1763,141 +1664,12 @@ var textAppMonitoringReportsApi = {
1763
1664
  throw error;
1764
1665
  }
1765
1666
  });
1766
- },
1767
- getEventReports(appId, payload, authorization) {
1768
- return __async(this, null, function* () {
1769
- try {
1770
- const response = yield textClientInstance.get(
1771
- `/app_monitoring/${appId}/reports/events?${new URLSearchParams({
1772
- from: payload.from,
1773
- to: payload.to,
1774
- resolution: payload.resolution
1775
- }).toString()}`,
1776
- getTextClientConfig(authorization)
1777
- );
1778
- return response.data;
1779
- } catch (error) {
1780
- if (error instanceof Error) {
1781
- throw new Error(`Couldn't load event reports. [${error.message}]`);
1782
- }
1783
- throw error;
1784
- }
1785
- });
1786
- },
1787
- getCustomReport(appId, customReportId, authorization) {
1788
- return __async(this, null, function* () {
1789
- try {
1790
- const response = yield textClientInstance.get(
1791
- `/app_monitoring/${appId}/reports/custom/${customReportId}`,
1792
- getTextClientConfig(authorization)
1793
- );
1794
- return response.data;
1795
- } catch (error) {
1796
- if (error instanceof Error) {
1797
- throw new Error(`Couldn't load custom report. [${error.message}]`);
1798
- }
1799
- throw error;
1800
- }
1801
- });
1802
- },
1803
- getCustomReportData(appId, customReportId, authorization) {
1804
- return __async(this, null, function* () {
1805
- try {
1806
- const response = yield textClientInstance.get(
1807
- `/app_monitoring/${appId}/reports/custom/${customReportId}/data`,
1808
- getTextClientConfig(authorization)
1809
- );
1810
- return response.data;
1811
- } catch (error) {
1812
- if (error instanceof Error) {
1813
- throw new Error(`Couldn't load custom report data. [${error.message}]`);
1814
- }
1815
- throw error;
1816
- }
1817
- });
1818
- },
1819
- getCustomReports(appId, authorization) {
1820
- return __async(this, null, function* () {
1821
- try {
1822
- const response = yield textClientInstance.get(
1823
- `/app_monitoring/${appId}/reports/custom`,
1824
- getTextClientConfig(authorization)
1825
- );
1826
- return response.data;
1827
- } catch (error) {
1828
- if (error instanceof Error) {
1829
- throw new Error(`Couldn't load custom reports. [${error.message}]`);
1830
- }
1831
- throw error;
1832
- }
1833
- });
1834
- },
1835
- createCustomReport(appId, customReport, authorization) {
1836
- return __async(this, null, function* () {
1837
- try {
1838
- const response = yield textClientInstance.post(
1839
- `/app_monitoring/${appId}/reports/custom`,
1840
- customReport,
1841
- getTextClientConfig(authorization)
1842
- );
1843
- return response.data;
1844
- } catch (error) {
1845
- if (error instanceof Error) {
1846
- throw new Error(`Couldn't create custom report. [${error.message}]`);
1847
- }
1848
- throw error;
1849
- }
1850
- });
1851
- },
1852
- updateCustomReport(appId, customReport, authorization) {
1853
- return __async(this, null, function* () {
1854
- try {
1855
- const response = yield textClientInstance.post(
1856
- `/app_monitoring/${appId}/reports/custom/${customReport.id}`,
1857
- customReport,
1858
- getTextClientConfig(authorization)
1859
- );
1860
- return response.data;
1861
- } catch (error) {
1862
- if (error instanceof Error) {
1863
- throw new Error(`Couldn't update custom report. [${error.message}]`);
1864
- }
1865
- throw error;
1866
- }
1867
- });
1868
- },
1869
- deleteCustomReport(appId, customReportId, authorization) {
1870
- return __async(this, null, function* () {
1871
- try {
1872
- const response = yield textClientInstance.delete(
1873
- `/app_monitoring/${appId}/reports/custom/${customReportId}`,
1874
- getTextClientConfig(authorization)
1875
- );
1876
- return response.data;
1877
- } catch (error) {
1878
- if (error instanceof Error) {
1879
- throw new Error(`Couldn't delete custom report. [${error.message}]`);
1880
- }
1881
- throw error;
1882
- }
1883
- });
1884
1667
  }
1885
1668
  };
1886
1669
 
1887
- // src/apis/integrations/text/app/monitoring/api.ts
1888
- var textAppMonitoringApi = {
1889
- events: textAppMonitoringEventsApi,
1890
- reports: textAppMonitoringReportsApi
1891
- };
1892
-
1893
- // src/apis/integrations/text/app/api.ts
1894
- var textAppApi = {
1895
- monitoring: textAppMonitoringApi
1896
- };
1897
-
1898
1670
  // src/apis/integrations/text/api.ts
1899
1671
  var textApi = {
1900
- app: textAppApi
1672
+ uptime: textUptimeApi
1901
1673
  };
1902
1674
 
1903
1675
  // src/apis/integrations/vercel/api.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.0.53",
3
+ "version": "2.1.1",
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
- "tsconfig": "0.0.0",
21
+ "types": "0.0.1",
22
22
  "eslint-config-custom-lib": "0.0.1",
23
- "types": "0.0.1"
23
+ "tsconfig": "0.0.0"
24
24
  },
25
25
  "scripts": {
26
26
  "build": "tsup src/index.ts --format esm,cjs --dts",