@livechat/developer-studio-api 2.3.42 → 2.3.44

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
@@ -1,10 +1,6 @@
1
1
  import * as axios from 'axios';
2
2
  import { AxiosRequestConfig } from 'axios';
3
3
 
4
- interface NeonClientInstanceAuthorization {
5
- token?: string;
6
- }
7
-
8
4
  interface AppEventDto {
9
5
  name: string;
10
6
  aggregateName: string;
@@ -625,6 +621,21 @@ interface NeonUser {
625
621
  default_organization_id: string;
626
622
  }
627
623
 
624
+ interface NeonClientInstanceAuthorization {
625
+ token?: string;
626
+ }
627
+ interface NeonClientInstanceOptions {
628
+ token?: string;
629
+ ensureAuthorizationToken?: boolean;
630
+ }
631
+ declare const neonClientInstance: axios.AxiosInstance;
632
+ declare function getNeonClientAuthorization(req: {
633
+ headers: Record<string, string | string[] | undefined>;
634
+ }): NeonClientInstanceAuthorization;
635
+ declare function getNeonClientConfig(options?: NeonClientInstanceOptions): AxiosRequestConfig;
636
+ declare function initNeonClientInstance(token?: string): void;
637
+ declare function updateNeonClientInstance(token?: string): void;
638
+
628
639
  interface AccountDto {
629
640
  account_id: string;
630
641
  avatar: string;
@@ -1318,6 +1329,7 @@ declare function initPlatformAdapterClientInstance(baseUrl?: string, tokens?: {
1318
1329
  netlify?: string;
1319
1330
  vercel?: string;
1320
1331
  planetscale?: string;
1332
+ neon?: string;
1321
1333
  sentry?: string;
1322
1334
  }): void;
1323
1335
  declare function updatePlatformAdapterClientInstance(tokens?: {
@@ -1331,6 +1343,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
1331
1343
  netlify?: string;
1332
1344
  vercel?: string;
1333
1345
  planetscale?: string;
1346
+ neon?: string;
1334
1347
  sentry?: string;
1335
1348
  }): void;
1336
1349
 
@@ -1667,7 +1680,7 @@ type AppRepositoryTarget = "node" | "nextjs";
1667
1680
  type AppDeploymentProvider = "internal" | "netlify" | "vercel" | "heroku" | "custom";
1668
1681
  type AppDeploymentMode = "local" | "provider";
1669
1682
  type AppLoggerProvider = "sentry" | "amplitude";
1670
- type AppStorageProvider = "vercel" | "planetscale";
1683
+ type AppStorageProvider = "vercel" | "planetscale" | "neon";
1671
1684
  interface AppGitHubRepositoryConfig {
1672
1685
  name: string;
1673
1686
  branch: string;
@@ -2572,6 +2585,7 @@ declare const api: {
2572
2585
  project: {
2573
2586
  branch: {
2574
2587
  getBranch(projectId: string, branchId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchDto>;
2588
+ getBranches(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchDto[]>;
2575
2589
  };
2576
2590
  createProject(projectName: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectWithConnectionUriDto>;
2577
2591
  getProject(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto>;
@@ -2694,6 +2708,9 @@ declare function initApi(config: {
2694
2708
  planetscale?: {
2695
2709
  token: string;
2696
2710
  };
2711
+ neon?: {
2712
+ token: string;
2713
+ };
2697
2714
  }): void;
2698
2715
 
2699
2716
  declare const API_NOTIFICATIONS: {
@@ -2725,4 +2742,4 @@ declare const serializerBase64: {
2725
2742
  deserialize<T_1>(message?: string): T_1 | undefined;
2726
2743
  };
2727
2744
 
2728
- export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, 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, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateAuthorizationPayload, CreateAuthorizationResponse, CreateClientPayload, CreateCreatorAppPayload, CreateCreatorAppResponse, CreateDeploymentAccessibilityPayload, CreateDeploymentAccessibilityResponse, CreateDeploymentPayload, CreateDeploymentResponse, CreateMonetizationPayload, CreatePropertiesPayload, CreateRepositoryPayload, CreateRepositoryResponse, CreateSeedPayload, CreateSeedResponse, CreateWidgetPayload, DeveloperLedgerParams, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, 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, MyAccountDto, NeonProjectBranchDto, NeonProjectDatabaseDto, NeonProjectDto, NeonProjectWithConnectionUriDto, NeonUser, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnauthorizeApiErrorSource, 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, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
2745
+ export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, 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, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateAuthorizationPayload, CreateAuthorizationResponse, CreateClientPayload, CreateCreatorAppPayload, CreateCreatorAppResponse, CreateDeploymentAccessibilityPayload, CreateDeploymentAccessibilityResponse, CreateDeploymentPayload, CreateDeploymentResponse, CreateMonetizationPayload, CreatePropertiesPayload, CreateRepositoryPayload, CreateRepositoryResponse, CreateSeedPayload, CreateSeedResponse, CreateWidgetPayload, DeveloperLedgerParams, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, 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, MyAccountDto, NeonClientInstanceAuthorization, NeonClientInstanceOptions, NeonProjectBranchDto, NeonProjectDatabaseDto, NeonProjectDto, NeonProjectWithConnectionUriDto, NeonUser, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnauthorizeApiErrorSource, 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, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNeonClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNeonClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,6 @@
1
1
  import * as axios from 'axios';
2
2
  import { AxiosRequestConfig } from 'axios';
3
3
 
4
- interface NeonClientInstanceAuthorization {
5
- token?: string;
6
- }
7
-
8
4
  interface AppEventDto {
9
5
  name: string;
10
6
  aggregateName: string;
@@ -625,6 +621,21 @@ interface NeonUser {
625
621
  default_organization_id: string;
626
622
  }
627
623
 
624
+ interface NeonClientInstanceAuthorization {
625
+ token?: string;
626
+ }
627
+ interface NeonClientInstanceOptions {
628
+ token?: string;
629
+ ensureAuthorizationToken?: boolean;
630
+ }
631
+ declare const neonClientInstance: axios.AxiosInstance;
632
+ declare function getNeonClientAuthorization(req: {
633
+ headers: Record<string, string | string[] | undefined>;
634
+ }): NeonClientInstanceAuthorization;
635
+ declare function getNeonClientConfig(options?: NeonClientInstanceOptions): AxiosRequestConfig;
636
+ declare function initNeonClientInstance(token?: string): void;
637
+ declare function updateNeonClientInstance(token?: string): void;
638
+
628
639
  interface AccountDto {
629
640
  account_id: string;
630
641
  avatar: string;
@@ -1318,6 +1329,7 @@ declare function initPlatformAdapterClientInstance(baseUrl?: string, tokens?: {
1318
1329
  netlify?: string;
1319
1330
  vercel?: string;
1320
1331
  planetscale?: string;
1332
+ neon?: string;
1321
1333
  sentry?: string;
1322
1334
  }): void;
1323
1335
  declare function updatePlatformAdapterClientInstance(tokens?: {
@@ -1331,6 +1343,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
1331
1343
  netlify?: string;
1332
1344
  vercel?: string;
1333
1345
  planetscale?: string;
1346
+ neon?: string;
1334
1347
  sentry?: string;
1335
1348
  }): void;
1336
1349
 
@@ -1667,7 +1680,7 @@ type AppRepositoryTarget = "node" | "nextjs";
1667
1680
  type AppDeploymentProvider = "internal" | "netlify" | "vercel" | "heroku" | "custom";
1668
1681
  type AppDeploymentMode = "local" | "provider";
1669
1682
  type AppLoggerProvider = "sentry" | "amplitude";
1670
- type AppStorageProvider = "vercel" | "planetscale";
1683
+ type AppStorageProvider = "vercel" | "planetscale" | "neon";
1671
1684
  interface AppGitHubRepositoryConfig {
1672
1685
  name: string;
1673
1686
  branch: string;
@@ -2572,6 +2585,7 @@ declare const api: {
2572
2585
  project: {
2573
2586
  branch: {
2574
2587
  getBranch(projectId: string, branchId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchDto>;
2588
+ getBranches(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchDto[]>;
2575
2589
  };
2576
2590
  createProject(projectName: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectWithConnectionUriDto>;
2577
2591
  getProject(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto>;
@@ -2694,6 +2708,9 @@ declare function initApi(config: {
2694
2708
  planetscale?: {
2695
2709
  token: string;
2696
2710
  };
2711
+ neon?: {
2712
+ token: string;
2713
+ };
2697
2714
  }): void;
2698
2715
 
2699
2716
  declare const API_NOTIFICATIONS: {
@@ -2725,4 +2742,4 @@ declare const serializerBase64: {
2725
2742
  deserialize<T_1>(message?: string): T_1 | undefined;
2726
2743
  };
2727
2744
 
2728
- export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, 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, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateAuthorizationPayload, CreateAuthorizationResponse, CreateClientPayload, CreateCreatorAppPayload, CreateCreatorAppResponse, CreateDeploymentAccessibilityPayload, CreateDeploymentAccessibilityResponse, CreateDeploymentPayload, CreateDeploymentResponse, CreateMonetizationPayload, CreatePropertiesPayload, CreateRepositoryPayload, CreateRepositoryResponse, CreateSeedPayload, CreateSeedResponse, CreateWidgetPayload, DeveloperLedgerParams, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, 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, MyAccountDto, NeonProjectBranchDto, NeonProjectDatabaseDto, NeonProjectDto, NeonProjectWithConnectionUriDto, NeonUser, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnauthorizeApiErrorSource, 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, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
2745
+ export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, 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, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateAuthorizationPayload, CreateAuthorizationResponse, CreateClientPayload, CreateCreatorAppPayload, CreateCreatorAppResponse, CreateDeploymentAccessibilityPayload, CreateDeploymentAccessibilityResponse, CreateDeploymentPayload, CreateDeploymentResponse, CreateMonetizationPayload, CreatePropertiesPayload, CreateRepositoryPayload, CreateRepositoryResponse, CreateSeedPayload, CreateSeedResponse, CreateWidgetPayload, DeveloperLedgerParams, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, 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, MyAccountDto, NeonClientInstanceAuthorization, NeonClientInstanceOptions, NeonProjectBranchDto, NeonProjectDatabaseDto, NeonProjectDto, NeonProjectWithConnectionUriDto, NeonUser, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnauthorizeApiErrorSource, 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, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNeonClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNeonClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
package/dist/index.js CHANGED
@@ -76,6 +76,8 @@ __export(src_exports, {
76
76
  getGithubClientRequestConfig: () => getGithubClientRequestConfig,
77
77
  getLiveChatClientAuthorization: () => getLiveChatClientAuthorization,
78
78
  getLiveChatClientConfig: () => getLiveChatClientConfig,
79
+ getNeonClientAuthorization: () => getNeonClientAuthorization,
80
+ getNeonClientConfig: () => getNeonClientConfig,
79
81
  getNetlifyClientAuthorization: () => getNetlifyClientAuthorization,
80
82
  getNetlifyClientConfig: () => getNetlifyClientConfig,
81
83
  getPlanetScaleClientAuthorization: () => getPlanetScaleClientAuthorization,
@@ -100,6 +102,7 @@ __export(src_exports, {
100
102
  initApi: () => initApi,
101
103
  initGithubClientInstance: () => initGithubClientInstance,
102
104
  initLiveChatClientInstance: () => initLiveChatClientInstance,
105
+ initNeonClientInstance: () => initNeonClientInstance,
103
106
  initNetlifyClientInstance: () => initNetlifyClientInstance,
104
107
  initPlanetScaleClientInstance: () => initPlanetScaleClientInstance,
105
108
  initPlatformAccountsClientInstance: () => initPlatformAccountsClientInstance,
@@ -110,6 +113,7 @@ __export(src_exports, {
110
113
  initTextClientInstance: () => initTextClientInstance,
111
114
  initVercelClientInstance: () => initVercelClientInstance,
112
115
  livechatClientInstance: () => livechatClientInstance,
116
+ neonClientInstance: () => neonClientInstance,
113
117
  netlifyClientInstance: () => netlifyClientInstance,
114
118
  planetScaleClientInstance: () => planetScaleClientInstance,
115
119
  platformAccountsClientInstance: () => platformAccountsClientInstance,
@@ -120,6 +124,7 @@ __export(src_exports, {
120
124
  serializerBase64: () => serializerBase64,
121
125
  textClientInstance: () => textClientInstance,
122
126
  updateGithubClientInstance: () => updateGithubClientInstance,
127
+ updateNeonClientInstance: () => updateNeonClientInstance,
123
128
  updateNetlifyClientInstance: () => updateNetlifyClientInstance,
124
129
  updatePlanetScaleClientInstance: () => updatePlanetScaleClientInstance,
125
130
  updatePlatformAdapterClientInstance: () => updatePlatformAdapterClientInstance,
@@ -2478,6 +2483,11 @@ neonClientInstance.interceptors.response.use(
2478
2483
  throw error;
2479
2484
  }
2480
2485
  );
2486
+ function getNeonClientAuthorization(req) {
2487
+ return {
2488
+ token: req.headers["neon-token"]
2489
+ };
2490
+ }
2481
2491
  function getNeonClientConfig(options = {}) {
2482
2492
  const currentHeaders = neonClientInstance.defaults.headers;
2483
2493
  const defaultAuthorization = currentHeaders.Authorization;
@@ -2491,6 +2501,19 @@ function getNeonClientConfig(options = {}) {
2491
2501
  headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
2492
2502
  };
2493
2503
  }
2504
+ function initNeonClientInstance(token) {
2505
+ if (token) {
2506
+ updateNeonClientInstance(token);
2507
+ }
2508
+ }
2509
+ function updateNeonClientInstance(token) {
2510
+ const headers = neonClientInstance.defaults.headers;
2511
+ if (token) {
2512
+ headers.Authorization = `${token}`;
2513
+ } else {
2514
+ delete headers.Authorization;
2515
+ }
2516
+ }
2494
2517
 
2495
2518
  // src/apis/integrations/neon/project/branch/api.ts
2496
2519
  var neonProjectBranchApi = {
@@ -2502,6 +2525,15 @@ var neonProjectBranchApi = {
2502
2525
  );
2503
2526
  return response.data;
2504
2527
  });
2528
+ },
2529
+ getBranches(projectId, authorization) {
2530
+ return __async(this, null, function* () {
2531
+ const response = yield neonClientInstance.get(
2532
+ `projects/${projectId}/branches`,
2533
+ getNeonClientConfig(__spreadValues({}, authorization))
2534
+ );
2535
+ return response.data;
2536
+ });
2505
2537
  }
2506
2538
  };
2507
2539
 
@@ -5230,6 +5262,9 @@ function updatePlatformAdapterClientInstance(tokens) {
5230
5262
  if (tokens == null ? void 0 : tokens.planetscale) {
5231
5263
  headers["planetscale-token"] = tokens.planetscale;
5232
5264
  }
5265
+ if (tokens == null ? void 0 : tokens.neon) {
5266
+ headers["neon-token"] = tokens.neon;
5267
+ }
5233
5268
  if (tokens == null ? void 0 : tokens.sentry) {
5234
5269
  headers["sentry-token"] = tokens.sentry;
5235
5270
  }
@@ -5916,7 +5951,7 @@ var api = {
5916
5951
  isInitialized: false
5917
5952
  };
5918
5953
  function initApi(config, tokens) {
5919
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
5954
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
5920
5955
  initPlatformAccountsClientInstance(
5921
5956
  (_a = config.urls.platform) == null ? void 0 : _a.accounts,
5922
5957
  (_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.dps
@@ -5953,8 +5988,9 @@ function initApi(config, tokens) {
5953
5988
  initGithubClientInstance((_s = tokens == null ? void 0 : tokens.github) == null ? void 0 : _s.apps);
5954
5989
  initNetlifyClientInstance((_t = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _t.token);
5955
5990
  initVercelClientInstance((_u = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _u.token);
5956
- initPlanetScaleClientInstance((_v = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _v.token);
5957
- initSentryClientInstance((_w = tokens == null ? void 0 : tokens.sentry) == null ? void 0 : _w.token);
5991
+ initNeonClientInstance((_v = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _v.token);
5992
+ initPlanetScaleClientInstance((_w = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _w.token);
5993
+ initSentryClientInstance((_x = tokens == null ? void 0 : tokens.sentry) == null ? void 0 : _x.token);
5958
5994
  api.isInitialized = true;
5959
5995
  }
5960
5996
 
@@ -5981,6 +6017,8 @@ var serializerBase64 = {
5981
6017
  getGithubClientRequestConfig,
5982
6018
  getLiveChatClientAuthorization,
5983
6019
  getLiveChatClientConfig,
6020
+ getNeonClientAuthorization,
6021
+ getNeonClientConfig,
5984
6022
  getNetlifyClientAuthorization,
5985
6023
  getNetlifyClientConfig,
5986
6024
  getPlanetScaleClientAuthorization,
@@ -6005,6 +6043,7 @@ var serializerBase64 = {
6005
6043
  initApi,
6006
6044
  initGithubClientInstance,
6007
6045
  initLiveChatClientInstance,
6046
+ initNeonClientInstance,
6008
6047
  initNetlifyClientInstance,
6009
6048
  initPlanetScaleClientInstance,
6010
6049
  initPlatformAccountsClientInstance,
@@ -6015,6 +6054,7 @@ var serializerBase64 = {
6015
6054
  initTextClientInstance,
6016
6055
  initVercelClientInstance,
6017
6056
  livechatClientInstance,
6057
+ neonClientInstance,
6018
6058
  netlifyClientInstance,
6019
6059
  planetScaleClientInstance,
6020
6060
  platformAccountsClientInstance,
@@ -6025,6 +6065,7 @@ var serializerBase64 = {
6025
6065
  serializerBase64,
6026
6066
  textClientInstance,
6027
6067
  updateGithubClientInstance,
6068
+ updateNeonClientInstance,
6028
6069
  updateNetlifyClientInstance,
6029
6070
  updatePlanetScaleClientInstance,
6030
6071
  updatePlatformAdapterClientInstance,
package/dist/index.mjs CHANGED
@@ -2387,6 +2387,11 @@ neonClientInstance.interceptors.response.use(
2387
2387
  throw error;
2388
2388
  }
2389
2389
  );
2390
+ function getNeonClientAuthorization(req) {
2391
+ return {
2392
+ token: req.headers["neon-token"]
2393
+ };
2394
+ }
2390
2395
  function getNeonClientConfig(options = {}) {
2391
2396
  const currentHeaders = neonClientInstance.defaults.headers;
2392
2397
  const defaultAuthorization = currentHeaders.Authorization;
@@ -2400,6 +2405,19 @@ function getNeonClientConfig(options = {}) {
2400
2405
  headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
2401
2406
  };
2402
2407
  }
2408
+ function initNeonClientInstance(token) {
2409
+ if (token) {
2410
+ updateNeonClientInstance(token);
2411
+ }
2412
+ }
2413
+ function updateNeonClientInstance(token) {
2414
+ const headers = neonClientInstance.defaults.headers;
2415
+ if (token) {
2416
+ headers.Authorization = `${token}`;
2417
+ } else {
2418
+ delete headers.Authorization;
2419
+ }
2420
+ }
2403
2421
 
2404
2422
  // src/apis/integrations/neon/project/branch/api.ts
2405
2423
  var neonProjectBranchApi = {
@@ -2411,6 +2429,15 @@ var neonProjectBranchApi = {
2411
2429
  );
2412
2430
  return response.data;
2413
2431
  });
2432
+ },
2433
+ getBranches(projectId, authorization) {
2434
+ return __async(this, null, function* () {
2435
+ const response = yield neonClientInstance.get(
2436
+ `projects/${projectId}/branches`,
2437
+ getNeonClientConfig(__spreadValues({}, authorization))
2438
+ );
2439
+ return response.data;
2440
+ });
2414
2441
  }
2415
2442
  };
2416
2443
 
@@ -5139,6 +5166,9 @@ function updatePlatformAdapterClientInstance(tokens) {
5139
5166
  if (tokens == null ? void 0 : tokens.planetscale) {
5140
5167
  headers["planetscale-token"] = tokens.planetscale;
5141
5168
  }
5169
+ if (tokens == null ? void 0 : tokens.neon) {
5170
+ headers["neon-token"] = tokens.neon;
5171
+ }
5142
5172
  if (tokens == null ? void 0 : tokens.sentry) {
5143
5173
  headers["sentry-token"] = tokens.sentry;
5144
5174
  }
@@ -5825,7 +5855,7 @@ var api = {
5825
5855
  isInitialized: false
5826
5856
  };
5827
5857
  function initApi(config, tokens) {
5828
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
5858
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
5829
5859
  initPlatformAccountsClientInstance(
5830
5860
  (_a = config.urls.platform) == null ? void 0 : _a.accounts,
5831
5861
  (_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.dps
@@ -5862,8 +5892,9 @@ function initApi(config, tokens) {
5862
5892
  initGithubClientInstance((_s = tokens == null ? void 0 : tokens.github) == null ? void 0 : _s.apps);
5863
5893
  initNetlifyClientInstance((_t = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _t.token);
5864
5894
  initVercelClientInstance((_u = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _u.token);
5865
- initPlanetScaleClientInstance((_v = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _v.token);
5866
- initSentryClientInstance((_w = tokens == null ? void 0 : tokens.sentry) == null ? void 0 : _w.token);
5895
+ initNeonClientInstance((_v = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _v.token);
5896
+ initPlanetScaleClientInstance((_w = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _w.token);
5897
+ initSentryClientInstance((_x = tokens == null ? void 0 : tokens.sentry) == null ? void 0 : _x.token);
5867
5898
  api.isInitialized = true;
5868
5899
  }
5869
5900
 
@@ -5889,6 +5920,8 @@ export {
5889
5920
  getGithubClientRequestConfig,
5890
5921
  getLiveChatClientAuthorization,
5891
5922
  getLiveChatClientConfig,
5923
+ getNeonClientAuthorization,
5924
+ getNeonClientConfig,
5892
5925
  getNetlifyClientAuthorization,
5893
5926
  getNetlifyClientConfig,
5894
5927
  getPlanetScaleClientAuthorization,
@@ -5913,6 +5946,7 @@ export {
5913
5946
  initApi,
5914
5947
  initGithubClientInstance,
5915
5948
  initLiveChatClientInstance,
5949
+ initNeonClientInstance,
5916
5950
  initNetlifyClientInstance,
5917
5951
  initPlanetScaleClientInstance,
5918
5952
  initPlatformAccountsClientInstance,
@@ -5923,6 +5957,7 @@ export {
5923
5957
  initTextClientInstance,
5924
5958
  initVercelClientInstance,
5925
5959
  livechatClientInstance,
5960
+ neonClientInstance,
5926
5961
  netlifyClientInstance,
5927
5962
  planetScaleClientInstance,
5928
5963
  platformAccountsClientInstance,
@@ -5933,6 +5968,7 @@ export {
5933
5968
  serializerBase64,
5934
5969
  textClientInstance,
5935
5970
  updateGithubClientInstance,
5971
+ updateNeonClientInstance,
5936
5972
  updateNetlifyClientInstance,
5937
5973
  updatePlanetScaleClientInstance,
5938
5974
  updatePlatformAdapterClientInstance,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.3.42",
3
+ "version": "2.3.44",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",