@livechat/developer-studio-api 3.0.37 → 3.0.38

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
@@ -707,8 +707,8 @@ interface OrganizationDto {
707
707
  }[];
708
708
  }
709
709
 
710
- type ApiErrorName = "adapter" | "accounts" | "dps" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "openai";
711
- type ApiErrorSource = "accounts" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "openai";
710
+ type ApiErrorName = "adapter" | "accounts" | "dps" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "shopify" | "openai";
711
+ type ApiErrorSource = "accounts" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "shopify" | "openai";
712
712
  type ApiErrorKind = "unauthorized" | "error";
713
713
  type ApiError<TData = unknown> = {
714
714
  code: number;
@@ -1567,6 +1567,12 @@ type VercelInstallFlowContext = IntegrationFlowContext & {
1567
1567
  };
1568
1568
  type VercelInstallFlowResult = VercelInstallActionResult;
1569
1569
 
1570
+ interface ShopifyAuthorizeActionResult {
1571
+ token: string;
1572
+ }
1573
+ type ShopifyAuthorizeFlowContext = IntegrationFlowContext;
1574
+ type ShopifyAuthorizeFlowResult = ShopifyAuthorizeActionResult;
1575
+
1570
1576
  interface PlatformAdapterClientInstanceAuthorization {
1571
1577
  platform?: {
1572
1578
  dps?: string;
@@ -1580,6 +1586,7 @@ interface PlatformAdapterClientInstanceAuthorization {
1580
1586
  planetscale?: string;
1581
1587
  neon?: string;
1582
1588
  mailchimp?: string;
1589
+ shopify?: string;
1583
1590
  openai?: string;
1584
1591
  }
1585
1592
  type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthorization & {
@@ -1593,6 +1600,7 @@ type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthori
1593
1600
  planetscale?: boolean;
1594
1601
  neon?: boolean;
1595
1602
  mailchimp?: boolean;
1603
+ shopify?: boolean;
1596
1604
  openai?: boolean;
1597
1605
  };
1598
1606
  };
@@ -1621,6 +1629,7 @@ declare function initPlatformAdapterClientInstance(baseUrl?: string, tokens?: {
1621
1629
  planetscale?: string;
1622
1630
  neon?: string;
1623
1631
  mailchimp?: string;
1632
+ shopify?: string;
1624
1633
  openai?: string;
1625
1634
  }): void;
1626
1635
  declare function updatePlatformAdapterClientInstance(tokens?: {
@@ -1636,6 +1645,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
1636
1645
  planetscale?: string;
1637
1646
  neon?: string;
1638
1647
  mailchimp?: string;
1648
+ shopify?: string;
1639
1649
  openai?: string;
1640
1650
  }): void;
1641
1651
 
@@ -2981,6 +2991,11 @@ declare const api: {
2981
2991
  token: string;
2982
2992
  }>;
2983
2993
  };
2994
+ shopify: {
2995
+ getToken(shop: string | undefined, code: string, clientId: string, clientSecret: string, redirectUri: string): Promise<{
2996
+ token: string;
2997
+ }>;
2998
+ };
2984
2999
  neon: {
2985
3000
  project: {
2986
3001
  branch: {
@@ -3168,4 +3183,4 @@ declare function getIntegrationFlowUrl<TContext extends IntegrationFlowContext,
3168
3183
  adapterUrl: string;
3169
3184
  }): string;
3170
3185
 
3171
- export { API_NOTIFICATIONS, AccountDto, AccountsApiError, AdapterApiError, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentConfigurationDto, AgentDto, 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, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, IntegrationFlowContext, IntegrationFlowOutput, IssueLabel, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, LiveChatConfigurationApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowResult, MailchimpClientInstanceAuthorization, MailchimpClientInstanceOptions, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowResult, NeonClientInstanceAuthorization, NeonClientInstanceOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowResult, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowResult, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, 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, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, UpdateAppAuthorizationPayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppDeploymentPayload, UpsertAppMonetizationPayload, UpsertAppPropertiesPayload, UpsertAppPropertyPayload, UpsertAppRepositoryPayload, UpsertAppResourcePayload, UpsertAppStoragePayload, UpsertAppWidgetPayload, UpsertAppWidgetsPayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserVercelIntegrationDto, VercelAuthorizeFlowContext, VercelAuthorizeFlowResult, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowResult, VercelIntegrateActionResult, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, Webhook, WebhookDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getIntegrationFlowUrl, getLiveChatClientAuthorization, getLiveChatClientConfig, getMailchimpClientAuthorization, getMailchimpClientConfig, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformAdapterClientDefaultConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initMailchimpClientInstance, initNeonClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, mailchimpClientInstance, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, textClientInstance, updateGithubClientInstance, updateMailchimpClientInstance, updateNeonClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateVercelClientInstance, vercelClientInstance };
3186
+ export { API_NOTIFICATIONS, AccountDto, AccountsApiError, AdapterApiError, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentConfigurationDto, AgentDto, 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, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, IntegrationFlowContext, IntegrationFlowOutput, IssueLabel, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, LiveChatConfigurationApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowResult, MailchimpClientInstanceAuthorization, MailchimpClientInstanceOptions, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowResult, NeonClientInstanceAuthorization, NeonClientInstanceOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowResult, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowResult, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, 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, ShopifyAuthorizeActionResult, ShopifyAuthorizeFlowContext, ShopifyAuthorizeFlowResult, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, UpdateAppAuthorizationPayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppDeploymentPayload, UpsertAppMonetizationPayload, UpsertAppPropertiesPayload, UpsertAppPropertyPayload, UpsertAppRepositoryPayload, UpsertAppResourcePayload, UpsertAppStoragePayload, UpsertAppWidgetPayload, UpsertAppWidgetsPayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserVercelIntegrationDto, VercelAuthorizeFlowContext, VercelAuthorizeFlowResult, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowResult, VercelIntegrateActionResult, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, Webhook, WebhookDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getIntegrationFlowUrl, getLiveChatClientAuthorization, getLiveChatClientConfig, getMailchimpClientAuthorization, getMailchimpClientConfig, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformAdapterClientDefaultConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initMailchimpClientInstance, initNeonClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, mailchimpClientInstance, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, textClientInstance, updateGithubClientInstance, updateMailchimpClientInstance, updateNeonClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateVercelClientInstance, vercelClientInstance };
package/dist/index.d.ts CHANGED
@@ -707,8 +707,8 @@ interface OrganizationDto {
707
707
  }[];
708
708
  }
709
709
 
710
- type ApiErrorName = "adapter" | "accounts" | "dps" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "openai";
711
- type ApiErrorSource = "accounts" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "openai";
710
+ type ApiErrorName = "adapter" | "accounts" | "dps" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "shopify" | "openai";
711
+ type ApiErrorSource = "accounts" | "github" | "vercel" | "netlify" | "planetscale" | "neon" | "mailchimp" | "shopify" | "openai";
712
712
  type ApiErrorKind = "unauthorized" | "error";
713
713
  type ApiError<TData = unknown> = {
714
714
  code: number;
@@ -1567,6 +1567,12 @@ type VercelInstallFlowContext = IntegrationFlowContext & {
1567
1567
  };
1568
1568
  type VercelInstallFlowResult = VercelInstallActionResult;
1569
1569
 
1570
+ interface ShopifyAuthorizeActionResult {
1571
+ token: string;
1572
+ }
1573
+ type ShopifyAuthorizeFlowContext = IntegrationFlowContext;
1574
+ type ShopifyAuthorizeFlowResult = ShopifyAuthorizeActionResult;
1575
+
1570
1576
  interface PlatformAdapterClientInstanceAuthorization {
1571
1577
  platform?: {
1572
1578
  dps?: string;
@@ -1580,6 +1586,7 @@ interface PlatformAdapterClientInstanceAuthorization {
1580
1586
  planetscale?: string;
1581
1587
  neon?: string;
1582
1588
  mailchimp?: string;
1589
+ shopify?: string;
1583
1590
  openai?: string;
1584
1591
  }
1585
1592
  type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthorization & {
@@ -1593,6 +1600,7 @@ type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthori
1593
1600
  planetscale?: boolean;
1594
1601
  neon?: boolean;
1595
1602
  mailchimp?: boolean;
1603
+ shopify?: boolean;
1596
1604
  openai?: boolean;
1597
1605
  };
1598
1606
  };
@@ -1621,6 +1629,7 @@ declare function initPlatformAdapterClientInstance(baseUrl?: string, tokens?: {
1621
1629
  planetscale?: string;
1622
1630
  neon?: string;
1623
1631
  mailchimp?: string;
1632
+ shopify?: string;
1624
1633
  openai?: string;
1625
1634
  }): void;
1626
1635
  declare function updatePlatformAdapterClientInstance(tokens?: {
@@ -1636,6 +1645,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
1636
1645
  planetscale?: string;
1637
1646
  neon?: string;
1638
1647
  mailchimp?: string;
1648
+ shopify?: string;
1639
1649
  openai?: string;
1640
1650
  }): void;
1641
1651
 
@@ -2981,6 +2991,11 @@ declare const api: {
2981
2991
  token: string;
2982
2992
  }>;
2983
2993
  };
2994
+ shopify: {
2995
+ getToken(shop: string | undefined, code: string, clientId: string, clientSecret: string, redirectUri: string): Promise<{
2996
+ token: string;
2997
+ }>;
2998
+ };
2984
2999
  neon: {
2985
3000
  project: {
2986
3001
  branch: {
@@ -3168,4 +3183,4 @@ declare function getIntegrationFlowUrl<TContext extends IntegrationFlowContext,
3168
3183
  adapterUrl: string;
3169
3184
  }): string;
3170
3185
 
3171
- export { API_NOTIFICATIONS, AccountDto, AccountsApiError, AdapterApiError, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentConfigurationDto, AgentDto, 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, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, IntegrationFlowContext, IntegrationFlowOutput, IssueLabel, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, LiveChatConfigurationApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowResult, MailchimpClientInstanceAuthorization, MailchimpClientInstanceOptions, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowResult, NeonClientInstanceAuthorization, NeonClientInstanceOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowResult, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowResult, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, 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, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, UpdateAppAuthorizationPayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppDeploymentPayload, UpsertAppMonetizationPayload, UpsertAppPropertiesPayload, UpsertAppPropertyPayload, UpsertAppRepositoryPayload, UpsertAppResourcePayload, UpsertAppStoragePayload, UpsertAppWidgetPayload, UpsertAppWidgetsPayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserVercelIntegrationDto, VercelAuthorizeFlowContext, VercelAuthorizeFlowResult, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowResult, VercelIntegrateActionResult, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, Webhook, WebhookDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getIntegrationFlowUrl, getLiveChatClientAuthorization, getLiveChatClientConfig, getMailchimpClientAuthorization, getMailchimpClientConfig, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformAdapterClientDefaultConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initMailchimpClientInstance, initNeonClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, mailchimpClientInstance, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, textClientInstance, updateGithubClientInstance, updateMailchimpClientInstance, updateNeonClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateVercelClientInstance, vercelClientInstance };
3186
+ export { API_NOTIFICATIONS, AccountDto, AccountsApiError, AdapterApiError, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentConfigurationDto, AgentDto, 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, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, IntegrationFlowContext, IntegrationFlowOutput, IssueLabel, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, LiveChatConfigurationApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowResult, MailchimpClientInstanceAuthorization, MailchimpClientInstanceOptions, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowResult, NeonClientInstanceAuthorization, NeonClientInstanceOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowResult, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowResult, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformBillingClientInstanceAuthorization, PlatformBillingClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, 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, ShopifyAuthorizeActionResult, ShopifyAuthorizeFlowContext, ShopifyAuthorizeFlowResult, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, UpdateAppAuthorizationPayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppDeploymentPayload, UpsertAppMonetizationPayload, UpsertAppPropertiesPayload, UpsertAppPropertyPayload, UpsertAppRepositoryPayload, UpsertAppResourcePayload, UpsertAppStoragePayload, UpsertAppWidgetPayload, UpsertAppWidgetsPayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserVercelIntegrationDto, VercelAuthorizeFlowContext, VercelAuthorizeFlowResult, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowResult, VercelIntegrateActionResult, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, Webhook, WebhookDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getIntegrationFlowUrl, getLiveChatClientAuthorization, getLiveChatClientConfig, getMailchimpClientAuthorization, getMailchimpClientConfig, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformAdapterClientDefaultConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initMailchimpClientInstance, initNeonClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformBillingClientInstance, initPlatformDpsClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, mailchimpClientInstance, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, textClientInstance, updateGithubClientInstance, updateMailchimpClientInstance, updateNeonClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateVercelClientInstance, vercelClientInstance };
package/dist/index.js CHANGED
@@ -2390,19 +2390,50 @@ var mailchimpApi = {
2390
2390
  }
2391
2391
  };
2392
2392
 
2393
+ // src/apis/integrations/shopify/api.ts
2394
+ var import_axios14 = __toESM(require("axios"));
2395
+ var shopifyApi = {
2396
+ getToken(shop, code, clientId, clientSecret, redirectUri) {
2397
+ return __async(this, null, function* () {
2398
+ var _a;
2399
+ const data = new URLSearchParams({
2400
+ code,
2401
+ client_id: clientId,
2402
+ client_secret: clientSecret,
2403
+ redirect_uri: redirectUri,
2404
+ grant_type: "authorization_code"
2405
+ });
2406
+ const response = yield import_axios14.default.post(
2407
+ `https://${shop ? `${shop}.` : ""}myshopify.com/admin/oauth/access_token`,
2408
+ data,
2409
+ {
2410
+ headers: {
2411
+ "Content-Type": "application/x-www-form-urlencoded"
2412
+ }
2413
+ }
2414
+ );
2415
+ const params = new URLSearchParams(response.data);
2416
+ return {
2417
+ token: (_a = params.get("access_token")) != null ? _a : ""
2418
+ };
2419
+ });
2420
+ }
2421
+ };
2422
+
2393
2423
  // src/apis/integrations/api.ts
2394
2424
  var integrationsApi = {
2395
2425
  github: gitHubApi,
2396
2426
  netlify: netlifyApi,
2397
2427
  vercel: vercelApi,
2398
2428
  mailchimp: mailchimpApi,
2429
+ shopify: shopifyApi,
2399
2430
  neon: neonApi,
2400
2431
  planetscale: planetscaleApi,
2401
2432
  text: textApi
2402
2433
  };
2403
2434
 
2404
2435
  // src/apis/products/livechat/instance.ts
2405
- var import_axios14 = __toESM(require("axios"));
2436
+ var import_axios15 = __toESM(require("axios"));
2406
2437
  var REGION = {
2407
2438
  FRA: "fra",
2408
2439
  DAL: "dal",
@@ -2416,7 +2447,7 @@ var getRegion = (token) => {
2416
2447
  return region;
2417
2448
  }
2418
2449
  };
2419
- var livechatClientInstance = import_axios14.default.create({
2450
+ var livechatClientInstance = import_axios15.default.create({
2420
2451
  baseURL: "https://api.labs.livechatinc.com"
2421
2452
  });
2422
2453
  function getLiveChatClientAuthorization(req) {
@@ -2935,14 +2966,14 @@ var productsApi = {
2935
2966
  };
2936
2967
 
2937
2968
  // src/apis/platform/accounts/instance.ts
2938
- var import_axios15 = __toESM(require("axios"));
2969
+ var import_axios16 = __toESM(require("axios"));
2939
2970
  var AccountsApiError = class extends ApiErrorBase {
2940
2971
  constructor() {
2941
2972
  super(...arguments);
2942
2973
  this.name = "accounts";
2943
2974
  }
2944
2975
  };
2945
- var platformAccountsClientInstance = import_axios15.default.create({
2976
+ var platformAccountsClientInstance = import_axios16.default.create({
2946
2977
  baseURL: "https://accounts.labs.livechatinc.com"
2947
2978
  });
2948
2979
  platformAccountsClientInstance.interceptors.response.use(
@@ -3272,14 +3303,14 @@ var platformAccountsApi = {
3272
3303
  };
3273
3304
 
3274
3305
  // src/apis/platform/dps/instance.ts
3275
- var import_axios16 = __toESM(require("axios"));
3306
+ var import_axios17 = __toESM(require("axios"));
3276
3307
  var DpsApiError = class extends ApiErrorBase {
3277
3308
  constructor() {
3278
3309
  super(...arguments);
3279
3310
  this.name = "dps";
3280
3311
  }
3281
3312
  };
3282
- var platformDpsClientInstance = import_axios16.default.create({
3313
+ var platformDpsClientInstance = import_axios17.default.create({
3283
3314
  baseURL: "https://dev-platform.labs.livechatinc.com"
3284
3315
  });
3285
3316
  platformDpsClientInstance.interceptors.response.use(
@@ -4839,7 +4870,7 @@ var platformDpsApi = {
4839
4870
  };
4840
4871
 
4841
4872
  // src/apis/platform/adapter/instance.ts
4842
- var import_axios17 = __toESM(require("axios"));
4873
+ var import_axios18 = __toESM(require("axios"));
4843
4874
  var REGION2 = {
4844
4875
  FRA: "fra",
4845
4876
  DAL: "dal",
@@ -4873,10 +4904,11 @@ function getPlatformAdapterClientAuthorization(req) {
4873
4904
  planetscale: req.headers["planetscale-token"],
4874
4905
  neon: req.headers["neon-token"],
4875
4906
  mailchimp: req.headers["mailchimp-token"],
4907
+ shopify: req.headers["shopify-token"],
4876
4908
  openai: req.headers["openai-token"]
4877
4909
  };
4878
4910
  }
4879
- var platformAdapterClientInstance = import_axios17.default.create({
4911
+ var platformAdapterClientInstance = import_axios18.default.create({
4880
4912
  baseURL: "https://platform.labs.text.com/console-adapter/api",
4881
4913
  headers: {
4882
4914
  "Content-Type": "application/json"
@@ -4899,7 +4931,7 @@ platformAdapterClientInstance.interceptors.response.use(
4899
4931
  }
4900
4932
  );
4901
4933
  function getPlatformAdapterClientConfig(options = {}) {
4902
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
4934
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
4903
4935
  const currentHeaders = platformAdapterClientInstance.defaults.headers;
4904
4936
  const headers = {
4905
4937
  platform: {
@@ -4915,38 +4947,42 @@ function getPlatformAdapterClientConfig(options = {}) {
4915
4947
  planetscale: (_i = currentHeaders["planetscale-token"]) != null ? _i : options.planetscale,
4916
4948
  neon: (_j = currentHeaders["neon-token"]) != null ? _j : options.neon,
4917
4949
  mailchimp: (_k = currentHeaders["mailchimp-token"]) != null ? _k : options.mailchimp,
4918
- openai: (_l = currentHeaders["openai-token"]) != null ? _l : options.openai
4950
+ shopify: (_l = currentHeaders["shopify-token"]) != null ? _l : options.shopify,
4951
+ openai: (_m = currentHeaders["openai-token"]) != null ? _m : options.openai
4919
4952
  }
4920
4953
  };
4921
4954
  if (currentHeaders["platform-dps-token"]) {
4922
- currentHeaders["X-Region"] = (_m = getRegion2(currentHeaders["platform-dps-token"])) != null ? _m : void 0;
4955
+ currentHeaders["X-Region"] = (_n = getRegion2(currentHeaders["platform-dps-token"])) != null ? _n : void 0;
4923
4956
  }
4924
- if (((_o = (_n = options.ensureAuthorizationToken) == null ? void 0 : _n.platform) == null ? void 0 : _o.dps) && !headers.platform.dps) {
4957
+ if (((_p = (_o = options.ensureAuthorizationToken) == null ? void 0 : _o.platform) == null ? void 0 : _p.dps) && !headers.platform.dps) {
4925
4958
  throw new UnauthorizeApiError("accounts");
4926
4959
  }
4927
- if (((_p = options.ensureAuthorizationToken) == null ? void 0 : _p.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
4960
+ if (((_q = options.ensureAuthorizationToken) == null ? void 0 : _q.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
4928
4961
  throw new UnauthorizeApiError("github");
4929
4962
  }
4930
- if (((_q = options.ensureAuthorizationToken) == null ? void 0 : _q.vercel) && !headers.integrations.vercel) {
4963
+ if (((_r = options.ensureAuthorizationToken) == null ? void 0 : _r.vercel) && !headers.integrations.vercel) {
4931
4964
  throw new UnauthorizeApiError("vercel");
4932
4965
  }
4933
- if (((_r = options.ensureAuthorizationToken) == null ? void 0 : _r.netlify) && !headers.integrations.netlify) {
4966
+ if (((_s = options.ensureAuthorizationToken) == null ? void 0 : _s.netlify) && !headers.integrations.netlify) {
4934
4967
  throw new UnauthorizeApiError("netlify");
4935
4968
  }
4936
- if (((_s = options.ensureAuthorizationToken) == null ? void 0 : _s.planetscale) && !headers.integrations.planetscale) {
4969
+ if (((_t = options.ensureAuthorizationToken) == null ? void 0 : _t.planetscale) && !headers.integrations.planetscale) {
4937
4970
  throw new UnauthorizeApiError("planetscale");
4938
4971
  }
4939
- if (((_t = options.ensureAuthorizationToken) == null ? void 0 : _t.neon) && !headers.integrations.neon) {
4972
+ if (((_u = options.ensureAuthorizationToken) == null ? void 0 : _u.neon) && !headers.integrations.neon) {
4940
4973
  throw new UnauthorizeApiError("neon");
4941
4974
  }
4942
- if (((_u = options.ensureAuthorizationToken) == null ? void 0 : _u.mailchimp) && !headers.integrations.mailchimp) {
4975
+ if (((_v = options.ensureAuthorizationToken) == null ? void 0 : _v.mailchimp) && !headers.integrations.mailchimp) {
4943
4976
  throw new UnauthorizeApiError("mailchimp");
4944
4977
  }
4945
- if (((_v = options.ensureAuthorizationToken) == null ? void 0 : _v.openai) && !headers.integrations.openai) {
4978
+ if (((_w = options.ensureAuthorizationToken) == null ? void 0 : _w.shopify) && !headers.integrations.shopify) {
4979
+ throw new UnauthorizeApiError("shopify");
4980
+ }
4981
+ if (((_x = options.ensureAuthorizationToken) == null ? void 0 : _x.openai) && !headers.integrations.openai) {
4946
4982
  throw new UnauthorizeApiError("openai");
4947
4983
  }
4948
4984
  return {
4949
- headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
4985
+ headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.shopify ? { "shopify-token": headers.integrations.shopify } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
4950
4986
  };
4951
4987
  }
4952
4988
  var getPlatformAdapterClientDefaultConfig = (authorization) => getPlatformAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
@@ -4997,6 +5033,9 @@ function updatePlatformAdapterClientInstance(tokens) {
4997
5033
  if (tokens == null ? void 0 : tokens.mailchimp) {
4998
5034
  headers["mailchimp-token"] = tokens.mailchimp;
4999
5035
  }
5036
+ if (tokens == null ? void 0 : tokens.shopify) {
5037
+ headers["shopify-token"] = tokens.shopify;
5038
+ }
5000
5039
  if (tokens == null ? void 0 : tokens.openai) {
5001
5040
  headers["openai-token"] = tokens.openai;
5002
5041
  }
@@ -5491,15 +5530,15 @@ var platformAdapterConductorApi = {
5491
5530
  };
5492
5531
 
5493
5532
  // src/apis/integrations/mailchimp/instance.ts
5494
- var import_axios18 = __toESM(require("axios"));
5495
- var mailchimpClientInstance = import_axios18.default.create({
5533
+ var import_axios19 = __toESM(require("axios"));
5534
+ var mailchimpClientInstance = import_axios19.default.create({
5496
5535
  baseURL: "https://us6.api.mailchimp.com/3.0/"
5497
5536
  });
5498
5537
  mailchimpClientInstance.interceptors.response.use(
5499
5538
  (r) => r,
5500
5539
  (error) => {
5501
5540
  var _a;
5502
- if (import_axios18.default.isAxiosError(error)) {
5541
+ if (import_axios19.default.isAxiosError(error)) {
5503
5542
  if (((_a = error.response) == null ? void 0 : _a.status) === 401) {
5504
5543
  throw new UnauthorizeApiError("mailchimp");
5505
5544
  }
@@ -5540,8 +5579,8 @@ function updateMailchimpClientInstance(token) {
5540
5579
  }
5541
5580
 
5542
5581
  // src/apis/platform/billing/instance.ts
5543
- var import_axios19 = __toESM(require("axios"));
5544
- var platformBillingClientInstance = import_axios19.default.create({
5582
+ var import_axios20 = __toESM(require("axios"));
5583
+ var platformBillingClientInstance = import_axios20.default.create({
5545
5584
  baseURL: "https://billing.labs.livechatinc.com"
5546
5585
  });
5547
5586
  function getPlatformBillingClientAuthorization(req) {
package/dist/index.mjs CHANGED
@@ -2283,19 +2283,50 @@ var mailchimpApi = {
2283
2283
  }
2284
2284
  };
2285
2285
 
2286
+ // src/apis/integrations/shopify/api.ts
2287
+ import axios12 from "axios";
2288
+ var shopifyApi = {
2289
+ getToken(shop, code, clientId, clientSecret, redirectUri) {
2290
+ return __async(this, null, function* () {
2291
+ var _a;
2292
+ const data = new URLSearchParams({
2293
+ code,
2294
+ client_id: clientId,
2295
+ client_secret: clientSecret,
2296
+ redirect_uri: redirectUri,
2297
+ grant_type: "authorization_code"
2298
+ });
2299
+ const response = yield axios12.post(
2300
+ `https://${shop ? `${shop}.` : ""}myshopify.com/admin/oauth/access_token`,
2301
+ data,
2302
+ {
2303
+ headers: {
2304
+ "Content-Type": "application/x-www-form-urlencoded"
2305
+ }
2306
+ }
2307
+ );
2308
+ const params = new URLSearchParams(response.data);
2309
+ return {
2310
+ token: (_a = params.get("access_token")) != null ? _a : ""
2311
+ };
2312
+ });
2313
+ }
2314
+ };
2315
+
2286
2316
  // src/apis/integrations/api.ts
2287
2317
  var integrationsApi = {
2288
2318
  github: gitHubApi,
2289
2319
  netlify: netlifyApi,
2290
2320
  vercel: vercelApi,
2291
2321
  mailchimp: mailchimpApi,
2322
+ shopify: shopifyApi,
2292
2323
  neon: neonApi,
2293
2324
  planetscale: planetscaleApi,
2294
2325
  text: textApi
2295
2326
  };
2296
2327
 
2297
2328
  // src/apis/products/livechat/instance.ts
2298
- import axios12 from "axios";
2329
+ import axios13 from "axios";
2299
2330
  var REGION = {
2300
2331
  FRA: "fra",
2301
2332
  DAL: "dal",
@@ -2309,7 +2340,7 @@ var getRegion = (token) => {
2309
2340
  return region;
2310
2341
  }
2311
2342
  };
2312
- var livechatClientInstance = axios12.create({
2343
+ var livechatClientInstance = axios13.create({
2313
2344
  baseURL: "https://api.labs.livechatinc.com"
2314
2345
  });
2315
2346
  function getLiveChatClientAuthorization(req) {
@@ -2828,14 +2859,14 @@ var productsApi = {
2828
2859
  };
2829
2860
 
2830
2861
  // src/apis/platform/accounts/instance.ts
2831
- import axios13 from "axios";
2862
+ import axios14 from "axios";
2832
2863
  var AccountsApiError = class extends ApiErrorBase {
2833
2864
  constructor() {
2834
2865
  super(...arguments);
2835
2866
  this.name = "accounts";
2836
2867
  }
2837
2868
  };
2838
- var platformAccountsClientInstance = axios13.create({
2869
+ var platformAccountsClientInstance = axios14.create({
2839
2870
  baseURL: "https://accounts.labs.livechatinc.com"
2840
2871
  });
2841
2872
  platformAccountsClientInstance.interceptors.response.use(
@@ -3165,14 +3196,14 @@ var platformAccountsApi = {
3165
3196
  };
3166
3197
 
3167
3198
  // src/apis/platform/dps/instance.ts
3168
- import axios14 from "axios";
3199
+ import axios15 from "axios";
3169
3200
  var DpsApiError = class extends ApiErrorBase {
3170
3201
  constructor() {
3171
3202
  super(...arguments);
3172
3203
  this.name = "dps";
3173
3204
  }
3174
3205
  };
3175
- var platformDpsClientInstance = axios14.create({
3206
+ var platformDpsClientInstance = axios15.create({
3176
3207
  baseURL: "https://dev-platform.labs.livechatinc.com"
3177
3208
  });
3178
3209
  platformDpsClientInstance.interceptors.response.use(
@@ -4732,7 +4763,7 @@ var platformDpsApi = {
4732
4763
  };
4733
4764
 
4734
4765
  // src/apis/platform/adapter/instance.ts
4735
- import axios15 from "axios";
4766
+ import axios16 from "axios";
4736
4767
  var REGION2 = {
4737
4768
  FRA: "fra",
4738
4769
  DAL: "dal",
@@ -4766,10 +4797,11 @@ function getPlatformAdapterClientAuthorization(req) {
4766
4797
  planetscale: req.headers["planetscale-token"],
4767
4798
  neon: req.headers["neon-token"],
4768
4799
  mailchimp: req.headers["mailchimp-token"],
4800
+ shopify: req.headers["shopify-token"],
4769
4801
  openai: req.headers["openai-token"]
4770
4802
  };
4771
4803
  }
4772
- var platformAdapterClientInstance = axios15.create({
4804
+ var platformAdapterClientInstance = axios16.create({
4773
4805
  baseURL: "https://platform.labs.text.com/console-adapter/api",
4774
4806
  headers: {
4775
4807
  "Content-Type": "application/json"
@@ -4792,7 +4824,7 @@ platformAdapterClientInstance.interceptors.response.use(
4792
4824
  }
4793
4825
  );
4794
4826
  function getPlatformAdapterClientConfig(options = {}) {
4795
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
4827
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
4796
4828
  const currentHeaders = platformAdapterClientInstance.defaults.headers;
4797
4829
  const headers = {
4798
4830
  platform: {
@@ -4808,38 +4840,42 @@ function getPlatformAdapterClientConfig(options = {}) {
4808
4840
  planetscale: (_i = currentHeaders["planetscale-token"]) != null ? _i : options.planetscale,
4809
4841
  neon: (_j = currentHeaders["neon-token"]) != null ? _j : options.neon,
4810
4842
  mailchimp: (_k = currentHeaders["mailchimp-token"]) != null ? _k : options.mailchimp,
4811
- openai: (_l = currentHeaders["openai-token"]) != null ? _l : options.openai
4843
+ shopify: (_l = currentHeaders["shopify-token"]) != null ? _l : options.shopify,
4844
+ openai: (_m = currentHeaders["openai-token"]) != null ? _m : options.openai
4812
4845
  }
4813
4846
  };
4814
4847
  if (currentHeaders["platform-dps-token"]) {
4815
- currentHeaders["X-Region"] = (_m = getRegion2(currentHeaders["platform-dps-token"])) != null ? _m : void 0;
4848
+ currentHeaders["X-Region"] = (_n = getRegion2(currentHeaders["platform-dps-token"])) != null ? _n : void 0;
4816
4849
  }
4817
- if (((_o = (_n = options.ensureAuthorizationToken) == null ? void 0 : _n.platform) == null ? void 0 : _o.dps) && !headers.platform.dps) {
4850
+ if (((_p = (_o = options.ensureAuthorizationToken) == null ? void 0 : _o.platform) == null ? void 0 : _p.dps) && !headers.platform.dps) {
4818
4851
  throw new UnauthorizeApiError("accounts");
4819
4852
  }
4820
- if (((_p = options.ensureAuthorizationToken) == null ? void 0 : _p.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
4853
+ if (((_q = options.ensureAuthorizationToken) == null ? void 0 : _q.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
4821
4854
  throw new UnauthorizeApiError("github");
4822
4855
  }
4823
- if (((_q = options.ensureAuthorizationToken) == null ? void 0 : _q.vercel) && !headers.integrations.vercel) {
4856
+ if (((_r = options.ensureAuthorizationToken) == null ? void 0 : _r.vercel) && !headers.integrations.vercel) {
4824
4857
  throw new UnauthorizeApiError("vercel");
4825
4858
  }
4826
- if (((_r = options.ensureAuthorizationToken) == null ? void 0 : _r.netlify) && !headers.integrations.netlify) {
4859
+ if (((_s = options.ensureAuthorizationToken) == null ? void 0 : _s.netlify) && !headers.integrations.netlify) {
4827
4860
  throw new UnauthorizeApiError("netlify");
4828
4861
  }
4829
- if (((_s = options.ensureAuthorizationToken) == null ? void 0 : _s.planetscale) && !headers.integrations.planetscale) {
4862
+ if (((_t = options.ensureAuthorizationToken) == null ? void 0 : _t.planetscale) && !headers.integrations.planetscale) {
4830
4863
  throw new UnauthorizeApiError("planetscale");
4831
4864
  }
4832
- if (((_t = options.ensureAuthorizationToken) == null ? void 0 : _t.neon) && !headers.integrations.neon) {
4865
+ if (((_u = options.ensureAuthorizationToken) == null ? void 0 : _u.neon) && !headers.integrations.neon) {
4833
4866
  throw new UnauthorizeApiError("neon");
4834
4867
  }
4835
- if (((_u = options.ensureAuthorizationToken) == null ? void 0 : _u.mailchimp) && !headers.integrations.mailchimp) {
4868
+ if (((_v = options.ensureAuthorizationToken) == null ? void 0 : _v.mailchimp) && !headers.integrations.mailchimp) {
4836
4869
  throw new UnauthorizeApiError("mailchimp");
4837
4870
  }
4838
- if (((_v = options.ensureAuthorizationToken) == null ? void 0 : _v.openai) && !headers.integrations.openai) {
4871
+ if (((_w = options.ensureAuthorizationToken) == null ? void 0 : _w.shopify) && !headers.integrations.shopify) {
4872
+ throw new UnauthorizeApiError("shopify");
4873
+ }
4874
+ if (((_x = options.ensureAuthorizationToken) == null ? void 0 : _x.openai) && !headers.integrations.openai) {
4839
4875
  throw new UnauthorizeApiError("openai");
4840
4876
  }
4841
4877
  return {
4842
- headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
4878
+ headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.shopify ? { "shopify-token": headers.integrations.shopify } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
4843
4879
  };
4844
4880
  }
4845
4881
  var getPlatformAdapterClientDefaultConfig = (authorization) => getPlatformAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
@@ -4890,6 +4926,9 @@ function updatePlatformAdapterClientInstance(tokens) {
4890
4926
  if (tokens == null ? void 0 : tokens.mailchimp) {
4891
4927
  headers["mailchimp-token"] = tokens.mailchimp;
4892
4928
  }
4929
+ if (tokens == null ? void 0 : tokens.shopify) {
4930
+ headers["shopify-token"] = tokens.shopify;
4931
+ }
4893
4932
  if (tokens == null ? void 0 : tokens.openai) {
4894
4933
  headers["openai-token"] = tokens.openai;
4895
4934
  }
@@ -5384,15 +5423,15 @@ var platformAdapterConductorApi = {
5384
5423
  };
5385
5424
 
5386
5425
  // src/apis/integrations/mailchimp/instance.ts
5387
- import axios16 from "axios";
5388
- var mailchimpClientInstance = axios16.create({
5426
+ import axios17 from "axios";
5427
+ var mailchimpClientInstance = axios17.create({
5389
5428
  baseURL: "https://us6.api.mailchimp.com/3.0/"
5390
5429
  });
5391
5430
  mailchimpClientInstance.interceptors.response.use(
5392
5431
  (r) => r,
5393
5432
  (error) => {
5394
5433
  var _a;
5395
- if (axios16.isAxiosError(error)) {
5434
+ if (axios17.isAxiosError(error)) {
5396
5435
  if (((_a = error.response) == null ? void 0 : _a.status) === 401) {
5397
5436
  throw new UnauthorizeApiError("mailchimp");
5398
5437
  }
@@ -5433,8 +5472,8 @@ function updateMailchimpClientInstance(token) {
5433
5472
  }
5434
5473
 
5435
5474
  // src/apis/platform/billing/instance.ts
5436
- import axios17 from "axios";
5437
- var platformBillingClientInstance = axios17.create({
5475
+ import axios18 from "axios";
5476
+ var platformBillingClientInstance = axios18.create({
5438
5477
  baseURL: "https://billing.labs.livechatinc.com"
5439
5478
  });
5440
5479
  function getPlatformBillingClientAuthorization(req) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.0.37",
3
+ "version": "3.0.38",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",