@livechat/developer-studio-api 2.3.68 → 2.3.69
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 +125 -109
- package/dist/index.d.ts +125 -109
- package/dist/index.js +58 -7
- package/dist/index.mjs +58 -7
- package/package.json +1 -1
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>;
|
|
@@ -2910,4 +2926,4 @@ declare class UnauthorizeApiError extends Error {
|
|
|
2910
2926
|
constructor(source: UnauthorizeApiErrorSource);
|
|
2911
2927
|
}
|
|
2912
2928
|
|
|
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 };
|
|
2929
|
+
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>;
|
|
@@ -2910,4 +2926,4 @@ declare class UnauthorizeApiError extends Error {
|
|
|
2910
2926
|
constructor(source: UnauthorizeApiErrorSource);
|
|
2911
2927
|
}
|
|
2912
2928
|
|
|
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 };
|
|
2929
|
+
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
|
@@ -5975,20 +5975,53 @@ var platformAdapterAppCreatorApi = {
|
|
|
5975
5975
|
}
|
|
5976
5976
|
};
|
|
5977
5977
|
|
|
5978
|
-
// src/apis/platform/adapter/app/
|
|
5979
|
-
var
|
|
5980
|
-
|
|
5978
|
+
// src/apis/platform/adapter/app/manifest/api.ts
|
|
5979
|
+
var platformAdapterAppManifestApi = {
|
|
5980
|
+
getManifest(appId, authorization) {
|
|
5981
5981
|
return __async(this, null, function* () {
|
|
5982
5982
|
try {
|
|
5983
5983
|
const response = yield platformAdapterClientInstance.get(
|
|
5984
|
-
`/console/app/
|
|
5984
|
+
`/console/app/${appId}/manifest`,
|
|
5985
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5986
|
+
);
|
|
5987
|
+
return response.data;
|
|
5988
|
+
} catch (error) {
|
|
5989
|
+
if (error instanceof Error) {
|
|
5990
|
+
throw new Error(`App manifest couldn't be created. [${error.message}]`);
|
|
5991
|
+
}
|
|
5992
|
+
throw error;
|
|
5993
|
+
}
|
|
5994
|
+
});
|
|
5995
|
+
},
|
|
5996
|
+
pushManifest(manifest, authorization) {
|
|
5997
|
+
return __async(this, null, function* () {
|
|
5998
|
+
try {
|
|
5999
|
+
yield platformAdapterClientInstance.post(
|
|
6000
|
+
`/console/app/${manifest.id}/manifest`,
|
|
6001
|
+
manifest,
|
|
6002
|
+
getPlatformAdapterClientConfig(authorization)
|
|
6003
|
+
);
|
|
6004
|
+
} catch (error) {
|
|
6005
|
+
if (error instanceof Error) {
|
|
6006
|
+
throw new Error(`App manifest couldn't be pushed. [${error.message}]`);
|
|
6007
|
+
}
|
|
6008
|
+
throw error;
|
|
6009
|
+
}
|
|
6010
|
+
});
|
|
6011
|
+
},
|
|
6012
|
+
verifyManifest(manifest, authorization) {
|
|
6013
|
+
return __async(this, null, function* () {
|
|
6014
|
+
try {
|
|
6015
|
+
const response = yield platformAdapterClientInstance.post(
|
|
6016
|
+
`/console/app/${manifest.id}/manifest/verify`,
|
|
6017
|
+
manifest,
|
|
5985
6018
|
getPlatformAdapterClientConfig(authorization)
|
|
5986
6019
|
);
|
|
5987
6020
|
return response.data;
|
|
5988
6021
|
} catch (error) {
|
|
5989
6022
|
if (error instanceof Error) {
|
|
5990
6023
|
throw new Error(
|
|
5991
|
-
`App
|
|
6024
|
+
`App manifest couldn't be verified. [${error.message}]`
|
|
5992
6025
|
);
|
|
5993
6026
|
}
|
|
5994
6027
|
throw error;
|
|
@@ -5999,10 +6032,10 @@ var platformAdapterAppTemplatesApi = {
|
|
|
5999
6032
|
|
|
6000
6033
|
// src/apis/platform/adapter/app/api.ts
|
|
6001
6034
|
var platformAdapterAppApi = {
|
|
6035
|
+
creator: platformAdapterAppCreatorApi,
|
|
6002
6036
|
blocks: platformAdapterAppBlocksApi,
|
|
6003
6037
|
variables: platformAdapterAppVariablesApi,
|
|
6004
|
-
|
|
6005
|
-
templates: platformAdapterAppTemplatesApi,
|
|
6038
|
+
manifest: platformAdapterAppManifestApi,
|
|
6006
6039
|
create(payload, authorization) {
|
|
6007
6040
|
return __async(this, null, function* () {
|
|
6008
6041
|
const response = yield platformAdapterClientInstance.post(
|
|
@@ -6025,6 +6058,24 @@ var platformAdapterAppApi = {
|
|
|
6025
6058
|
);
|
|
6026
6059
|
return response.data;
|
|
6027
6060
|
});
|
|
6061
|
+
},
|
|
6062
|
+
getTemplates(authorization) {
|
|
6063
|
+
return __async(this, null, function* () {
|
|
6064
|
+
try {
|
|
6065
|
+
const response = yield platformAdapterClientInstance.get(
|
|
6066
|
+
`/console/app/templates`,
|
|
6067
|
+
getPlatformAdapterClientConfig(authorization)
|
|
6068
|
+
);
|
|
6069
|
+
return response.data;
|
|
6070
|
+
} catch (error) {
|
|
6071
|
+
if (error instanceof Error) {
|
|
6072
|
+
throw new Error(
|
|
6073
|
+
`App templates couldn't be created. [${error.message}]`
|
|
6074
|
+
);
|
|
6075
|
+
}
|
|
6076
|
+
throw error;
|
|
6077
|
+
}
|
|
6078
|
+
});
|
|
6028
6079
|
}
|
|
6029
6080
|
};
|
|
6030
6081
|
|
package/dist/index.mjs
CHANGED
|
@@ -5880,20 +5880,53 @@ var platformAdapterAppCreatorApi = {
|
|
|
5880
5880
|
}
|
|
5881
5881
|
};
|
|
5882
5882
|
|
|
5883
|
-
// src/apis/platform/adapter/app/
|
|
5884
|
-
var
|
|
5885
|
-
|
|
5883
|
+
// src/apis/platform/adapter/app/manifest/api.ts
|
|
5884
|
+
var platformAdapterAppManifestApi = {
|
|
5885
|
+
getManifest(appId, authorization) {
|
|
5886
5886
|
return __async(this, null, function* () {
|
|
5887
5887
|
try {
|
|
5888
5888
|
const response = yield platformAdapterClientInstance.get(
|
|
5889
|
-
`/console/app/
|
|
5889
|
+
`/console/app/${appId}/manifest`,
|
|
5890
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5891
|
+
);
|
|
5892
|
+
return response.data;
|
|
5893
|
+
} catch (error) {
|
|
5894
|
+
if (error instanceof Error) {
|
|
5895
|
+
throw new Error(`App manifest couldn't be created. [${error.message}]`);
|
|
5896
|
+
}
|
|
5897
|
+
throw error;
|
|
5898
|
+
}
|
|
5899
|
+
});
|
|
5900
|
+
},
|
|
5901
|
+
pushManifest(manifest, authorization) {
|
|
5902
|
+
return __async(this, null, function* () {
|
|
5903
|
+
try {
|
|
5904
|
+
yield platformAdapterClientInstance.post(
|
|
5905
|
+
`/console/app/${manifest.id}/manifest`,
|
|
5906
|
+
manifest,
|
|
5907
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5908
|
+
);
|
|
5909
|
+
} catch (error) {
|
|
5910
|
+
if (error instanceof Error) {
|
|
5911
|
+
throw new Error(`App manifest couldn't be pushed. [${error.message}]`);
|
|
5912
|
+
}
|
|
5913
|
+
throw error;
|
|
5914
|
+
}
|
|
5915
|
+
});
|
|
5916
|
+
},
|
|
5917
|
+
verifyManifest(manifest, authorization) {
|
|
5918
|
+
return __async(this, null, function* () {
|
|
5919
|
+
try {
|
|
5920
|
+
const response = yield platformAdapterClientInstance.post(
|
|
5921
|
+
`/console/app/${manifest.id}/manifest/verify`,
|
|
5922
|
+
manifest,
|
|
5890
5923
|
getPlatformAdapterClientConfig(authorization)
|
|
5891
5924
|
);
|
|
5892
5925
|
return response.data;
|
|
5893
5926
|
} catch (error) {
|
|
5894
5927
|
if (error instanceof Error) {
|
|
5895
5928
|
throw new Error(
|
|
5896
|
-
`App
|
|
5929
|
+
`App manifest couldn't be verified. [${error.message}]`
|
|
5897
5930
|
);
|
|
5898
5931
|
}
|
|
5899
5932
|
throw error;
|
|
@@ -5904,10 +5937,10 @@ var platformAdapterAppTemplatesApi = {
|
|
|
5904
5937
|
|
|
5905
5938
|
// src/apis/platform/adapter/app/api.ts
|
|
5906
5939
|
var platformAdapterAppApi = {
|
|
5940
|
+
creator: platformAdapterAppCreatorApi,
|
|
5907
5941
|
blocks: platformAdapterAppBlocksApi,
|
|
5908
5942
|
variables: platformAdapterAppVariablesApi,
|
|
5909
|
-
|
|
5910
|
-
templates: platformAdapterAppTemplatesApi,
|
|
5943
|
+
manifest: platformAdapterAppManifestApi,
|
|
5911
5944
|
create(payload, authorization) {
|
|
5912
5945
|
return __async(this, null, function* () {
|
|
5913
5946
|
const response = yield platformAdapterClientInstance.post(
|
|
@@ -5930,6 +5963,24 @@ var platformAdapterAppApi = {
|
|
|
5930
5963
|
);
|
|
5931
5964
|
return response.data;
|
|
5932
5965
|
});
|
|
5966
|
+
},
|
|
5967
|
+
getTemplates(authorization) {
|
|
5968
|
+
return __async(this, null, function* () {
|
|
5969
|
+
try {
|
|
5970
|
+
const response = yield platformAdapterClientInstance.get(
|
|
5971
|
+
`/console/app/templates`,
|
|
5972
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5973
|
+
);
|
|
5974
|
+
return response.data;
|
|
5975
|
+
} catch (error) {
|
|
5976
|
+
if (error instanceof Error) {
|
|
5977
|
+
throw new Error(
|
|
5978
|
+
`App templates couldn't be created. [${error.message}]`
|
|
5979
|
+
);
|
|
5980
|
+
}
|
|
5981
|
+
throw error;
|
|
5982
|
+
}
|
|
5983
|
+
});
|
|
5933
5984
|
}
|
|
5934
5985
|
};
|
|
5935
5986
|
|