@livechat/developer-studio-api 2.3.20 → 2.3.25

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
@@ -1093,6 +1093,7 @@ interface AddAppPropertiesData {
1093
1093
  type: PropertyDto["type"];
1094
1094
  default_value: string;
1095
1095
  access: PropertyAccessDto;
1096
+ owner_client_id: string;
1096
1097
  }
1097
1098
 
1098
1099
  interface AddAppWidgetsData {
@@ -1137,6 +1138,91 @@ interface SyncAppVariablePayload {
1137
1138
  };
1138
1139
  }
1139
1140
 
1141
+ interface CreateCreatorAppPayload {
1142
+ name: string;
1143
+ origin: string;
1144
+ product: string;
1145
+ }
1146
+ interface CreateCreatorAppResponse {
1147
+ appId: string;
1148
+ needToBeActivated: boolean;
1149
+ }
1150
+
1151
+ interface CreateRepositoryPayload {
1152
+ appId: string;
1153
+ appName: string;
1154
+ name: string;
1155
+ provider: string;
1156
+ target?: string;
1157
+ template?: string;
1158
+ type: string;
1159
+ }
1160
+ interface CreateRepositoryResponse {
1161
+ name: string;
1162
+ branch: string;
1163
+ needToBeInstalled: boolean;
1164
+ needToBeSeeded: boolean;
1165
+ }
1166
+ interface CreateSeedPayload {
1167
+ appid: string;
1168
+ clientId: string;
1169
+ name: string;
1170
+ }
1171
+ interface CreateSeedResponse {
1172
+ isSeeded: boolean;
1173
+ }
1174
+
1175
+ interface CreateDeploymentPayload {
1176
+ appId: string;
1177
+ appName: string;
1178
+ provider: string;
1179
+ repositoryName: string;
1180
+ repositoryBranch: string;
1181
+ repositoryTarget: string;
1182
+ siteName?: string;
1183
+ projectName?: string;
1184
+ type: string;
1185
+ }
1186
+ interface CreateDeploymentResponse {
1187
+ url: string;
1188
+ needToBeInstalled: boolean;
1189
+ }
1190
+ interface CreateDeploymentAccessibilityPayload {
1191
+ provider: string;
1192
+ repositoryName: string;
1193
+ }
1194
+ interface CreateDeploymentAccessibilityResponse {
1195
+ isAccessible: boolean;
1196
+ }
1197
+
1198
+ interface CreateAuthorizationPayload {
1199
+ appId: string;
1200
+ appName: string;
1201
+ configurationUri: string;
1202
+ redirectUri: string;
1203
+ scopes: ClientScopeDto[];
1204
+ type: string;
1205
+ visibility: string;
1206
+ }
1207
+ interface CreateAuthorizationResponse {
1208
+ client_id: string;
1209
+ }
1210
+
1211
+ interface CreateWidgetPayload {
1212
+ appId: string;
1213
+ widgetId: string;
1214
+ payload: UpdateApplicationWidgetDto;
1215
+ }
1216
+
1217
+ interface CreatePropertiesPayload {
1218
+ property: AddAppPropertiesData;
1219
+ }
1220
+
1221
+ interface CreateMonetizationPayload {
1222
+ appId: string;
1223
+ payload: AddAppMonetizationData;
1224
+ }
1225
+
1140
1226
  interface PlatformAdapterClientInstanceAuthorization {
1141
1227
  platform?: {
1142
1228
  dps?: string;
@@ -2083,6 +2169,20 @@ declare const api: {
2083
2169
  key: string;
2084
2170
  }): Promise<void>;
2085
2171
  };
