@livechat/developer-studio-api 2.3.66 → 2.3.68
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 +58 -40
- package/dist/index.d.ts +58 -40
- package/dist/index.js +40 -20
- package/dist/index.mjs +40 -20
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -92,7 +92,7 @@ interface GitHubRepositoryKey {
|
|
|
92
92
|
|
|
93
93
|
interface GitHubRepositorySeed {
|
|
94
94
|
sha: string;
|
|
95
|
-
size
|
|
95
|
+
size?: number;
|
|
96
96
|
content: string;
|
|
97
97
|
encoding: string;
|
|
98
98
|
}
|
|
@@ -258,7 +258,7 @@ declare function updateSentryClientInstance(token: string | undefined): void;
|
|
|
258
258
|
|
|
259
259
|
interface SentryIntegration {
|
|
260
260
|
id: string;
|
|
261
|
-
status:
|
|
261
|
+
status: "active" | "disabled";
|
|
262
262
|
provider: {
|
|
263
263
|
name: string;
|
|
264
264
|
};
|
|
@@ -286,37 +286,37 @@ interface SentryProjectIssue {
|
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
interface SentryProjectIssueEvent {
|
|
289
|
-
id:
|
|
290
|
-
groupID:
|
|
291
|
-
eventID:
|
|
292
|
-
projectID:
|
|
289
|
+
id: "ed5d462d3c324a3c8f57071aff4c817b";
|
|
290
|
+
groupID: "3948330870";
|
|
291
|
+
eventID: "ed5d462d3c324a3c8f57071aff4c817b";
|
|
292
|
+
projectID: "4504713248571392";
|
|
293
293
|
size: 49159;
|
|
294
294
|
entries: {
|
|
295
|
-
type:
|
|
295
|
+
type: "exception";
|
|
296
296
|
data: {
|
|
297
297
|
values: {
|
|
298
298
|
type: string;
|
|
299
299
|
value: string;
|
|
300
300
|
stacktrace: {
|
|
301
301
|
frames: {
|
|
302
|
-
filename:
|
|
303
|
-
absPath:
|
|
304
|
-
module:
|
|
302
|
+
filename: "./pages/index.tsx";
|
|
303
|
+
absPath: "webpack://_N_E/./pages/index.tsx";
|
|
304
|
+
module: "pages/index";
|
|
305
305
|
package: null;
|
|
306
306
|
platform: null;
|
|
307
307
|
instructionAddr: null;
|
|
308
308
|
symbolAddr: null;
|
|
309
|
-
function:
|
|
309
|
+
function: "<object>.children.onClick";
|
|
310
310
|
rawFunction: null;
|
|
311
311
|
symbol: null;
|
|
312
312
|
context: [
|
|
313
313
|
[
|
|
314
314
|
5,
|
|
315
|
-
|
|
315
|
+
" <ViewContainer>"
|
|
316
316
|
],
|
|
317
317
|
[
|
|
318
318
|
6,
|
|
319
|
-
|
|
319
|
+
" <h1>Home page</h1>"
|
|
320
320
|
],
|
|
321
321
|
[
|
|
322
322
|
7,
|
|
@@ -324,19 +324,19 @@ interface SentryProjectIssueEvent {
|
|
|
324
324
|
],
|
|
325
325
|
[
|
|
326
326
|
8,
|
|
327
|
-
|
|
327
|
+
" const test: any = {}"
|
|
328
328
|
],
|
|
329
329
|
[
|
|
330
330
|
9,
|
|
331
|
-
|
|
331
|
+
""
|
|
332
332
|
],
|
|
333
333
|
[
|
|
334
334
|
10,
|
|
335
|
-
|
|
335
|
+
" test.test.doSomething();"
|
|
336
336
|
],
|
|
337
337
|
[
|
|
338
338
|
11,
|
|
339
|
-
|
|
339
|
+
" }} />"
|
|
340
340
|
],
|
|
341
341
|
[
|
|
342
342
|
12,
|
|
@@ -344,15 +344,15 @@ interface SentryProjectIssueEvent {
|
|
|
344
344
|
],
|
|
345
345
|
[
|
|
346
346
|
13,
|
|
347
|
-
|
|
347
|
+
" const test: any = {}"
|
|
348
348
|
],
|
|
349
349
|
[
|
|
350
350
|
14,
|
|
351
|
-
|
|
351
|
+
""
|
|
352
352
|
],
|
|
353
353
|
[
|
|
354
354
|
15,
|
|
355
|
-
|
|
355
|
+
" test.test.doSomething();"
|
|
356
356
|
]
|
|
357
357
|
];
|
|
358
358
|
lineNo: 10;
|
|
@@ -362,9 +362,9 @@ interface SentryProjectIssueEvent {
|
|
|
362
362
|
}[];
|
|
363
363
|
};
|
|
364
364
|
}[];
|
|
365
|
-
message:
|
|
365
|
+
message: "";
|
|
366
366
|
title: "TypeError: Cannot read properties of undefined (reading 'doSomething')";
|
|
367
|
-
location:
|
|
367
|
+
location: "./pages/index.tsx";
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
interface SentryProjectKey {
|
|
@@ -712,13 +712,13 @@ interface CreateClientPayload {
|
|
|
712
712
|
visibility: string;
|
|
713
713
|
redirect_uri: string;
|
|
714
714
|
scopes: string[];
|
|
715
|
-
type:
|
|
715
|
+
type: "server_side_app" | "javascript_app";
|
|
716
716
|
}
|
|
717
717
|
|
|
718
718
|
interface UpdateClientPayload {
|
|
719
719
|
redirect_uri: string;
|
|
720
720
|
secret?: string;
|
|
721
|
-
type:
|
|
721
|
+
type: "server_side_app" | "javascript_app";
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
interface PatScopeDto {
|
|
@@ -1022,9 +1022,9 @@ type LinkAppSentryLoggerPayload = {
|
|
|
1022
1022
|
githubIntegrationId?: string;
|
|
1023
1023
|
netlifySiteId?: string;
|
|
1024
1024
|
} & ({
|
|
1025
|
-
type:
|
|
1025
|
+
type: "new";
|
|
1026
1026
|
} | {
|
|
1027
|
-
type:
|
|
1027
|
+
type: "existing";
|
|
1028
1028
|
projectSlug: string;
|
|
1029
1029
|
});
|
|
1030
1030
|
interface LinkSentryLoggerResponse {
|
|
@@ -1180,7 +1180,7 @@ interface AddAppAuthorizationResult {
|
|
|
1180
1180
|
|
|
1181
1181
|
interface AddAppMonetizationData {
|
|
1182
1182
|
creditCardRequired: boolean;
|
|
1183
|
-
frequency:
|
|
1183
|
+
frequency: "monthly" | "once";
|
|
1184
1184
|
perAccount: boolean;
|
|
1185
1185
|
price: number;
|
|
1186
1186
|
tiersPricingConfig: {
|
|
@@ -1207,7 +1207,7 @@ interface AddAppWidgetsData {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
1209
|
type AppVariableType = "custom" | "auth" | "storage";
|
|
1210
|
-
type AppVariableStatus = "valid" | "invalid" | "warning";
|
|
1210
|
+
type AppVariableStatus = "valid" | "invalid" | "warning" | "unknown";
|
|
1211
1211
|
type AppVariableLocalProvider = "console";
|
|
1212
1212
|
type AppVariableExternalProvider = "vercel" | "netlify";
|
|
1213
1213
|
type AppVariableProvider = AppVariableLocalProvider | AppVariableExternalProvider;
|
|
@@ -1298,7 +1298,7 @@ interface CreateDeploymentResponse {
|
|
|
1298
1298
|
needToBeInstalled: boolean;
|
|
1299
1299
|
}
|
|
1300
1300
|
interface CreateDeploymentAccessibilityPayload {
|
|
1301
|
-
provider:
|
|
1301
|
+
provider: "netlify" | "vercel";
|
|
1302
1302
|
repositoryName: string;
|
|
1303
1303
|
}
|
|
1304
1304
|
interface CreateDeploymentAccessibilityResponse {
|
|
@@ -1341,6 +1341,21 @@ interface CreateMonetizationPayload {
|
|
|
1341
1341
|
payment: AddAppMonetizationData;
|
|
1342
1342
|
}
|
|
1343
1343
|
|
|
1344
|
+
interface AppTemplate {
|
|
1345
|
+
id: string;
|
|
1346
|
+
name: string;
|
|
1347
|
+
description: string;
|
|
1348
|
+
repository: {
|
|
1349
|
+
name: string;
|
|
1350
|
+
target?: AppRepositoryTarget;
|
|
1351
|
+
};
|
|
1352
|
+
tags: string[];
|
|
1353
|
+
}
|
|
1354
|
+
interface AppTemplates {
|
|
1355
|
+
nextjs: AppTemplate;
|
|
1356
|
+
vite: AppTemplate;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1344
1359
|
interface PlatformAdapterClientInstanceAuthorization {
|
|
1345
1360
|
platform?: {
|
|
1346
1361
|
dps?: string;
|
|
@@ -1408,7 +1423,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
|
1408
1423
|
|
|
1409
1424
|
interface ApplicationPaymentDto {
|
|
1410
1425
|
creditCardRequired: boolean;
|
|
1411
|
-
frequency:
|
|
1426
|
+
frequency: "monthly" | "once";
|
|
1412
1427
|
perAccount: boolean;
|
|
1413
1428
|
price: number;
|
|
1414
1429
|
tiersPricingConfig: {
|
|
@@ -1975,7 +1990,7 @@ declare function getPlatformDpsClientConfig(options?: PlatformDpsClientInstanceO
|
|
|
1975
1990
|
declare function initPlatformDpsClientInstance(baseUrl?: string, token?: string): void;
|
|
1976
1991
|
|
|
1977
1992
|
interface ShortcutDto {
|
|
1978
|
-
type:
|
|
1993
|
+
type: "link" | "app";
|
|
1979
1994
|
url: string;
|
|
1980
1995
|
}
|
|
1981
1996
|
|
|
@@ -2129,10 +2144,10 @@ interface AgentDto {
|
|
|
2129
2144
|
onboarding_completed: number;
|
|
2130
2145
|
timezone: string;
|
|
2131
2146
|
last_chat_start_timestamp: string;
|
|
2132
|
-
|
|
2147
|
+
"integration.botengine.inapp_status": string;
|
|
2133
2148
|
suspended: number;
|
|
2134
2149
|
avatar: string | null;
|
|
2135
|
-
|
|
2150
|
+
"email.bounce": number;
|
|
2136
2151
|
awaiting_approval: number;
|
|
2137
2152
|
ticket_notifications: number;
|
|
2138
2153
|
daily_summary: number;
|
|
@@ -2146,10 +2161,10 @@ interface AgentDto {
|
|
|
2146
2161
|
weekly_summary: number;
|
|
2147
2162
|
state: string;
|
|
2148
2163
|
mobile: string;
|
|
2149
|
-
|
|
2164
|
+
"email.bounce.type": number;
|
|
2150
2165
|
customers_enabled: number;
|
|
2151
2166
|
permission: string;
|
|
2152
|
-
|
|
2167
|
+
"email.bounce.date": number;
|
|
2153
2168
|
repeat_sound_notifications: number;
|
|
2154
2169
|
design_version: number;
|
|
2155
2170
|
status: string;
|
|
@@ -2205,9 +2220,9 @@ interface WebhookDto {
|
|
|
2205
2220
|
action: string;
|
|
2206
2221
|
description: string;
|
|
2207
2222
|
owner_client_id: string;
|
|
2208
|
-
type:
|
|
2223
|
+
type: "bot" | "license";
|
|
2209
2224
|
filters?: {
|
|
2210
|
-
author_type?:
|
|
2225
|
+
author_type?: "agent" | "customer";
|
|
2211
2226
|
only_my_chats?: boolean;
|
|
2212
2227
|
};
|
|
2213
2228
|
url: string;
|
|
@@ -2219,9 +2234,9 @@ interface Webhook {
|
|
|
2219
2234
|
description: string;
|
|
2220
2235
|
secret_key: string;
|
|
2221
2236
|
owner_client_id: string;
|
|
2222
|
-
type:
|
|
2237
|
+
type: "bot" | "license";
|
|
2223
2238
|
filters?: {
|
|
2224
|
-
author_type?:
|
|
2239
|
+
author_type?: "agent" | "customer";
|
|
2225
2240
|
only_my_chats?: boolean;
|
|
2226
2241
|
};
|
|
2227
2242
|
}
|
|
@@ -2355,6 +2370,9 @@ declare const api: {
|
|
|
2355
2370
|
properties(payload: CreatePropertiesPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2356
2371
|
monetization(payload: CreateMonetizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2357
2372
|
};
|
|
2373
|
+
templates: {
|
|
2374
|
+
getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppTemplates>;
|
|
2375
|
+
};
|
|
2358
2376
|
create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
|
2359
2377
|
createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
|
2360
2378
|
};
|
|
@@ -2892,4 +2910,4 @@ declare class UnauthorizeApiError extends Error {
|
|
|
2892
2910
|
constructor(source: UnauthorizeApiErrorSource);
|
|
2893
2911
|
}
|
|
2894
2912
|
|
|
2895
|
-
export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentConfigurationDto, 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, AppStatsDto, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateAuthorizationPayload, CreateAuthorizationResponse, CreateClientPayload, CreateCreatorAppPayload, CreateCreatorAppResponse, CreateDeploymentAccessibilityPayload, CreateDeploymentAccessibilityResponse, CreateDeploymentPayload, CreateDeploymentResponse, CreateMonetizationPayload, CreatePropertiesPayload, CreateRepositoryPayload, CreateRepositoryResponse, CreateSeedPayload, CreateSeedResponse, CreateStoragePayload, CreateWidgetPayload, DeveloperLedgerParams, EditAppVariablePayload, 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, LinkSentryLoggerResponse, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, LiveChatConfigurationApiError, MyAccountDto, NeonClientInstanceAuthorization, NeonClientInstanceOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, 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, UserNeonIntegrationDto, 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, textClientInstance, updateGithubClientInstance, updateNeonClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
|
|
2913
|
+
export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentConfigurationDto, 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, AppStatsDto, AppStorage, AppStorageBlock, AppStorageProvider, AppTemplate, AppTemplates, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateAuthorizationPayload, CreateAuthorizationResponse, CreateClientPayload, CreateCreatorAppPayload, CreateCreatorAppResponse, CreateDeploymentAccessibilityPayload, CreateDeploymentAccessibilityResponse, CreateDeploymentPayload, CreateDeploymentResponse, CreateMonetizationPayload, CreatePropertiesPayload, CreateRepositoryPayload, CreateRepositoryResponse, CreateSeedPayload, CreateSeedResponse, CreateStoragePayload, CreateWidgetPayload, DeveloperLedgerParams, EditAppVariablePayload, 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, LinkSentryLoggerResponse, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, LiveChatConfigurationApiError, MyAccountDto, NeonClientInstanceAuthorization, NeonClientInstanceOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, 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, UserNeonIntegrationDto, 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, textClientInstance, updateGithubClientInstance, updateNeonClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
|
package/dist/index.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ interface GitHubRepositoryKey {
|
|
|
92
92
|
|
|
93
93
|
interface GitHubRepositorySeed {
|
|
94
94
|
sha: string;
|
|
95
|
-
size
|
|
95
|
+
size?: number;
|
|
96
96
|
content: string;
|
|
97
97
|
encoding: string;
|
|
98
98
|
}
|
|
@@ -258,7 +258,7 @@ declare function updateSentryClientInstance(token: string | undefined): void;
|
|
|
258
258
|
|
|
259
259
|
interface SentryIntegration {
|
|
260
260
|
id: string;
|
|
261
|
-
status:
|
|
261
|
+
status: "active" | "disabled";
|
|
262
262
|
provider: {
|
|
263
263
|
name: string;
|
|
264
264
|
};
|
|
@@ -286,37 +286,37 @@ interface SentryProjectIssue {
|
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
interface SentryProjectIssueEvent {
|
|
289
|
-
id:
|
|
290
|
-
groupID:
|
|
291
|
-
eventID:
|
|
292
|
-
projectID:
|
|
289
|
+
id: "ed5d462d3c324a3c8f57071aff4c817b";
|
|
290
|
+
groupID: "3948330870";
|
|
291
|
+
eventID: "ed5d462d3c324a3c8f57071aff4c817b";
|
|
292
|
+
projectID: "4504713248571392";
|
|
293
293
|
size: 49159;
|
|
294
294
|
entries: {
|
|
295
|
-
type:
|
|
295
|
+
type: "exception";
|
|
296
296
|
data: {
|
|
297
297
|
values: {
|
|
298
298
|
type: string;
|
|
299
299
|
value: string;
|
|
300
300
|
stacktrace: {
|
|
301
301
|
frames: {
|
|
302
|
-
filename:
|
|
303
|
-
absPath:
|
|
304
|
-
module:
|
|
302
|
+
filename: "./pages/index.tsx";
|
|
303
|
+
absPath: "webpack://_N_E/./pages/index.tsx";
|
|
304
|
+
module: "pages/index";
|
|
305
305
|
package: null;
|
|
306
306
|
platform: null;
|
|
307
307
|
instructionAddr: null;
|
|
308
308
|
symbolAddr: null;
|
|
309
|
-
function:
|
|
309
|
+
function: "<object>.children.onClick";
|
|
310
310
|
rawFunction: null;
|
|
311
311
|
symbol: null;
|
|
312
312
|
context: [
|
|
313
313
|
[
|
|
314
314
|
5,
|
|
315
|
-
|
|
315
|
+
" <ViewContainer>"
|
|
316
316
|
],
|
|
317
317
|
[
|
|
318
318
|
6,
|
|
319
|
-
|
|
319
|
+
" <h1>Home page</h1>"
|
|
320
320
|
],
|
|
321
321
|
[
|
|
322
322
|
7,
|
|
@@ -324,19 +324,19 @@ interface SentryProjectIssueEvent {
|
|
|
324
324
|
],
|
|
325
325
|
[
|
|
326
326
|
8,
|
|
327
|
-
|
|
327
|
+
" const test: any = {}"
|
|
328
328
|
],
|
|
329
329
|
[
|
|
330
330
|
9,
|
|
331
|
-
|
|
331
|
+
""
|
|
332
332
|
],
|
|
333
333
|
[
|
|
334
334
|
10,
|
|
335
|
-
|
|
335
|
+
" test.test.doSomething();"
|
|
336
336
|
],
|
|
337
337
|
[
|
|
338
338
|
11,
|
|
339
|
-
|
|
339
|
+
" }} />"
|
|
340
340
|
],
|
|
341
341
|
[
|
|
342
342
|
12,
|
|
@@ -344,15 +344,15 @@ interface SentryProjectIssueEvent {
|
|
|
344
344
|
],
|
|
345
345
|
[
|
|
346
346
|
13,
|
|
347
|
-
|
|
347
|
+
" const test: any = {}"
|
|
348
348
|
],
|
|
349
349
|
[
|
|
350
350
|
14,
|
|
351
|
-
|
|
351
|
+
""
|
|
352
352
|
],
|
|
353
353
|
[
|
|
354
354
|
15,
|
|
355
|
-
|
|
355
|
+
" test.test.doSomething();"
|
|
356
356
|
]
|
|
357
357
|
];
|
|
358
358
|
lineNo: 10;
|
|
@@ -362,9 +362,9 @@ interface SentryProjectIssueEvent {
|
|
|
362
362
|
}[];
|
|
363
363
|
};
|
|
364
364
|
}[];
|
|
365
|
-
message:
|
|
365
|
+
message: "";
|
|
366
366
|
title: "TypeError: Cannot read properties of undefined (reading 'doSomething')";
|
|
367
|
-
location:
|
|
367
|
+
location: "./pages/index.tsx";
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
interface SentryProjectKey {
|
|
@@ -712,13 +712,13 @@ interface CreateClientPayload {
|
|
|
712
712
|
visibility: string;
|
|
713
713
|
redirect_uri: string;
|
|
714
714
|
scopes: string[];
|
|
715
|
-
type:
|
|
715
|
+
type: "server_side_app" | "javascript_app";
|
|
716
716
|
}
|
|
717
717
|
|
|
718
718
|
interface UpdateClientPayload {
|
|
719
719
|
redirect_uri: string;
|
|
720
720
|
secret?: string;
|
|
721
|
-
type:
|
|
721
|
+
type: "server_side_app" | "javascript_app";
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
interface PatScopeDto {
|
|
@@ -1022,9 +1022,9 @@ type LinkAppSentryLoggerPayload = {
|
|
|
1022
1022
|
githubIntegrationId?: string;
|
|
1023
1023
|
netlifySiteId?: string;
|
|
1024
1024
|
} & ({
|
|
1025
|
-
type:
|
|
1025
|
+
type: "new";
|
|
1026
1026
|
} | {
|
|
1027
|
-
type:
|
|
1027
|
+
type: "existing";
|
|
1028
1028
|
projectSlug: string;
|
|
1029
1029
|
});
|
|
1030
1030
|
interface LinkSentryLoggerResponse {
|
|
@@ -1180,7 +1180,7 @@ interface AddAppAuthorizationResult {
|
|
|
1180
1180
|
|
|
1181
1181
|
interface AddAppMonetizationData {
|
|
1182
1182
|
creditCardRequired: boolean;
|
|
1183
|
-
frequency:
|
|
1183
|
+
frequency: "monthly" | "once";
|
|
1184
1184
|
perAccount: boolean;
|
|
1185
1185
|
price: number;
|
|
1186
1186
|
tiersPricingConfig: {
|
|
@@ -1207,7 +1207,7 @@ interface AddAppWidgetsData {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
1209
|
type AppVariableType = "custom" | "auth" | "storage";
|
|
1210
|
-
type AppVariableStatus = "valid" | "invalid" | "warning";
|
|
1210
|
+
type AppVariableStatus = "valid" | "invalid" | "warning" | "unknown";
|
|
1211
1211
|
type AppVariableLocalProvider = "console";
|
|
1212
1212
|
type AppVariableExternalProvider = "vercel" | "netlify";
|
|
1213
1213
|
type AppVariableProvider = AppVariableLocalProvider | AppVariableExternalProvider;
|
|
@@ -1298,7 +1298,7 @@ interface CreateDeploymentResponse {
|
|
|
1298
1298
|
needToBeInstalled: boolean;
|
|
1299
1299
|
}
|
|
1300
1300
|
interface CreateDeploymentAccessibilityPayload {
|
|
1301
|
-
provider:
|
|
1301
|
+
provider: "netlify" | "vercel";
|
|
1302
1302
|
repositoryName: string;
|
|
1303
1303
|
}
|
|
1304
1304
|
interface CreateDeploymentAccessibilityResponse {
|
|
@@ -1341,6 +1341,21 @@ interface CreateMonetizationPayload {
|
|
|
1341
1341
|
payment: AddAppMonetizationData;
|
|
1342
1342
|
}
|
|
1343
1343
|
|
|
1344
|
+
interface AppTemplate {
|
|
1345
|
+
id: string;
|
|
1346
|
+
name: string;
|
|
1347
|
+
description: string;
|
|
1348
|
+
repository: {
|
|
1349
|
+
name: string;
|
|
1350
|
+
target?: AppRepositoryTarget;
|
|
1351
|
+
};
|
|
1352
|
+
tags: string[];
|
|
1353
|
+
}
|
|
1354
|
+
interface AppTemplates {
|
|
1355
|
+
nextjs: AppTemplate;
|
|
1356
|
+
vite: AppTemplate;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1344
1359
|
interface PlatformAdapterClientInstanceAuthorization {
|
|
1345
1360
|
platform?: {
|
|
1346
1361
|
dps?: string;
|
|
@@ -1408,7 +1423,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
|
1408
1423
|
|
|
1409
1424
|
interface ApplicationPaymentDto {
|
|
1410
1425
|
creditCardRequired: boolean;
|
|
1411
|
-
frequency:
|
|
1426
|
+
frequency: "monthly" | "once";
|
|
1412
1427
|
perAccount: boolean;
|
|
1413
1428
|
price: number;
|
|
1414
1429
|
tiersPricingConfig: {
|
|
@@ -1975,7 +1990,7 @@ declare function getPlatformDpsClientConfig(options?: PlatformDpsClientInstanceO
|
|
|
1975
1990
|
declare function initPlatformDpsClientInstance(baseUrl?: string, token?: string): void;
|
|
1976
1991
|
|
|
1977
1992
|
interface ShortcutDto {
|
|
1978
|
-
type:
|
|
1993
|
+
type: "link" | "app";
|
|
1979
1994
|
url: string;
|
|
1980
1995
|
}
|
|
1981
1996
|
|
|
@@ -2129,10 +2144,10 @@ interface AgentDto {
|
|
|
2129
2144
|
onboarding_completed: number;
|
|
2130
2145
|
timezone: string;
|
|
2131
2146
|
last_chat_start_timestamp: string;
|
|
2132
|
-
|
|
2147
|
+
"integration.botengine.inapp_status": string;
|
|
2133
2148
|
suspended: number;
|
|
2134
2149
|
avatar: string | null;
|
|
2135
|
-
|
|
2150
|
+
"email.bounce": number;
|
|
2136
2151
|
awaiting_approval: number;
|
|
2137
2152
|
ticket_notifications: number;
|
|
2138
2153
|
daily_summary: number;
|
|
@@ -2146,10 +2161,10 @@ interface AgentDto {
|
|
|
2146
2161
|
weekly_summary: number;
|
|
2147
2162
|
state: string;
|
|
2148
2163
|
mobile: string;
|
|
2149
|
-
|
|
2164
|
+
"email.bounce.type": number;
|
|
2150
2165
|
customers_enabled: number;
|
|
2151
2166
|
permission: string;
|
|
2152
|
-
|
|
2167
|
+
"email.bounce.date": number;
|
|
2153
2168
|
repeat_sound_notifications: number;
|
|
2154
2169
|
design_version: number;
|
|
2155
2170
|
status: string;
|
|
@@ -2205,9 +2220,9 @@ interface WebhookDto {
|
|
|
2205
2220
|
action: string;
|
|
2206
2221
|
description: string;
|
|
2207
2222
|
owner_client_id: string;
|
|
2208
|
-
type:
|
|
2223
|
+
type: "bot" | "license";
|
|
2209
2224
|
filters?: {
|
|
2210
|
-
author_type?:
|
|
2225
|
+
author_type?: "agent" | "customer";
|
|
2211
2226
|
only_my_chats?: boolean;
|
|
2212
2227
|
};
|
|
2213
2228
|
url: string;
|
|
@@ -2219,9 +2234,9 @@ interface Webhook {
|
|
|
2219
2234
|
description: string;
|
|
2220
2235
|
secret_key: string;
|
|
2221
2236
|
owner_client_id: string;
|
|
2222
|
-
type:
|
|
2237
|
+
type: "bot" | "license";
|
|
2223
2238
|
filters?: {
|
|
2224
|
-
author_type?:
|
|
2239
|
+
author_type?: "agent" | "customer";
|
|
2225
2240
|
only_my_chats?: boolean;
|
|
2226
2241
|
};
|
|
2227
2242
|
}
|
|
@@ -2355,6 +2370,9 @@ declare const api: {
|
|
|
2355
2370
|
properties(payload: CreatePropertiesPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2356
2371
|
monetization(payload: CreateMonetizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2357
2372
|
};
|
|
2373
|
+
templates: {
|
|
2374
|
+
getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppTemplates>;
|
|
2375
|
+
};
|
|
2358
2376
|
create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
|
2359
2377
|
createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
|
2360
2378
|
};
|
|
@@ -2892,4 +2910,4 @@ declare class UnauthorizeApiError extends Error {
|
|
|
2892
2910
|
constructor(source: UnauthorizeApiErrorSource);
|
|
2893
2911
|
}
|
|
2894
2912
|
|
|
2895
|
-
export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentConfigurationDto, 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, AppStatsDto, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateAuthorizationPayload, CreateAuthorizationResponse, CreateClientPayload, CreateCreatorAppPayload, CreateCreatorAppResponse, CreateDeploymentAccessibilityPayload, CreateDeploymentAccessibilityResponse, CreateDeploymentPayload, CreateDeploymentResponse, CreateMonetizationPayload, CreatePropertiesPayload, CreateRepositoryPayload, CreateRepositoryResponse, CreateSeedPayload, CreateSeedResponse, CreateStoragePayload, CreateWidgetPayload, DeveloperLedgerParams, EditAppVariablePayload, 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, LinkSentryLoggerResponse, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, LiveChatConfigurationApiError, MyAccountDto, NeonClientInstanceAuthorization, NeonClientInstanceOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, 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, UserNeonIntegrationDto, 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, textClientInstance, updateGithubClientInstance, updateNeonClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
|
|
2913
|
+
export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentConfigurationDto, 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, AppStatsDto, AppStorage, AppStorageBlock, AppStorageProvider, AppTemplate, AppTemplates, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateAuthorizationPayload, CreateAuthorizationResponse, CreateClientPayload, CreateCreatorAppPayload, CreateCreatorAppResponse, CreateDeploymentAccessibilityPayload, CreateDeploymentAccessibilityResponse, CreateDeploymentPayload, CreateDeploymentResponse, CreateMonetizationPayload, CreatePropertiesPayload, CreateRepositoryPayload, CreateRepositoryResponse, CreateSeedPayload, CreateSeedResponse, CreateStoragePayload, CreateWidgetPayload, DeveloperLedgerParams, EditAppVariablePayload, 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, LinkSentryLoggerResponse, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, LiveChatConfigurationApiError, MyAccountDto, NeonClientInstanceAuthorization, NeonClientInstanceOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, 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, UserNeonIntegrationDto, 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, textClientInstance, updateGithubClientInstance, updateNeonClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
|
package/dist/index.js
CHANGED
|
@@ -2508,7 +2508,7 @@ function initNeonClientInstance(token) {
|
|
|
2508
2508
|
function updateNeonClientInstance(token) {
|
|
2509
2509
|
const headers = neonClientInstance.defaults.headers;
|
|
2510
2510
|
if (token) {
|
|
2511
|
-
headers.Authorization =
|
|
2511
|
+
headers.Authorization = `Bearer ${token}`;
|
|
2512
2512
|
} else {
|
|
2513
2513
|
delete headers.Authorization;
|
|
2514
2514
|
}
|
|
@@ -4253,9 +4253,7 @@ var platformDpsApplicationInstallApi = {
|
|
|
4253
4253
|
);
|
|
4254
4254
|
} catch (error) {
|
|
4255
4255
|
if (error instanceof Error) {
|
|
4256
|
-
throw new Error(
|
|
4257
|
-
`App couldn't be installed. [${error.message}]`
|
|
4258
|
-
);
|
|
4256
|
+
throw new Error(`App couldn't be installed. [${error.message}]`);
|
|
4259
4257
|
}
|
|
4260
4258
|
throw error;
|
|
4261
4259
|
}
|
|
@@ -4270,9 +4268,7 @@ var platformDpsApplicationInstallApi = {
|
|
|
4270
4268
|
);
|
|
4271
4269
|
} catch (error) {
|
|
4272
4270
|
if (error instanceof Error) {
|
|
4273
|
-
throw new Error(
|
|
4274
|
-
`App couldn't be uninstalled. [${error.message}]`
|
|
4275
|
-
);
|
|
4271
|
+
throw new Error(`App couldn't be uninstalled. [${error.message}]`);
|
|
4276
4272
|
}
|
|
4277
4273
|
throw error;
|
|
4278
4274
|
}
|
|
@@ -5440,7 +5436,7 @@ function getPlatformAdapterClientConfig(options = {}) {
|
|
|
5440
5436
|
throw new UnauthorizeApiError("openai");
|
|
5441
5437
|
}
|
|
5442
5438
|
return {
|
|
5443
|
-
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.sentry ? { "sentry-token": headers.integrations.sentry } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
|
|
5439
|
+
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "neon-token": headers.integrations.neon } : {}), headers.integrations.sentry ? { "sentry-token": headers.integrations.sentry } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
|
|
5444
5440
|
};
|
|
5445
5441
|
}
|
|
5446
5442
|
function initPlatformAdapterClientInstance(baseUrl, tokens) {
|
|
@@ -5979,11 +5975,34 @@ var platformAdapterAppCreatorApi = {
|
|
|
5979
5975
|
}
|
|
5980
5976
|
};
|
|
5981
5977
|
|
|
5978
|
+
// src/apis/platform/adapter/app/templates/api.ts
|
|
5979
|
+
var platformAdapterAppTemplatesApi = {
|
|
5980
|
+
getTemplates(authorization) {
|
|
5981
|
+
return __async(this, null, function* () {
|
|
5982
|
+
try {
|
|
5983
|
+
const response = yield platformAdapterClientInstance.get(
|
|
5984
|
+
`/console/app/templates`,
|
|
5985
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5986
|
+
);
|
|
5987
|
+
return response.data;
|
|
5988
|
+
} catch (error) {
|
|
5989
|
+
if (error instanceof Error) {
|
|
5990
|
+
throw new Error(
|
|
5991
|
+
`App templates couldn't be created. [${error.message}]`
|
|
5992
|
+
);
|
|
5993
|
+
}
|
|
5994
|
+
throw error;
|
|
5995
|
+
}
|
|
5996
|
+
});
|
|
5997
|
+
}
|
|
5998
|
+
};
|
|
5999
|
+
|
|
5982
6000
|
// src/apis/platform/adapter/app/api.ts
|
|
5983
6001
|
var platformAdapterAppApi = {
|
|
5984
6002
|
blocks: platformAdapterAppBlocksApi,
|
|
5985
6003
|
variables: platformAdapterAppVariablesApi,
|
|
5986
6004
|
creator: platformAdapterAppCreatorApi,
|
|
6005
|
+
templates: platformAdapterAppTemplatesApi,
|
|
5987
6006
|
create(payload, authorization) {
|
|
5988
6007
|
return __async(this, null, function* () {
|
|
5989
6008
|
const response = yield platformAdapterClientInstance.post(
|
|
@@ -6214,7 +6233,7 @@ var api = {
|
|
|
6214
6233
|
isInitialized: false
|
|
6215
6234
|
};
|
|
6216
6235
|
function initApi(config, tokens) {
|
|
6217
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
6236
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
6218
6237
|
initPlatformAccountsClientInstance(
|
|
6219
6238
|
(_a = config.urls.platform) == null ? void 0 : _a.accounts,
|
|
6220
6239
|
(_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.dps
|
|
@@ -6239,21 +6258,22 @@ function initApi(config, tokens) {
|
|
|
6239
6258
|
},
|
|
6240
6259
|
netlify: (_k = tokens.netlify) == null ? void 0 : _k.token,
|
|
6241
6260
|
vercel: (_l = tokens.vercel) == null ? void 0 : _l.token,
|
|
6242
|
-
|
|
6243
|
-
|
|
6261
|
+
neon: (_m = tokens.neon) == null ? void 0 : _m.token,
|
|
6262
|
+
planetscale: (_n = tokens.planetscale) == null ? void 0 : _n.token,
|
|
6263
|
+
sentry: (_o = tokens.sentry) == null ? void 0 : _o.token
|
|
6244
6264
|
} : void 0
|
|
6245
6265
|
);
|
|
6246
6266
|
initLiveChatClientInstance(
|
|
6247
|
-
(
|
|
6248
|
-
(
|
|
6267
|
+
(_p = config.urls.products) == null ? void 0 : _p.livechat,
|
|
6268
|
+
(_q = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _q.dps
|
|
6249
6269
|
);
|
|
6250
|
-
initTextClientInstance((
|
|
6251
|
-
initGithubClientInstance((
|
|
6252
|
-
initNetlifyClientInstance((
|
|
6253
|
-
initVercelClientInstance((
|
|
6254
|
-
initNeonClientInstance((
|
|
6255
|
-
initPlanetScaleClientInstance((
|
|
6256
|
-
initSentryClientInstance((
|
|
6270
|
+
initTextClientInstance((_r = config.urls.integrations) == null ? void 0 : _r.text, (_s = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _s.dps);
|
|
6271
|
+
initGithubClientInstance((_t = tokens == null ? void 0 : tokens.github) == null ? void 0 : _t.apps);
|
|
6272
|
+
initNetlifyClientInstance((_u = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _u.token);
|
|
6273
|
+
initVercelClientInstance((_v = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _v.token);
|
|
6274
|
+
initNeonClientInstance((_w = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _w.token);
|
|
6275
|
+
initPlanetScaleClientInstance((_x = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _x.token);
|
|
6276
|
+
initSentryClientInstance((_y = tokens == null ? void 0 : tokens.sentry) == null ? void 0 : _y.token);
|
|
6257
6277
|
api.isInitialized = true;
|
|
6258
6278
|
}
|
|
6259
6279
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -2413,7 +2413,7 @@ function initNeonClientInstance(token) {
|
|
|
2413
2413
|
function updateNeonClientInstance(token) {
|
|
2414
2414
|
const headers = neonClientInstance.defaults.headers;
|
|
2415
2415
|
if (token) {
|
|
2416
|
-
headers.Authorization =
|
|
2416
|
+
headers.Authorization = `Bearer ${token}`;
|
|
2417
2417
|
} else {
|
|
2418
2418
|
delete headers.Authorization;
|
|
2419
2419
|
}
|
|
@@ -4158,9 +4158,7 @@ var platformDpsApplicationInstallApi = {
|
|
|
4158
4158
|
);
|
|
4159
4159
|
} catch (error) {
|
|
4160
4160
|
if (error instanceof Error) {
|
|
4161
|
-
throw new Error(
|
|
4162
|
-
`App couldn't be installed. [${error.message}]`
|
|
4163
|
-
);
|
|
4161
|
+
throw new Error(`App couldn't be installed. [${error.message}]`);
|
|
4164
4162
|
}
|
|
4165
4163
|
throw error;
|
|
4166
4164
|
}
|
|
@@ -4175,9 +4173,7 @@ var platformDpsApplicationInstallApi = {
|
|
|
4175
4173
|
);
|
|
4176
4174
|
} catch (error) {
|
|
4177
4175
|
if (error instanceof Error) {
|
|
4178
|
-
throw new Error(
|
|
4179
|
-
`App couldn't be uninstalled. [${error.message}]`
|
|
4180
|
-
);
|
|
4176
|
+
throw new Error(`App couldn't be uninstalled. [${error.message}]`);
|
|
4181
4177
|
}
|
|
4182
4178
|
throw error;
|
|
4183
4179
|
}
|
|
@@ -5345,7 +5341,7 @@ function getPlatformAdapterClientConfig(options = {}) {
|
|
|
5345
5341
|
throw new UnauthorizeApiError("openai");
|
|
5346
5342
|
}
|
|
5347
5343
|
return {
|
|
5348
|
-
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.sentry ? { "sentry-token": headers.integrations.sentry } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
|
|
5344
|
+
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "neon-token": headers.integrations.neon } : {}), headers.integrations.sentry ? { "sentry-token": headers.integrations.sentry } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
|
|
5349
5345
|
};
|
|
5350
5346
|
}
|
|
5351
5347
|
function initPlatformAdapterClientInstance(baseUrl, tokens) {
|
|
@@ -5884,11 +5880,34 @@ var platformAdapterAppCreatorApi = {
|
|
|
5884
5880
|
}
|
|
5885
5881
|
};
|
|
5886
5882
|
|
|
5883
|
+
// src/apis/platform/adapter/app/templates/api.ts
|
|
5884
|
+
var platformAdapterAppTemplatesApi = {
|
|
5885
|
+
getTemplates(authorization) {
|
|
5886
|
+
return __async(this, null, function* () {
|
|
5887
|
+
try {
|
|
5888
|
+
const response = yield platformAdapterClientInstance.get(
|
|
5889
|
+
`/console/app/templates`,
|
|
5890
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5891
|
+
);
|
|
5892
|
+
return response.data;
|
|
5893
|
+
} catch (error) {
|
|
5894
|
+
if (error instanceof Error) {
|
|
5895
|
+
throw new Error(
|
|
5896
|
+
`App templates couldn't be created. [${error.message}]`
|
|
5897
|
+
);
|
|
5898
|
+
}
|
|
5899
|
+
throw error;
|
|
5900
|
+
}
|
|
5901
|
+
});
|
|
5902
|
+
}
|
|
5903
|
+
};
|
|
5904
|
+
|
|
5887
5905
|
// src/apis/platform/adapter/app/api.ts
|
|
5888
5906
|
var platformAdapterAppApi = {
|
|
5889
5907
|
blocks: platformAdapterAppBlocksApi,
|
|
5890
5908
|
variables: platformAdapterAppVariablesApi,
|
|
5891
5909
|
creator: platformAdapterAppCreatorApi,
|
|
5910
|
+
templates: platformAdapterAppTemplatesApi,
|
|
5892
5911
|
create(payload, authorization) {
|
|
5893
5912
|
return __async(this, null, function* () {
|
|
5894
5913
|
const response = yield platformAdapterClientInstance.post(
|
|
@@ -6119,7 +6138,7 @@ var api = {
|
|
|
6119
6138
|
isInitialized: false
|
|
6120
6139
|
};
|
|
6121
6140
|
function initApi(config, tokens) {
|
|
6122
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
6141
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
6123
6142
|
initPlatformAccountsClientInstance(
|
|
6124
6143
|
(_a = config.urls.platform) == null ? void 0 : _a.accounts,
|
|
6125
6144
|
(_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.dps
|
|
@@ -6144,21 +6163,22 @@ function initApi(config, tokens) {
|
|
|
6144
6163
|
},
|
|
6145
6164
|
netlify: (_k = tokens.netlify) == null ? void 0 : _k.token,
|
|
6146
6165
|
vercel: (_l = tokens.vercel) == null ? void 0 : _l.token,
|
|
6147
|
-
|
|
6148
|
-
|
|
6166
|
+
neon: (_m = tokens.neon) == null ? void 0 : _m.token,
|
|
6167
|
+
planetscale: (_n = tokens.planetscale) == null ? void 0 : _n.token,
|
|
6168
|
+
sentry: (_o = tokens.sentry) == null ? void 0 : _o.token
|
|
6149
6169
|
} : void 0
|
|
6150
6170
|
);
|
|
6151
6171
|
initLiveChatClientInstance(
|
|
6152
|
-
(
|
|
6153
|
-
(
|
|
6172
|
+
(_p = config.urls.products) == null ? void 0 : _p.livechat,
|
|
6173
|
+
(_q = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _q.dps
|
|
6154
6174
|
);
|
|
6155
|
-
initTextClientInstance((
|
|
6156
|
-
initGithubClientInstance((
|
|
6157
|
-
initNetlifyClientInstance((
|
|
6158
|
-
initVercelClientInstance((
|
|
6159
|
-
initNeonClientInstance((
|
|
6160
|
-
initPlanetScaleClientInstance((
|
|
6161
|
-
initSentryClientInstance((
|
|
6175
|
+
initTextClientInstance((_r = config.urls.integrations) == null ? void 0 : _r.text, (_s = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _s.dps);
|
|
6176
|
+
initGithubClientInstance((_t = tokens == null ? void 0 : tokens.github) == null ? void 0 : _t.apps);
|
|
6177
|
+
initNetlifyClientInstance((_u = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _u.token);
|
|
6178
|
+
initVercelClientInstance((_v = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _v.token);
|
|
6179
|
+
initNeonClientInstance((_w = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _w.token);
|
|
6180
|
+
initPlanetScaleClientInstance((_x = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _x.token);
|
|
6181
|
+
initSentryClientInstance((_y = tokens == null ? void 0 : tokens.sentry) == null ? void 0 : _y.token);
|
|
6162
6182
|
api.isInitialized = true;
|
|
6163
6183
|
}
|
|
6164
6184
|
export {
|
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.68",
|
|
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
|
"eslint-config-custom": "0.0.3",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"config": "0.0.1",
|
|
22
|
+
"tsconfig": "0.0.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|