@livechat/developer-studio-api 2.3.44 → 2.3.46
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 +30 -4
- package/dist/index.d.ts +30 -4
- package/dist/index.js +26 -10
- package/dist/index.mjs +26 -10
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -589,7 +589,7 @@ interface NeonProjectDto {
|
|
|
589
589
|
}
|
|
590
590
|
interface NeonProjectWithConnectionUriDto extends NeonProjectDto {
|
|
591
591
|
connection_uri: string;
|
|
592
|
-
branch: NeonProjectBranchDto
|
|
592
|
+
branch: NeonProjectBranchDto;
|
|
593
593
|
databases: NeonProjectDatabaseDto[];
|
|
594
594
|
}
|
|
595
595
|
|
|
@@ -1089,11 +1089,17 @@ interface AppPlanetScaleStorage {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
interface AppVercelStorage {
|
|
1091
1091
|
}
|
|
1092
|
+
interface AppNeonStorage {
|
|
1093
|
+
projectName: string;
|
|
1094
|
+
projectId: string;
|
|
1095
|
+
}
|
|
1092
1096
|
type AppStorage = ({
|
|
1093
1097
|
provider: "planetscale";
|
|
1094
1098
|
} & AppPlanetScaleStorage) | ({
|
|
1095
1099
|
provider: "vercel";
|
|
1096
|
-
} & AppVercelStorage)
|
|
1100
|
+
} & AppVercelStorage) | ({
|
|
1101
|
+
provider: "neon";
|
|
1102
|
+
} & AppNeonStorage);
|
|
1097
1103
|
|
|
1098
1104
|
type LinkAppStoragePlanetScaleDatabaseData = {
|
|
1099
1105
|
type: "new";
|
|
@@ -1105,13 +1111,22 @@ type LinkAppStoragePlanetScaleDatabaseData = {
|
|
|
1105
1111
|
type LinkAppStoragePlanetScaleData = {
|
|
1106
1112
|
organization: string;
|
|
1107
1113
|
} & LinkAppStoragePlanetScaleDatabaseData;
|
|
1114
|
+
type LinkAppStorageNeonData = {
|
|
1115
|
+
type: "new";
|
|
1116
|
+
projectName?: string;
|
|
1117
|
+
} | {
|
|
1118
|
+
type: "existing";
|
|
1119
|
+
projectId: string;
|
|
1120
|
+
};
|
|
1108
1121
|
interface LinkAppStorageVercelData {
|
|
1109
1122
|
}
|
|
1110
1123
|
type LinkAppStorageData = ({
|
|
1111
1124
|
provider: "planetscale";
|
|
1112
1125
|
} & LinkAppStoragePlanetScaleData) | ({
|
|
1113
1126
|
provider: "vercel";
|
|
1114
|
-
} & LinkAppStorageVercelData)
|
|
1127
|
+
} & LinkAppStorageVercelData) | ({
|
|
1128
|
+
provider: "neon";
|
|
1129
|
+
} & LinkAppStorageNeonData);
|
|
1115
1130
|
type LinkAppStoragePayload = {
|
|
1116
1131
|
appId: string;
|
|
1117
1132
|
appName: string;
|
|
@@ -1300,6 +1315,7 @@ interface PlatformAdapterClientInstanceAuthorization {
|
|
|
1300
1315
|
vercel?: string;
|
|
1301
1316
|
planetscale?: string;
|
|
1302
1317
|
sentry?: string;
|
|
1318
|
+
neon?: string;
|
|
1303
1319
|
}
|
|
1304
1320
|
type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthorization & {
|
|
1305
1321
|
ensureAuthorizationToken?: {
|
|
@@ -1311,6 +1327,7 @@ type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthori
|
|
|
1311
1327
|
vercel?: boolean;
|
|
1312
1328
|
planetscale?: boolean;
|
|
1313
1329
|
sentry?: boolean;
|
|
1330
|
+
neon?: boolean;
|
|
1314
1331
|
};
|
|
1315
1332
|
};
|
|
1316
1333
|
declare function getPlatformAdapterClientAuthorization(req: {
|
|
@@ -1702,6 +1719,12 @@ interface AppPlanetScaleStorageConfig {
|
|
|
1702
1719
|
databaseName: string;
|
|
1703
1720
|
isSeeded: boolean;
|
|
1704
1721
|
}
|
|
1722
|
+
interface AppNeonStorageConfig {
|
|
1723
|
+
projectId: string;
|
|
1724
|
+
projectName: string;
|
|
1725
|
+
branchId: string;
|
|
1726
|
+
databaseId: number;
|
|
1727
|
+
}
|
|
1705
1728
|
interface AppSentryLoggerConfig {
|
|
1706
1729
|
name: string;
|
|
1707
1730
|
org: string;
|
|
@@ -1717,6 +1740,7 @@ interface AppStorageBlock {
|
|
|
1717
1740
|
config: {
|
|
1718
1741
|
vercel?: AppVercelStorageConfig;
|
|
1719
1742
|
planetscale?: AppPlanetScaleStorageConfig;
|
|
1743
|
+
neon?: AppNeonStorageConfig;
|
|
1720
1744
|
};
|
|
1721
1745
|
}
|
|
1722
1746
|
interface AppLoggerBlock {
|
|
@@ -1772,6 +1796,7 @@ interface UpdateAppInfrastructureBlocksPayload {
|
|
|
1772
1796
|
config?: {
|
|
1773
1797
|
vercel?: Partial<AppVercelStorageConfig> | null;
|
|
1774
1798
|
planetscale?: Partial<AppPlanetScaleStorageConfig> | null;
|
|
1799
|
+
neon?: Partial<AppNeonStorageConfig> | null;
|
|
1775
1800
|
};
|
|
1776
1801
|
};
|
|
1777
1802
|
logger?: {
|
|
@@ -2589,6 +2614,7 @@ declare const api: {
|
|
|
2589
2614
|
};
|
|
2590
2615
|
createProject(projectName: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectWithConnectionUriDto>;
|
|
2591
2616
|
getProject(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto>;
|
|
2617
|
+
getProjects(authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto[]>;
|
|
2592
2618
|
deleteProject(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto>;
|
|
2593
2619
|
};
|
|
2594
2620
|
user: {
|
|
@@ -2742,4 +2768,4 @@ declare const serializerBase64: {
|
|
|
2742
2768
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2743
2769
|
};
|
|
2744
2770
|
|
|
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 };
|
|
2771
|
+
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, AppNeonStorage, AppNeonStorageConfig, 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, LinkAppStorageNeonData, 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
|
@@ -589,7 +589,7 @@ interface NeonProjectDto {
|
|
|
589
589
|
}
|
|
590
590
|
interface NeonProjectWithConnectionUriDto extends NeonProjectDto {
|
|
591
591
|
connection_uri: string;
|
|
592
|
-
branch: NeonProjectBranchDto
|
|
592
|
+
branch: NeonProjectBranchDto;
|
|
593
593
|
databases: NeonProjectDatabaseDto[];
|
|
594
594
|
}
|
|
595
595
|
|
|
@@ -1089,11 +1089,17 @@ interface AppPlanetScaleStorage {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
interface AppVercelStorage {
|
|
1091
1091
|
}
|
|
1092
|
+
interface AppNeonStorage {
|
|
1093
|
+
projectName: string;
|
|
1094
|
+
projectId: string;
|
|
1095
|
+
}
|
|
1092
1096
|
type AppStorage = ({
|
|
1093
1097
|
provider: "planetscale";
|
|
1094
1098
|
} & AppPlanetScaleStorage) | ({
|
|
1095
1099
|
provider: "vercel";
|
|
1096
|
-
} & AppVercelStorage)
|
|
1100
|
+
} & AppVercelStorage) | ({
|
|
1101
|
+
provider: "neon";
|
|
1102
|
+
} & AppNeonStorage);
|
|
1097
1103
|
|
|
1098
1104
|
type LinkAppStoragePlanetScaleDatabaseData = {
|
|
1099
1105
|
type: "new";
|
|
@@ -1105,13 +1111,22 @@ type LinkAppStoragePlanetScaleDatabaseData = {
|
|
|
1105
1111
|
type LinkAppStoragePlanetScaleData = {
|
|
1106
1112
|
organization: string;
|
|
1107
1113
|
} & LinkAppStoragePlanetScaleDatabaseData;
|
|
1114
|
+
type LinkAppStorageNeonData = {
|
|
1115
|
+
type: "new";
|
|
1116
|
+
projectName?: string;
|
|
1117
|
+
} | {
|
|
1118
|
+
type: "existing";
|
|
1119
|
+
projectId: string;
|
|
1120
|
+
};
|
|
1108
1121
|
interface LinkAppStorageVercelData {
|
|
1109
1122
|
}
|
|
1110
1123
|
type LinkAppStorageData = ({
|
|
1111
1124
|
provider: "planetscale";
|
|
1112
1125
|
} & LinkAppStoragePlanetScaleData) | ({
|
|
1113
1126
|
provider: "vercel";
|
|
1114
|
-
} & LinkAppStorageVercelData)
|
|
1127
|
+
} & LinkAppStorageVercelData) | ({
|
|
1128
|
+
provider: "neon";
|
|
1129
|
+
} & LinkAppStorageNeonData);
|
|
1115
1130
|
type LinkAppStoragePayload = {
|
|
1116
1131
|
appId: string;
|
|
1117
1132
|
appName: string;
|
|
@@ -1300,6 +1315,7 @@ interface PlatformAdapterClientInstanceAuthorization {
|
|
|
1300
1315
|
vercel?: string;
|
|
1301
1316
|
planetscale?: string;
|
|
1302
1317
|
sentry?: string;
|
|
1318
|
+
neon?: string;
|
|
1303
1319
|
}
|
|
1304
1320
|
type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthorization & {
|
|
1305
1321
|
ensureAuthorizationToken?: {
|
|
@@ -1311,6 +1327,7 @@ type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthori
|
|
|
1311
1327
|
vercel?: boolean;
|
|
1312
1328
|
planetscale?: boolean;
|
|
1313
1329
|
sentry?: boolean;
|
|
1330
|
+
neon?: boolean;
|
|
1314
1331
|
};
|
|
1315
1332
|
};
|
|
1316
1333
|
declare function getPlatformAdapterClientAuthorization(req: {
|
|
@@ -1702,6 +1719,12 @@ interface AppPlanetScaleStorageConfig {
|
|
|
1702
1719
|
databaseName: string;
|
|
1703
1720
|
isSeeded: boolean;
|
|
1704
1721
|
}
|
|
1722
|
+
interface AppNeonStorageConfig {
|
|
1723
|
+
projectId: string;
|
|
1724
|
+
projectName: string;
|
|
1725
|
+
branchId: string;
|
|
1726
|
+
databaseId: number;
|
|
1727
|
+
}
|
|
1705
1728
|
interface AppSentryLoggerConfig {
|
|
1706
1729
|
name: string;
|
|
1707
1730
|
org: string;
|
|
@@ -1717,6 +1740,7 @@ interface AppStorageBlock {
|
|
|
1717
1740
|
config: {
|
|
1718
1741
|
vercel?: AppVercelStorageConfig;
|
|
1719
1742
|
planetscale?: AppPlanetScaleStorageConfig;
|
|
1743
|
+
neon?: AppNeonStorageConfig;
|
|
1720
1744
|
};
|
|
1721
1745
|
}
|
|
1722
1746
|
interface AppLoggerBlock {
|
|
@@ -1772,6 +1796,7 @@ interface UpdateAppInfrastructureBlocksPayload {
|
|
|
1772
1796
|
config?: {
|
|
1773
1797
|
vercel?: Partial<AppVercelStorageConfig> | null;
|
|
1774
1798
|
planetscale?: Partial<AppPlanetScaleStorageConfig> | null;
|
|
1799
|
+
neon?: Partial<AppNeonStorageConfig> | null;
|
|
1775
1800
|
};
|
|
1776
1801
|
};
|
|
1777
1802
|
logger?: {
|
|
@@ -2589,6 +2614,7 @@ declare const api: {
|
|
|
2589
2614
|
};
|
|
2590
2615
|
createProject(projectName: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectWithConnectionUriDto>;
|
|
2591
2616
|
getProject(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto>;
|
|
2617
|
+
getProjects(authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto[]>;
|
|
2592
2618
|
deleteProject(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto>;
|
|
2593
2619
|
};
|
|
2594
2620
|
user: {
|
|
@@ -2742,4 +2768,4 @@ declare const serializerBase64: {
|
|
|
2742
2768
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2743
2769
|
};
|
|
2744
2770
|
|
|
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 };
|
|
2771
|
+
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, AppNeonStorage, AppNeonStorageConfig, 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, LinkAppStorageNeonData, 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
|
@@ -2492,7 +2492,7 @@ function getNeonClientConfig(options = {}) {
|
|
|
2492
2492
|
const currentHeaders = neonClientInstance.defaults.headers;
|
|
2493
2493
|
const defaultAuthorization = currentHeaders.Authorization;
|
|
2494
2494
|
const headers = {
|
|
2495
|
-
authorization: defaultAuthorization != null ? defaultAuthorization : options.token ?
|
|
2495
|
+
authorization: defaultAuthorization != null ? defaultAuthorization : options.token ? `Bearer ${options.token}` : void 0
|
|
2496
2496
|
};
|
|
2497
2497
|
if (options.ensureAuthorizationToken && !headers.authorization) {
|
|
2498
2498
|
throw new UnauthorizeApiError("neon");
|
|
@@ -2567,6 +2567,17 @@ var neonProjectApi = {
|
|
|
2567
2567
|
return response.data;
|
|
2568
2568
|
});
|
|
2569
2569
|
},
|
|
2570
|
+
getProjects(authorization) {
|
|
2571
|
+
return __async(this, null, function* () {
|
|
2572
|
+
const response = yield neonClientInstance.get(
|
|
2573
|
+
`/projects`,
|
|
2574
|
+
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2575
|
+
ensureAuthorizationToken: true
|
|
2576
|
+
}))
|
|
2577
|
+
);
|
|
2578
|
+
return response.data;
|
|
2579
|
+
});
|
|
2580
|
+
},
|
|
2570
2581
|
deleteProject(projectId, authorization) {
|
|
2571
2582
|
return __async(this, null, function* () {
|
|
2572
2583
|
const response = yield neonClientInstance.delete(
|
|
@@ -5160,6 +5171,7 @@ function getPlatformAdapterClientAuthorization(req) {
|
|
|
5160
5171
|
netlify: req.headers["netlify-token"],
|
|
5161
5172
|
vercel: req.headers["vercel-token"],
|
|
5162
5173
|
planetscale: req.headers["planetscale-token"],
|
|
5174
|
+
neon: req.headers["neon-token"],
|
|
5163
5175
|
sentry: req.headers["sentry-token"]
|
|
5164
5176
|
};
|
|
5165
5177
|
}
|
|
@@ -5185,7 +5197,7 @@ platformAdapterClientInstance.interceptors.response.use(
|
|
|
5185
5197
|
}
|
|
5186
5198
|
);
|
|
5187
5199
|
function getPlatformAdapterClientConfig(options = {}) {
|
|
5188
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
5200
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
5189
5201
|
const currentHeaders = platformAdapterClientInstance.defaults.headers;
|
|
5190
5202
|
const headers = {
|
|
5191
5203
|
platform: {
|
|
@@ -5199,28 +5211,32 @@ function getPlatformAdapterClientConfig(options = {}) {
|
|
|
5199
5211
|
netlify: (_g = currentHeaders["netlify-token"]) != null ? _g : options.netlify,
|
|
5200
5212
|
vercel: (_h = currentHeaders["vercel-token"]) != null ? _h : options.vercel,
|
|
5201
5213
|
planetscale: (_i = currentHeaders["planetscale-token"]) != null ? _i : options.planetscale,
|
|
5202
|
-
|
|
5214
|
+
neon: (_j = currentHeaders["neon-token"]) != null ? _j : options.neon,
|
|
5215
|
+
sentry: (_k = currentHeaders["sentry-token"]) != null ? _k : options.sentry
|
|
5203
5216
|
}
|
|
5204
5217
|
};
|
|
5205
5218
|
if (currentHeaders["platform-dps-token"]) {
|
|
5206
|
-
currentHeaders["X-Region"] = (
|
|
5219
|
+
currentHeaders["X-Region"] = (_l = getRegion2(currentHeaders["platform-dps-token"])) != null ? _l : void 0;
|
|
5207
5220
|
}
|
|
5208
|
-
if (((
|
|
5221
|
+
if (((_n = (_m = options.ensureAuthorizationToken) == null ? void 0 : _m.platform) == null ? void 0 : _n.dps) && !headers.platform.dps) {
|
|
5209
5222
|
throw new UnauthorizeApiError("dps");
|
|
5210
5223
|
}
|
|
5211
|
-
if (((
|
|
5224
|
+
if (((_o = options.ensureAuthorizationToken) == null ? void 0 : _o.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
|
|
5212
5225
|
throw new UnauthorizeApiError("github");
|
|
5213
5226
|
}
|
|
5214
|
-
if (((
|
|
5227
|
+
if (((_p = options.ensureAuthorizationToken) == null ? void 0 : _p.vercel) && !headers.integrations.vercel) {
|
|
5215
5228
|
throw new UnauthorizeApiError("vercel");
|
|
5216
5229
|
}
|
|
5217
|
-
if (((
|
|
5230
|
+
if (((_q = options.ensureAuthorizationToken) == null ? void 0 : _q.netlify) && !headers.integrations.netlify) {
|
|
5218
5231
|
throw new UnauthorizeApiError("netlify");
|
|
5219
5232
|
}
|
|
5220
|
-
if (((
|
|
5233
|
+
if (((_r = options.ensureAuthorizationToken) == null ? void 0 : _r.planetscale) && !headers.integrations.planetscale) {
|
|
5221
5234
|
throw new UnauthorizeApiError("planetscale");
|
|
5222
5235
|
}
|
|
5223
|
-
if (((
|
|
5236
|
+
if (((_s = options.ensureAuthorizationToken) == null ? void 0 : _s.neon) && !headers.integrations.neon) {
|
|
5237
|
+
throw new UnauthorizeApiError("neon");
|
|
5238
|
+
}
|
|
5239
|
+
if (((_t = options.ensureAuthorizationToken) == null ? void 0 : _t.sentry) && !headers.integrations.sentry) {
|
|
5224
5240
|
throw new UnauthorizeApiError("sentry");
|
|
5225
5241
|
}
|
|
5226
5242
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -2396,7 +2396,7 @@ function getNeonClientConfig(options = {}) {
|
|
|
2396
2396
|
const currentHeaders = neonClientInstance.defaults.headers;
|
|
2397
2397
|
const defaultAuthorization = currentHeaders.Authorization;
|
|
2398
2398
|
const headers = {
|
|
2399
|
-
authorization: defaultAuthorization != null ? defaultAuthorization : options.token ?
|
|
2399
|
+
authorization: defaultAuthorization != null ? defaultAuthorization : options.token ? `Bearer ${options.token}` : void 0
|
|
2400
2400
|
};
|
|
2401
2401
|
if (options.ensureAuthorizationToken && !headers.authorization) {
|
|
2402
2402
|
throw new UnauthorizeApiError("neon");
|
|
@@ -2471,6 +2471,17 @@ var neonProjectApi = {
|
|
|
2471
2471
|
return response.data;
|
|
2472
2472
|
});
|
|
2473
2473
|
},
|
|
2474
|
+
getProjects(authorization) {
|
|
2475
|
+
return __async(this, null, function* () {
|
|
2476
|
+
const response = yield neonClientInstance.get(
|
|
2477
|
+
`/projects`,
|
|
2478
|
+
getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2479
|
+
ensureAuthorizationToken: true
|
|
2480
|
+
}))
|
|
2481
|
+
);
|
|
2482
|
+
return response.data;
|
|
2483
|
+
});
|
|
2484
|
+
},
|
|
2474
2485
|
deleteProject(projectId, authorization) {
|
|
2475
2486
|
return __async(this, null, function* () {
|
|
2476
2487
|
const response = yield neonClientInstance.delete(
|
|
@@ -5064,6 +5075,7 @@ function getPlatformAdapterClientAuthorization(req) {
|
|
|
5064
5075
|
netlify: req.headers["netlify-token"],
|
|
5065
5076
|
vercel: req.headers["vercel-token"],
|
|
5066
5077
|
planetscale: req.headers["planetscale-token"],
|
|
5078
|
+
neon: req.headers["neon-token"],
|
|
5067
5079
|
sentry: req.headers["sentry-token"]
|
|
5068
5080
|
};
|
|
5069
5081
|
}
|
|
@@ -5089,7 +5101,7 @@ platformAdapterClientInstance.interceptors.response.use(
|
|
|
5089
5101
|
}
|
|
5090
5102
|
);
|
|
5091
5103
|
function getPlatformAdapterClientConfig(options = {}) {
|
|
5092
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
5104
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
5093
5105
|
const currentHeaders = platformAdapterClientInstance.defaults.headers;
|
|
5094
5106
|
const headers = {
|
|
5095
5107
|
platform: {
|
|
@@ -5103,28 +5115,32 @@ function getPlatformAdapterClientConfig(options = {}) {
|
|
|
5103
5115
|
netlify: (_g = currentHeaders["netlify-token"]) != null ? _g : options.netlify,
|
|
5104
5116
|
vercel: (_h = currentHeaders["vercel-token"]) != null ? _h : options.vercel,
|
|
5105
5117
|
planetscale: (_i = currentHeaders["planetscale-token"]) != null ? _i : options.planetscale,
|
|
5106
|
-
|
|
5118
|
+
neon: (_j = currentHeaders["neon-token"]) != null ? _j : options.neon,
|
|
5119
|
+
sentry: (_k = currentHeaders["sentry-token"]) != null ? _k : options.sentry
|
|
5107
5120
|
}
|
|
5108
5121
|
};
|
|
5109
5122
|
if (currentHeaders["platform-dps-token"]) {
|
|
5110
|
-
currentHeaders["X-Region"] = (
|
|
5123
|
+
currentHeaders["X-Region"] = (_l = getRegion2(currentHeaders["platform-dps-token"])) != null ? _l : void 0;
|
|
5111
5124
|
}
|
|
5112
|
-
if (((
|
|
5125
|
+
if (((_n = (_m = options.ensureAuthorizationToken) == null ? void 0 : _m.platform) == null ? void 0 : _n.dps) && !headers.platform.dps) {
|
|
5113
5126
|
throw new UnauthorizeApiError("dps");
|
|
5114
5127
|
}
|
|
5115
|
-
if (((
|
|
5128
|
+
if (((_o = options.ensureAuthorizationToken) == null ? void 0 : _o.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
|
|
5116
5129
|
throw new UnauthorizeApiError("github");
|
|
5117
5130
|
}
|
|
5118
|
-
if (((
|
|
5131
|
+
if (((_p = options.ensureAuthorizationToken) == null ? void 0 : _p.vercel) && !headers.integrations.vercel) {
|
|
5119
5132
|
throw new UnauthorizeApiError("vercel");
|
|
5120
5133
|
}
|
|
5121
|
-
if (((
|
|
5134
|
+
if (((_q = options.ensureAuthorizationToken) == null ? void 0 : _q.netlify) && !headers.integrations.netlify) {
|
|
5122
5135
|
throw new UnauthorizeApiError("netlify");
|
|
5123
5136
|
}
|
|
5124
|
-
if (((
|
|
5137
|
+
if (((_r = options.ensureAuthorizationToken) == null ? void 0 : _r.planetscale) && !headers.integrations.planetscale) {
|
|
5125
5138
|
throw new UnauthorizeApiError("planetscale");
|
|
5126
5139
|
}
|
|
5127
|
-
if (((
|
|
5140
|
+
if (((_s = options.ensureAuthorizationToken) == null ? void 0 : _s.neon) && !headers.integrations.neon) {
|
|
5141
|
+
throw new UnauthorizeApiError("neon");
|
|
5142
|
+
}
|
|
5143
|
+
if (((_t = options.ensureAuthorizationToken) == null ? void 0 : _t.sentry) && !headers.integrations.sentry) {
|
|
5128
5144
|
throw new UnauthorizeApiError("sentry");
|
|
5129
5145
|
}
|
|
5130
5146
|
return {
|