@livechat/developer-studio-api 2.3.43 → 2.3.45
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 -5
- package/dist/index.d.ts +30 -5
- package/dist/index.js +24 -1
- package/dist/index.mjs +24 -1
- package/package.json +3 -3
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,15 @@ interface AppPlanetScaleStorage {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
interface AppVercelStorage {
|
|
1091
1091
|
}
|
|
1092
|
+
interface AppNeonStorage {
|
|
1093
|
+
}
|
|
1092
1094
|
type AppStorage = ({
|
|
1093
1095
|
provider: "planetscale";
|
|
1094
1096
|
} & AppPlanetScaleStorage) | ({
|
|
1095
1097
|
provider: "vercel";
|
|
1096
|
-
} & AppVercelStorage)
|
|
1098
|
+
} & AppVercelStorage) | ({
|
|
1099
|
+
provider: "neon";
|
|
1100
|
+
} & AppNeonStorage);
|
|
1097
1101
|
|
|
1098
1102
|
type LinkAppStoragePlanetScaleDatabaseData = {
|
|
1099
1103
|
type: "new";
|
|
@@ -1105,13 +1109,22 @@ type LinkAppStoragePlanetScaleDatabaseData = {
|
|
|
1105
1109
|
type LinkAppStoragePlanetScaleData = {
|
|
1106
1110
|
organization: string;
|
|
1107
1111
|
} & LinkAppStoragePlanetScaleDatabaseData;
|
|
1112
|
+
type LinkAppStorageNeonData = {
|
|
1113
|
+
type: "new";
|
|
1114
|
+
projectName?: string;
|
|
1115
|
+
} | {
|
|
1116
|
+
type: "existing";
|
|
1117
|
+
projectId: string;
|
|
1118
|
+
};
|
|
1108
1119
|
interface LinkAppStorageVercelData {
|
|
1109
1120
|
}
|
|
1110
1121
|
type LinkAppStorageData = ({
|
|
1111
1122
|
provider: "planetscale";
|
|
1112
1123
|
} & LinkAppStoragePlanetScaleData) | ({
|
|
1113
1124
|
provider: "vercel";
|
|
1114
|
-
} & LinkAppStorageVercelData)
|
|
1125
|
+
} & LinkAppStorageVercelData) | ({
|
|
1126
|
+
provider: "neon";
|
|
1127
|
+
} & LinkAppStorageNeonData);
|
|
1115
1128
|
type LinkAppStoragePayload = {
|
|
1116
1129
|
appId: string;
|
|
1117
1130
|
appName: string;
|
|
@@ -1329,6 +1342,7 @@ declare function initPlatformAdapterClientInstance(baseUrl?: string, tokens?: {
|
|
|
1329
1342
|
netlify?: string;
|
|
1330
1343
|
vercel?: string;
|
|
1331
1344
|
planetscale?: string;
|
|
1345
|
+
neon?: string;
|
|
1332
1346
|
sentry?: string;
|
|
1333
1347
|
}): void;
|
|
1334
1348
|
declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
@@ -1342,6 +1356,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
|
1342
1356
|
netlify?: string;
|
|
1343
1357
|
vercel?: string;
|
|
1344
1358
|
planetscale?: string;
|
|
1359
|
+
neon?: string;
|
|
1345
1360
|
sentry?: string;
|
|
1346
1361
|
}): void;
|
|
1347
1362
|
|
|
@@ -1678,7 +1693,7 @@ type AppRepositoryTarget = "node" | "nextjs";
|
|
|
1678
1693
|
type AppDeploymentProvider = "internal" | "netlify" | "vercel" | "heroku" | "custom";
|
|
1679
1694
|
type AppDeploymentMode = "local" | "provider";
|
|
1680
1695
|
type AppLoggerProvider = "sentry" | "amplitude";
|
|
1681
|
-
type AppStorageProvider = "vercel" | "planetscale";
|
|
1696
|
+
type AppStorageProvider = "vercel" | "planetscale" | "neon";
|
|
1682
1697
|
interface AppGitHubRepositoryConfig {
|
|
1683
1698
|
name: string;
|
|
1684
1699
|
branch: string;
|
|
@@ -1700,6 +1715,12 @@ interface AppPlanetScaleStorageConfig {
|
|
|
1700
1715
|
databaseName: string;
|
|
1701
1716
|
isSeeded: boolean;
|
|
1702
1717
|
}
|
|
1718
|
+
interface AppNeonStorageConfig {
|
|
1719
|
+
projectId: string;
|
|
1720
|
+
projectName: string;
|
|
1721
|
+
branchId: string;
|
|
1722
|
+
databaseId: number;
|
|
1723
|
+
}
|
|
1703
1724
|
interface AppSentryLoggerConfig {
|
|
1704
1725
|
name: string;
|
|
1705
1726
|
org: string;
|
|
@@ -1715,6 +1736,7 @@ interface AppStorageBlock {
|
|
|
1715
1736
|
config: {
|
|
1716
1737
|
vercel?: AppVercelStorageConfig;
|
|
1717
1738
|
planetscale?: AppPlanetScaleStorageConfig;
|
|
1739
|
+
neon?: AppNeonStorageConfig;
|
|
1718
1740
|
};
|
|
1719
1741
|
}
|
|
1720
1742
|
interface AppLoggerBlock {
|
|
@@ -1770,6 +1792,7 @@ interface UpdateAppInfrastructureBlocksPayload {
|
|
|
1770
1792
|
config?: {
|
|
1771
1793
|
vercel?: Partial<AppVercelStorageConfig> | null;
|
|
1772
1794
|
planetscale?: Partial<AppPlanetScaleStorageConfig> | null;
|
|
1795
|
+
neon?: Partial<AppNeonStorageConfig> | null;
|
|
1773
1796
|
};
|
|
1774
1797
|
};
|
|
1775
1798
|
logger?: {
|
|
@@ -2583,9 +2606,11 @@ declare const api: {
|
|
|
2583
2606
|
project: {
|
|
2584
2607
|
branch: {
|
|
2585
2608
|
getBranch(projectId: string, branchId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchDto>;
|
|
2609
|
+
getBranches(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchDto[]>;
|
|
2586
2610
|
};
|
|
2587
2611
|
createProject(projectName: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectWithConnectionUriDto>;
|
|
2588
2612
|
getProject(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto>;
|
|
2613
|
+
getProjects(authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto[]>;
|
|
2589
2614
|
deleteProject(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto>;
|
|
2590
2615
|
};
|
|
2591
2616
|
user: {
|
|
@@ -2739,4 +2764,4 @@ declare const serializerBase64: {
|
|
|
2739
2764
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2740
2765
|
};
|
|
2741
2766
|
|
|
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 };
|
|
2767
|
+
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,15 @@ interface AppPlanetScaleStorage {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
interface AppVercelStorage {
|
|
1091
1091
|
}
|
|
1092
|
+
interface AppNeonStorage {
|
|
1093
|
+
}
|
|
1092
1094
|
type AppStorage = ({
|
|
1093
1095
|
provider: "planetscale";
|
|
1094
1096
|
} & AppPlanetScaleStorage) | ({
|
|
1095
1097
|
provider: "vercel";
|
|
1096
|
-
} & AppVercelStorage)
|
|
1098
|
+
} & AppVercelStorage) | ({
|
|
1099
|
+
provider: "neon";
|
|
1100
|
+
} & AppNeonStorage);
|
|
1097
1101
|
|
|
1098
1102
|
type LinkAppStoragePlanetScaleDatabaseData = {
|
|
1099
1103
|
type: "new";
|
|
@@ -1105,13 +1109,22 @@ type LinkAppStoragePlanetScaleDatabaseData = {
|
|
|
1105
1109
|
type LinkAppStoragePlanetScaleData = {
|
|
1106
1110
|
organization: string;
|
|
1107
1111
|
} & LinkAppStoragePlanetScaleDatabaseData;
|
|
1112
|
+
type LinkAppStorageNeonData = {
|
|
1113
|
+
type: "new";
|
|
1114
|
+
projectName?: string;
|
|
1115
|
+
} | {
|
|
1116
|
+
type: "existing";
|
|
1117
|
+
projectId: string;
|
|
1118
|
+
};
|
|
1108
1119
|
interface LinkAppStorageVercelData {
|
|
1109
1120
|
}
|
|
1110
1121
|
type LinkAppStorageData = ({
|
|
1111
1122
|
provider: "planetscale";
|
|
1112
1123
|
} & LinkAppStoragePlanetScaleData) | ({
|
|
1113
1124
|
provider: "vercel";
|
|
1114
|
-
} & LinkAppStorageVercelData)
|
|
1125
|
+
} & LinkAppStorageVercelData) | ({
|
|
1126
|
+
provider: "neon";
|
|
1127
|
+
} & LinkAppStorageNeonData);
|
|
1115
1128
|
type LinkAppStoragePayload = {
|
|
1116
1129
|
appId: string;
|
|
1117
1130
|
appName: string;
|
|
@@ -1329,6 +1342,7 @@ declare function initPlatformAdapterClientInstance(baseUrl?: string, tokens?: {
|
|
|
1329
1342
|
netlify?: string;
|
|
1330
1343
|
vercel?: string;
|
|
1331
1344
|
planetscale?: string;
|
|
1345
|
+
neon?: string;
|
|
1332
1346
|
sentry?: string;
|
|
1333
1347
|
}): void;
|
|
1334
1348
|
declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
@@ -1342,6 +1356,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
|
1342
1356
|
netlify?: string;
|
|
1343
1357
|
vercel?: string;
|
|
1344
1358
|
planetscale?: string;
|
|
1359
|
+
neon?: string;
|
|
1345
1360
|
sentry?: string;
|
|
1346
1361
|
}): void;
|
|
1347
1362
|
|
|
@@ -1678,7 +1693,7 @@ type AppRepositoryTarget = "node" | "nextjs";
|
|
|
1678
1693
|
type AppDeploymentProvider = "internal" | "netlify" | "vercel" | "heroku" | "custom";
|
|
1679
1694
|
type AppDeploymentMode = "local" | "provider";
|
|
1680
1695
|
type AppLoggerProvider = "sentry" | "amplitude";
|
|
1681
|
-
type AppStorageProvider = "vercel" | "planetscale";
|
|
1696
|
+
type AppStorageProvider = "vercel" | "planetscale" | "neon";
|
|
1682
1697
|
interface AppGitHubRepositoryConfig {
|
|
1683
1698
|
name: string;
|
|
1684
1699
|
branch: string;
|
|
@@ -1700,6 +1715,12 @@ interface AppPlanetScaleStorageConfig {
|
|
|
1700
1715
|
databaseName: string;
|
|
1701
1716
|
isSeeded: boolean;
|
|
1702
1717
|
}
|
|
1718
|
+
interface AppNeonStorageConfig {
|
|
1719
|
+
projectId: string;
|
|
1720
|
+
projectName: string;
|
|
1721
|
+
branchId: string;
|
|
1722
|
+
databaseId: number;
|
|
1723
|
+
}
|
|
1703
1724
|
interface AppSentryLoggerConfig {
|
|
1704
1725
|
name: string;
|
|
1705
1726
|
org: string;
|
|
@@ -1715,6 +1736,7 @@ interface AppStorageBlock {
|
|
|
1715
1736
|
config: {
|
|
1716
1737
|
vercel?: AppVercelStorageConfig;
|
|
1717
1738
|
planetscale?: AppPlanetScaleStorageConfig;
|
|
1739
|
+
neon?: AppNeonStorageConfig;
|
|
1718
1740
|
};
|
|
1719
1741
|
}
|
|
1720
1742
|
interface AppLoggerBlock {
|
|
@@ -1770,6 +1792,7 @@ interface UpdateAppInfrastructureBlocksPayload {
|
|
|
1770
1792
|
config?: {
|
|
1771
1793
|
vercel?: Partial<AppVercelStorageConfig> | null;
|
|
1772
1794
|
planetscale?: Partial<AppPlanetScaleStorageConfig> | null;
|
|
1795
|
+
neon?: Partial<AppNeonStorageConfig> | null;
|
|
1773
1796
|
};
|
|
1774
1797
|
};
|
|
1775
1798
|
logger?: {
|
|
@@ -2583,9 +2606,11 @@ declare const api: {
|
|
|
2583
2606
|
project: {
|
|
2584
2607
|
branch: {
|
|
2585
2608
|
getBranch(projectId: string, branchId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchDto>;
|
|
2609
|
+
getBranches(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectBranchDto[]>;
|
|
2586
2610
|
};
|
|
2587
2611
|
createProject(projectName: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectWithConnectionUriDto>;
|
|
2588
2612
|
getProject(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto>;
|
|
2613
|
+
getProjects(authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto[]>;
|
|
2589
2614
|
deleteProject(projectId: string, authorization?: NeonClientInstanceAuthorization | undefined): Promise<NeonProjectDto>;
|
|
2590
2615
|
};
|
|
2591
2616
|
user: {
|
|
@@ -2739,4 +2764,4 @@ declare const serializerBase64: {
|
|
|
2739
2764
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2740
2765
|
};
|
|
2741
2766
|
|
|
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 };
|
|
2767
|
+
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");
|
|
@@ -2525,6 +2525,15 @@ var neonProjectBranchApi = {
|
|
|
2525
2525
|
);
|
|
2526
2526
|
return response.data;
|
|
2527
2527
|
});
|
|
2528
|
+
},
|
|
2529
|
+
getBranches(projectId, authorization) {
|
|
2530
|
+
return __async(this, null, function* () {
|
|
2531
|
+
const response = yield neonClientInstance.get(
|
|
2532
|
+
`projects/${projectId}/branches`,
|
|
2533
|
+
getNeonClientConfig(__spreadValues({}, authorization))
|
|
2534
|
+
);
|
|
2535
|
+
return response.data;
|
|
2536
|
+
});
|
|
2528
2537
|
}
|
|
2529
2538
|
};
|
|
2530
2539
|
|
|
@@ -2558,6 +2567,17 @@ var neonProjectApi = {
|
|
|
2558
2567
|
return response.data;
|
|
2559
2568
|
});
|
|
2560
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
|
+
},
|
|
2561
2581
|
deleteProject(projectId, authorization) {
|
|
2562
2582
|
return __async(this, null, function* () {
|
|
2563
2583
|
const response = yield neonClientInstance.delete(
|
|
@@ -5253,6 +5273,9 @@ function updatePlatformAdapterClientInstance(tokens) {
|
|
|
5253
5273
|
if (tokens == null ? void 0 : tokens.planetscale) {
|
|
5254
5274
|
headers["planetscale-token"] = tokens.planetscale;
|
|
5255
5275
|
}
|
|
5276
|
+
if (tokens == null ? void 0 : tokens.neon) {
|
|
5277
|
+
headers["neon-token"] = tokens.neon;
|
|
5278
|
+
}
|
|
5256
5279
|
if (tokens == null ? void 0 : tokens.sentry) {
|
|
5257
5280
|
headers["sentry-token"] = tokens.sentry;
|
|
5258
5281
|
}
|
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");
|
|
@@ -2429,6 +2429,15 @@ var neonProjectBranchApi = {
|
|
|
2429
2429
|
);
|
|
2430
2430
|
return response.data;
|
|
2431
2431
|
});
|
|
2432
|
+
},
|
|
2433
|
+
getBranches(projectId, authorization) {
|
|
2434
|
+
return __async(this, null, function* () {
|
|
2435
|
+
const response = yield neonClientInstance.get(
|
|
2436
|
+
`projects/${projectId}/branches`,
|
|
2437
|
+
getNeonClientConfig(__spreadValues({}, authorization))
|
|
2438
|
+
);
|
|
2439
|
+
return response.data;
|
|
2440
|
+
});
|
|
2432
2441
|
}
|
|
2433
2442
|
};
|
|
2434
2443
|
|
|
@@ -2462,6 +2471,17 @@ var neonProjectApi = {
|
|
|
2462
2471
|
return response.data;
|
|
2463
2472
|
});
|
|
2464
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
|
+
},
|
|
2465
2485
|
deleteProject(projectId, authorization) {
|
|
2466
2486
|
return __async(this, null, function* () {
|
|
2467
2487
|
const response = yield neonClientInstance.delete(
|
|
@@ -5157,6 +5177,9 @@ function updatePlatformAdapterClientInstance(tokens) {
|
|
|
5157
5177
|
if (tokens == null ? void 0 : tokens.planetscale) {
|
|
5158
5178
|
headers["planetscale-token"] = tokens.planetscale;
|
|
5159
5179
|
}
|
|
5180
|
+
if (tokens == null ? void 0 : tokens.neon) {
|
|
5181
|
+
headers["neon-token"] = tokens.neon;
|
|
5182
|
+
}
|
|
5160
5183
|
if (tokens == null ? void 0 : tokens.sentry) {
|
|
5161
5184
|
headers["sentry-token"] = tokens.sentry;
|
|
5162
5185
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.45",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
20
|
"config": "0.0.1",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"tsconfig": "0.0.1",
|
|
22
|
+
"eslint-config-custom": "0.0.2"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|