@livechat/developer-studio-api 2.3.67 → 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 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,89 +1356,17 @@ interface SyncAppVariablePayload {
1256
1356
  };
1257
1357
  }
1258
1358
 
1259
- interface CreateCreatorAppPayload {
1260
- name: string;
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
- provider?: string;
1283
- clientId?: string;
1284
- }
1285
- interface CreateSeedResponse {
1286
- isSeeded: boolean;
1287
- }
1288
-
1289
- type CreateDeploymentPayload = LinkAppDeploymentData & {
1290
- appId: string;
1291
- appName: string;
1292
- repositoryName: string;
1293
- repositoryBranch: string;
1294
- repositoryTarget: AppRepositoryTarget | undefined;
1295
- };
1296
- interface CreateDeploymentResponse {
1297
- url: string;
1298
- needToBeInstalled: boolean;
1299
- }
1300
- interface CreateDeploymentAccessibilityPayload {
1301
- provider: "netlify" | "vercel";
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;
1362
+ blocks?: AppInfrastructureBlocks;
1327
1363
  }
1328
1364
 
1329
- interface CreateWidgetPayload {
1330
- appId: string;
1331
- widgetId: string;
1332
- payload: UpdateApplicationWidgetDto;
1365
+ interface VerifyAppManifestPayload {
1366
+ manifest: AppManifest;
1333
1367
  }
1334
-
1335
- interface CreatePropertiesPayload {
1336
- property: AddAppPropertiesData;
1337
- }
1338
-
1339
- interface CreateMonetizationPayload {
1340
- appId: string;
1341
- payment: AddAppMonetizationData;
1368
+ interface VerifyAppManifestResult {
1369
+ status: "ok" | "nok";
1342
1370
  }
1343
1371
 
1344
1372
  interface PlatformAdapterClientInstanceAuthorization {
@@ -2302,6 +2330,18 @@ declare const api: {
2302
2330
  };
2303
2331
  adapter: {
2304
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
+ };
2305
2345
  blocks: {
2306
2346
  repository: {
2307
2347
  get(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppRepository>;
@@ -2343,20 +2383,14 @@ declare const api: {
2343
2383
  editVariable(appId: string, data: EditAppVariablePayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2344
2384
  deleteVariable(appId: string, key: string): Promise<void>;
2345
2385
  };
2346
- creator: {
2347
- app(payload: CreateCreatorAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateCreatorAppResponse>;
2348
- repository(payload: CreateRepositoryPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateRepositoryResponse>;
2349
- seed(payload: CreateSeedPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateSeedResponse>;
2350
- deployment(payload: CreateDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentResponse>;
2351
- deployment_accessible(payload: CreateDeploymentAccessibilityPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentAccessibilityResponse>;
2352
- storage(payload: any, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2353
- authorization(payload: CreateAuthorizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAuthorizationResponse>;
2354
- widgets(payload: CreateWidgetPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2355
- properties(payload: CreatePropertiesPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2356
- monetization(payload: CreateMonetizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
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>;
2357
2390
  };
2358
2391
  create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
2359
2392
  createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
2393
+ getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppTemplates>;
2360
2394
  };
2361
2395
  conductor: {
2362
2396
  request<TData>(config: axios.AxiosRequestConfig, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<TData>;
@@ -2892,4 +2926,4 @@ declare class UnauthorizeApiError extends Error {
2892
2926
  constructor(source: UnauthorizeApiErrorSource);
2893
2927
  }
2894
2928
 
2895
- export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentConfigurationDto, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNeonStorage, AppNeonStorageConfig, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStatsDto, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateAuthorizationPayload, CreateAuthorizationResponse, CreateClientPayload, CreateCreatorAppPayload, CreateCreatorAppResponse, CreateDeploymentAccessibilityPayload, CreateDeploymentAccessibilityResponse, CreateDeploymentPayload, CreateDeploymentResponse, CreateMonetizationPayload, CreatePropertiesPayload, CreateRepositoryPayload, CreateRepositoryResponse, CreateSeedPayload, CreateSeedResponse, CreateStoragePayload, CreateWidgetPayload, DeveloperLedgerParams, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LinkSentryLoggerResponse, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, LiveChatConfigurationApiError, MyAccountDto, NeonClientInstanceAuthorization, NeonClientInstanceOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnauthorizeApiErrorSource, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNeonClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, sentryClientInstance, textClientInstance, updateGithubClientInstance, updateNeonClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
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,89 +1356,17 @@ interface SyncAppVariablePayload {
1256
1356
  };
1257
1357
  }
1258
1358
 
1259
- interface CreateCreatorAppPayload {
1260
- name: string;
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
- provider?: string;
1283
- clientId?: string;
1284
- }
1285
- interface CreateSeedResponse {
1286
- isSeeded: boolean;
1287
- }
1288
-
1289
- type CreateDeploymentPayload = LinkAppDeploymentData & {
1290
- appId: string;
1291
- appName: string;
1292
- repositoryName: string;
1293
- repositoryBranch: string;
1294
- repositoryTarget: AppRepositoryTarget | undefined;
1295
- };
1296
- interface CreateDeploymentResponse {
1297
- url: string;
1298
- needToBeInstalled: boolean;
1299
- }
1300
- interface CreateDeploymentAccessibilityPayload {
1301
- provider: "netlify" | "vercel";
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;
1362
+ blocks?: AppInfrastructureBlocks;
1327
1363
  }
1328
1364
 
1329
- interface CreateWidgetPayload {
1330
- appId: string;
1331
- widgetId: string;
1332
- payload: UpdateApplicationWidgetDto;
1365
+ interface VerifyAppManifestPayload {
1366
+ manifest: AppManifest;
1333
1367
  }
1334
-
1335
- interface CreatePropertiesPayload {
1336
- property: AddAppPropertiesData;
1337
- }
1338
-
1339
- interface CreateMonetizationPayload {
1340
- appId: string;
1341
- payment: AddAppMonetizationData;
1368
+ interface VerifyAppManifestResult {
1369
+ status: "ok" | "nok";
1342
1370
  }
1343
1371
 
1344
1372
  interface PlatformAdapterClientInstanceAuthorization {
@@ -2302,6 +2330,18 @@ declare const api: {
2302
2330
  };
2303
2331
  adapter: {
2304
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
+ };
2305
2345
  blocks: {
2306
2346
  repository: {
2307
2347
  get(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppRepository>;
@@ -2343,20 +2383,14 @@ declare const api: {
2343
2383
  editVariable(appId: string, data: EditAppVariablePayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2344
2384
  deleteVariable(appId: string, key: string): Promise<void>;
2345
2385
  };
2346
- creator: {
2347
- app(payload: CreateCreatorAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateCreatorAppResponse>;
2348
- repository(payload: CreateRepositoryPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateRepositoryResponse>;
2349
- seed(payload: CreateSeedPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateSeedResponse>;
2350
- deployment(payload: CreateDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentResponse>;
2351
- deployment_accessible(payload: CreateDeploymentAccessibilityPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentAccessibilityResponse>;
2352
- storage(payload: any, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2353
- authorization(payload: CreateAuthorizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAuthorizationResponse>;
2354
- widgets(payload: CreateWidgetPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2355
- properties(payload: CreatePropertiesPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2356
- monetization(payload: CreateMonetizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
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>;
2357
2390
  };
2358
2391
  create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
2359
2392
  createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
2393
+ getTemplates(authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppTemplates>;
2360
2394
  };
2361
2395
  conductor: {
2362
2396
  request<TData>(config: axios.AxiosRequestConfig, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<TData>;
@@ -2892,4 +2926,4 @@ declare class UnauthorizeApiError extends Error {
2892
2926
  constructor(source: UnauthorizeApiErrorSource);
2893
2927
  }
2894
2928
 
2895
- export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentConfigurationDto, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNeonStorage, AppNeonStorageConfig, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStatsDto, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateAuthorizationPayload, CreateAuthorizationResponse, CreateClientPayload, CreateCreatorAppPayload, CreateCreatorAppResponse, CreateDeploymentAccessibilityPayload, CreateDeploymentAccessibilityResponse, CreateDeploymentPayload, CreateDeploymentResponse, CreateMonetizationPayload, CreatePropertiesPayload, CreateRepositoryPayload, CreateRepositoryResponse, CreateSeedPayload, CreateSeedResponse, CreateStoragePayload, CreateWidgetPayload, DeveloperLedgerParams, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LinkSentryLoggerResponse, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, LiveChatConfigurationApiError, MyAccountDto, NeonClientInstanceAuthorization, NeonClientInstanceOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnauthorizeApiErrorSource, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNeonClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, sentryClientInstance, textClientInstance, updateGithubClientInstance, updateNeonClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
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
@@ -2508,7 +2508,7 @@ function initNeonClientInstance(token) {
2508
2508
  function updateNeonClientInstance(token) {
2509
2509
  const headers = neonClientInstance.defaults.headers;
2510
2510
  if (token) {
2511
- headers.Authorization = `${token}`;
2511
+ headers.Authorization = `Bearer ${token}`;
2512
2512
  } else {
2513
2513
  delete headers.Authorization;
2514
2514
  }
@@ -5436,7 +5436,7 @@ function getPlatformAdapterClientConfig(options = {}) {
5436
5436
  throw new UnauthorizeApiError("openai");
5437
5437
  }
5438
5438
  return {
5439
- headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.sentry ? { "sentry-token": headers.integrations.sentry } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
5439
+ headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "neon-token": headers.integrations.neon } : {}), headers.integrations.sentry ? { "sentry-token": headers.integrations.sentry } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
5440
5440
  };
5441
5441
  }
5442
5442
  function initPlatformAdapterClientInstance(baseUrl, tokens) {
@@ -5975,11 +5975,67 @@ var platformAdapterAppCreatorApi = {
5975
5975
  }
5976
5976
  };
5977
5977
 
5978
+ // src/apis/platform/adapter/app/manifest/api.ts
5979
+ var platformAdapterAppManifestApi = {
5980
+ getManifest(appId, authorization) {
5981
+ return __async(this, null, function* () {
5982
+ try {
5983
+ const response = yield platformAdapterClientInstance.get(
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,
6018
+ getPlatformAdapterClientConfig(authorization)
6019
+ );
6020
+ return response.data;
6021
+ } catch (error) {
6022
+ if (error instanceof Error) {
6023
+ throw new Error(
6024
+ `App manifest couldn't be verified. [${error.message}]`
6025
+ );
6026
+ }
6027
+ throw error;
6028
+ }
6029
+ });
6030
+ }
6031
+ };
6032
+
5978
6033
  // src/apis/platform/adapter/app/api.ts
5979
6034
  var platformAdapterAppApi = {
6035
+ creator: platformAdapterAppCreatorApi,
5980
6036
  blocks: platformAdapterAppBlocksApi,
5981
6037
  variables: platformAdapterAppVariablesApi,
5982
- creator: platformAdapterAppCreatorApi,
6038
+ manifest: platformAdapterAppManifestApi,
5983
6039
  create(payload, authorization) {
5984
6040
  return __async(this, null, function* () {
5985
6041
  const response = yield platformAdapterClientInstance.post(
@@ -6002,6 +6058,24 @@ var platformAdapterAppApi = {
6002
6058
  );
6003
6059
  return response.data;
6004
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
+ });
6005
6079
  }
6006
6080
  };
6007
6081
 
@@ -6210,7 +6284,7 @@ var api = {
6210
6284
  isInitialized: false
6211
6285
  };
6212
6286
  function initApi(config, tokens) {
6213
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
6287
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
6214
6288
  initPlatformAccountsClientInstance(
6215
6289
  (_a = config.urls.platform) == null ? void 0 : _a.accounts,
6216
6290
  (_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.dps
@@ -6235,21 +6309,22 @@ function initApi(config, tokens) {
6235
6309
  },
6236
6310
  netlify: (_k = tokens.netlify) == null ? void 0 : _k.token,
6237
6311
  vercel: (_l = tokens.vercel) == null ? void 0 : _l.token,
6238
- planetscale: (_m = tokens.planetscale) == null ? void 0 : _m.token,
6239
- sentry: (_n = tokens.sentry) == null ? void 0 : _n.token
6312
+ neon: (_m = tokens.neon) == null ? void 0 : _m.token,
6313
+ planetscale: (_n = tokens.planetscale) == null ? void 0 : _n.token,
6314
+ sentry: (_o = tokens.sentry) == null ? void 0 : _o.token
6240
6315
  } : void 0
6241
6316
  );
6242
6317
  initLiveChatClientInstance(
6243
- (_o = config.urls.products) == null ? void 0 : _o.livechat,
6244
- (_p = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _p.dps
6318
+ (_p = config.urls.products) == null ? void 0 : _p.livechat,
6319
+ (_q = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _q.dps
6245
6320
  );
6246
- initTextClientInstance((_q = config.urls.integrations) == null ? void 0 : _q.text, (_r = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _r.dps);
6247
- initGithubClientInstance((_s = tokens == null ? void 0 : tokens.github) == null ? void 0 : _s.apps);
6248
- initNetlifyClientInstance((_t = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _t.token);
6249
- initVercelClientInstance((_u = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _u.token);
6250
- initNeonClientInstance((_v = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _v.token);
6251
- initPlanetScaleClientInstance((_w = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _w.token);
6252
- initSentryClientInstance((_x = tokens == null ? void 0 : tokens.sentry) == null ? void 0 : _x.token);
6321
+ initTextClientInstance((_r = config.urls.integrations) == null ? void 0 : _r.text, (_s = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _s.dps);
6322
+ initGithubClientInstance((_t = tokens == null ? void 0 : tokens.github) == null ? void 0 : _t.apps);
6323
+ initNetlifyClientInstance((_u = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _u.token);
6324
+ initVercelClientInstance((_v = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _v.token);
6325
+ initNeonClientInstance((_w = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _w.token);
6326
+ initPlanetScaleClientInstance((_x = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _x.token);
6327
+ initSentryClientInstance((_y = tokens == null ? void 0 : tokens.sentry) == null ? void 0 : _y.token);
6253
6328
  api.isInitialized = true;
6254
6329
  }
6255
6330
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -2413,7 +2413,7 @@ function initNeonClientInstance(token) {
2413
2413
  function updateNeonClientInstance(token) {
2414
2414
  const headers = neonClientInstance.defaults.headers;
2415
2415
  if (token) {
2416
- headers.Authorization = `${token}`;
2416
+ headers.Authorization = `Bearer ${token}`;
2417
2417
  } else {
2418
2418
  delete headers.Authorization;
2419
2419
  }
@@ -5341,7 +5341,7 @@ function getPlatformAdapterClientConfig(options = {}) {
5341
5341
  throw new UnauthorizeApiError("openai");
5342
5342
  }
5343
5343
  return {
5344
- headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.sentry ? { "sentry-token": headers.integrations.sentry } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
5344
+ headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "neon-token": headers.integrations.neon } : {}), headers.integrations.sentry ? { "sentry-token": headers.integrations.sentry } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
5345
5345
  };
5346
5346
  }
5347
5347
  function initPlatformAdapterClientInstance(baseUrl, tokens) {
@@ -5880,11 +5880,67 @@ var platformAdapterAppCreatorApi = {
5880
5880
  }
5881
5881
  };
5882
5882
 
5883
+ // src/apis/platform/adapter/app/manifest/api.ts
5884
+ var platformAdapterAppManifestApi = {
5885
+ getManifest(appId, authorization) {
5886
+ return __async(this, null, function* () {
5887
+ try {
5888
+ const response = yield platformAdapterClientInstance.get(
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,
5923
+ getPlatformAdapterClientConfig(authorization)
5924
+ );
5925
+ return response.data;
5926
+ } catch (error) {
5927
+ if (error instanceof Error) {
5928
+ throw new Error(
5929
+ `App manifest couldn't be verified. [${error.message}]`
5930
+ );
5931
+ }
5932
+ throw error;
5933
+ }
5934
+ });
5935
+ }
5936
+ };
5937
+
5883
5938
  // src/apis/platform/adapter/app/api.ts
5884
5939
  var platformAdapterAppApi = {
5940
+ creator: platformAdapterAppCreatorApi,
5885
5941
  blocks: platformAdapterAppBlocksApi,
5886
5942
  variables: platformAdapterAppVariablesApi,
5887
- creator: platformAdapterAppCreatorApi,
5943
+ manifest: platformAdapterAppManifestApi,
5888
5944
  create(payload, authorization) {
5889
5945
  return __async(this, null, function* () {
5890
5946
  const response = yield platformAdapterClientInstance.post(
@@ -5907,6 +5963,24 @@ var platformAdapterAppApi = {
5907
5963
  );
5908
5964
  return response.data;
5909
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
+ });
5910
5984
  }
5911
5985
  };
5912
5986
 
@@ -6115,7 +6189,7 @@ var api = {
6115
6189
  isInitialized: false
6116
6190
  };
6117
6191
  function initApi(config, tokens) {
6118
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
6192
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
6119
6193
  initPlatformAccountsClientInstance(
6120
6194
  (_a = config.urls.platform) == null ? void 0 : _a.accounts,
6121
6195
  (_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.dps
@@ -6140,21 +6214,22 @@ function initApi(config, tokens) {
6140
6214
  },
6141
6215
  netlify: (_k = tokens.netlify) == null ? void 0 : _k.token,
6142
6216
  vercel: (_l = tokens.vercel) == null ? void 0 : _l.token,
6143
- planetscale: (_m = tokens.planetscale) == null ? void 0 : _m.token,
6144
- sentry: (_n = tokens.sentry) == null ? void 0 : _n.token
6217
+ neon: (_m = tokens.neon) == null ? void 0 : _m.token,
6218
+ planetscale: (_n = tokens.planetscale) == null ? void 0 : _n.token,
6219
+ sentry: (_o = tokens.sentry) == null ? void 0 : _o.token
6145
6220
  } : void 0
6146
6221
  );
6147
6222
  initLiveChatClientInstance(
6148
- (_o = config.urls.products) == null ? void 0 : _o.livechat,
6149
- (_p = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _p.dps
6223
+ (_p = config.urls.products) == null ? void 0 : _p.livechat,
6224
+ (_q = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _q.dps
6150
6225
  );
6151
- initTextClientInstance((_q = config.urls.integrations) == null ? void 0 : _q.text, (_r = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _r.dps);
6152
- initGithubClientInstance((_s = tokens == null ? void 0 : tokens.github) == null ? void 0 : _s.apps);
6153
- initNetlifyClientInstance((_t = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _t.token);
6154
- initVercelClientInstance((_u = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _u.token);
6155
- initNeonClientInstance((_v = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _v.token);
6156
- initPlanetScaleClientInstance((_w = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _w.token);
6157
- initSentryClientInstance((_x = tokens == null ? void 0 : tokens.sentry) == null ? void 0 : _x.token);
6226
+ initTextClientInstance((_r = config.urls.integrations) == null ? void 0 : _r.text, (_s = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _s.dps);
6227
+ initGithubClientInstance((_t = tokens == null ? void 0 : tokens.github) == null ? void 0 : _t.apps);
6228
+ initNetlifyClientInstance((_u = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _u.token);
6229
+ initVercelClientInstance((_v = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _v.token);
6230
+ initNeonClientInstance((_w = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _w.token);
6231
+ initPlanetScaleClientInstance((_x = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _x.token);
6232
+ initSentryClientInstance((_y = tokens == null ? void 0 : tokens.sentry) == null ? void 0 : _y.token);
6158
6233
  api.isInitialized = true;
6159
6234
  }
6160
6235
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.3.67",
3
+ "version": "2.3.69",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -17,9 +17,9 @@
17
17
  "@types/node": "^17.0.12",
18
18
  "tsup": "^7.1.0",
19
19
  "typescript": "^5.1.6",
20
+ "eslint-config-custom": "0.0.3",
20
21
  "config": "0.0.1",
21
- "tsconfig": "0.0.1",
22
- "eslint-config-custom": "0.0.3"
22
+ "tsconfig": "0.0.1"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup src/index.ts --format esm,cjs --dts",