@livechat/developer-studio-api 3.1.62 → 3.2.0

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
@@ -399,24 +399,28 @@ interface GetTextPlatformDashboardReportParams {
399
399
 
400
400
  interface WorkflowsDto {
401
401
  id: string;
402
- version: number;
402
+ related_workflow_id?: string;
403
+ version?: number;
404
+ draft?: boolean;
403
405
  name: string;
404
406
  description: string;
405
- active: boolean;
407
+ active?: boolean;
406
408
  trigger_type: WorkflowTriggerType;
407
409
  created_by: string;
408
- tags: string[];
410
+ tags?: string[];
409
411
  }
410
412
  interface WorkflowDto {
411
413
  id: string;
412
- version: number;
414
+ version?: number;
415
+ draft?: boolean;
413
416
  name: string;
414
417
  description: string;
415
- active: boolean;
418
+ active?: boolean;
416
419
  created_at: string;
417
420
  updated_at: string;
418
421
  created_by: string;
419
- tags: string[];
422
+ related_workflow_id?: string;
423
+ tags?: string[];
420
424
  definition: WorkflowDefinitionDto;
421
425
  trigger?: WorkflowTriggerDto;
422
426
  }
@@ -519,6 +523,7 @@ interface WorkflowDefinitionsQueryParams {
519
523
  }
520
524
  interface UpsertWorkflowPayload {
521
525
  name: string;
526
+ draft?: boolean;
522
527
  description: string;
523
528
  trigger?: WorkflowTriggerDto;
524
529
  definition: WorkflowDefinitionDto;
@@ -5793,6 +5798,49 @@ type ThreadUntaggedLivechatWebhookData = LivechatWebhookConcreteData<LivechatWeb
5793
5798
  }>;
5794
5799
  type LivechatWebhookData = IncomingChatLivechatWebhookData | ChatDeactivatedLivechatWebhookData | ThreadTaggedLivechatWebhookData | ThreadUntaggedLivechatWebhookData | ChatTransferredLivechatWebhookData | UserAddedToChatLivechatWebhookData | UserRemovedFromChatWebhookData | IncomingEventLivechatWebhookData;
5795
5800
 
5801
+ type LivechatBotDefaultGroupPriority = "first" | "normal" | "last" | "supervisor";
5802
+ interface CreateLivechatBotTemplateDto {
5803
+ name: string;
5804
+ avatar?: string;
5805
+ max_chats_count?: number;
5806
+ default_group_priority?: LivechatBotDefaultGroupPriority;
5807
+ job_title?: string;
5808
+ owner_client_id: string;
5809
+ affect_existing_installations?: boolean;
5810
+ }
5811
+ interface UpdateLivechatBotTemplateDto {
5812
+ id: string;
5813
+ name?: string;
5814
+ avatar?: string;
5815
+ max_chats_count?: number;
5816
+ default_group_priority?: LivechatBotDefaultGroupPriority;
5817
+ job_title?: string;
5818
+ owner_client_id: string;
5819
+ affect_existing_installations?: boolean;
5820
+ }
5821
+ interface DeleteLivechatBotTemplateDto {
5822
+ id: string;
5823
+ owner_client_id: string;
5824
+ affect_existing_installations?: boolean;
5825
+ }
5826
+ interface ResetLivechatBotTemplateSecretDto {
5827
+ id: string;
5828
+ owner_client_id: string;
5829
+ affect_existing_installations?: boolean;
5830
+ }
5831
+ interface CreateLivechatBotTemplateResponse {
5832
+ id: string;
5833
+ secret: string;
5834
+ }
5835
+ interface LivechatBotTemplate {
5836
+ id: string;
5837
+ avatar: string;
5838
+ name: string;
5839
+ default_group_priority: LivechatBotDefaultGroupPriority;
5840
+ job_title: string;
5841
+ max_chats_count: number;
5842
+ }
5843
+
5796
5844
  type LiveChatConfigurationApiError = {
5797
5845
  type: string;
5798
5846
  message: string;
@@ -6405,6 +6453,16 @@ declare const api: {
6405
6453
  agents: {
6406
6454
  getAgents(authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<AgentConfigurationDto[], any>>;
6407
6455
  };
6456
+ bots: {
6457
+ createBotTemplate(bot: CreateLivechatBotTemplateDto, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<CreateLivechatBotTemplateResponse, any>>;
6458
+ getBotTemplates(clientId: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<LivechatBotTemplate[], any>>;
6459
+ updateBotTemplate(bot: UpdateLivechatBotTemplateDto, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<CreateLivechatBotTemplateResponse, any>>;
6460
+ deleteBotTemplate(bot: DeleteLivechatBotTemplateDto, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<void, any>>;
6461
+ resetBotTemplateSecret(bot: ResetLivechatBotTemplateSecretDto, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
6462
+ secret: string;
6463
+ id: string;
6464
+ }, any>>;
6465
+ };
6408
6466
  property: {
6409
6467
  getProperties(clientId: string, isAgent?: boolean | undefined, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<PropertiesDto, any>>;
6410
6468
  registerProperty(property: Property, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<undefined, any>>;
@@ -6753,6 +6811,12 @@ declare const api: {
6753
6811
  version: number;
6754
6812
  }, any>>;
6755
6813
  deleteWorkflow(workflowId: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<void, any>>;
6814
+ createWorkflowDraft(workflowId: string, payload: UpsertWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
6815
+ id: string;
6816
+ }, any>>;
6817
+ publishWorkflowDraft(workflowId: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
6818
+ version: number;
6819
+ }, any>>;
6756
6820
  toggleWorkflowActivation(workflowId: string, isActive: boolean, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<void, any>>;
6757
6821
  executeWorkflow(workflowId: string, input: unknown, authorization?: PlatformClientAuthorization | undefined): Promise<{
6758
6822
  execution_id: string;
@@ -6865,4 +6929,4 @@ declare function getIntegrationFlowUrl<TFlowContext, TFlowResult, TState>(name:
6865
6929
  };
6866
6930
  }): Promise<IntegrationFlowOutput<TFlowResult> | undefined>;
6867
6931
 
6868
- export { API_NOTIFICATIONS, AccountDto, AccountsApiError, AdapterApiError, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentConfigurationDto, AgentDto, ApiClient, ApiClientAuthorization, ApiClientConfig, ApiError, ApiErrorBase, ApiErrorKind, ApiErrorName, ApiErrorSource, AppAuthorizationData, AppBaseData, AppBaseTemplate, AppDeployment, AppDeploymentBlock, AppDeploymentBlockConfig, AppDeploymentData, AppDeploymentProvider, AppDisplayData, AppEventDto, AppGitHubRepository, AppGitHubRepositoryConfig, AppInfrastructureBlocks, AppManifest, AppMonetizationData, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNeonStorage, AppNeonStorageConfig, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppPropertiesData, AppPropertyData, AppRepository, AppRepositoryBlock, AppRepositoryBlockConfig, AppRepositoryData, AppRepositoryProvider, AppRepositoryTarget, AppRepositoryTemplate, AppRepositoryTemplates, AppResourceDto, AppStatsDto, AppStorage, AppStorageBlock, AppStorageBlockConfig, AppStorageData, AppStorageProvider, AppTemplate, AppTemplates, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppWidgetData, AppWidgetsData, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BigCommerceApiError, BigCommerceAuthorizeActionContext, BigCommerceAuthorizeActionResult, BigCommerceAuthorizeFlowContext, BigCommerceAuthorizeFlowCustomContext, BigCommerceAuthorizeFlowResult, BigCommerceCartCreatedWebhookData, BigCommerceCartUpdatedWebhookData, BigCommerceClientAuthorization, BigCommerceClientOptions, BigCommerceCreateWebhookPayload, BigCommerceEvent, BigCommerceEventNames, BigCommerceFlowContext, BigCommerceFlowResult, BigCommerceFlows, BigCommerceOauthCredential, BigCommerceOrderCreatedWebhookData, BigCommerceOrderUpdatedWebhookData, BigCommerceProductCreatedWebhookData, BigCommerceProductUpdatedWebhookData, BigCommerceWebhook, BigCommerceWebhookConcreteData, BigCommerceWebhookData, BigCommerceWebhookDataBase, BigCommerceWebhookScopes, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, BillingProduct, Category, ChatDeactivatedLivechatWebhookData, ChatTransferredLivechatWebhookData, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateCredentialPayload, CreateHubSpotWebhookSubscriptionPayload, Credential, CredentialDto, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GenerateResponsePayload, GenerateResponseResponse, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubAppCredential, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowCustomContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubFlowContext, GitHubFlowResult, GitHubFlows, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowCustomContext, GitHubInstallFlowResult, GitHubInstallation, GitHubOauthCredential, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientAuthorization, GithubClientOptions, HubSpotContactCreationWebhookData, HubSpotContactDeletionWebhookData, HubSpotFlowContext, HubSpotFlowResult, HubSpotFlows, HubSpotOauthCredential, HubSpotWebhookConcreteData, HubSpotWebhookData, HubSpotWebhookDataBase, HubSpotWebhookEventTypes, HubSpotWebhookSettings, HubSpotWebhookSubscription, HubspotApiError, HubspotAuthorizeActionResult, HubspotAuthorizeFlowContext, HubspotAuthorizeFlowCustomContext, HubspotAuthorizeFlowResult, HubspotClientAuthorization, HubspotClientInstanceOptions, HubspotEvent, HubspotEventNames, IncomingChatLivechatWebhookData, IncomingEventLivechatWebhookData, IntegrationDisplayNames, IntegrationEvent, IntegrationEventProviderName, IntegrationEventSource, IntegrationEventSourceName, IntegrationFlowContext, IntegrationFlowOutput, IntegrationModes, IntegrationNames, IssueLabel, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LiveChatClientAuthorization, LiveChatClientOptions, LiveChatConfigurationApiError, LivechatApiError, LivechatWebhook, LivechatWebhookActions, LivechatWebhookChat, LivechatWebhookConcreteData, LivechatWebhookData, LivechatWebhookDataBase, LivechatWebhookDto, LivechatWebhookEvent, LivechatWebhookEvents, LivechatWebhookMessageEvent, LivechatWebhookSystemMessageEvent, LivechatWebhookSystemMessages, LivechatWebhookUser, MailchimpApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowCustomContext, MailchimpAuthorizeFlowResult, MailchimpClientAuthorization, MailchimpClientInstanceOptions, MailchimpEvent, MailchimpEventNames, MailchimpFlowContext, MailchimpFlowResult, MailchimpFlows, MailchimpListWebhook, MailchimpOauthCredential, MailchimpSubscribeWebhookData, MailchimpUnsubscribeWebhookData, MailchimpWebhookConcreteData, MailchimpWebhookData, MailchimpWebhookDataBase, MailchimpWebhookEvents, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowCustomContext, NeonAuthorizeFlowResult, NeonClientAuthorization, NeonClientOptions, NeonFlowContext, NeonFlowResult, NeonFlows, NeonOauthCredential, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowCustomContext, NetlifyAuthorizeFlowResult, NetlifyClientAuthorization, NetlifyClientOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyFlowContext, NetlifyFlowResult, NetlifyFlows, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowCustomContext, NetlifyInstallFlowResult, NetlifyOauthCredential, NetlifySite, OAuthCredential, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowCustomContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientAuthorization, PlanetScaleClientOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleFlowContext, PlanetScaleFlowResult, PlanetScaleFlows, PlanetScaleOauthCredential, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientAuthorization, PlatformAdapterClientOptions, PlatformBillingClientAuthorization, PlatformBillingClientOptions, PlatformClientAuthorization, PlatformDpsClientAuthorization, PlatformDpsClientOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, PushAppPayload, PushAppResult, PushAppSaga, PushAppSagaAuthorizationStep, PushAppSagaBaseStep, PushAppSagaDeploymentStep, PushAppSagaDisplayStep, PushAppSagaMonetizationStep, PushAppSagaPropertiesStep, PushAppSagaRepositoryStep, PushAppSagaStorageStep, PushAppSagaWidgetsStep, RemoveAppAuthorizationPayload, RemoveAppMonetizationPayload, RemoveAppPropertiesPayload, RemoveAppPropertyPayload, RemoveAppWidgetPayload, RemoveAppWidgetsPayload, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, Saga, SagaInput, SagaOutput, SagaStep, SagaStepChanges, SagaStepComparer, SagaStepPropertyCompareResult, SagaStepStatus, SagaStepsSchema, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, ShopifyApiError, ShopifyAuthorizeActionContext, ShopifyAuthorizeActionResult, ShopifyAuthorizeFlowContext, ShopifyAuthorizeFlowCustomContext, ShopifyAuthorizeFlowResult, ShopifyClientAuthorization, ShopifyClientOptions, ShopifyEvent, ShopifyEventNames, ShopifyFlowContext, ShopifyFlowResult, ShopifyFlows, ShopifyOauthCredential, ShopifyOrderCreatedWebhookData, ShopifyWebhookConcreteData, ShopifyWebhookData, ShopifyWebhookDataBase, ShopifyWebhookTopics, ShortcutDto, SubscribeToBigCommerceEventPayload, SubscribeToHubspotEventPayload, SubscribeToIntegrationEventPayload, SubscribeToMailchimpEventPayload, SubscribeToShopifyEventPayload, SubscribeToTextLivechatEventPayload, SyncAppVariablePayload, TextApiError, TextAuthorizeActionResult, TextAuthorizeFlowContext, TextAuthorizeFlowCustomContext, TextAuthorizeFlowResult, TextClientAuthorization, TextClientOptions, TextFlowContext, TextFlowResult, TextFlows, TextLiveChatEvent, TextLivechatEventNames, TextOAuthCredential, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, ThreadTaggedLivechatWebhookData, ThreadUntaggedLivechatWebhookData, UnauthorizeAccountsApiError, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, UnsubscribeFromBigCommerceEventPayload, UnsubscribeFromHubspotEventPayload, UnsubscribeFromIntegrationEventPayload, UnsubscribeFromMailchimpEventPayload, UnsubscribeFromShopifyEventPayload, UnsubscribeFromTextLivechatEventPayload, UpdateAppAuthorizationPayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateCredentialPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppDeploymentPayload, UpsertAppMonetizationPayload, UpsertAppPropertiesPayload, UpsertAppPropertyPayload, UpsertAppRepositoryPayload, UpsertAppResourcePayload, UpsertAppStoragePayload, UpsertAppWidgetPayload, UpsertAppWidgetsPayload, UpsertApplicationChatBoosterPayload, UpsertHubSpotWebhookSettingsPayload, UpsertWorkflowPayload, UserAddedToChatLivechatWebhookData, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserRemovedFromChatWebhookData, UserVercelIntegrationDto, VercelAuthorizeActionResult, VercelAuthorizeFlowContext, VercelAuthorizeFlowCustomContext, VercelAuthorizeFlowResult, VercelClientAuthorization, VercelClientOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelFlowContext, VercelFlowResult, VercelFlows, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowCustomContext, VercelInstallFlowResult, VercelNamespace, VercelOauthCredential, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, WorkflowDefinitionAddNodeTask, WorkflowDefinitionAddTriggerTask, WorkflowDefinitionDto, WorkflowDefinitionForkJoinTask, WorkflowDefinitionHttpTask, WorkflowDefinitionJoinTask, WorkflowDefinitionSwitchTask, WorkflowDefinitionTask, WorkflowDefinitionTaskBase, WorkflowDefinitionTaskCore, WorkflowDefinitionTaskType, WorkflowDefinitionTerminateTask, WorkflowDefinitionTriggerTask, WorkflowDefinitionsQueryParams, WorkflowDto, WorkflowExecution, WorkflowExecutionDetails, WorkflowTriggerDto, WorkflowTriggerType, WorkflowsDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, bigCommerceClientInstance, bigcommerceEventsZods, getAppAutoReviewPayload, getBigCommerceClientAuthorization, getBigCommerceClientConfig, getBigCommerceClientUrl, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientConfig, getHubspotClientAuthorization, getHubspotClientConfig, getIntegrationFlowUrl, getIntegrationFlowUrlOld, getLiveChatClientAuthorization, getLiveChatClientConfig, getMailchimpClientAuthorization, getMailchimpClientConfig, getMailchimpClientUrl, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformAdapterClientDefaultConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getShopifyClientAuthorization, getShopifyClientConfig, getShopifyClientUrl, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, hubspotClientInstance, hubspotEventsZods, initApi, initBigCommerceClient, initGithubClient, initHubspotClient, initLiveChatClient, initMailchimpClient, initNeonClient, initNetlifyClient, initPlanetScaleClient, initPlatformAccountsClient, initPlatformAdapterClient, initPlatformBillingClient, initPlatformDpsClient, initShopifyClient, initTextClient, initVercelClient, integrationEventsZods, livechatClientInstance, mailchimpClientInstance, mailchimpEventsZods, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, shopifyClientInstance, shopifyEventsZods, textClientInstance, textLivechatEventsZods, updateBigCommerceClient, updateGithubClient, updateHubspotClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updatePlatformAdapterClient, updateShopifyClient, updateVercelClient, vercelClientInstance };
6932
+ export { API_NOTIFICATIONS, AccountDto, AccountsApiError, AdapterApiError, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentConfigurationDto, AgentDto, ApiClient, ApiClientAuthorization, ApiClientConfig, ApiError, ApiErrorBase, ApiErrorKind, ApiErrorName, ApiErrorSource, AppAuthorizationData, AppBaseData, AppBaseTemplate, AppDeployment, AppDeploymentBlock, AppDeploymentBlockConfig, AppDeploymentData, AppDeploymentProvider, AppDisplayData, AppEventDto, AppGitHubRepository, AppGitHubRepositoryConfig, AppInfrastructureBlocks, AppManifest, AppMonetizationData, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNeonStorage, AppNeonStorageConfig, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppPropertiesData, AppPropertyData, AppRepository, AppRepositoryBlock, AppRepositoryBlockConfig, AppRepositoryData, AppRepositoryProvider, AppRepositoryTarget, AppRepositoryTemplate, AppRepositoryTemplates, AppResourceDto, AppStatsDto, AppStorage, AppStorageBlock, AppStorageBlockConfig, AppStorageData, AppStorageProvider, AppTemplate, AppTemplates, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppWidgetData, AppWidgetsData, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BigCommerceApiError, BigCommerceAuthorizeActionContext, BigCommerceAuthorizeActionResult, BigCommerceAuthorizeFlowContext, BigCommerceAuthorizeFlowCustomContext, BigCommerceAuthorizeFlowResult, BigCommerceCartCreatedWebhookData, BigCommerceCartUpdatedWebhookData, BigCommerceClientAuthorization, BigCommerceClientOptions, BigCommerceCreateWebhookPayload, BigCommerceEvent, BigCommerceEventNames, BigCommerceFlowContext, BigCommerceFlowResult, BigCommerceFlows, BigCommerceOauthCredential, BigCommerceOrderCreatedWebhookData, BigCommerceOrderUpdatedWebhookData, BigCommerceProductCreatedWebhookData, BigCommerceProductUpdatedWebhookData, BigCommerceWebhook, BigCommerceWebhookConcreteData, BigCommerceWebhookData, BigCommerceWebhookDataBase, BigCommerceWebhookScopes, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, BillingProduct, Category, ChatDeactivatedLivechatWebhookData, ChatTransferredLivechatWebhookData, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateCredentialPayload, CreateHubSpotWebhookSubscriptionPayload, CreateLivechatBotTemplateDto, CreateLivechatBotTemplateResponse, Credential, CredentialDto, DeleteLivechatBotTemplateDto, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GenerateResponsePayload, GenerateResponseResponse, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubAppCredential, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowCustomContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubFlowContext, GitHubFlowResult, GitHubFlows, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowCustomContext, GitHubInstallFlowResult, GitHubInstallation, GitHubOauthCredential, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientAuthorization, GithubClientOptions, HubSpotContactCreationWebhookData, HubSpotContactDeletionWebhookData, HubSpotFlowContext, HubSpotFlowResult, HubSpotFlows, HubSpotOauthCredential, HubSpotWebhookConcreteData, HubSpotWebhookData, HubSpotWebhookDataBase, HubSpotWebhookEventTypes, HubSpotWebhookSettings, HubSpotWebhookSubscription, HubspotApiError, HubspotAuthorizeActionResult, HubspotAuthorizeFlowContext, HubspotAuthorizeFlowCustomContext, HubspotAuthorizeFlowResult, HubspotClientAuthorization, HubspotClientInstanceOptions, HubspotEvent, HubspotEventNames, IncomingChatLivechatWebhookData, IncomingEventLivechatWebhookData, IntegrationDisplayNames, IntegrationEvent, IntegrationEventProviderName, IntegrationEventSource, IntegrationEventSourceName, IntegrationFlowContext, IntegrationFlowOutput, IntegrationModes, IntegrationNames, IssueLabel, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LiveChatClientAuthorization, LiveChatClientOptions, LiveChatConfigurationApiError, LivechatApiError, LivechatBotTemplate, LivechatWebhook, LivechatWebhookActions, LivechatWebhookChat, LivechatWebhookConcreteData, LivechatWebhookData, LivechatWebhookDataBase, LivechatWebhookDto, LivechatWebhookEvent, LivechatWebhookEvents, LivechatWebhookMessageEvent, LivechatWebhookSystemMessageEvent, LivechatWebhookSystemMessages, LivechatWebhookUser, MailchimpApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowCustomContext, MailchimpAuthorizeFlowResult, MailchimpClientAuthorization, MailchimpClientInstanceOptions, MailchimpEvent, MailchimpEventNames, MailchimpFlowContext, MailchimpFlowResult, MailchimpFlows, MailchimpListWebhook, MailchimpOauthCredential, MailchimpSubscribeWebhookData, MailchimpUnsubscribeWebhookData, MailchimpWebhookConcreteData, MailchimpWebhookData, MailchimpWebhookDataBase, MailchimpWebhookEvents, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowCustomContext, NeonAuthorizeFlowResult, NeonClientAuthorization, NeonClientOptions, NeonFlowContext, NeonFlowResult, NeonFlows, NeonOauthCredential, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowCustomContext, NetlifyAuthorizeFlowResult, NetlifyClientAuthorization, NetlifyClientOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyFlowContext, NetlifyFlowResult, NetlifyFlows, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowCustomContext, NetlifyInstallFlowResult, NetlifyOauthCredential, NetlifySite, OAuthCredential, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowCustomContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientAuthorization, PlanetScaleClientOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleFlowContext, PlanetScaleFlowResult, PlanetScaleFlows, PlanetScaleOauthCredential, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientAuthorization, PlatformAdapterClientOptions, PlatformBillingClientAuthorization, PlatformBillingClientOptions, PlatformClientAuthorization, PlatformDpsClientAuthorization, PlatformDpsClientOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, PushAppPayload, PushAppResult, PushAppSaga, PushAppSagaAuthorizationStep, PushAppSagaBaseStep, PushAppSagaDeploymentStep, PushAppSagaDisplayStep, PushAppSagaMonetizationStep, PushAppSagaPropertiesStep, PushAppSagaRepositoryStep, PushAppSagaStorageStep, PushAppSagaWidgetsStep, RemoveAppAuthorizationPayload, RemoveAppMonetizationPayload, RemoveAppPropertiesPayload, RemoveAppPropertyPayload, RemoveAppWidgetPayload, RemoveAppWidgetsPayload, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ResetLivechatBotTemplateSecretDto, Saga, SagaInput, SagaOutput, SagaStep, SagaStepChanges, SagaStepComparer, SagaStepPropertyCompareResult, SagaStepStatus, SagaStepsSchema, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, ShopifyApiError, ShopifyAuthorizeActionContext, ShopifyAuthorizeActionResult, ShopifyAuthorizeFlowContext, ShopifyAuthorizeFlowCustomContext, ShopifyAuthorizeFlowResult, ShopifyClientAuthorization, ShopifyClientOptions, ShopifyEvent, ShopifyEventNames, ShopifyFlowContext, ShopifyFlowResult, ShopifyFlows, ShopifyOauthCredential, ShopifyOrderCreatedWebhookData, ShopifyWebhookConcreteData, ShopifyWebhookData, ShopifyWebhookDataBase, ShopifyWebhookTopics, ShortcutDto, SubscribeToBigCommerceEventPayload, SubscribeToHubspotEventPayload, SubscribeToIntegrationEventPayload, SubscribeToMailchimpEventPayload, SubscribeToShopifyEventPayload, SubscribeToTextLivechatEventPayload, SyncAppVariablePayload, TextApiError, TextAuthorizeActionResult, TextAuthorizeFlowContext, TextAuthorizeFlowCustomContext, TextAuthorizeFlowResult, TextClientAuthorization, TextClientOptions, TextFlowContext, TextFlowResult, TextFlows, TextLiveChatEvent, TextLivechatEventNames, TextOAuthCredential, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, ThreadTaggedLivechatWebhookData, ThreadUntaggedLivechatWebhookData, UnauthorizeAccountsApiError, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, UnsubscribeFromBigCommerceEventPayload, UnsubscribeFromHubspotEventPayload, UnsubscribeFromIntegrationEventPayload, UnsubscribeFromMailchimpEventPayload, UnsubscribeFromShopifyEventPayload, UnsubscribeFromTextLivechatEventPayload, UpdateAppAuthorizationPayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateCredentialPayload, UpdateLivechatBotTemplateDto, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppDeploymentPayload, UpsertAppMonetizationPayload, UpsertAppPropertiesPayload, UpsertAppPropertyPayload, UpsertAppRepositoryPayload, UpsertAppResourcePayload, UpsertAppStoragePayload, UpsertAppWidgetPayload, UpsertAppWidgetsPayload, UpsertApplicationChatBoosterPayload, UpsertHubSpotWebhookSettingsPayload, UpsertWorkflowPayload, UserAddedToChatLivechatWebhookData, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserRemovedFromChatWebhookData, UserVercelIntegrationDto, VercelAuthorizeActionResult, VercelAuthorizeFlowContext, VercelAuthorizeFlowCustomContext, VercelAuthorizeFlowResult, VercelClientAuthorization, VercelClientOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelFlowContext, VercelFlowResult, VercelFlows, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowCustomContext, VercelInstallFlowResult, VercelNamespace, VercelOauthCredential, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, WorkflowDefinitionAddNodeTask, WorkflowDefinitionAddTriggerTask, WorkflowDefinitionDto, WorkflowDefinitionForkJoinTask, WorkflowDefinitionHttpTask, WorkflowDefinitionJoinTask, WorkflowDefinitionSwitchTask, WorkflowDefinitionTask, WorkflowDefinitionTaskBase, WorkflowDefinitionTaskCore, WorkflowDefinitionTaskType, WorkflowDefinitionTerminateTask, WorkflowDefinitionTriggerTask, WorkflowDefinitionsQueryParams, WorkflowDto, WorkflowExecution, WorkflowExecutionDetails, WorkflowTriggerDto, WorkflowTriggerType, WorkflowsDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, bigCommerceClientInstance, bigcommerceEventsZods, getAppAutoReviewPayload, getBigCommerceClientAuthorization, getBigCommerceClientConfig, getBigCommerceClientUrl, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientConfig, getHubspotClientAuthorization, getHubspotClientConfig, getIntegrationFlowUrl, getIntegrationFlowUrlOld, getLiveChatClientAuthorization, getLiveChatClientConfig, getMailchimpClientAuthorization, getMailchimpClientConfig, getMailchimpClientUrl, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformAdapterClientDefaultConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getShopifyClientAuthorization, getShopifyClientConfig, getShopifyClientUrl, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, hubspotClientInstance, hubspotEventsZods, initApi, initBigCommerceClient, initGithubClient, initHubspotClient, initLiveChatClient, initMailchimpClient, initNeonClient, initNetlifyClient, initPlanetScaleClient, initPlatformAccountsClient, initPlatformAdapterClient, initPlatformBillingClient, initPlatformDpsClient, initShopifyClient, initTextClient, initVercelClient, integrationEventsZods, livechatClientInstance, mailchimpClientInstance, mailchimpEventsZods, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, shopifyClientInstance, shopifyEventsZods, textClientInstance, textLivechatEventsZods, updateBigCommerceClient, updateGithubClient, updateHubspotClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updatePlatformAdapterClient, updateShopifyClient, updateVercelClient, vercelClientInstance };
package/dist/index.d.ts CHANGED
@@ -399,24 +399,28 @@ interface GetTextPlatformDashboardReportParams {
399
399
 
400
400
  interface WorkflowsDto {
401
401
  id: string;
402
- version: number;
402
+ related_workflow_id?: string;
403
+ version?: number;
404
+ draft?: boolean;
403
405
  name: string;
404
406
  description: string;
405
- active: boolean;
407
+ active?: boolean;
406
408
  trigger_type: WorkflowTriggerType;
407
409
  created_by: string;
408
- tags: string[];
410
+ tags?: string[];
409
411
  }
410
412
  interface WorkflowDto {
411
413
  id: string;
412
- version: number;
414
+ version?: number;
415
+ draft?: boolean;
413
416
  name: string;
414
417
  description: string;
415
- active: boolean;
418
+ active?: boolean;
416
419
  created_at: string;
417
420
  updated_at: string;
418
421
  created_by: string;
419
- tags: string[];
422
+ related_workflow_id?: string;
423
+ tags?: string[];
420
424
  definition: WorkflowDefinitionDto;
421
425
  trigger?: WorkflowTriggerDto;
422
426
  }
@@ -519,6 +523,7 @@ interface WorkflowDefinitionsQueryParams {
519
523
  }
520
524
  interface UpsertWorkflowPayload {
521
525
  name: string;
526
+ draft?: boolean;
522
527
  description: string;
523
528
  trigger?: WorkflowTriggerDto;
524
529
  definition: WorkflowDefinitionDto;
@@ -5793,6 +5798,49 @@ type ThreadUntaggedLivechatWebhookData = LivechatWebhookConcreteData<LivechatWeb
5793
5798
  }>;
5794
5799
  type LivechatWebhookData = IncomingChatLivechatWebhookData | ChatDeactivatedLivechatWebhookData | ThreadTaggedLivechatWebhookData | ThreadUntaggedLivechatWebhookData | ChatTransferredLivechatWebhookData | UserAddedToChatLivechatWebhookData | UserRemovedFromChatWebhookData | IncomingEventLivechatWebhookData;
5795
5800
 
5801
+ type LivechatBotDefaultGroupPriority = "first" | "normal" | "last" | "supervisor";
5802
+ interface CreateLivechatBotTemplateDto {
5803
+ name: string;
5804
+ avatar?: string;
5805
+ max_chats_count?: number;
5806
+ default_group_priority?: LivechatBotDefaultGroupPriority;
5807
+ job_title?: string;
5808
+ owner_client_id: string;
5809
+ affect_existing_installations?: boolean;
5810
+ }
5811
+ interface UpdateLivechatBotTemplateDto {
5812
+ id: string;
5813
+ name?: string;
5814
+ avatar?: string;
5815
+ max_chats_count?: number;
5816
+ default_group_priority?: LivechatBotDefaultGroupPriority;
5817
+ job_title?: string;
5818
+ owner_client_id: string;
5819
+ affect_existing_installations?: boolean;
5820
+ }
5821
+ interface DeleteLivechatBotTemplateDto {
5822
+ id: string;
5823
+ owner_client_id: string;
5824
+ affect_existing_installations?: boolean;
5825
+ }
5826
+ interface ResetLivechatBotTemplateSecretDto {
5827
+ id: string;
5828
+ owner_client_id: string;
5829
+ affect_existing_installations?: boolean;
5830
+ }
5831
+ interface CreateLivechatBotTemplateResponse {
5832
+ id: string;
5833
+ secret: string;
5834
+ }
5835
+ interface LivechatBotTemplate {
5836
+ id: string;
5837
+ avatar: string;
5838
+ name: string;
5839
+ default_group_priority: LivechatBotDefaultGroupPriority;
5840
+ job_title: string;
5841
+ max_chats_count: number;
5842
+ }
5843
+
5796
5844
  type LiveChatConfigurationApiError = {
5797
5845
  type: string;
5798
5846
  message: string;
@@ -6405,6 +6453,16 @@ declare const api: {
6405
6453
  agents: {
6406
6454
  getAgents(authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<AgentConfigurationDto[], any>>;
6407
6455
  };
6456
+ bots: {
6457
+ createBotTemplate(bot: CreateLivechatBotTemplateDto, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<CreateLivechatBotTemplateResponse, any>>;
6458
+ getBotTemplates(clientId: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<LivechatBotTemplate[], any>>;
6459
+ updateBotTemplate(bot: UpdateLivechatBotTemplateDto, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<CreateLivechatBotTemplateResponse, any>>;
6460
+ deleteBotTemplate(bot: DeleteLivechatBotTemplateDto, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<void, any>>;
6461
+ resetBotTemplateSecret(bot: ResetLivechatBotTemplateSecretDto, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
6462
+ secret: string;
6463
+ id: string;
6464
+ }, any>>;
6465
+ };
6408
6466
  property: {
6409
6467
  getProperties(clientId: string, isAgent?: boolean | undefined, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<PropertiesDto, any>>;
6410
6468
  registerProperty(property: Property, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<undefined, any>>;
@@ -6753,6 +6811,12 @@ declare const api: {
6753
6811
  version: number;
6754
6812
  }, any>>;
6755
6813
  deleteWorkflow(workflowId: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<void, any>>;
6814
+ createWorkflowDraft(workflowId: string, payload: UpsertWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
6815
+ id: string;
6816
+ }, any>>;
6817
+ publishWorkflowDraft(workflowId: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
6818
+ version: number;
6819
+ }, any>>;
6756
6820
  toggleWorkflowActivation(workflowId: string, isActive: boolean, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<void, any>>;
6757
6821
  executeWorkflow(workflowId: string, input: unknown, authorization?: PlatformClientAuthorization | undefined): Promise<{
6758
6822
  execution_id: string;
@@ -6865,4 +6929,4 @@ declare function getIntegrationFlowUrl<TFlowContext, TFlowResult, TState>(name:
6865
6929
  };
6866
6930
  }): Promise<IntegrationFlowOutput<TFlowResult> | undefined>;
6867
6931
 
6868
- export { API_NOTIFICATIONS, AccountDto, AccountsApiError, AdapterApiError, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentConfigurationDto, AgentDto, ApiClient, ApiClientAuthorization, ApiClientConfig, ApiError, ApiErrorBase, ApiErrorKind, ApiErrorName, ApiErrorSource, AppAuthorizationData, AppBaseData, AppBaseTemplate, AppDeployment, AppDeploymentBlock, AppDeploymentBlockConfig, AppDeploymentData, AppDeploymentProvider, AppDisplayData, AppEventDto, AppGitHubRepository, AppGitHubRepositoryConfig, AppInfrastructureBlocks, AppManifest, AppMonetizationData, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNeonStorage, AppNeonStorageConfig, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppPropertiesData, AppPropertyData, AppRepository, AppRepositoryBlock, AppRepositoryBlockConfig, AppRepositoryData, AppRepositoryProvider, AppRepositoryTarget, AppRepositoryTemplate, AppRepositoryTemplates, AppResourceDto, AppStatsDto, AppStorage, AppStorageBlock, AppStorageBlockConfig, AppStorageData, AppStorageProvider, AppTemplate, AppTemplates, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppWidgetData, AppWidgetsData, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BigCommerceApiError, BigCommerceAuthorizeActionContext, BigCommerceAuthorizeActionResult, BigCommerceAuthorizeFlowContext, BigCommerceAuthorizeFlowCustomContext, BigCommerceAuthorizeFlowResult, BigCommerceCartCreatedWebhookData, BigCommerceCartUpdatedWebhookData, BigCommerceClientAuthorization, BigCommerceClientOptions, BigCommerceCreateWebhookPayload, BigCommerceEvent, BigCommerceEventNames, BigCommerceFlowContext, BigCommerceFlowResult, BigCommerceFlows, BigCommerceOauthCredential, BigCommerceOrderCreatedWebhookData, BigCommerceOrderUpdatedWebhookData, BigCommerceProductCreatedWebhookData, BigCommerceProductUpdatedWebhookData, BigCommerceWebhook, BigCommerceWebhookConcreteData, BigCommerceWebhookData, BigCommerceWebhookDataBase, BigCommerceWebhookScopes, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, BillingProduct, Category, ChatDeactivatedLivechatWebhookData, ChatTransferredLivechatWebhookData, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateCredentialPayload, CreateHubSpotWebhookSubscriptionPayload, Credential, CredentialDto, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GenerateResponsePayload, GenerateResponseResponse, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubAppCredential, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowCustomContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubFlowContext, GitHubFlowResult, GitHubFlows, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowCustomContext, GitHubInstallFlowResult, GitHubInstallation, GitHubOauthCredential, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientAuthorization, GithubClientOptions, HubSpotContactCreationWebhookData, HubSpotContactDeletionWebhookData, HubSpotFlowContext, HubSpotFlowResult, HubSpotFlows, HubSpotOauthCredential, HubSpotWebhookConcreteData, HubSpotWebhookData, HubSpotWebhookDataBase, HubSpotWebhookEventTypes, HubSpotWebhookSettings, HubSpotWebhookSubscription, HubspotApiError, HubspotAuthorizeActionResult, HubspotAuthorizeFlowContext, HubspotAuthorizeFlowCustomContext, HubspotAuthorizeFlowResult, HubspotClientAuthorization, HubspotClientInstanceOptions, HubspotEvent, HubspotEventNames, IncomingChatLivechatWebhookData, IncomingEventLivechatWebhookData, IntegrationDisplayNames, IntegrationEvent, IntegrationEventProviderName, IntegrationEventSource, IntegrationEventSourceName, IntegrationFlowContext, IntegrationFlowOutput, IntegrationModes, IntegrationNames, IssueLabel, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LiveChatClientAuthorization, LiveChatClientOptions, LiveChatConfigurationApiError, LivechatApiError, LivechatWebhook, LivechatWebhookActions, LivechatWebhookChat, LivechatWebhookConcreteData, LivechatWebhookData, LivechatWebhookDataBase, LivechatWebhookDto, LivechatWebhookEvent, LivechatWebhookEvents, LivechatWebhookMessageEvent, LivechatWebhookSystemMessageEvent, LivechatWebhookSystemMessages, LivechatWebhookUser, MailchimpApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowCustomContext, MailchimpAuthorizeFlowResult, MailchimpClientAuthorization, MailchimpClientInstanceOptions, MailchimpEvent, MailchimpEventNames, MailchimpFlowContext, MailchimpFlowResult, MailchimpFlows, MailchimpListWebhook, MailchimpOauthCredential, MailchimpSubscribeWebhookData, MailchimpUnsubscribeWebhookData, MailchimpWebhookConcreteData, MailchimpWebhookData, MailchimpWebhookDataBase, MailchimpWebhookEvents, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowCustomContext, NeonAuthorizeFlowResult, NeonClientAuthorization, NeonClientOptions, NeonFlowContext, NeonFlowResult, NeonFlows, NeonOauthCredential, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowCustomContext, NetlifyAuthorizeFlowResult, NetlifyClientAuthorization, NetlifyClientOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyFlowContext, NetlifyFlowResult, NetlifyFlows, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowCustomContext, NetlifyInstallFlowResult, NetlifyOauthCredential, NetlifySite, OAuthCredential, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowCustomContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientAuthorization, PlanetScaleClientOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleFlowContext, PlanetScaleFlowResult, PlanetScaleFlows, PlanetScaleOauthCredential, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientAuthorization, PlatformAdapterClientOptions, PlatformBillingClientAuthorization, PlatformBillingClientOptions, PlatformClientAuthorization, PlatformDpsClientAuthorization, PlatformDpsClientOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, PushAppPayload, PushAppResult, PushAppSaga, PushAppSagaAuthorizationStep, PushAppSagaBaseStep, PushAppSagaDeploymentStep, PushAppSagaDisplayStep, PushAppSagaMonetizationStep, PushAppSagaPropertiesStep, PushAppSagaRepositoryStep, PushAppSagaStorageStep, PushAppSagaWidgetsStep, RemoveAppAuthorizationPayload, RemoveAppMonetizationPayload, RemoveAppPropertiesPayload, RemoveAppPropertyPayload, RemoveAppWidgetPayload, RemoveAppWidgetsPayload, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, Saga, SagaInput, SagaOutput, SagaStep, SagaStepChanges, SagaStepComparer, SagaStepPropertyCompareResult, SagaStepStatus, SagaStepsSchema, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, ShopifyApiError, ShopifyAuthorizeActionContext, ShopifyAuthorizeActionResult, ShopifyAuthorizeFlowContext, ShopifyAuthorizeFlowCustomContext, ShopifyAuthorizeFlowResult, ShopifyClientAuthorization, ShopifyClientOptions, ShopifyEvent, ShopifyEventNames, ShopifyFlowContext, ShopifyFlowResult, ShopifyFlows, ShopifyOauthCredential, ShopifyOrderCreatedWebhookData, ShopifyWebhookConcreteData, ShopifyWebhookData, ShopifyWebhookDataBase, ShopifyWebhookTopics, ShortcutDto, SubscribeToBigCommerceEventPayload, SubscribeToHubspotEventPayload, SubscribeToIntegrationEventPayload, SubscribeToMailchimpEventPayload, SubscribeToShopifyEventPayload, SubscribeToTextLivechatEventPayload, SyncAppVariablePayload, TextApiError, TextAuthorizeActionResult, TextAuthorizeFlowContext, TextAuthorizeFlowCustomContext, TextAuthorizeFlowResult, TextClientAuthorization, TextClientOptions, TextFlowContext, TextFlowResult, TextFlows, TextLiveChatEvent, TextLivechatEventNames, TextOAuthCredential, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, ThreadTaggedLivechatWebhookData, ThreadUntaggedLivechatWebhookData, UnauthorizeAccountsApiError, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, UnsubscribeFromBigCommerceEventPayload, UnsubscribeFromHubspotEventPayload, UnsubscribeFromIntegrationEventPayload, UnsubscribeFromMailchimpEventPayload, UnsubscribeFromShopifyEventPayload, UnsubscribeFromTextLivechatEventPayload, UpdateAppAuthorizationPayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateCredentialPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppDeploymentPayload, UpsertAppMonetizationPayload, UpsertAppPropertiesPayload, UpsertAppPropertyPayload, UpsertAppRepositoryPayload, UpsertAppResourcePayload, UpsertAppStoragePayload, UpsertAppWidgetPayload, UpsertAppWidgetsPayload, UpsertApplicationChatBoosterPayload, UpsertHubSpotWebhookSettingsPayload, UpsertWorkflowPayload, UserAddedToChatLivechatWebhookData, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserRemovedFromChatWebhookData, UserVercelIntegrationDto, VercelAuthorizeActionResult, VercelAuthorizeFlowContext, VercelAuthorizeFlowCustomContext, VercelAuthorizeFlowResult, VercelClientAuthorization, VercelClientOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelFlowContext, VercelFlowResult, VercelFlows, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowCustomContext, VercelInstallFlowResult, VercelNamespace, VercelOauthCredential, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, WorkflowDefinitionAddNodeTask, WorkflowDefinitionAddTriggerTask, WorkflowDefinitionDto, WorkflowDefinitionForkJoinTask, WorkflowDefinitionHttpTask, WorkflowDefinitionJoinTask, WorkflowDefinitionSwitchTask, WorkflowDefinitionTask, WorkflowDefinitionTaskBase, WorkflowDefinitionTaskCore, WorkflowDefinitionTaskType, WorkflowDefinitionTerminateTask, WorkflowDefinitionTriggerTask, WorkflowDefinitionsQueryParams, WorkflowDto, WorkflowExecution, WorkflowExecutionDetails, WorkflowTriggerDto, WorkflowTriggerType, WorkflowsDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, bigCommerceClientInstance, bigcommerceEventsZods, getAppAutoReviewPayload, getBigCommerceClientAuthorization, getBigCommerceClientConfig, getBigCommerceClientUrl, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientConfig, getHubspotClientAuthorization, getHubspotClientConfig, getIntegrationFlowUrl, getIntegrationFlowUrlOld, getLiveChatClientAuthorization, getLiveChatClientConfig, getMailchimpClientAuthorization, getMailchimpClientConfig, getMailchimpClientUrl, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformAdapterClientDefaultConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getShopifyClientAuthorization, getShopifyClientConfig, getShopifyClientUrl, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, hubspotClientInstance, hubspotEventsZods, initApi, initBigCommerceClient, initGithubClient, initHubspotClient, initLiveChatClient, initMailchimpClient, initNeonClient, initNetlifyClient, initPlanetScaleClient, initPlatformAccountsClient, initPlatformAdapterClient, initPlatformBillingClient, initPlatformDpsClient, initShopifyClient, initTextClient, initVercelClient, integrationEventsZods, livechatClientInstance, mailchimpClientInstance, mailchimpEventsZods, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, shopifyClientInstance, shopifyEventsZods, textClientInstance, textLivechatEventsZods, updateBigCommerceClient, updateGithubClient, updateHubspotClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updatePlatformAdapterClient, updateShopifyClient, updateVercelClient, vercelClientInstance };
6932
+ export { API_NOTIFICATIONS, AccountDto, AccountsApiError, AdapterApiError, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentConfigurationDto, AgentDto, ApiClient, ApiClientAuthorization, ApiClientConfig, ApiError, ApiErrorBase, ApiErrorKind, ApiErrorName, ApiErrorSource, AppAuthorizationData, AppBaseData, AppBaseTemplate, AppDeployment, AppDeploymentBlock, AppDeploymentBlockConfig, AppDeploymentData, AppDeploymentProvider, AppDisplayData, AppEventDto, AppGitHubRepository, AppGitHubRepositoryConfig, AppInfrastructureBlocks, AppManifest, AppMonetizationData, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNeonStorage, AppNeonStorageConfig, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppPropertiesData, AppPropertyData, AppRepository, AppRepositoryBlock, AppRepositoryBlockConfig, AppRepositoryData, AppRepositoryProvider, AppRepositoryTarget, AppRepositoryTemplate, AppRepositoryTemplates, AppResourceDto, AppStatsDto, AppStorage, AppStorageBlock, AppStorageBlockConfig, AppStorageData, AppStorageProvider, AppTemplate, AppTemplates, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppWidgetData, AppWidgetsData, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BigCommerceApiError, BigCommerceAuthorizeActionContext, BigCommerceAuthorizeActionResult, BigCommerceAuthorizeFlowContext, BigCommerceAuthorizeFlowCustomContext, BigCommerceAuthorizeFlowResult, BigCommerceCartCreatedWebhookData, BigCommerceCartUpdatedWebhookData, BigCommerceClientAuthorization, BigCommerceClientOptions, BigCommerceCreateWebhookPayload, BigCommerceEvent, BigCommerceEventNames, BigCommerceFlowContext, BigCommerceFlowResult, BigCommerceFlows, BigCommerceOauthCredential, BigCommerceOrderCreatedWebhookData, BigCommerceOrderUpdatedWebhookData, BigCommerceProductCreatedWebhookData, BigCommerceProductUpdatedWebhookData, BigCommerceWebhook, BigCommerceWebhookConcreteData, BigCommerceWebhookData, BigCommerceWebhookDataBase, BigCommerceWebhookScopes, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, BillingProduct, Category, ChatDeactivatedLivechatWebhookData, ChatTransferredLivechatWebhookData, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateCredentialPayload, CreateHubSpotWebhookSubscriptionPayload, CreateLivechatBotTemplateDto, CreateLivechatBotTemplateResponse, Credential, CredentialDto, DeleteLivechatBotTemplateDto, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GenerateResponsePayload, GenerateResponseResponse, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubAppCredential, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowCustomContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubFlowContext, GitHubFlowResult, GitHubFlows, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowCustomContext, GitHubInstallFlowResult, GitHubInstallation, GitHubOauthCredential, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientAuthorization, GithubClientOptions, HubSpotContactCreationWebhookData, HubSpotContactDeletionWebhookData, HubSpotFlowContext, HubSpotFlowResult, HubSpotFlows, HubSpotOauthCredential, HubSpotWebhookConcreteData, HubSpotWebhookData, HubSpotWebhookDataBase, HubSpotWebhookEventTypes, HubSpotWebhookSettings, HubSpotWebhookSubscription, HubspotApiError, HubspotAuthorizeActionResult, HubspotAuthorizeFlowContext, HubspotAuthorizeFlowCustomContext, HubspotAuthorizeFlowResult, HubspotClientAuthorization, HubspotClientInstanceOptions, HubspotEvent, HubspotEventNames, IncomingChatLivechatWebhookData, IncomingEventLivechatWebhookData, IntegrationDisplayNames, IntegrationEvent, IntegrationEventProviderName, IntegrationEventSource, IntegrationEventSourceName, IntegrationFlowContext, IntegrationFlowOutput, IntegrationModes, IntegrationNames, IssueLabel, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LiveChatClientAuthorization, LiveChatClientOptions, LiveChatConfigurationApiError, LivechatApiError, LivechatBotTemplate, LivechatWebhook, LivechatWebhookActions, LivechatWebhookChat, LivechatWebhookConcreteData, LivechatWebhookData, LivechatWebhookDataBase, LivechatWebhookDto, LivechatWebhookEvent, LivechatWebhookEvents, LivechatWebhookMessageEvent, LivechatWebhookSystemMessageEvent, LivechatWebhookSystemMessages, LivechatWebhookUser, MailchimpApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowCustomContext, MailchimpAuthorizeFlowResult, MailchimpClientAuthorization, MailchimpClientInstanceOptions, MailchimpEvent, MailchimpEventNames, MailchimpFlowContext, MailchimpFlowResult, MailchimpFlows, MailchimpListWebhook, MailchimpOauthCredential, MailchimpSubscribeWebhookData, MailchimpUnsubscribeWebhookData, MailchimpWebhookConcreteData, MailchimpWebhookData, MailchimpWebhookDataBase, MailchimpWebhookEvents, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowCustomContext, NeonAuthorizeFlowResult, NeonClientAuthorization, NeonClientOptions, NeonFlowContext, NeonFlowResult, NeonFlows, NeonOauthCredential, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowCustomContext, NetlifyAuthorizeFlowResult, NetlifyClientAuthorization, NetlifyClientOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyFlowContext, NetlifyFlowResult, NetlifyFlows, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowCustomContext, NetlifyInstallFlowResult, NetlifyOauthCredential, NetlifySite, OAuthCredential, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowCustomContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientAuthorization, PlanetScaleClientOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleFlowContext, PlanetScaleFlowResult, PlanetScaleFlows, PlanetScaleOauthCredential, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientAuthorization, PlatformAdapterClientOptions, PlatformBillingClientAuthorization, PlatformBillingClientOptions, PlatformClientAuthorization, PlatformDpsClientAuthorization, PlatformDpsClientOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, PushAppPayload, PushAppResult, PushAppSaga, PushAppSagaAuthorizationStep, PushAppSagaBaseStep, PushAppSagaDeploymentStep, PushAppSagaDisplayStep, PushAppSagaMonetizationStep, PushAppSagaPropertiesStep, PushAppSagaRepositoryStep, PushAppSagaStorageStep, PushAppSagaWidgetsStep, RemoveAppAuthorizationPayload, RemoveAppMonetizationPayload, RemoveAppPropertiesPayload, RemoveAppPropertyPayload, RemoveAppWidgetPayload, RemoveAppWidgetsPayload, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ResetLivechatBotTemplateSecretDto, Saga, SagaInput, SagaOutput, SagaStep, SagaStepChanges, SagaStepComparer, SagaStepPropertyCompareResult, SagaStepStatus, SagaStepsSchema, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, ShopifyApiError, ShopifyAuthorizeActionContext, ShopifyAuthorizeActionResult, ShopifyAuthorizeFlowContext, ShopifyAuthorizeFlowCustomContext, ShopifyAuthorizeFlowResult, ShopifyClientAuthorization, ShopifyClientOptions, ShopifyEvent, ShopifyEventNames, ShopifyFlowContext, ShopifyFlowResult, ShopifyFlows, ShopifyOauthCredential, ShopifyOrderCreatedWebhookData, ShopifyWebhookConcreteData, ShopifyWebhookData, ShopifyWebhookDataBase, ShopifyWebhookTopics, ShortcutDto, SubscribeToBigCommerceEventPayload, SubscribeToHubspotEventPayload, SubscribeToIntegrationEventPayload, SubscribeToMailchimpEventPayload, SubscribeToShopifyEventPayload, SubscribeToTextLivechatEventPayload, SyncAppVariablePayload, TextApiError, TextAuthorizeActionResult, TextAuthorizeFlowContext, TextAuthorizeFlowCustomContext, TextAuthorizeFlowResult, TextClientAuthorization, TextClientOptions, TextFlowContext, TextFlowResult, TextFlows, TextLiveChatEvent, TextLivechatEventNames, TextOAuthCredential, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, ThreadTaggedLivechatWebhookData, ThreadUntaggedLivechatWebhookData, UnauthorizeAccountsApiError, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, UnsubscribeFromBigCommerceEventPayload, UnsubscribeFromHubspotEventPayload, UnsubscribeFromIntegrationEventPayload, UnsubscribeFromMailchimpEventPayload, UnsubscribeFromShopifyEventPayload, UnsubscribeFromTextLivechatEventPayload, UpdateAppAuthorizationPayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateCredentialPayload, UpdateLivechatBotTemplateDto, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppDeploymentPayload, UpsertAppMonetizationPayload, UpsertAppPropertiesPayload, UpsertAppPropertyPayload, UpsertAppRepositoryPayload, UpsertAppResourcePayload, UpsertAppStoragePayload, UpsertAppWidgetPayload, UpsertAppWidgetsPayload, UpsertApplicationChatBoosterPayload, UpsertHubSpotWebhookSettingsPayload, UpsertWorkflowPayload, UserAddedToChatLivechatWebhookData, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserRemovedFromChatWebhookData, UserVercelIntegrationDto, VercelAuthorizeActionResult, VercelAuthorizeFlowContext, VercelAuthorizeFlowCustomContext, VercelAuthorizeFlowResult, VercelClientAuthorization, VercelClientOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelFlowContext, VercelFlowResult, VercelFlows, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowCustomContext, VercelInstallFlowResult, VercelNamespace, VercelOauthCredential, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, WorkflowDefinitionAddNodeTask, WorkflowDefinitionAddTriggerTask, WorkflowDefinitionDto, WorkflowDefinitionForkJoinTask, WorkflowDefinitionHttpTask, WorkflowDefinitionJoinTask, WorkflowDefinitionSwitchTask, WorkflowDefinitionTask, WorkflowDefinitionTaskBase, WorkflowDefinitionTaskCore, WorkflowDefinitionTaskType, WorkflowDefinitionTerminateTask, WorkflowDefinitionTriggerTask, WorkflowDefinitionsQueryParams, WorkflowDto, WorkflowExecution, WorkflowExecutionDetails, WorkflowTriggerDto, WorkflowTriggerType, WorkflowsDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, bigCommerceClientInstance, bigcommerceEventsZods, getAppAutoReviewPayload, getBigCommerceClientAuthorization, getBigCommerceClientConfig, getBigCommerceClientUrl, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientConfig, getHubspotClientAuthorization, getHubspotClientConfig, getIntegrationFlowUrl, getIntegrationFlowUrlOld, getLiveChatClientAuthorization, getLiveChatClientConfig, getMailchimpClientAuthorization, getMailchimpClientConfig, getMailchimpClientUrl, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformAdapterClientDefaultConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getShopifyClientAuthorization, getShopifyClientConfig, getShopifyClientUrl, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, hubspotClientInstance, hubspotEventsZods, initApi, initBigCommerceClient, initGithubClient, initHubspotClient, initLiveChatClient, initMailchimpClient, initNeonClient, initNetlifyClient, initPlanetScaleClient, initPlatformAccountsClient, initPlatformAdapterClient, initPlatformBillingClient, initPlatformDpsClient, initShopifyClient, initTextClient, initVercelClient, integrationEventsZods, livechatClientInstance, mailchimpClientInstance, mailchimpEventsZods, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, shopifyClientInstance, shopifyEventsZods, textClientInstance, textLivechatEventsZods, updateBigCommerceClient, updateGithubClient, updateHubspotClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updatePlatformAdapterClient, updateShopifyClient, updateVercelClient, vercelClientInstance };
package/dist/index.js CHANGED
@@ -3702,6 +3702,27 @@ var textPlatformWorkflowsApi = {
3702
3702
  );
3703
3703
  });
3704
3704
  },
3705
+ createWorkflowDraft(workflowId, payload, authorization) {
3706
+ return __async(this, null, function* () {
3707
+ return textClientInstance.post(
3708
+ `/workflow_platform/workflows/${encodeURIComponent(workflowId)}/draft`,
3709
+ payload,
3710
+ getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
3711
+ ensureAuthorizationToken: true
3712
+ }))
3713
+ );
3714
+ });
3715
+ },
3716
+ publishWorkflowDraft(workflowId, authorization) {
3717
+ return __async(this, null, function* () {
3718
+ return textClientInstance.post(
3719
+ `/workflow_platform/workflows/${encodeURIComponent(workflowId)}/publish`,
3720
+ getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
3721
+ ensureAuthorizationToken: true
3722
+ }))
3723
+ );
3724
+ });
3725
+ },
3705
3726
  toggleWorkflowActivation(workflowId, isActive, authorization) {
3706
3727
  return __async(this, null, function* () {
3707
3728
  return textClientInstance.put(
@@ -4787,6 +4808,169 @@ var livechatAgentsApi = {
4787
4808
  }
4788
4809
  };
4789
4810
 
4811
+ // src/constants/app/templates/repository.ts
4812
+ var appRepositoryTemplatesMap = {
4813
+ "livechat/developer-app-template-nextjs": "nextjs",
4814
+ "livechat/developer-app-template-vite": "vite",
4815
+ "livechat/developer-app-template-saas": "saas"
4816
+ };
4817
+ var appRepositoryTemplates = {
4818
+ nextjs: {
4819
+ id: "nextjs",
4820
+ description: "Uses the most popular and versatile features from our SDKs:",
4821
+ tags: ["Auth", "Webhooks", "Agent App SDK", "Moments"],
4822
+ name: "Fullstack Next.js template",
4823
+ repository: {
4824
+ name: "livechat/developer-app-template-nextjs",
4825
+ target: "nextjs"
4826
+ }
4827
+ },
4828
+ vite: {
4829
+ id: "vite",
4830
+ name: "Vite template",
4831
+ description: "Implements the same base functionalities as the Next.js template except for webhooks:",
4832
+ tags: ["Auth", "Agent App SDK", "Moments"],
4833
+ repository: {
4834
+ name: "livechat/developer-app-template-vite",
4835
+ target: "browser"
4836
+ }
4837
+ },
4838
+ saas: {
4839
+ id: "saas",
4840
+ name: "Nextjs SaaS boilerplate",
4841
+ description: "CRM-like app with key-value storage and simple UI. Authorization and payments fully set up.",
4842
+ tags: [],
4843
+ repository: {
4844
+ name: "livechat/developer-app-template-saas",
4845
+ target: "nextjs"
4846
+ }
4847
+ }
4848
+ };
4849
+
4850
+ // src/constants/app/templates/app.ts
4851
+ var appTemplatesMap = {
4852
+ "livechat/developer-app-template-saas": "saas"
4853
+ };
4854
+ var appBaseTemplates = {
4855
+ "tag-master": {
4856
+ id: "tag-master",
4857
+ name: "Tag Master",
4858
+ category: { name: "Agent App Widget" },
4859
+ description: "Create, view, and delete tags and canned responses in an easy and predictable way.",
4860
+ tags: ["Accounts SDK", "NextJS", "Configuration API"],
4861
+ link: "https://github.com/bstopyra/tag-master-template",
4862
+ icons: {},
4863
+ repository: {
4864
+ name: "bstopyra/tag-master-template",
4865
+ target: "node"
4866
+ }
4867
+ },
4868
+ progress: {
4869
+ id: "progress",
4870
+ name: "Progress",
4871
+ category: { name: "Agent App Widget" },
4872
+ description: "Creates reports based on data from chats: ratings, chatting time, response time.",
4873
+ tags: ["Accounts SDK", "NextJS", "Reports API"],
4874
+ link: "https://github.com/livechat/progress-app",
4875
+ icons: {},
4876
+ repository: {
4877
+ name: "livechat/progress-app",
4878
+ target: "node"
4879
+ }
4880
+ },
4881
+ supervisor: {
4882
+ id: "supervisor",
4883
+ name: "Supervisor",
4884
+ category: { name: "Agent App Widget" },
4885
+ description: "Monitor statistics of your team, such as chat ratings, response times, and chatting times.",
4886
+ tags: ["Accounts SDK", "NextJS", "Reports API"],
4887
+ link: "https://github.com/livechat/supervisor-app",
4888
+ icons: {},
4889
+ repository: {
4890
+ name: "livechat/supervisor-app",
4891
+ target: "node"
4892
+ }
4893
+ },
4894
+ popup: {
4895
+ id: "popup",
4896
+ name: "Popup app",
4897
+ category: { name: "Agent App Widget" },
4898
+ description: "Learn the ropes of the popup authorization flow from the Accounts SDK.",
4899
+ tags: ["Accounts SDK", "Popup flow", "Widget"],
4900
+ link: "https://github.com/livechat/sample-app-popup-auth",
4901
+ icons: {},
4902
+ repository: {
4903
+ name: "livechat/sample-app-popup-auth",
4904
+ target: "node"
4905
+ }
4906
+ },
4907
+ redirect: {
4908
+ id: "redirect",
4909
+ name: "Redirect app",
4910
+ category: { name: "Agent App Widget" },
4911
+ description: "See how to implement the redirect authorization flow from the Accounts SDK.",
4912
+ tags: ["Accounts SDK", "Redirect flow", "Widget"],
4913
+ link: "https://github.com/livechat/sample-app-redirect-auth",
4914
+ icons: {},
4915
+ repository: {
4916
+ name: "livechat/sample-app-redirect-auth",
4917
+ target: "node"
4918
+ }
4919
+ }
4920
+ };
4921
+ var appTemplates = {
4922
+ saas: {
4923
+ id: "saas",
4924
+ name: "Nextjs SaaS boilerplate",
4925
+ category: { name: "Agent App Widget" },
4926
+ description: "CRM-like app with key-value storage and simple UI. Authorization and payments fully set up.",
4927
+ tags: ["UI", "Auth", "Storage", "Payments", "Analytics"],
4928
+ template: true,
4929
+ manifest: {
4930
+ name: "Nextjs SaaS boilerplate",
4931
+ product: "livechat",
4932
+ blocks: {
4933
+ repository: {
4934
+ provider: "github",
4935
+ name: "livechat/developer-app-template-saas",
4936
+ branch: "main",
4937
+ target: "nextjs"
4938
+ },
4939
+ deployment: {
4940
+ provider: "vercel",
4941
+ url: ""
4942
+ },
4943
+ storage: {
4944
+ provider: "neon",
4945
+ databaseName: "",
4946
+ isSeeded: true
4947
+ },
4948
+ authorization: {
4949
+ type: "javascript_app",
4950
+ redirectUri: ""
4951
+ },
4952
+ widgets: {
4953
+ "chat-details": {
4954
+ placement: "plugin",
4955
+ url: "/livechat/details"
4956
+ },
4957
+ fullscreen: {
4958
+ placement: "fullscreen",
4959
+ url: "/livechat/fullscreen"
4960
+ }
4961
+ },
4962
+ monetization: {
4963
+ frequency: "monthly",
4964
+ charge: "organization",
4965
+ price: 500,
4966
+ trialDays: 7
4967
+ }
4968
+ }
4969
+ }
4970
+ }
4971
+ };
4972
+ var allAppTemplates = __spreadValues(__spreadValues(__spreadValues({}, appRepositoryTemplates), appBaseTemplates), appTemplates);
4973
+
4790
4974
  // src/constants/notifications.ts
4791
4975
  var API_NOTIFICATIONS = {
4792
4976
  BUILDING_BLOCKS: {
@@ -4803,6 +4987,112 @@ var API_NOTIFICATIONS = {
4803
4987
  }
4804
4988
  };
4805
4989
 
4990
+ // src/apis/products/livechat/configuration/bots-templates/api.ts
4991
+ var livechatBotsTemplatesApi = {
4992
+ createBotTemplate(bot, authorization) {
4993
+ return __async(this, null, function* () {
4994
+ try {
4995
+ const response = yield livechatClientInstance.post(
4996
+ `v3.5/configuration/action/create_bot_template`,
4997
+ bot,
4998
+ getLiveChatClientConfig(authorization)
4999
+ );
5000
+ return response;
5001
+ } catch (error) {
5002
+ if (error instanceof LivechatApiError) {
5003
+ throw error.withCustomMessage(
5004
+ `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
5005
+ );
5006
+ } else {
5007
+ throw error;
5008
+ }
5009
+ }
5010
+ });
5011
+ },
5012
+ getBotTemplates(clientId, authorization) {
5013
+ return __async(this, null, function* () {
5014
+ try {
5015
+ const response = yield livechatClientInstance.post(
5016
+ `v3.5/configuration/action/list_bot_templates`,
5017
+ {
5018
+ owner_client_id: clientId
5019
+ },
5020
+ getLiveChatClientConfig(authorization)
5021
+ );
5022
+ return response;
5023
+ } catch (error) {
5024
+ if (error instanceof LivechatApiError) {
5025
+ throw error.withCustomMessage(
5026
+ `Bot Templates couldn't be fetched. [${error.message}]`
5027
+ );
5028
+ } else {
5029
+ throw error;
5030
+ }
5031
+ }
5032
+ });
5033
+ },
5034
+ updateBotTemplate(bot, authorization) {
5035
+ return __async(this, null, function* () {
5036
+ try {
5037
+ const response = yield livechatClientInstance.post(
5038
+ `v3.5/configuration/action/update_bot_template`,
5039
+ bot,
5040
+ getLiveChatClientConfig(authorization)
5041
+ );
5042
+ return response;
5043
+ } catch (error) {
5044
+ if (error instanceof LivechatApiError) {
5045
+ throw error.withCustomMessage(
5046
+ `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
5047
+ );
5048
+ } else {
5049
+ throw error;
5050
+ }
5051
+ }
5052
+ });
5053
+ },
5054
+ deleteBotTemplate(bot, authorization) {
5055
+ return __async(this, null, function* () {
5056
+ try {
5057
+ const response = yield livechatClientInstance.post(
5058
+ `v3.5/configuration/action/delete_bot_template`,
5059
+ bot,
5060
+ getLiveChatClientConfig(authorization)
5061
+ );
5062
+ return response;
5063
+ } catch (error) {
5064
+ if (error instanceof LivechatApiError) {
5065
+ throw error.withCustomMessage(
5066
+ `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
5067
+ );
5068
+ } else {
5069
+ throw error;
5070
+ }
5071
+ }
5072
+ });
5073
+ },
5074
+ resetBotTemplateSecret(bot, authorization) {
5075
+ return __async(this, null, function* () {
5076
+ try {
5077
+ const response = yield livechatClientInstance.post(
5078
+ `v3.5/configuration/action/reset_bot_template_secret`,
5079
+ bot,
5080
+ getLiveChatClientConfig(authorization)
5081
+ );
5082
+ return response;
5083
+ } catch (error) {
5084
+ if (error instanceof LivechatApiError) {
5085
+ throw error.withCustomMessage(
5086
+ `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
5087
+ );
5088
+ } else {
5089
+ throw error;
5090
+ }
5091
+ }
5092
+ });
5093
+ }
5094
+ };
5095
+
4806
5096
  // src/apis/products/livechat/configuration/properties/api.ts
4807
5097
  var livechatPropertyApi = {
4808
5098
  getProperties(clientId, isAgent, authorization) {
@@ -5238,6 +5528,7 @@ var livechatWebhookApi = {
5238
5528
  // src/apis/products/livechat/configuration/api.ts
5239
5529
  var livechatConfigurationApi = {
5240
5530
  agents: livechatAgentsApi,
5531
+ bots: livechatBotsTemplatesApi,
5241
5532
  property: livechatPropertyApi,
5242
5533
  webhook: livechatWebhookApi
5243
5534
  };
@@ -5535,169 +5826,6 @@ var platformAccountsApi = {
5535
5826
  token: platformAccountsTokenApi
5536
5827
  };
5537
5828
 
5538
- // src/constants/app/templates/repository.ts
5539
- var appRepositoryTemplatesMap = {
5540
- "livechat/developer-app-template-nextjs": "nextjs",
5541
- "livechat/developer-app-template-vite": "vite",
5542
- "livechat/developer-app-template-saas": "saas"
5543
- };
5544
- var appRepositoryTemplates = {
5545
- nextjs: {
5546
- id: "nextjs",
5547
- description: "Uses the most popular and versatile features from our SDKs:",
5548
- tags: ["Auth", "Webhooks", "Agent App SDK", "Moments"],
5549
- name: "Fullstack Next.js template",
5550
- repository: {
5551
- name: "livechat/developer-app-template-nextjs",
5552
- target: "nextjs"
5553
- }
5554
- },
5555
- vite: {
5556
- id: "vite",
5557
- name: "Vite template",
5558
- description: "Implements the same base functionalities as the Next.js template except for webhooks:",
5559
- tags: ["Auth", "Agent App SDK", "Moments"],
5560
- repository: {
5561
- name: "livechat/developer-app-template-vite",
5562
- target: "browser"
5563
- }
5564
- },
5565
- saas: {
5566
- id: "saas",
5567
- name: "Nextjs SaaS boilerplate",
5568
- description: "CRM-like app with key-value storage and simple UI. Authorization and payments fully set up.",
5569
- tags: [],
5570
- repository: {
5571
- name: "livechat/developer-app-template-saas",
5572
- target: "nextjs"
5573
- }
5574
- }
5575
- };
5576
-
5577
- // src/constants/app/templates/app.ts
5578
- var appTemplatesMap = {
5579
- "livechat/developer-app-template-saas": "saas"
5580
- };
5581
- var appBaseTemplates = {
5582
- "tag-master": {
5583
- id: "tag-master",
5584
- name: "Tag Master",
5585
- category: { name: "Agent App Widget" },
5586
- description: "Create, view, and delete tags and canned responses in an easy and predictable way.",
5587
- tags: ["Accounts SDK", "NextJS", "Configuration API"],
5588
- link: "https://github.com/bstopyra/tag-master-template",
5589
- icons: {},
5590
- repository: {
5591
- name: "bstopyra/tag-master-template",
5592
- target: "node"
5593
- }
5594
- },
5595
- progress: {
5596
- id: "progress",
5597
- name: "Progress",
5598
- category: { name: "Agent App Widget" },
5599
- description: "Creates reports based on data from chats: ratings, chatting time, response time.",
5600
- tags: ["Accounts SDK", "NextJS", "Reports API"],
5601
- link: "https://github.com/livechat/progress-app",
5602
- icons: {},
5603
- repository: {
5604
- name: "livechat/progress-app",
5605
- target: "node"
5606
- }
5607
- },
5608
- supervisor: {
5609
- id: "supervisor",
5610
- name: "Supervisor",
5611
- category: { name: "Agent App Widget" },
5612
- description: "Monitor statistics of your team, such as chat ratings, response times, and chatting times.",
5613
- tags: ["Accounts SDK", "NextJS", "Reports API"],
5614
- link: "https://github.com/livechat/supervisor-app",
5615
- icons: {},
5616
- repository: {
5617
- name: "livechat/supervisor-app",
5618
- target: "node"
5619
- }
5620
- },
5621
- popup: {
5622
- id: "popup",
5623
- name: "Popup app",
5624
- category: { name: "Agent App Widget" },
5625
- description: "Learn the ropes of the popup authorization flow from the Accounts SDK.",
5626
- tags: ["Accounts SDK", "Popup flow", "Widget"],
5627
- link: "https://github.com/livechat/sample-app-popup-auth",
5628
- icons: {},
5629
- repository: {
5630
- name: "livechat/sample-app-popup-auth",
5631
- target: "node"
5632
- }
5633
- },
5634
- redirect: {
5635
- id: "redirect",
5636
- name: "Redirect app",
5637
- category: { name: "Agent App Widget" },
5638
- description: "See how to implement the redirect authorization flow from the Accounts SDK.",
5639
- tags: ["Accounts SDK", "Redirect flow", "Widget"],
5640
- link: "https://github.com/livechat/sample-app-redirect-auth",
5641
- icons: {},
5642
- repository: {
5643
- name: "livechat/sample-app-redirect-auth",
5644
- target: "node"
5645
- }
5646
- }
5647
- };
5648
- var appTemplates = {
5649
- saas: {
5650
- id: "saas",
5651
- name: "Nextjs SaaS boilerplate",
5652
- category: { name: "Agent App Widget" },
5653
- description: "CRM-like app with key-value storage and simple UI. Authorization and payments fully set up.",
5654
- tags: ["UI", "Auth", "Storage", "Payments", "Analytics"],
5655
- template: true,
5656
- manifest: {
5657
- name: "Nextjs SaaS boilerplate",
5658
- product: "livechat",
5659
- blocks: {
5660
- repository: {
5661
- provider: "github",
5662
- name: "livechat/developer-app-template-saas",
5663
- branch: "main",
5664
- target: "nextjs"
5665
- },
5666
- deployment: {
5667
- provider: "vercel",
5668
- url: ""
5669
- },
5670
- storage: {
5671
- provider: "neon",
5672
- databaseName: "",
5673
- isSeeded: true
5674
- },
5675
- authorization: {
5676
- type: "javascript_app",
5677
- redirectUri: ""
5678
- },
5679
- widgets: {
5680
- "chat-details": {
5681
- placement: "plugin",
5682
- url: "/livechat/details"
5683
- },
5684
- fullscreen: {
5685
- placement: "fullscreen",
5686
- url: "/livechat/fullscreen"
5687
- }
5688
- },
5689
- monetization: {
5690
- frequency: "monthly",
5691
- charge: "organization",
5692
- price: 500,
5693
- trialDays: 7
5694
- }
5695
- }
5696
- }
5697
- }
5698
- };
5699
- var allAppTemplates = __spreadValues(__spreadValues(__spreadValues({}, appRepositoryTemplates), appBaseTemplates), appTemplates);
5700
-
5701
5829
  // src/apis/platform/dps/applications/application/authorization/api.ts
5702
5830
  var platformDpsApplicationAuthorizationApi = {
5703
5831
  createAuth(appId, payload, authorization) {
package/dist/index.mjs CHANGED
@@ -3549,6 +3549,27 @@ var textPlatformWorkflowsApi = {
3549
3549
  );
3550
3550
  });
3551
3551
  },
3552
+ createWorkflowDraft(workflowId, payload, authorization) {
3553
+ return __async(this, null, function* () {
3554
+ return textClientInstance.post(
3555
+ `/workflow_platform/workflows/${encodeURIComponent(workflowId)}/draft`,
3556
+ payload,
3557
+ getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
3558
+ ensureAuthorizationToken: true
3559
+ }))
3560
+ );
3561
+ });
3562
+ },
3563
+ publishWorkflowDraft(workflowId, authorization) {
3564
+ return __async(this, null, function* () {
3565
+ return textClientInstance.post(
3566
+ `/workflow_platform/workflows/${encodeURIComponent(workflowId)}/publish`,
3567
+ getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
3568
+ ensureAuthorizationToken: true
3569
+ }))
3570
+ );
3571
+ });
3572
+ },
3552
3573
  toggleWorkflowActivation(workflowId, isActive, authorization) {
3553
3574
  return __async(this, null, function* () {
3554
3575
  return textClientInstance.put(
@@ -4634,6 +4655,169 @@ var livechatAgentsApi = {
4634
4655
  }
4635
4656
  };
4636
4657
 
4658
+ // src/constants/app/templates/repository.ts
4659
+ var appRepositoryTemplatesMap = {
4660
+ "livechat/developer-app-template-nextjs": "nextjs",
4661
+ "livechat/developer-app-template-vite": "vite",
4662
+ "livechat/developer-app-template-saas": "saas"
4663
+ };
4664
+ var appRepositoryTemplates = {
4665
+ nextjs: {
4666
+ id: "nextjs",
4667
+ description: "Uses the most popular and versatile features from our SDKs:",
4668
+ tags: ["Auth", "Webhooks", "Agent App SDK", "Moments"],
4669
+ name: "Fullstack Next.js template",
4670
+ repository: {
4671
+ name: "livechat/developer-app-template-nextjs",
4672
+ target: "nextjs"
4673
+ }
4674
+ },
4675
+ vite: {
4676
+ id: "vite",
4677
+ name: "Vite template",
4678
+ description: "Implements the same base functionalities as the Next.js template except for webhooks:",
4679
+ tags: ["Auth", "Agent App SDK", "Moments"],
4680
+ repository: {
4681
+ name: "livechat/developer-app-template-vite",
4682
+ target: "browser"
4683
+ }
4684
+ },
4685
+ saas: {
4686
+ id: "saas",
4687
+ name: "Nextjs SaaS boilerplate",
4688
+ description: "CRM-like app with key-value storage and simple UI. Authorization and payments fully set up.",
4689
+ tags: [],
4690
+ repository: {
4691
+ name: "livechat/developer-app-template-saas",
4692
+ target: "nextjs"
4693
+ }
4694
+ }
4695
+ };
4696
+
4697
+ // src/constants/app/templates/app.ts
4698
+ var appTemplatesMap = {
4699
+ "livechat/developer-app-template-saas": "saas"
4700
+ };
4701
+ var appBaseTemplates = {
4702
+ "tag-master": {
4703
+ id: "tag-master",
4704
+ name: "Tag Master",
4705
+ category: { name: "Agent App Widget" },
4706
+ description: "Create, view, and delete tags and canned responses in an easy and predictable way.",
4707
+ tags: ["Accounts SDK", "NextJS", "Configuration API"],
4708
+ link: "https://github.com/bstopyra/tag-master-template",
4709
+ icons: {},
4710
+ repository: {
4711
+ name: "bstopyra/tag-master-template",
4712
+ target: "node"
4713
+ }
4714
+ },
4715
+ progress: {
4716
+ id: "progress",
4717
+ name: "Progress",
4718
+ category: { name: "Agent App Widget" },
4719
+ description: "Creates reports based on data from chats: ratings, chatting time, response time.",
4720
+ tags: ["Accounts SDK", "NextJS", "Reports API"],
4721
+ link: "https://github.com/livechat/progress-app",
4722
+ icons: {},
4723
+ repository: {
4724
+ name: "livechat/progress-app",
4725
+ target: "node"
4726
+ }
4727
+ },
4728
+ supervisor: {
4729
+ id: "supervisor",
4730
+ name: "Supervisor",
4731
+ category: { name: "Agent App Widget" },
4732
+ description: "Monitor statistics of your team, such as chat ratings, response times, and chatting times.",
4733
+ tags: ["Accounts SDK", "NextJS", "Reports API"],
4734
+ link: "https://github.com/livechat/supervisor-app",
4735
+ icons: {},
4736
+ repository: {
4737
+ name: "livechat/supervisor-app",
4738
+ target: "node"
4739
+ }
4740
+ },
4741
+ popup: {
4742
+ id: "popup",
4743
+ name: "Popup app",
4744
+ category: { name: "Agent App Widget" },
4745
+ description: "Learn the ropes of the popup authorization flow from the Accounts SDK.",
4746
+ tags: ["Accounts SDK", "Popup flow", "Widget"],
4747
+ link: "https://github.com/livechat/sample-app-popup-auth",
4748
+ icons: {},
4749
+ repository: {
4750
+ name: "livechat/sample-app-popup-auth",
4751
+ target: "node"
4752
+ }
4753
+ },
4754
+ redirect: {
4755
+ id: "redirect",
4756
+ name: "Redirect app",
4757
+ category: { name: "Agent App Widget" },
4758
+ description: "See how to implement the redirect authorization flow from the Accounts SDK.",
4759
+ tags: ["Accounts SDK", "Redirect flow", "Widget"],
4760
+ link: "https://github.com/livechat/sample-app-redirect-auth",
4761
+ icons: {},
4762
+ repository: {
4763
+ name: "livechat/sample-app-redirect-auth",
4764
+ target: "node"
4765
+ }
4766
+ }
4767
+ };
4768
+ var appTemplates = {
4769
+ saas: {
4770
+ id: "saas",
4771
+ name: "Nextjs SaaS boilerplate",
4772
+ category: { name: "Agent App Widget" },
4773
+ description: "CRM-like app with key-value storage and simple UI. Authorization and payments fully set up.",
4774
+ tags: ["UI", "Auth", "Storage", "Payments", "Analytics"],
4775
+ template: true,
4776
+ manifest: {
4777
+ name: "Nextjs SaaS boilerplate",
4778
+ product: "livechat",
4779
+ blocks: {
4780
+ repository: {
4781
+ provider: "github",
4782
+ name: "livechat/developer-app-template-saas",
4783
+ branch: "main",
4784
+ target: "nextjs"
4785
+ },
4786
+ deployment: {
4787
+ provider: "vercel",
4788
+ url: ""
4789
+ },
4790
+ storage: {
4791
+ provider: "neon",
4792
+ databaseName: "",
4793
+ isSeeded: true
4794
+ },
4795
+ authorization: {
4796
+ type: "javascript_app",
4797
+ redirectUri: ""
4798
+ },
4799
+ widgets: {
4800
+ "chat-details": {
4801
+ placement: "plugin",
4802
+ url: "/livechat/details"
4803
+ },
4804
+ fullscreen: {
4805
+ placement: "fullscreen",
4806
+ url: "/livechat/fullscreen"
4807
+ }
4808
+ },
4809
+ monetization: {
4810
+ frequency: "monthly",
4811
+ charge: "organization",
4812
+ price: 500,
4813
+ trialDays: 7
4814
+ }
4815
+ }
4816
+ }
4817
+ }
4818
+ };
4819
+ var allAppTemplates = __spreadValues(__spreadValues(__spreadValues({}, appRepositoryTemplates), appBaseTemplates), appTemplates);
4820
+
4637
4821
  // src/constants/notifications.ts
4638
4822
  var API_NOTIFICATIONS = {
4639
4823
  BUILDING_BLOCKS: {
@@ -4650,6 +4834,112 @@ var API_NOTIFICATIONS = {
4650
4834
  }
4651
4835
  };
4652
4836
 
4837
+ // src/apis/products/livechat/configuration/bots-templates/api.ts
4838
+ var livechatBotsTemplatesApi = {
4839
+ createBotTemplate(bot, authorization) {
4840
+ return __async(this, null, function* () {
4841
+ try {
4842
+ const response = yield livechatClientInstance.post(
4843
+ `v3.5/configuration/action/create_bot_template`,
4844
+ bot,
4845
+ getLiveChatClientConfig(authorization)
4846
+ );
4847
+ return response;
4848
+ } catch (error) {
4849
+ if (error instanceof LivechatApiError) {
4850
+ throw error.withCustomMessage(
4851
+ `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
4852
+ );
4853
+ } else {
4854
+ throw error;
4855
+ }
4856
+ }
4857
+ });
4858
+ },
4859
+ getBotTemplates(clientId, authorization) {
4860
+ return __async(this, null, function* () {
4861
+ try {
4862
+ const response = yield livechatClientInstance.post(
4863
+ `v3.5/configuration/action/list_bot_templates`,
4864
+ {
4865
+ owner_client_id: clientId
4866
+ },
4867
+ getLiveChatClientConfig(authorization)
4868
+ );
4869
+ return response;
4870
+ } catch (error) {
4871
+ if (error instanceof LivechatApiError) {
4872
+ throw error.withCustomMessage(
4873
+ `Bot Templates couldn't be fetched. [${error.message}]`
4874
+ );
4875
+ } else {
4876
+ throw error;
4877
+ }
4878
+ }
4879
+ });
4880
+ },
4881
+ updateBotTemplate(bot, authorization) {
4882
+ return __async(this, null, function* () {
4883
+ try {
4884
+ const response = yield livechatClientInstance.post(
4885
+ `v3.5/configuration/action/update_bot_template`,
4886
+ bot,
4887
+ getLiveChatClientConfig(authorization)
4888
+ );
4889
+ return response;
4890
+ } catch (error) {
4891
+ if (error instanceof LivechatApiError) {
4892
+ throw error.withCustomMessage(
4893
+ `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
4894
+ );
4895
+ } else {
4896
+ throw error;
4897
+ }
4898
+ }
4899
+ });
4900
+ },
4901
+ deleteBotTemplate(bot, authorization) {
4902
+ return __async(this, null, function* () {
4903
+ try {
4904
+ const response = yield livechatClientInstance.post(
4905
+ `v3.5/configuration/action/delete_bot_template`,
4906
+ bot,
4907
+ getLiveChatClientConfig(authorization)
4908
+ );
4909
+ return response;
4910
+ } catch (error) {
4911
+ if (error instanceof LivechatApiError) {
4912
+ throw error.withCustomMessage(
4913
+ `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
4914
+ );
4915
+ } else {
4916
+ throw error;
4917
+ }
4918
+ }
4919
+ });
4920
+ },
4921
+ resetBotTemplateSecret(bot, authorization) {
4922
+ return __async(this, null, function* () {
4923
+ try {
4924
+ const response = yield livechatClientInstance.post(
4925
+ `v3.5/configuration/action/reset_bot_template_secret`,
4926
+ bot,
4927
+ getLiveChatClientConfig(authorization)
4928
+ );
4929
+ return response;
4930
+ } catch (error) {
4931
+ if (error instanceof LivechatApiError) {
4932
+ throw error.withCustomMessage(
4933
+ `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.CREATED} [${error.message}]`
4934
+ );
4935
+ } else {
4936
+ throw error;
4937
+ }
4938
+ }
4939
+ });
4940
+ }
4941
+ };
4942
+
4653
4943
  // src/apis/products/livechat/configuration/properties/api.ts
4654
4944
  var livechatPropertyApi = {
4655
4945
  getProperties(clientId, isAgent, authorization) {
@@ -5085,6 +5375,7 @@ var livechatWebhookApi = {
5085
5375
  // src/apis/products/livechat/configuration/api.ts
5086
5376
  var livechatConfigurationApi = {
5087
5377
  agents: livechatAgentsApi,
5378
+ bots: livechatBotsTemplatesApi,
5088
5379
  property: livechatPropertyApi,
5089
5380
  webhook: livechatWebhookApi
5090
5381
  };
@@ -5382,169 +5673,6 @@ var platformAccountsApi = {
5382
5673
  token: platformAccountsTokenApi
5383
5674
  };
5384
5675
 
5385
- // src/constants/app/templates/repository.ts
5386
- var appRepositoryTemplatesMap = {
5387
- "livechat/developer-app-template-nextjs": "nextjs",
5388
- "livechat/developer-app-template-vite": "vite",
5389
- "livechat/developer-app-template-saas": "saas"
5390
- };
5391
- var appRepositoryTemplates = {
5392
- nextjs: {
5393
- id: "nextjs",
5394
- description: "Uses the most popular and versatile features from our SDKs:",
5395
- tags: ["Auth", "Webhooks", "Agent App SDK", "Moments"],
5396
- name: "Fullstack Next.js template",
5397
- repository: {
5398
- name: "livechat/developer-app-template-nextjs",
5399
- target: "nextjs"
5400
- }
5401
- },
5402
- vite: {
5403
- id: "vite",
5404
- name: "Vite template",
5405
- description: "Implements the same base functionalities as the Next.js template except for webhooks:",
5406
- tags: ["Auth", "Agent App SDK", "Moments"],
5407
- repository: {
5408
- name: "livechat/developer-app-template-vite",
5409
- target: "browser"
5410
- }
5411
- },
5412
- saas: {
5413
- id: "saas",
5414
- name: "Nextjs SaaS boilerplate",
5415
- description: "CRM-like app with key-value storage and simple UI. Authorization and payments fully set up.",
5416
- tags: [],
5417
- repository: {
5418
- name: "livechat/developer-app-template-saas",
5419
- target: "nextjs"
5420
- }
5421
- }
5422
- };
5423
-
5424
- // src/constants/app/templates/app.ts
5425
- var appTemplatesMap = {
5426
- "livechat/developer-app-template-saas": "saas"
5427
- };
5428
- var appBaseTemplates = {
5429
- "tag-master": {
5430
- id: "tag-master",
5431
- name: "Tag Master",
5432
- category: { name: "Agent App Widget" },
5433
- description: "Create, view, and delete tags and canned responses in an easy and predictable way.",
5434
- tags: ["Accounts SDK", "NextJS", "Configuration API"],
5435
- link: "https://github.com/bstopyra/tag-master-template",
5436
- icons: {},
5437
- repository: {
5438
- name: "bstopyra/tag-master-template",
5439
- target: "node"
5440
- }
5441
- },
5442
- progress: {
5443
- id: "progress",
5444
- name: "Progress",
5445
- category: { name: "Agent App Widget" },
5446
- description: "Creates reports based on data from chats: ratings, chatting time, response time.",
5447
- tags: ["Accounts SDK", "NextJS", "Reports API"],
5448
- link: "https://github.com/livechat/progress-app",
5449
- icons: {},
5450
- repository: {
5451
- name: "livechat/progress-app",
5452
- target: "node"
5453
- }
5454
- },
5455
- supervisor: {
5456
- id: "supervisor",
5457
- name: "Supervisor",
5458
- category: { name: "Agent App Widget" },
5459
- description: "Monitor statistics of your team, such as chat ratings, response times, and chatting times.",
5460
- tags: ["Accounts SDK", "NextJS", "Reports API"],
5461
- link: "https://github.com/livechat/supervisor-app",
5462
- icons: {},
5463
- repository: {
5464
- name: "livechat/supervisor-app",
5465
- target: "node"
5466
- }
5467
- },
5468
- popup: {
5469
- id: "popup",
5470
- name: "Popup app",
5471
- category: { name: "Agent App Widget" },
5472
- description: "Learn the ropes of the popup authorization flow from the Accounts SDK.",
5473
- tags: ["Accounts SDK", "Popup flow", "Widget"],
5474
- link: "https://github.com/livechat/sample-app-popup-auth",
5475
- icons: {},
5476
- repository: {
5477
- name: "livechat/sample-app-popup-auth",
5478
- target: "node"
5479
- }
5480
- },
5481
- redirect: {
5482
- id: "redirect",
5483
- name: "Redirect app",
5484
- category: { name: "Agent App Widget" },
5485
- description: "See how to implement the redirect authorization flow from the Accounts SDK.",
5486
- tags: ["Accounts SDK", "Redirect flow", "Widget"],
5487
- link: "https://github.com/livechat/sample-app-redirect-auth",
5488
- icons: {},
5489
- repository: {
5490
- name: "livechat/sample-app-redirect-auth",
5491
- target: "node"
5492
- }
5493
- }
5494
- };
5495
- var appTemplates = {
5496
- saas: {
5497
- id: "saas",
5498
- name: "Nextjs SaaS boilerplate",
5499
- category: { name: "Agent App Widget" },
5500
- description: "CRM-like app with key-value storage and simple UI. Authorization and payments fully set up.",
5501
- tags: ["UI", "Auth", "Storage", "Payments", "Analytics"],
5502
- template: true,
5503
- manifest: {
5504
- name: "Nextjs SaaS boilerplate",
5505
- product: "livechat",
5506
- blocks: {
5507
- repository: {
5508
- provider: "github",
5509
- name: "livechat/developer-app-template-saas",
5510
- branch: "main",
5511
- target: "nextjs"
5512
- },
5513
- deployment: {
5514
- provider: "vercel",
5515
- url: ""
5516
- },
5517
- storage: {
5518
- provider: "neon",
5519
- databaseName: "",
5520
- isSeeded: true
5521
- },
5522
- authorization: {
5523
- type: "javascript_app",
5524
- redirectUri: ""
5525
- },
5526
- widgets: {
5527
- "chat-details": {
5528
- placement: "plugin",
5529
- url: "/livechat/details"
5530
- },
5531
- fullscreen: {
5532
- placement: "fullscreen",
5533
- url: "/livechat/fullscreen"
5534
- }
5535
- },
5536
- monetization: {
5537
- frequency: "monthly",
5538
- charge: "organization",
5539
- price: 500,
5540
- trialDays: 7
5541
- }
5542
- }
5543
- }
5544
- }
5545
- };
5546
- var allAppTemplates = __spreadValues(__spreadValues(__spreadValues({}, appRepositoryTemplates), appBaseTemplates), appTemplates);
5547
-
5548
5676
  // src/apis/platform/dps/applications/application/authorization/api.ts
5549
5677
  var platformDpsApplicationAuthorizationApi = {
5550
5678
  createAuth(appId, payload, authorization) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.1.62",
3
+ "version": "3.2.0",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",