@livechat/developer-studio-api 2.3.42 → 2.3.43
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 +19 -5
- package/dist/index.d.ts +19 -5
- package/dist/index.js +32 -3
- package/dist/index.mjs +27 -3
- package/package.json +1 -1
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;
|
|
@@ -2694,6 +2705,9 @@ declare function initApi(config: {
|
|
|
2694
2705
|
planetscale?: {
|
|
2695
2706
|
token: string;
|
|
2696
2707
|
};
|
|
2708
|
+
neon?: {
|
|
2709
|
+
token: string;
|
|
2710
|
+
};
|
|
2697
2711
|
}): void;
|
|
2698
2712
|
|
|
2699
2713
|
declare const API_NOTIFICATIONS: {
|
|
@@ -2725,4 +2739,4 @@ declare const serializerBase64: {
|
|
|
2725
2739
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2726
2740
|
};
|
|
2727
2741
|
|
|
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 };
|
|
2742
|
+
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;
|
|
@@ -2694,6 +2705,9 @@ declare function initApi(config: {
|
|
|
2694
2705
|
planetscale?: {
|
|
2695
2706
|
token: string;
|
|
2696
2707
|
};
|
|
2708
|
+
neon?: {
|
|
2709
|
+
token: string;
|
|
2710
|
+
};
|
|
2697
2711
|
}): void;
|
|
2698
2712
|
|
|
2699
2713
|
declare const API_NOTIFICATIONS: {
|
|
@@ -2725,4 +2739,4 @@ declare const serializerBase64: {
|
|
|
2725
2739
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2726
2740
|
};
|
|
2727
2741
|
|
|
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 };
|
|
2742
|
+
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 = {
|
|
@@ -5916,7 +5939,7 @@ var api = {
|
|
|
5916
5939
|
isInitialized: false
|
|
5917
5940
|
};
|
|
5918
5941
|
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;
|
|
5942
|
+
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
5943
|
initPlatformAccountsClientInstance(
|
|
5921
5944
|
(_a = config.urls.platform) == null ? void 0 : _a.accounts,
|
|
5922
5945
|
(_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.dps
|
|
@@ -5953,8 +5976,9 @@ function initApi(config, tokens) {
|
|
|
5953
5976
|
initGithubClientInstance((_s = tokens == null ? void 0 : tokens.github) == null ? void 0 : _s.apps);
|
|
5954
5977
|
initNetlifyClientInstance((_t = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _t.token);
|
|
5955
5978
|
initVercelClientInstance((_u = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _u.token);
|
|
5956
|
-
|
|
5957
|
-
|
|
5979
|
+
initNeonClientInstance((_v = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _v.token);
|
|
5980
|
+
initPlanetScaleClientInstance((_w = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _w.token);
|
|
5981
|
+
initSentryClientInstance((_x = tokens == null ? void 0 : tokens.sentry) == null ? void 0 : _x.token);
|
|
5958
5982
|
api.isInitialized = true;
|
|
5959
5983
|
}
|
|
5960
5984
|
|
|
@@ -5981,6 +6005,8 @@ var serializerBase64 = {
|
|
|
5981
6005
|
getGithubClientRequestConfig,
|
|
5982
6006
|
getLiveChatClientAuthorization,
|
|
5983
6007
|
getLiveChatClientConfig,
|
|
6008
|
+
getNeonClientAuthorization,
|
|
6009
|
+
getNeonClientConfig,
|
|
5984
6010
|
getNetlifyClientAuthorization,
|
|
5985
6011
|
getNetlifyClientConfig,
|
|
5986
6012
|
getPlanetScaleClientAuthorization,
|
|
@@ -6005,6 +6031,7 @@ var serializerBase64 = {
|
|
|
6005
6031
|
initApi,
|
|
6006
6032
|
initGithubClientInstance,
|
|
6007
6033
|
initLiveChatClientInstance,
|
|
6034
|
+
initNeonClientInstance,
|
|
6008
6035
|
initNetlifyClientInstance,
|
|
6009
6036
|
initPlanetScaleClientInstance,
|
|
6010
6037
|
initPlatformAccountsClientInstance,
|
|
@@ -6015,6 +6042,7 @@ var serializerBase64 = {
|
|
|
6015
6042
|
initTextClientInstance,
|
|
6016
6043
|
initVercelClientInstance,
|
|
6017
6044
|
livechatClientInstance,
|
|
6045
|
+
neonClientInstance,
|
|
6018
6046
|
netlifyClientInstance,
|
|
6019
6047
|
planetScaleClientInstance,
|
|
6020
6048
|
platformAccountsClientInstance,
|
|
@@ -6025,6 +6053,7 @@ var serializerBase64 = {
|
|
|
6025
6053
|
serializerBase64,
|
|
6026
6054
|
textClientInstance,
|
|
6027
6055
|
updateGithubClientInstance,
|
|
6056
|
+
updateNeonClientInstance,
|
|
6028
6057
|
updateNetlifyClientInstance,
|
|
6029
6058
|
updatePlanetScaleClientInstance,
|
|
6030
6059
|
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 = {
|
|
@@ -5825,7 +5843,7 @@ var api = {
|
|
|
5825
5843
|
isInitialized: false
|
|
5826
5844
|
};
|
|
5827
5845
|
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;
|
|
5846
|
+
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
5847
|
initPlatformAccountsClientInstance(
|
|
5830
5848
|
(_a = config.urls.platform) == null ? void 0 : _a.accounts,
|
|
5831
5849
|
(_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.dps
|
|
@@ -5862,8 +5880,9 @@ function initApi(config, tokens) {
|
|
|
5862
5880
|
initGithubClientInstance((_s = tokens == null ? void 0 : tokens.github) == null ? void 0 : _s.apps);
|
|
5863
5881
|
initNetlifyClientInstance((_t = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _t.token);
|
|
5864
5882
|
initVercelClientInstance((_u = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _u.token);
|
|
5865
|
-
|
|
5866
|
-
|
|
5883
|
+
initNeonClientInstance((_v = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _v.token);
|
|
5884
|
+
initPlanetScaleClientInstance((_w = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _w.token);
|
|
5885
|
+
initSentryClientInstance((_x = tokens == null ? void 0 : tokens.sentry) == null ? void 0 : _x.token);
|
|
5867
5886
|
api.isInitialized = true;
|
|
5868
5887
|
}
|
|
5869
5888
|
|
|
@@ -5889,6 +5908,8 @@ export {
|
|
|
5889
5908
|
getGithubClientRequestConfig,
|
|
5890
5909
|
getLiveChatClientAuthorization,
|
|
5891
5910
|
getLiveChatClientConfig,
|
|
5911
|
+
getNeonClientAuthorization,
|
|
5912
|
+
getNeonClientConfig,
|
|
5892
5913
|
getNetlifyClientAuthorization,
|
|
5893
5914
|
getNetlifyClientConfig,
|
|
5894
5915
|
getPlanetScaleClientAuthorization,
|
|
@@ -5913,6 +5934,7 @@ export {
|
|
|
5913
5934
|
initApi,
|
|
5914
5935
|
initGithubClientInstance,
|
|
5915
5936
|
initLiveChatClientInstance,
|
|
5937
|
+
initNeonClientInstance,
|
|
5916
5938
|
initNetlifyClientInstance,
|
|
5917
5939
|
initPlanetScaleClientInstance,
|
|
5918
5940
|
initPlatformAccountsClientInstance,
|
|
@@ -5923,6 +5945,7 @@ export {
|
|
|
5923
5945
|
initTextClientInstance,
|
|
5924
5946
|
initVercelClientInstance,
|
|
5925
5947
|
livechatClientInstance,
|
|
5948
|
+
neonClientInstance,
|
|
5926
5949
|
netlifyClientInstance,
|
|
5927
5950
|
planetScaleClientInstance,
|
|
5928
5951
|
platformAccountsClientInstance,
|
|
@@ -5933,6 +5956,7 @@ export {
|
|
|
5933
5956
|
serializerBase64,
|
|
5934
5957
|
textClientInstance,
|
|
5935
5958
|
updateGithubClientInstance,
|
|
5959
|
+
updateNeonClientInstance,
|
|
5936
5960
|
updateNetlifyClientInstance,
|
|
5937
5961
|
updatePlanetScaleClientInstance,
|
|
5938
5962
|
updatePlatformAdapterClientInstance,
|