2172
+ creator: {
2173
+ app(payload: CreateCreatorAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateCreatorAppResponse>;
2174
+ repository(payload: CreateRepositoryPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateRepositoryResponse>;
2175
+ seed(payload: CreateSeedPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateSeedResponse>;
2176
+ deployment(payload: CreateDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentResponse>;
2177
+ deployment_accessible(payload: CreateDeploymentAccessibilityPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentAccessibilityResponse>;
2178
+ storage(payload: any, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<{
2179
+ response: any;
2180
+ }>;
2181
+ authorization(payload: CreateAuthorizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAuthorizationResponse>;
2182
+ widgets(payload: CreateWidgetPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2183
+ properties(payload: CreatePropertiesPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2184
+ monetization(payload: CreateMonetizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2185
+ };
2086
2186
  create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
2087
2187
  createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
2088
2188
  };
@@ -2551,4 +2651,4 @@ declare const serializerBase64: {
2551
2651
  deserialize<T_1>(message?: string): T_1 | undefined;
2552
2652
  };
2553
2653
 
2554
- export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, DeveloperLedgerParams, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, MyAccountDto, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnauthorizeApiErrorSource, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
2654
+ export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateAuthorizationPayload, CreateAuthorizationResponse, CreateClientPayload, CreateCreatorAppPayload, CreateCreatorAppResponse, CreateDeploymentAccessibilityPayload, CreateDeploymentAccessibilityResponse, CreateDeploymentPayload, CreateDeploymentResponse, CreateMonetizationPayload, CreatePropertiesPayload, CreateRepositoryPayload, CreateRepositoryResponse, CreateSeedPayload, CreateSeedResponse, CreateWidgetPayload, DeveloperLedgerParams, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, MyAccountDto, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnauthorizeApiErrorSource, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
package/dist/index.d.ts CHANGED
@@ -1093,6 +1093,7 @@ interface AddAppPropertiesData {
1093
1093
  type: PropertyDto["type"];
1094
1094
  default_value: string;
1095
1095
  access: PropertyAccessDto;
1096
+ owner_client_id: string;
1096
1097
  }
1097
1098
 
1098
1099
  interface AddAppWidgetsData {
@@ -1137,6 +1138,91 @@ interface SyncAppVariablePayload {
1137
1138
  };
1138
1139
  }
1139
1140
 
1141
+ interface CreateCreatorAppPayload {
1142
+ name: string;
1143
+ origin: string;
1144
+ product: string;
1145
+ }
1146
+ interface CreateCreatorAppResponse {
1147
+ appId: string;
1148
+ needToBeActivated: boolean;
1149
+ }
1150
+
1151
+ interface CreateRepositoryPayload {
1152
+ appId: string;
1153
+ appName: string;
1154
+ name: string;
1155
+ provider: string;
1156
+ target?: string;
1157
+ template?: string;
1158
+ type: string;
1159
+ }
1160
+ interface CreateRepositoryResponse {
1161
+ name: string;
1162
+ branch: string;
1163
+ needToBeInstalled: boolean;
1164
+ needToBeSeeded: boolean;
1165
+ }
1166
+ interface CreateSeedPayload {
1167
+ appid: string;
1168
+ clientId: string;
1169
+ name: string;
1170
+ }
1171
+ interface CreateSeedResponse {
1172
+ isSeeded: boolean;
1173
+ }
1174
+
1175
+ interface CreateDeploymentPayload {
1176
+ appId: string;
1177
+ appName: string;
1178
+ provider: string;
1179
+ repositoryName: string;
1180
+ repositoryBranch: string;
1181
+ repositoryTarget: string;
1182
+ siteName?: string;
1183
+ projectName?: string;
1184
+ type: string;
1185
+ }
1186
+ interface CreateDeploymentResponse {
1187
+ url: string;
1188
+ needToBeInstalled: boolean;
1189
+ }
1190
+ interface CreateDeploymentAccessibilityPayload {
1191
+ provider: string;
1192
+ repositoryName: string;
1193
+ }
1194
+ interface CreateDeploymentAccessibilityResponse {
1195
+ isAccessible: boolean;
1196
+ }
1197
+
1198
+ interface CreateAuthorizationPayload {
1199
+ appId: string;
1200
+ appName: string;
1201
+ configurationUri: string;
1202
+ redirectUri: string;
1203
+ scopes: ClientScopeDto[];
1204
+ type: string;
1205
+ visibility: string;
1206
+ }
1207
+ interface CreateAuthorizationResponse {
1208
+ client_id: string;
1209
+ }
1210
+
1211
+ interface CreateWidgetPayload {
1212
+ appId: string;
1213
+ widgetId: string;
1214
+ payload: UpdateApplicationWidgetDto;
1215
+ }
1216
+
1217
+ interface CreatePropertiesPayload {
1218
+ property: AddAppPropertiesData;
1219
+ }
1220
+
1221
+ interface CreateMonetizationPayload {
1222
+ appId: string;
1223
+ payload: AddAppMonetizationData;
1224
+ }
1225
+
1140
1226
  interface PlatformAdapterClientInstanceAuthorization {
1141
1227
  platform?: {
1142
1228
  dps?: string;
@@ -2083,6 +2169,20 @@ declare const api: {
2083
2169
  key: string;
2084
2170
  }): Promise<void>;
2085
2171
  };
2172
+ creator: {
2173
+ app(payload: CreateCreatorAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateCreatorAppResponse>;
2174
+ repository(payload: CreateRepositoryPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateRepositoryResponse>;
2175
+ seed(payload: CreateSeedPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateSeedResponse>;
2176
+ deployment(payload: CreateDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentResponse>;
2177
+ deployment_accessible(payload: CreateDeploymentAccessibilityPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateDeploymentAccessibilityResponse>;
2178
+ storage(payload: any, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<{
2179
+ response: any;
2180
+ }>;
2181
+ authorization(payload: CreateAuthorizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAuthorizationResponse>;
2182
+ widgets(payload: CreateWidgetPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2183
+ properties(payload: CreatePropertiesPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2184
+ monetization(payload: CreateMonetizationPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
2185
+ };
2086
2186
  create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
2087
2187
  createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
2088
2188
  };
@@ -2551,4 +2651,4 @@ declare const serializerBase64: {
2551
2651
  deserialize<T_1>(message?: string): T_1 | undefined;
2552
2652
  };
2553
2653
 
2554
- export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, DeveloperLedgerParams, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, MyAccountDto, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnauthorizeApiErrorSource, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
2654
+ export { API_NOTIFICATIONS, AccountDto, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AddAppMonetizationData, AddAppPropertiesData, AddAppWidgetsData, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateAuthorizationPayload, CreateAuthorizationResponse, CreateClientPayload, CreateCreatorAppPayload, CreateCreatorAppResponse, CreateDeploymentAccessibilityPayload, CreateDeploymentAccessibilityResponse, CreateDeploymentPayload, CreateDeploymentResponse, CreateMonetizationPayload, CreatePropertiesPayload, CreateRepositoryPayload, CreateRepositoryResponse, CreateSeedPayload, CreateSeedResponse, CreateWidgetPayload, DeveloperLedgerParams, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, MyAccountDto, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnauthorizeApiErrorSource, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
package/dist/index.js CHANGED
@@ -5363,10 +5363,189 @@ var platformAdapterAppVariablesApi = {
5363
5363
  }
5364
5364
  };
5365
5365
 
5366
+ // src/apis/platform/adapter/app/creator/api.ts
5367
+ var platformAdapterAppCreatorApi = {
5368
+ app(payload, authorization) {
5369
+ return __async(this, null, function* () {
5370
+ try {
5371
+ const response = yield platformAdapterClientInstance.post(
5372
+ `/console/app/new/app`,
5373
+ payload,
5374
+ getPlatformAdapterClientConfig(authorization)
5375
+ );
5376
+ return response.data;
5377
+ } catch (error) {
5378
+ if (error instanceof Error) {
5379
+ throw new Error(`App couldn't be created. [${error.message}]`);
5380
+ }
5381
+ throw error;
5382
+ }
5383
+ });
5384
+ },
5385
+ repository(payload, authorization) {
5386
+ return __async(this, null, function* () {
5387
+ try {
5388
+ const response = yield platformAdapterClientInstance.post(
5389
+ `/console/app/new/repository`,
5390
+ payload,
5391
+ getPlatformAdapterClientConfig(authorization)
5392
+ );
5393
+ return response.data;
5394
+ } catch (error) {
5395
+ if (error instanceof Error) {
5396
+ throw new Error(`Repository couldn't be created. [${error.message}]`);
5397
+ }
5398
+ throw error;
5399
+ }
5400
+ });
5401
+ },
5402
+ seed(payload, authorization) {
5403
+ return __async(this, null, function* () {
5404
+ try {
5405
+ const response = yield platformAdapterClientInstance.post(
5406
+ `/console/app/new/seed`,
5407
+ payload,
5408
+ getPlatformAdapterClientConfig(authorization)
5409
+ );
5410
+ return response.data;
5411
+ } catch (error) {
5412
+ if (error instanceof Error) {
5413
+ throw new Error(`Seed couldn't be created. [${error.message}]`);
5414
+ }
5415
+ throw error;
5416
+ }
5417
+ });
5418
+ },
5419
+ deployment(payload, authorization) {
5420
+ return __async(this, null, function* () {
5421
+ try {
5422
+ const response = yield platformAdapterClientInstance.post(
5423
+ `/console/app/new/deployment`,
5424
+ payload,
5425
+ getPlatformAdapterClientConfig(authorization)
5426
+ );
5427
+ return response.data;
5428
+ } catch (error) {
5429
+ if (error instanceof Error) {
5430
+ throw new Error(`Deployment couldn't be created. [${error.message}]`);
5431
+ }
5432
+ throw error;
5433
+ }
5434
+ });
5435
+ },
5436
+ deployment_accessible(payload, authorization) {
5437
+ return __async(this, null, function* () {
5438
+ try {
5439
+ const response = yield platformAdapterClientInstance.post(
5440
+ `/console/app/new/deployment_accessible`,
5441
+ payload,
5442
+ getPlatformAdapterClientConfig(authorization)
5443
+ );
5444
+ return response.data;
5445
+ } catch (error) {
5446
+ if (error instanceof Error) {
5447
+ throw new Error(
5448
+ `Deployment accessibility couldn't be checked. [${error.message}]`
5449
+ );
5450
+ }
5451
+ throw error;
5452
+ }
5453
+ });
5454
+ },
5455
+ storage(payload, authorization) {
5456
+ return __async(this, null, function* () {
5457
+ try {
5458
+ const response = yield platformAdapterClientInstance.post(
5459
+ `/console/app/new/storage`,
5460
+ payload,
5461
+ getPlatformAdapterClientConfig(authorization)
5462
+ );
5463
+ return response.data;
5464
+ } catch (error) {
5465
+ if (error instanceof Error) {
5466
+ throw new Error(`Storage couldn't be created. [${error.message}]`);
5467
+ }
5468
+ throw error;
5469
+ }
5470
+ });
5471
+ },
5472
+ authorization(payload, authorization) {
5473
+ return __async(this, null, function* () {
5474
+ try {
5475
+ const response = yield platformAdapterClientInstance.post(
5476
+ `/console/app/new/authorization`,
5477
+ payload,
5478
+ getPlatformAdapterClientConfig(authorization)
5479
+ );
5480
+ return response.data;
5481
+ } catch (error) {
5482
+ if (error instanceof Error) {
5483
+ throw new Error(
5484
+ `Authorization couldn't be created. [${error.message}]`
5485
+ );
5486
+ }
5487
+ throw error;
5488
+ }
5489
+ });
5490
+ },
5491
+ widgets(payload, authorization) {
5492
+ return __async(this, null, function* () {
5493
+ try {
5494
+ const response = yield platformAdapterClientInstance.post(
5495
+ `/console/app/new/widgets`,
5496
+ payload,
5497
+ getPlatformAdapterClientConfig(authorization)
5498
+ );
5499
+ return response.data;
5500
+ } catch (error) {
5501
+ if (error instanceof Error) {
5502
+ throw new Error(`Widgets couldn't be created. [${error.message}]`);
5503
+ }
5504
+ throw error;
5505
+ }
5506
+ });
5507
+ },
5508
+ properties(payload, authorization) {
5509
+ return __async(this, null, function* () {
5510
+ try {
5511
+ const response = yield platformAdapterClientInstance.post(
5512
+ `/console/app/new/properties`,
5513
+ payload,
5514
+ getPlatformAdapterClientConfig(authorization)
5515
+ );
5516
+ return response.data;
5517
+ } catch (error) {
5518
+ if (error instanceof Error) {
5519
+ throw new Error(`Properties couldn't be created. [${error.message}]`);
5520
+ }
5521
+ throw error;
5522
+ }
5523
+ });
5524
+ },
5525
+ monetization(payload, authorization) {
5526
+ return __async(this, null, function* () {
5527
+ try {
5528
+ const response = yield platformAdapterClientInstance.post(
5529
+ `/console/app/new/monetization`,
5530
+ payload,
5531
+ getPlatformAdapterClientConfig(authorization)
5532
+ );
5533
+ return response.data;
5534
+ } catch (error) {
5535
+ if (error instanceof Error) {
5536
+ throw new Error(`Monetization couldn't be created. [${error.message}]`);
5537
+ }
5538
+ throw error;
5539
+ }
5540
+ });
5541
+ }
5542
+ };
5543
+
5366
5544
  // src/apis/platform/adapter/app/api.ts
5367
5545
  var platformAdapterAppApi = {
5368
5546
  blocks: platformAdapterAppBlocksApi,
5369
5547
  variables: platformAdapterAppVariablesApi,
5548
+ creator: platformAdapterAppCreatorApi,
5370
5549
  create(payload, authorization) {
5371
5550
  return __async(this, null, function* () {
5372
5551
  const response = yield platformAdapterClientInstance.post(
package/dist/index.mjs CHANGED
@@ -5272,10 +5272,189 @@ var platformAdapterAppVariablesApi = {
5272
5272
  }
5273
5273
  };
5274
5274
 
5275
+ // src/apis/platform/adapter/app/creator/api.ts
5276
+ var platformAdapterAppCreatorApi = {
5277
+ app(payload, authorization) {
5278
+ return __async(this, null, function* () {
5279
+ try {
5280
+ const response = yield platformAdapterClientInstance.post(
5281
+ `/console/app/new/app`,
5282
+ payload,
5283
+ getPlatformAdapterClientConfig(authorization)
5284
+ );
5285
+ return response.data;
5286
+ } catch (error) {
5287
+ if (error instanceof Error) {
5288
+ throw new Error(`App couldn't be created. [${error.message}]`);
5289
+ }
5290
+ throw error;
5291
+ }
5292
+ });
5293
+ },
5294
+ repository(payload, authorization) {
5295
+ return __async(this, null, function* () {
5296
+ try {
5297
+ const response = yield platformAdapterClientInstance.post(
5298
+ `/console/app/new/repository`,
5299
+ payload,
5300
+ getPlatformAdapterClientConfig(authorization)
5301
+ );
5302
+ return response.data;
5303
+ } catch (error) {
5304
+ if (error instanceof Error) {
5305
+ throw new Error(`Repository couldn't be created. [${error.message}]`);
5306
+ }
5307
+ throw error;
5308
+ }
5309
+ });
5310
+ },
5311
+ seed(payload, authorization) {
5312
+ return __async(this, null, function* () {
5313
+ try {
5314
+ const response = yield platformAdapterClientInstance.post(
5315
+ `/console/app/new/seed`,
5316
+ payload,
5317
+ getPlatformAdapterClientConfig(authorization)
5318
+ );
5319
+ return response.data;
5320
+ } catch (error) {
5321
+ if (error instanceof Error) {
5322
+ throw new Error(`Seed couldn't be created. [${error.message}]`);
5323
+ }
5324
+ throw error;
5325
+ }
5326
+ });
5327
+ },
5328
+ deployment(payload, authorization) {
5329
+ return __async(this, null, function* () {
5330
+ try {
5331
+ const response = yield platformAdapterClientInstance.post(
5332
+ `/console/app/new/deployment`,
5333
+ payload,
5334
+ getPlatformAdapterClientConfig(authorization)
5335
+ );
5336
+ return response.data;
5337
+ } catch (error) {
5338
+ if (error instanceof Error) {
5339
+ throw new Error(`Deployment couldn't be created. [${error.message}]`);
5340
+ }
5341
+ throw error;
5342
+ }
5343
+ });
5344
+ },
5345
+ deployment_accessible(payload, authorization) {
5346
+ return __async(this, null, function* () {
5347
+ try {
5348
+ const response = yield platformAdapterClientInstance.post(
5349
+ `/console/app/new/deployment_accessible`,
5350
+ payload,
5351
+ getPlatformAdapterClientConfig(authorization)
5352
+ );
5353
+ return response.data;
5354
+ } catch (error) {
5355
+ if (error instanceof Error) {
5356
+ throw new Error(
5357
+ `Deployment accessibility couldn't be checked. [${error.message}]`
5358
+ );
5359
+ }
5360
+ throw error;
5361
+ }
5362
+ });
5363
+ },
5364
+ storage(payload, authorization) {
5365
+ return __async(this, null, function* () {
5366
+ try {
5367
+ const response = yield platformAdapterClientInstance.post(
5368
+ `/console/app/new/storage`,
5369
+ payload,
5370
+ getPlatformAdapterClientConfig(authorization)
5371
+ );
5372
+ return response.data;
5373
+ } catch (error) {
5374
+ if (error instanceof Error) {
5375
+ throw new Error(`Storage couldn't be created. [${error.message}]`);
5376
+ }
5377
+ throw error;
5378
+ }
5379
+ });
5380
+ },
5381
+ authorization(payload, authorization) {
5382
+ return __async(this, null, function* () {
5383
+ try {
5384
+ const response = yield platformAdapterClientInstance.post(
5385
+ `/console/app/new/authorization`,
5386
+ payload,
5387
+ getPlatformAdapterClientConfig(authorization)
5388
+ );
5389
+ return response.data;
5390
+ } catch (error) {
5391
+ if (error instanceof Error) {
5392
+ throw new Error(
5393
+ `Authorization couldn't be created. [${error.message}]`
5394
+ );
5395
+ }
5396
+ throw error;
5397
+ }
5398
+ });
5399
+ },
5400
+ widgets(payload, authorization) {
5401
+ return __async(this, null, function* () {
5402
+ try {
5403
+ const response = yield platformAdapterClientInstance.post(
5404
+ `/console/app/new/widgets`,
5405
+ payload,
5406
+ getPlatformAdapterClientConfig(authorization)
5407
+ );
5408
+ return response.data;
5409
+ } catch (error) {
5410
+ if (error instanceof Error) {
5411
+ throw new Error(`Widgets couldn't be created. [${error.message}]`);
5412
+ }
5413
+ throw error;
5414
+ }
5415
+ });
5416
+ },
5417
+ properties(payload, authorization) {
5418
+ return __async(this, null, function* () {
5419
+ try {
5420
+ const response = yield platformAdapterClientInstance.post(
5421
+ `/console/app/new/properties`,
5422
+ payload,
5423
+ getPlatformAdapterClientConfig(authorization)
5424
+ );
5425
+ return response.data;
5426
+ } catch (error) {
5427
+ if (error instanceof Error) {
5428
+ throw new Error(`Properties couldn't be created. [${error.message}]`);
5429
+ }
5430
+ throw error;
5431
+ }
5432
+ });
5433
+ },
5434
+ monetization(payload, authorization) {
5435
+ return __async(this, null, function* () {
5436
+ try {
5437
+ const response = yield platformAdapterClientInstance.post(
5438
+ `/console/app/new/monetization`,
5439
+ payload,
5440
+ getPlatformAdapterClientConfig(authorization)
5441
+ );
5442
+ return response.data;
5443
+ } catch (error) {
5444
+ if (error instanceof Error) {
5445
+ throw new Error(`Monetization couldn't be created. [${error.message}]`);
5446
+ }
5447
+ throw error;
5448
+ }
5449
+ });
5450
+ }
5451
+ };
5452
+
5275
5453
  // src/apis/platform/adapter/app/api.ts
5276
5454
  var platformAdapterAppApi = {
5277
5455
  blocks: platformAdapterAppBlocksApi,
5278
5456
  variables: platformAdapterAppVariablesApi,
5457
+ creator: platformAdapterAppCreatorApi,
5279
5458
  create(payload, authorization) {
5280
5459
  return __async(this, null, function* () {
5281
5460
  const response = yield platformAdapterClientInstance.post(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.3.20",
3
+ "version": "2.3.25",
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
- "config": "0.0.1",
20
+ "eslint-config-custom": "0.0.2",
21
21
  "tsconfig": "0.0.1",
22
- "eslint-config-custom": "0.0.2"
22
+ "config": "0.0.1"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup src/index.ts --format esm,cjs --dts",