@livechat/developer-studio-api 2.3.68 → 2.3.70
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 +126 -109
- package/dist/index.d.ts +126 -109
- package/dist/index.js +66 -7
- package/dist/index.mjs +66 -7
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -843,6 +843,21 @@ declare function getPlatformBillingClientAuthorization(req: {
|
|
|
843
843
|
declare function getPlatformBillingClientConfig(options?: PlatformBillingClientInstanceOptions): AxiosRequestConfig;
|
|
844
844
|
declare function initPlatformBillingClientInstance(baseUrl?: string, token?: string): void;
|
|
845
845
|
|
|
846
|
+
interface AppTemplate {
|
|
847
|
+
id: string;
|
|
848
|
+
name: string;
|
|
849
|
+
description: string;
|
|
850
|
+
repository: {
|
|
851
|
+
name: string;
|
|
852
|
+
target?: AppRepositoryTarget;
|
|
853
|
+
};
|
|
854
|
+
tags: string[];
|
|
855
|
+
}
|
|
856
|
+
interface AppTemplates {
|
|
857
|
+
nextjs: AppTemplate;
|
|
858
|
+
vite: AppTemplate;
|
|
859
|
+
}
|
|
860
|
+
|
|
846
861
|
interface CreateAppPayload {
|
|
847
862
|
data: {
|
|
848
863
|
app: CreateApplicationPayload;
|
|
@@ -904,6 +919,91 @@ interface CreateAppResult {
|
|
|
904
919
|
status: CreateAppStatus;
|
|
905
920
|
}
|
|
906
921
|
|
|
922
|
+
interface CreateCreatorAppPayload {
|
|
923
|
+
name: string;
|
|
924
|
+
origin: string;
|
|
925
|
+
product: string;
|
|
926
|
+
}
|
|
927
|
+
interface CreateCreatorAppResponse {
|
|
928
|
+
appId: string;
|
|
929
|
+
needToBeActivated: boolean;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
type CreateRepositoryPayload = LinkAppRepositoryData & {
|
|
933
|
+
appId: string;
|
|
934
|
+
appName: string;
|
|
935
|
+
};
|
|
936
|
+
interface CreateRepositoryResponse {
|
|
937
|
+
name: string;
|
|
938
|
+
branch: string;
|
|
939
|
+
needToBeInstalled: boolean;
|
|
940
|
+
needToBeSeeded: boolean;
|
|
941
|
+
}
|
|
942
|
+
interface CreateSeedPayload {
|
|
943
|
+
appId: string;
|
|
944
|
+
name: string;
|
|
945
|
+
provider?: string;
|
|
946
|
+
clientId?: string;
|
|
947
|
+
}
|
|
948
|
+
interface CreateSeedResponse {
|
|
949
|
+
isSeeded: boolean;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
type CreateDeploymentPayload = LinkAppDeploymentData & {
|
|
953
|
+
appId: string;
|
|
954
|
+
appName: string;
|
|
955
|
+
repositoryName: string;
|
|
956
|
+
repositoryBranch: string;
|
|
957
|
+
repositoryTarget: AppRepositoryTarget | undefined;
|
|
958
|
+
};
|
|
959
|
+
interface CreateDeploymentResponse {
|
|
960
|
+
url: string;
|
|
961
|
+
needToBeInstalled: boolean;
|
|
962
|
+
}
|
|
963
|
+
interface CreateDeploymentAccessibilityPayload {
|
|
964
|
+
provider: "netlify" | "vercel";
|
|
965
|
+
repositoryName: string;
|
|
966
|
+
}
|
|
967
|
+
interface CreateDeploymentAccessibilityResponse {
|
|
968
|
+
isAccessible: boolean;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
type CreateStoragePayload = LinkAppStorageData & {
|
|
972
|
+
appId: string;
|
|
973
|
+
appName: string;
|
|
974
|
+
repositoryName: string;
|
|
975
|
+
repositoryBranch: string;
|
|
976
|
+
};
|
|
977
|
+
|
|
978
|
+
interface CreateAuthorizationPayload {
|
|
979
|
+
appId: string;
|
|
980
|
+
appName: string;
|
|
981
|
+
configurationUri: string;
|
|
982
|
+
redirectUri: string;
|
|
983
|
+
scopes: ClientScopeDto[];
|
|
984
|
+
type: "server_side_app" | "javascript_app";
|
|
985
|
+
visibility: string;
|
|
986
|
+
deploymentUrl: string;
|
|
987
|
+
}
|
|
988
|
+
interface CreateAuthorizationResponse {
|
|
989
|
+
clientId: string;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
interface CreateWidgetPayload {
|
|
993
|
+
appId: string;
|
|
994
|
+
widgetId: string;
|
|
995
|
+
payload: UpdateApplicationWidgetDto;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
interface CreatePropertiesPayload {
|
|
999
|
+
property: AddAppPropertiesData;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
interface CreateMonetizationPayload {
|
|
1003
|
+
appId: string;
|
|
1004
|
+
payment: AddAppMonetizationData;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
907
1007
|
type LinkAppDeploymentNetlifySiteData = {
|
|
908
1008
|
type: "new";
|
|
909
1009
|
siteName?: string;
|
|
@@ -1256,104 +1356,17 @@ interface SyncAppVariablePayload {
|
|
|
1256
1356
|
};
|
|
1257
1357
|
}
|
|
1258
1358
|
|
|
1259
|
-
interface
|
|
1260
|
-
|
|
1261
|
-
origin: string;
|
|
1262
|
-
product: string;
|
|
1263
|
-
}
|
|
1264
|
-
interface CreateCreatorAppResponse {
|
|
1265
|
-
appId: string;
|
|
1266
|
-
needToBeActivated: boolean;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
type CreateRepositoryPayload = LinkAppRepositoryData & {
|
|
1270
|
-
appId: string;
|
|
1271
|
-
appName: string;
|
|
1272
|
-
};
|
|
1273
|
-
interface CreateRepositoryResponse {
|
|
1274
|
-
name: string;
|
|
1275
|
-
branch: string;
|
|
1276
|
-
needToBeInstalled: boolean;
|
|
1277
|
-
needToBeSeeded: boolean;
|
|
1278
|
-
}
|
|
1279
|
-
interface CreateSeedPayload {
|
|
1280
|
-
appId: string;
|
|
1359
|
+
interface AppManifest {
|
|
1360
|
+
id: string;
|
|
1281
1361
|
name: string;
|
|
1282
|
-
|
|
1283
|
-
clientId?: string;
|
|
1284
|
-
}
|
|
1285
|
-
interface CreateSeedResponse {
|
|
1286
|
-
isSeeded: boolean;
|
|
1362
|
+
blocks?: AppInfrastructureBlocks;
|
|
1287
1363
|
}
|
|
1288
1364
|
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
appName: string;
|
|
1292
|
-
repositoryName: string;
|
|
1293
|
-
repositoryBranch: string;
|
|
1294
|
-
repositoryTarget: AppRepositoryTarget | undefined;
|
|
1295
|
-
};
|
|
1296
|
-
interface CreateDeploymentResponse {
|
|
1297
|
-
url: string;
|
|
1298
|
-
needToBeInstalled: boolean;
|
|
1365
|
+
interface VerifyAppManifestPayload {
|
|
1366
|
+
manifest: AppManifest;
|
|
1299
1367
|
}
|
|
1300
|
-
interface
|
|
1301
|
-
|
|
1302
|
-
repositoryName: string;
|
|
1303
|
-
}
|
|
1304
|
-
interface CreateDeploymentAccessibilityResponse {
|
|
1305
|
-
isAccessible: boolean;
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
type CreateStoragePayload = LinkAppStorageData & {
|
|
1309
|
-
appId: string;
|
|
1310
|
-
appName: string;
|
|
1311
|
-
repositoryName: string;
|
|
1312
|
-
repositoryBranch: string;
|
|
1313
|
-
};
|
|
1314
|
-
|
|
1315
|
-
interface CreateAuthorizationPayload {
|
|
1316
|
-
appId: string;
|
|
1317
|
-
appName: string;
|
|
1318
|
-
configurationUri: string;
|
|
1319
|
-
redirectUri: string;
|
|
1320
|
-
scopes: ClientScopeDto[];
|
|
1321
|
-
type: "server_side_app" | "javascript_app";
|
|
1322
|
-
visibility: string;
|
|
1323
|
-
deploymentUrl: string;
|
|
1324
|
-
}
|
|
1325
|
-
interface CreateAuthorizationResponse {
|
|
1326
|
-
clientId: string;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
interface CreateWidgetPayload {
|
|
1330
|
-
appId: string;
|
|
1331
|
-
widgetId: string;
|
|
1332
|
-
payload: UpdateApplicationWidgetDto;
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
interface CreatePropertiesPayload {
|
|
1336
|
-
property: AddAppPropertiesData;
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
interface CreateMonetizationPayload {
|
|
1340
|
-
appId: string;
|
|
1341
|
-
payment: AddAppMonetizationData;
|
|
1342
|
-
}
|
|
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;
|
|
1368
|
+
interface VerifyAppManifestResult {
|
|
1369
|
+
status: "ok" | "nok";
|
|
1357
1370
|
}
|
|
1358
1371
|
|
|
1359
1372
|
interface PlatformAdapterClientInstanceAuthorization {
|
|
@@ -2317,6 +2330,18 @@ declare const api: {
|
|
|
2317
2330
|
};
|
|
2318
2331
|
adapter: {
|
|
2319
2332
|
app: {
|
|
2333
|
+
creator: {
|
|
2334
|
+
app(payload: CreateCreatorAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateCreatorAppResponse>;
|
|
2335
|
+
repository(payload: CreateRepositoryPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateRepositoryResponse>;
|
|
2336
|
+
seed(payload: CreateSeedPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateSeedResponse>;
|
|
2337
|
+
deployment(payload: CreateDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentResponse>;
|
|
2338
|
+
deployment_accessible(payload: CreateDeploymentAccessibilityPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentAccessibilityResponse>;
|
|
2339
|
+
storage(payload: any, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2340
|
+
authorization(payload: CreateAuthorizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAuthorizationResponse>;
|
|
2341
|
+
widgets(payload: CreateWidgetPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2342
|
+
properties(payload: CreatePropertiesPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2343
|
+
monetization(payload: CreateMonetizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2344
|
+
};
|
|
2320
2345
|
blocks: {
|
|
2321
2346
|
repository: {
|
|
2322
2347
|
get(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppRepository>;
|
|
@@ -2358,23 +2383,14 @@ declare const api: {
|
|
|
2358
2383
|
editVariable(appId: string, data: EditAppVariablePayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2359
2384
|
deleteVariable(appId: string, key: string): Promise<void>;
|
|
2360
2385
|
};
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
deployment(payload: CreateDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentResponse>;
|
|
2366
|
-
deployment_accessible(payload: CreateDeploymentAccessibilityPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentAccessibilityResponse>;
|
|
2367
|
-
storage(payload: any, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2368
|
-
authorization(payload: CreateAuthorizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAuthorizationResponse>;
|
|
2369
|
-
widgets(payload: CreateWidgetPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2370
|
-
properties(payload: CreatePropertiesPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2371
|
-
monetization(payload: CreateMonetizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2372
|
-
};
|
|
2373
|
-
templates: {
|
|
2374
|
-
getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppTemplates>;
|
|
2386
|
+
manifest: {
|
|
2387
|
+
getManifest(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppManifest>;
|
|
2388
|
+
pushManifest(manifest: AppManifest, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2389
|
+
verifyManifest(manifest: AppManifest, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<VerifyAppManifestResult>;
|
|
2375
2390
|
};
|
|
2376
2391
|
create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
|
2377
2392
|
createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
|
2393
|
+
getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppTemplates>;
|
|
2378
2394
|
};
|
|
2379
2395
|
conductor: {
|
|
2380
2396
|
request<TData>(config: axios.AxiosRequestConfig, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<TData>;
|
|
@@ -2440,6 +2456,7 @@ declare const api: {
|
|
|
2440
2456
|
blocks: {
|
|
2441
2457
|
getBlocks(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<AppInfrastructureBlocks>;
|
|
2442
2458
|
updateBlocks(appId: string, payload: UpdateAppInfrastructureBlocksPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2459
|
+
deleteBlock(appId: string, block: keyof UpdateAppInfrastructureBlocksPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2443
2460
|
updateRepository(appId: string, payload: {
|
|
2444
2461
|
provider: AppRepositoryProvider;
|
|
2445
2462
|
}, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
@@ -2910,4 +2927,4 @@ declare class UnauthorizeApiError extends Error {
|
|
|
2910
2927
|
constructor(source: UnauthorizeApiErrorSource);
|
|
2911
2928
|
}
|
|
2912
2929
|
|
|
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 };
|
|
2930
|
+
export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentConfigurationDto, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppManifest, 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, VerifyAppManifestPayload, VerifyAppManifestResult, 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
|
@@ -843,6 +843,21 @@ declare function getPlatformBillingClientAuthorization(req: {
|
|
|
843
843
|
declare function getPlatformBillingClientConfig(options?: PlatformBillingClientInstanceOptions): AxiosRequestConfig;
|
|
844
844
|
declare function initPlatformBillingClientInstance(baseUrl?: string, token?: string): void;
|
|
845
845
|
|
|
846
|
+
interface AppTemplate {
|
|
847
|
+
id: string;
|
|
848
|
+
name: string;
|
|
849
|
+
description: string;
|
|
850
|
+
repository: {
|
|
851
|
+
name: string;
|
|
852
|
+
target?: AppRepositoryTarget;
|
|
853
|
+
};
|
|
854
|
+
tags: string[];
|
|
855
|
+
}
|
|
856
|
+
interface AppTemplates {
|
|
857
|
+
nextjs: AppTemplate;
|
|
858
|
+
vite: AppTemplate;
|
|
859
|
+
}
|
|
860
|
+
|
|
846
861
|
interface CreateAppPayload {
|
|
847
862
|
data: {
|
|
848
863
|
app: CreateApplicationPayload;
|
|
@@ -904,6 +919,91 @@ interface CreateAppResult {
|
|
|
904
919
|
status: CreateAppStatus;
|
|
905
920
|
}
|
|
906
921
|
|
|
922
|
+
interface CreateCreatorAppPayload {
|
|
923
|
+
name: string;
|
|
924
|
+
origin: string;
|
|
925
|
+
product: string;
|
|
926
|
+
}
|
|
927
|
+
interface CreateCreatorAppResponse {
|
|
928
|
+
appId: string;
|
|
929
|
+
needToBeActivated: boolean;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
type CreateRepositoryPayload = LinkAppRepositoryData & {
|
|
933
|
+
appId: string;
|
|
934
|
+
appName: string;
|
|
935
|
+
};
|
|
936
|
+
interface CreateRepositoryResponse {
|
|
937
|
+
name: string;
|
|
938
|
+
branch: string;
|
|
939
|
+
needToBeInstalled: boolean;
|
|
940
|
+
needToBeSeeded: boolean;
|
|
941
|
+
}
|
|
942
|
+
interface CreateSeedPayload {
|
|
943
|
+
appId: string;
|
|
944
|
+
name: string;
|
|
945
|
+
provider?: string;
|
|
946
|
+
clientId?: string;
|
|
947
|
+
}
|
|
948
|
+
interface CreateSeedResponse {
|
|
949
|
+
isSeeded: boolean;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
type CreateDeploymentPayload = LinkAppDeploymentData & {
|
|
953
|
+
appId: string;
|
|
954
|
+
appName: string;
|
|
955
|
+
repositoryName: string;
|
|
956
|
+
repositoryBranch: string;
|
|
957
|
+
repositoryTarget: AppRepositoryTarget | undefined;
|
|
958
|
+
};
|
|
959
|
+
interface CreateDeploymentResponse {
|
|
960
|
+
url: string;
|
|
961
|
+
needToBeInstalled: boolean;
|
|
962
|
+
}
|
|
963
|
+
interface CreateDeploymentAccessibilityPayload {
|
|
964
|
+
provider: "netlify" | "vercel";
|
|
965
|
+
repositoryName: string;
|
|
966
|
+
}
|
|
967
|
+
interface CreateDeploymentAccessibilityResponse {
|
|
968
|
+
isAccessible: boolean;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
type CreateStoragePayload = LinkAppStorageData & {
|
|
972
|
+
appId: string;
|
|
973
|
+
appName: string;
|
|
974
|
+
repositoryName: string;
|
|
975
|
+
repositoryBranch: string;
|
|
976
|
+
};
|
|
977
|
+
|
|
978
|
+
interface CreateAuthorizationPayload {
|
|
979
|
+
appId: string;
|
|
980
|
+
appName: string;
|
|
981
|
+
configurationUri: string;
|
|
982
|
+
redirectUri: string;
|
|
983
|
+
scopes: ClientScopeDto[];
|
|
984
|
+
type: "server_side_app" | "javascript_app";
|
|
985
|
+
visibility: string;
|
|
986
|
+
deploymentUrl: string;
|
|
987
|
+
}
|
|
988
|
+
interface CreateAuthorizationResponse {
|
|
989
|
+
clientId: string;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
interface CreateWidgetPayload {
|
|
993
|
+
appId: string;
|
|
994
|
+
widgetId: string;
|
|
995
|
+
payload: UpdateApplicationWidgetDto;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
interface CreatePropertiesPayload {
|
|
999
|
+
property: AddAppPropertiesData;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
interface CreateMonetizationPayload {
|
|
1003
|
+
appId: string;
|
|
1004
|
+
payment: AddAppMonetizationData;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
907
1007
|
type LinkAppDeploymentNetlifySiteData = {
|
|
908
1008
|
type: "new";
|
|
909
1009
|
siteName?: string;
|
|
@@ -1256,104 +1356,17 @@ interface SyncAppVariablePayload {
|
|
|
1256
1356
|
};
|
|
1257
1357
|
}
|
|
1258
1358
|
|
|
1259
|
-
interface
|
|
1260
|
-
|
|
1261
|
-
origin: string;
|
|
1262
|
-
product: string;
|
|
1263
|
-
}
|
|
1264
|
-
interface CreateCreatorAppResponse {
|
|
1265
|
-
appId: string;
|
|
1266
|
-
needToBeActivated: boolean;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
type CreateRepositoryPayload = LinkAppRepositoryData & {
|
|
1270
|
-
appId: string;
|
|
1271
|
-
appName: string;
|
|
1272
|
-
};
|
|
1273
|
-
interface CreateRepositoryResponse {
|
|
1274
|
-
name: string;
|
|
1275
|
-
branch: string;
|
|
1276
|
-
needToBeInstalled: boolean;
|
|
1277
|
-
needToBeSeeded: boolean;
|
|
1278
|
-
}
|
|
1279
|
-
interface CreateSeedPayload {
|
|
1280
|
-
appId: string;
|
|
1359
|
+
interface AppManifest {
|
|
1360
|
+
id: string;
|
|
1281
1361
|
name: string;
|
|
1282
|
-
|
|
1283
|
-
clientId?: string;
|
|
1284
|
-
}
|
|
1285
|
-
interface CreateSeedResponse {
|
|
1286
|
-
isSeeded: boolean;
|
|
1362
|
+
blocks?: AppInfrastructureBlocks;
|
|
1287
1363
|
}
|
|
1288
1364
|
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
appName: string;
|
|
1292
|
-
repositoryName: string;
|
|
1293
|
-
repositoryBranch: string;
|
|
1294
|
-
repositoryTarget: AppRepositoryTarget | undefined;
|
|
1295
|
-
};
|
|
1296
|
-
interface CreateDeploymentResponse {
|
|
1297
|
-
url: string;
|
|
1298
|
-
needToBeInstalled: boolean;
|
|
1365
|
+
interface VerifyAppManifestPayload {
|
|
1366
|
+
manifest: AppManifest;
|
|
1299
1367
|
}
|
|
1300
|
-
interface
|
|
1301
|
-
|
|
1302
|
-
repositoryName: string;
|
|
1303
|
-
}
|
|
1304
|
-
interface CreateDeploymentAccessibilityResponse {
|
|
1305
|
-
isAccessible: boolean;
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
type CreateStoragePayload = LinkAppStorageData & {
|
|
1309
|
-
appId: string;
|
|
1310
|
-
appName: string;
|
|
1311
|
-
repositoryName: string;
|
|
1312
|
-
repositoryBranch: string;
|
|
1313
|
-
};
|
|
1314
|
-
|
|
1315
|
-
interface CreateAuthorizationPayload {
|
|
1316
|
-
appId: string;
|
|
1317
|
-
appName: string;
|
|
1318
|
-
configurationUri: string;
|
|
1319
|
-
redirectUri: string;
|
|
1320
|
-
scopes: ClientScopeDto[];
|
|
1321
|
-
type: "server_side_app" | "javascript_app";
|
|
1322
|
-
visibility: string;
|
|
1323
|
-
deploymentUrl: string;
|
|
1324
|
-
}
|
|
1325
|
-
interface CreateAuthorizationResponse {
|
|
1326
|
-
clientId: string;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
interface CreateWidgetPayload {
|
|
1330
|
-
appId: string;
|
|
1331
|
-
widgetId: string;
|
|
1332
|
-
payload: UpdateApplicationWidgetDto;
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
interface CreatePropertiesPayload {
|
|
1336
|
-
property: AddAppPropertiesData;
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
interface CreateMonetizationPayload {
|
|
1340
|
-
appId: string;
|
|
1341
|
-
payment: AddAppMonetizationData;
|
|
1342
|
-
}
|
|
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;
|
|
1368
|
+
interface VerifyAppManifestResult {
|
|
1369
|
+
status: "ok" | "nok";
|
|
1357
1370
|
}
|
|
1358
1371
|
|
|
1359
1372
|
interface PlatformAdapterClientInstanceAuthorization {
|
|
@@ -2317,6 +2330,18 @@ declare const api: {
|
|
|
2317
2330
|
};
|
|
2318
2331
|
adapter: {
|
|
2319
2332
|
app: {
|
|
2333
|
+
creator: {
|
|
2334
|
+
app(payload: CreateCreatorAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateCreatorAppResponse>;
|
|
2335
|
+
repository(payload: CreateRepositoryPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateRepositoryResponse>;
|
|
2336
|
+
seed(payload: CreateSeedPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateSeedResponse>;
|
|
2337
|
+
deployment(payload: CreateDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentResponse>;
|
|
2338
|
+
deployment_accessible(payload: CreateDeploymentAccessibilityPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentAccessibilityResponse>;
|
|
2339
|
+
storage(payload: any, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2340
|
+
authorization(payload: CreateAuthorizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAuthorizationResponse>;
|
|
2341
|
+
widgets(payload: CreateWidgetPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2342
|
+
properties(payload: CreatePropertiesPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2343
|
+
monetization(payload: CreateMonetizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2344
|
+
};
|
|
2320
2345
|
blocks: {
|
|
2321
2346
|
repository: {
|
|
2322
2347
|
get(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppRepository>;
|
|
@@ -2358,23 +2383,14 @@ declare const api: {
|
|
|
2358
2383
|
editVariable(appId: string, data: EditAppVariablePayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2359
2384
|
deleteVariable(appId: string, key: string): Promise<void>;
|
|
2360
2385
|
};
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
deployment(payload: CreateDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentResponse>;
|
|
2366
|
-
deployment_accessible(payload: CreateDeploymentAccessibilityPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentAccessibilityResponse>;
|
|
2367
|
-
storage(payload: any, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2368
|
-
authorization(payload: CreateAuthorizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAuthorizationResponse>;
|
|
2369
|
-
widgets(payload: CreateWidgetPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2370
|
-
properties(payload: CreatePropertiesPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2371
|
-
monetization(payload: CreateMonetizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2372
|
-
};
|
|
2373
|
-
templates: {
|
|
2374
|
-
getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppTemplates>;
|
|
2386
|
+
manifest: {
|
|
2387
|
+
getManifest(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppManifest>;
|
|
2388
|
+
pushManifest(manifest: AppManifest, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
2389
|
+
verifyManifest(manifest: AppManifest, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<VerifyAppManifestResult>;
|
|
2375
2390
|
};
|
|
2376
2391
|
create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
|
2377
2392
|
createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
|
2393
|
+
getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppTemplates>;
|
|
2378
2394
|
};
|
|
2379
2395
|
conductor: {
|
|
2380
2396
|
request<TData>(config: axios.AxiosRequestConfig, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<TData>;
|
|
@@ -2440,6 +2456,7 @@ declare const api: {
|
|
|
2440
2456
|
blocks: {
|
|
2441
2457
|
getBlocks(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<AppInfrastructureBlocks>;
|
|
2442
2458
|
updateBlocks(appId: string, payload: UpdateAppInfrastructureBlocksPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2459
|
+
deleteBlock(appId: string, block: keyof UpdateAppInfrastructureBlocksPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2443
2460
|
updateRepository(appId: string, payload: {
|
|
2444
2461
|
provider: AppRepositoryProvider;
|
|
2445
2462
|
}, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
@@ -2910,4 +2927,4 @@ declare class UnauthorizeApiError extends Error {
|
|
|
2910
2927
|
constructor(source: UnauthorizeApiErrorSource);
|
|
2911
2928
|
}
|
|
2912
2929
|
|
|
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 };
|
|
2930
|
+
export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentConfigurationDto, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppManifest, 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, VerifyAppManifestPayload, VerifyAppManifestResult, 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
|
@@ -4175,6 +4175,14 @@ var platformDpsApplicationInfrastructureBlocksApi = {
|
|
|
4175
4175
|
);
|
|
4176
4176
|
});
|
|
4177
4177
|
},
|
|
4178
|
+
deleteBlock(appId, block, authorization) {
|
|
4179
|
+
return __async(this, null, function* () {
|
|
4180
|
+
yield platformDpsClientInstance.delete(
|
|
4181
|
+
`/v2/applications/${appId}/infrastructure/blocks/${block}`,
|
|
4182
|
+
getPlatformDpsClientConfig(authorization)
|
|
4183
|
+
);
|
|
4184
|
+
});
|
|
4185
|
+
},
|
|
4178
4186
|
updateRepository(appId, payload, authorization) {
|
|
4179
4187
|
return __async(this, null, function* () {
|
|
4180
4188
|
yield platformDpsClientInstance.patch(
|
|
@@ -5975,20 +5983,53 @@ var platformAdapterAppCreatorApi = {
|
|
|
5975
5983
|
}
|
|
5976
5984
|
};
|
|
5977
5985
|
|
|
5978
|
-
// src/apis/platform/adapter/app/
|
|
5979
|
-
var
|
|
5980
|
-
|
|
5986
|
+
// src/apis/platform/adapter/app/manifest/api.ts
|
|
5987
|
+
var platformAdapterAppManifestApi = {
|
|
5988
|
+
getManifest(appId, authorization) {
|
|
5981
5989
|
return __async(this, null, function* () {
|
|
5982
5990
|
try {
|
|
5983
5991
|
const response = yield platformAdapterClientInstance.get(
|
|
5984
|
-
`/console/app/
|
|
5992
|
+
`/console/app/${appId}/manifest`,
|
|
5993
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5994
|
+
);
|
|
5995
|
+
return response.data;
|
|
5996
|
+
} catch (error) {
|
|
5997
|
+
if (error instanceof Error) {
|
|
5998
|
+
throw new Error(`App manifest couldn't be created. [${error.message}]`);
|
|
5999
|
+
}
|
|
6000
|
+
throw error;
|
|
6001
|
+
}
|
|
6002
|
+
});
|
|
6003
|
+
},
|
|
6004
|
+
pushManifest(manifest, authorization) {
|
|
6005
|
+
return __async(this, null, function* () {
|
|
6006
|
+
try {
|
|
6007
|
+
yield platformAdapterClientInstance.post(
|
|
6008
|
+
`/console/app/${manifest.id}/manifest`,
|
|
6009
|
+
manifest,
|
|
6010
|
+
getPlatformAdapterClientConfig(authorization)
|
|
6011
|
+
);
|
|
6012
|
+
} catch (error) {
|
|
6013
|
+
if (error instanceof Error) {
|
|
6014
|
+
throw new Error(`App manifest couldn't be pushed. [${error.message}]`);
|
|
6015
|
+
}
|
|
6016
|
+
throw error;
|
|
6017
|
+
}
|
|
6018
|
+
});
|
|
6019
|
+
},
|
|
6020
|
+
verifyManifest(manifest, authorization) {
|
|
6021
|
+
return __async(this, null, function* () {
|
|
6022
|
+
try {
|
|
6023
|
+
const response = yield platformAdapterClientInstance.post(
|
|
6024
|
+
`/console/app/${manifest.id}/manifest/verify`,
|
|
6025
|
+
manifest,
|
|
5985
6026
|
getPlatformAdapterClientConfig(authorization)
|
|
5986
6027
|
);
|
|
5987
6028
|
return response.data;
|
|
5988
6029
|
} catch (error) {
|
|
5989
6030
|
if (error instanceof Error) {
|
|
5990
6031
|
throw new Error(
|
|
5991
|
-
`App
|
|
6032
|
+
`App manifest couldn't be verified. [${error.message}]`
|
|
5992
6033
|
);
|
|
5993
6034
|
}
|
|
5994
6035
|
throw error;
|
|
@@ -5999,10 +6040,10 @@ var platformAdapterAppTemplatesApi = {
|
|
|
5999
6040
|
|
|
6000
6041
|
// src/apis/platform/adapter/app/api.ts
|
|
6001
6042
|
var platformAdapterAppApi = {
|
|
6043
|
+
creator: platformAdapterAppCreatorApi,
|
|
6002
6044
|
blocks: platformAdapterAppBlocksApi,
|
|
6003
6045
|
variables: platformAdapterAppVariablesApi,
|
|
6004
|
-
|
|
6005
|
-
templates: platformAdapterAppTemplatesApi,
|
|
6046
|
+
manifest: platformAdapterAppManifestApi,
|
|
6006
6047
|
create(payload, authorization) {
|
|
6007
6048
|
return __async(this, null, function* () {
|
|
6008
6049
|
const response = yield platformAdapterClientInstance.post(
|
|
@@ -6025,6 +6066,24 @@ var platformAdapterAppApi = {
|
|
|
6025
6066
|
);
|
|
6026
6067
|
return response.data;
|
|
6027
6068
|
});
|
|
6069
|
+
},
|
|
6070
|
+
getTemplates(authorization) {
|
|
6071
|
+
return __async(this, null, function* () {
|
|
6072
|
+
try {
|
|
6073
|
+
const response = yield platformAdapterClientInstance.get(
|
|
6074
|
+
`/console/app/templates`,
|
|
6075
|
+
getPlatformAdapterClientConfig(authorization)
|
|
6076
|
+
);
|
|
6077
|
+
return response.data;
|
|
6078
|
+
} catch (error) {
|
|
6079
|
+
if (error instanceof Error) {
|
|
6080
|
+
throw new Error(
|
|
6081
|
+
`App templates couldn't be created. [${error.message}]`
|
|
6082
|
+
);
|
|
6083
|
+
}
|
|
6084
|
+
throw error;
|
|
6085
|
+
}
|
|
6086
|
+
});
|
|
6028
6087
|
}
|
|
6029
6088
|
};
|
|
6030
6089
|
|
package/dist/index.mjs
CHANGED
|
@@ -4080,6 +4080,14 @@ var platformDpsApplicationInfrastructureBlocksApi = {
|
|
|
4080
4080
|
);
|
|
4081
4081
|
});
|
|
4082
4082
|
},
|
|
4083
|
+
deleteBlock(appId, block, authorization) {
|
|
4084
|
+
return __async(this, null, function* () {
|
|
4085
|
+
yield platformDpsClientInstance.delete(
|
|
4086
|
+
`/v2/applications/${appId}/infrastructure/blocks/${block}`,
|
|
4087
|
+
getPlatformDpsClientConfig(authorization)
|
|
4088
|
+
);
|
|
4089
|
+
});
|
|
4090
|
+
},
|
|
4083
4091
|
updateRepository(appId, payload, authorization) {
|
|
4084
4092
|
return __async(this, null, function* () {
|
|
4085
4093
|
yield platformDpsClientInstance.patch(
|
|
@@ -5880,20 +5888,53 @@ var platformAdapterAppCreatorApi = {
|
|
|
5880
5888
|
}
|
|
5881
5889
|
};
|
|
5882
5890
|
|
|
5883
|
-
// src/apis/platform/adapter/app/
|
|
5884
|
-
var
|
|
5885
|
-
|
|
5891
|
+
// src/apis/platform/adapter/app/manifest/api.ts
|
|
5892
|
+
var platformAdapterAppManifestApi = {
|
|
5893
|
+
getManifest(appId, authorization) {
|
|
5886
5894
|
return __async(this, null, function* () {
|
|
5887
5895
|
try {
|
|
5888
5896
|
const response = yield platformAdapterClientInstance.get(
|
|
5889
|
-
`/console/app/
|
|
5897
|
+
`/console/app/${appId}/manifest`,
|
|
5898
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5899
|
+
);
|
|
5900
|
+
return response.data;
|
|
5901
|
+
} catch (error) {
|
|
5902
|
+
if (error instanceof Error) {
|
|
5903
|
+
throw new Error(`App manifest couldn't be created. [${error.message}]`);
|
|
5904
|
+
}
|
|
5905
|
+
throw error;
|
|
5906
|
+
}
|
|
5907
|
+
});
|
|
5908
|
+
},
|
|
5909
|
+
pushManifest(manifest, authorization) {
|
|
5910
|
+
return __async(this, null, function* () {
|
|
5911
|
+
try {
|
|
5912
|
+
yield platformAdapterClientInstance.post(
|
|
5913
|
+
`/console/app/${manifest.id}/manifest`,
|
|
5914
|
+
manifest,
|
|
5915
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5916
|
+
);
|
|
5917
|
+
} catch (error) {
|
|
5918
|
+
if (error instanceof Error) {
|
|
5919
|
+
throw new Error(`App manifest couldn't be pushed. [${error.message}]`);
|
|
5920
|
+
}
|
|
5921
|
+
throw error;
|
|
5922
|
+
}
|
|
5923
|
+
});
|
|
5924
|
+
},
|
|
5925
|
+
verifyManifest(manifest, authorization) {
|
|
5926
|
+
return __async(this, null, function* () {
|
|
5927
|
+
try {
|
|
5928
|
+
const response = yield platformAdapterClientInstance.post(
|
|
5929
|
+
`/console/app/${manifest.id}/manifest/verify`,
|
|
5930
|
+
manifest,
|
|
5890
5931
|
getPlatformAdapterClientConfig(authorization)
|
|
5891
5932
|
);
|
|
5892
5933
|
return response.data;
|
|
5893
5934
|
} catch (error) {
|
|
5894
5935
|
if (error instanceof Error) {
|
|
5895
5936
|
throw new Error(
|
|
5896
|
-
`App
|
|
5937
|
+
`App manifest couldn't be verified. [${error.message}]`
|
|
5897
5938
|
);
|
|
5898
5939
|
}
|
|
5899
5940
|
throw error;
|
|
@@ -5904,10 +5945,10 @@ var platformAdapterAppTemplatesApi = {
|
|
|
5904
5945
|
|
|
5905
5946
|
// src/apis/platform/adapter/app/api.ts
|
|
5906
5947
|
var platformAdapterAppApi = {
|
|
5948
|
+
creator: platformAdapterAppCreatorApi,
|
|
5907
5949
|
blocks: platformAdapterAppBlocksApi,
|
|
5908
5950
|
variables: platformAdapterAppVariablesApi,
|
|
5909
|
-
|
|
5910
|
-
templates: platformAdapterAppTemplatesApi,
|
|
5951
|
+
manifest: platformAdapterAppManifestApi,
|
|
5911
5952
|
create(payload, authorization) {
|
|
5912
5953
|
return __async(this, null, function* () {
|
|
5913
5954
|
const response = yield platformAdapterClientInstance.post(
|
|
@@ -5930,6 +5971,24 @@ var platformAdapterAppApi = {
|
|
|
5930
5971
|
);
|
|
5931
5972
|
return response.data;
|
|
5932
5973
|
});
|
|
5974
|
+
},
|
|
5975
|
+
getTemplates(authorization) {
|
|
5976
|
+
return __async(this, null, function* () {
|
|
5977
|
+
try {
|
|
5978
|
+
const response = yield platformAdapterClientInstance.get(
|
|
5979
|
+
`/console/app/templates`,
|
|
5980
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5981
|
+
);
|
|
5982
|
+
return response.data;
|
|
5983
|
+
} catch (error) {
|
|
5984
|
+
if (error instanceof Error) {
|
|
5985
|
+
throw new Error(
|
|
5986
|
+
`App templates couldn't be created. [${error.message}]`
|
|
5987
|
+
);
|
|
5988
|
+
}
|
|
5989
|
+
throw error;
|
|
5990
|
+
}
|
|
5991
|
+
});
|
|
5933
5992
|
}
|
|
5934
5993
|
};
|
|
5935
5994
|
|
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.70",
|
|
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
|
+
"tsconfig": "0.0.1",
|
|
22
|
+
"config": "0.0.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|