@livechat/developer-studio-api 3.1.23 → 3.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +84 -16
- package/dist/index.d.ts +84 -16
- package/dist/index.js +28 -15
- package/dist/index.mjs +28 -15
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1846,11 +1846,18 @@ type IntegrationFlowOutput<TFlowResult> = {
|
|
|
1846
1846
|
interface HubspotAuthorizeActionResult {
|
|
1847
1847
|
token: string;
|
|
1848
1848
|
}
|
|
1849
|
+
interface HubspotAuthorizeFlowCustomContext {
|
|
1850
|
+
credentialId?: string;
|
|
1851
|
+
}
|
|
1849
1852
|
type HubspotAuthorizeFlowContext = IntegrationFlowContext;
|
|
1850
1853
|
interface HubspotAuthorizeFlowResult {
|
|
1851
1854
|
token: string;
|
|
1852
1855
|
}
|
|
1853
1856
|
|
|
1857
|
+
type HubSpotFlows = "authorize";
|
|
1858
|
+
type HubSpotFlowContext<TAction extends HubSpotFlows> = TAction extends "authorize" ? HubspotAuthorizeFlowCustomContext : never;
|
|
1859
|
+
type HubSpotFlowResult<TAction extends HubSpotFlows> = TAction extends "authorize" ? HubspotAuthorizeFlowResult : never;
|
|
1860
|
+
|
|
1854
1861
|
declare enum HubspotEventNames {
|
|
1855
1862
|
SomeEvent = "some_event"
|
|
1856
1863
|
}
|
|
@@ -1971,12 +1978,19 @@ interface MailchimpAuthorizeActionResult {
|
|
|
1971
1978
|
server: string;
|
|
1972
1979
|
token: string;
|
|
1973
1980
|
}
|
|
1974
|
-
|
|
1981
|
+
interface MailchimpAuthorizeFlowCustomContext {
|
|
1982
|
+
credentialId?: string;
|
|
1983
|
+
}
|
|
1984
|
+
type MailchimpAuthorizeFlowContext = MailchimpAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
1975
1985
|
interface MailchimpAuthorizeFlowResult {
|
|
1976
1986
|
server: string;
|
|
1977
1987
|
token: string;
|
|
1978
1988
|
}
|
|
1979
1989
|
|
|
1990
|
+
type MailchimpFlows = "authorize";
|
|
1991
|
+
type MailchimpFlowContext<TAction extends MailchimpFlows> = TAction extends "authorize" ? MailchimpAuthorizeFlowCustomContext : never;
|
|
1992
|
+
type MailchimpFlowResult<TAction extends MailchimpFlows> = TAction extends "authorize" ? MailchimpAuthorizeFlowResult : never;
|
|
1993
|
+
|
|
1980
1994
|
declare enum MailchimpEventNames {
|
|
1981
1995
|
Subscribed = "subscribed",
|
|
1982
1996
|
Unsubscribed = "unsubscribed"
|
|
@@ -2150,14 +2164,19 @@ interface ShopifyAuthorizeActionResult {
|
|
|
2150
2164
|
shop: string;
|
|
2151
2165
|
token: string;
|
|
2152
2166
|
}
|
|
2153
|
-
type
|
|
2154
|
-
|
|
2167
|
+
type ShopifyAuthorizeFlowCustomContext = ShopifyAuthorizeActionContext & {
|
|
2168
|
+
credentialId?: string;
|
|
2155
2169
|
};
|
|
2170
|
+
type ShopifyAuthorizeFlowContext = ShopifyAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
2156
2171
|
interface ShopifyAuthorizeFlowResult {
|
|
2157
2172
|
shop: string;
|
|
2158
2173
|
token: string;
|
|
2159
2174
|
}
|
|
2160
2175
|
|
|
2176
|
+
type ShopifyFlows = "authorize";
|
|
2177
|
+
type ShopifyFlowContext<TAction extends ShopifyFlows> = TAction extends "authorize" ? ShopifyAuthorizeFlowCustomContext : never;
|
|
2178
|
+
type ShopifyFlowResult<TAction extends ShopifyFlows> = TAction extends "authorize" ? ShopifyAuthorizeFlowResult : never;
|
|
2179
|
+
|
|
2161
2180
|
declare const shopifyEventsZods: {
|
|
2162
2181
|
provider: z.ZodLiteral<"shopify">;
|
|
2163
2182
|
eventName: z.ZodNativeEnum<typeof ShopifyEventNames>;
|
|
@@ -2284,11 +2303,18 @@ declare enum TextLivechatEventNames {
|
|
|
2284
2303
|
interface TextAuthorizeActionResult {
|
|
2285
2304
|
token: string;
|
|
2286
2305
|
}
|
|
2287
|
-
|
|
2306
|
+
interface TextAuthorizeFlowCustomContext {
|
|
2307
|
+
credentialId?: string;
|
|
2308
|
+
}
|
|
2309
|
+
type TextAuthorizeFlowContext = TextAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
2288
2310
|
interface TextAuthorizeFlowResult {
|
|
2289
2311
|
token: string;
|
|
2290
2312
|
}
|
|
2291
2313
|
|
|
2314
|
+
type TextFlows = "authorize";
|
|
2315
|
+
type TextFlowContext<TAction extends TextFlows> = TAction extends "authorize" ? TextAuthorizeFlowCustomContext : never;
|
|
2316
|
+
type TextFlowResult<TAction extends TextFlows> = TAction extends "authorize" ? TextAuthorizeFlowResult : never;
|
|
2317
|
+
|
|
2292
2318
|
declare const textLivechatEventsZods: {
|
|
2293
2319
|
provider: z.ZodLiteral<"text-livechat">;
|
|
2294
2320
|
eventName: z.ZodNativeEnum<typeof TextLivechatEventNames>;
|
|
@@ -3010,7 +3036,10 @@ interface GitHubAuthorizeAppActionResult {
|
|
|
3010
3036
|
interface GitHubAuthorizeOauthActionResult {
|
|
3011
3037
|
token: string;
|
|
3012
3038
|
}
|
|
3013
|
-
|
|
3039
|
+
interface GitHubAuthorizeFlowCustomContext {
|
|
3040
|
+
credentialId?: string;
|
|
3041
|
+
}
|
|
3042
|
+
type GitHubAuthorizeFlowContext = GitHubAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
3014
3043
|
interface GitHubAuthorizeFlowResult {
|
|
3015
3044
|
appToken: string;
|
|
3016
3045
|
oauthToken: string;
|
|
@@ -3025,23 +3054,38 @@ interface GitHubInstallActionResult {
|
|
|
3025
3054
|
appToken: string;
|
|
3026
3055
|
installationId: string;
|
|
3027
3056
|
}
|
|
3028
|
-
type
|
|
3029
|
-
|
|
3057
|
+
type GitHubInstallFlowCustomContext = GitHubInstallActionContext & {
|
|
3058
|
+
credentialId: string;
|
|
3030
3059
|
};
|
|
3060
|
+
type GitHubInstallFlowContext = GitHubInstallFlowCustomContext & IntegrationFlowContext;
|
|
3031
3061
|
type GitHubInstallFlowResult = GitHubInstallActionResult;
|
|
3032
3062
|
|
|
3063
|
+
type GitHubFlows = "authorize" | "install";
|
|
3064
|
+
type GitHubFlowContext<TAction extends GitHubFlows> = TAction extends "authorize" ? GitHubAuthorizeFlowCustomContext : TAction extends "install" ? GitHubInstallFlowCustomContext : never;
|
|
3065
|
+
type GitHubFlowResult<TAction extends GitHubFlows> = TAction extends "authorize" ? GitHubAuthorizeFlowResult : TAction extends "install" ? GitHubInstallFlowResult : never;
|
|
3066
|
+
|
|
3033
3067
|
interface NeonAuthorizeActionResult {
|
|
3034
3068
|
token: string;
|
|
3035
3069
|
}
|
|
3036
|
-
|
|
3070
|
+
interface NeonAuthorizeFlowCustomContext {
|
|
3071
|
+
credentialId?: string;
|
|
3072
|
+
}
|
|
3073
|
+
type NeonAuthorizeFlowContext = NeonAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
3037
3074
|
interface NeonAuthorizeFlowResult {
|
|
3038
3075
|
token: string;
|
|
3039
3076
|
}
|
|
3040
3077
|
|
|
3078
|
+
type NeonFlows = "authorize";
|
|
3079
|
+
type NeonFlowContext<TAction extends NeonFlows> = TAction extends "authorize" ? NeonAuthorizeFlowCustomContext : never;
|
|
3080
|
+
type NeonFlowResult<TAction extends NeonFlows> = TAction extends "authorize" ? NeonAuthorizeFlowResult : never;
|
|
3081
|
+
|
|
3041
3082
|
interface NetlifyAuthorizeActionResult {
|
|
3042
3083
|
token: string;
|
|
3043
3084
|
}
|
|
3044
|
-
|
|
3085
|
+
interface NetlifyAuthorizeFlowCustomContext {
|
|
3086
|
+
credentialId?: string;
|
|
3087
|
+
}
|
|
3088
|
+
type NetlifyAuthorizeFlowContext = NetlifyAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
3045
3089
|
interface NetlifyAuthorizeFlowResult {
|
|
3046
3090
|
token: string;
|
|
3047
3091
|
}
|
|
@@ -3055,31 +3099,46 @@ interface NetlifyInstallActionContext {
|
|
|
3055
3099
|
interface NetlifyInstallActionResult {
|
|
3056
3100
|
installationId: string;
|
|
3057
3101
|
}
|
|
3058
|
-
type
|
|
3059
|
-
|
|
3102
|
+
type NetlifyInstallFlowCustomContext = NetlifyInstallActionContext & {
|
|
3103
|
+
credentialId: string;
|
|
3060
3104
|
};
|
|
3105
|
+
type NetlifyInstallFlowContext = NetlifyInstallFlowCustomContext & IntegrationFlowContext;
|
|
3061
3106
|
type NetlifyInstallFlowResult = NetlifyInstallActionResult;
|
|
3062
3107
|
|
|
3108
|
+
type NetlifyFlows = "authorize" | "install";
|
|
3109
|
+
type NetlifyFlowContext<TAction extends NetlifyFlows> = TAction extends "authorize" ? NetlifyAuthorizeFlowCustomContext : TAction extends "install" ? NetlifyInstallFlowCustomContext : never;
|
|
3110
|
+
type NetlifyFlowResult<TAction extends NetlifyFlows> = TAction extends "authorize" ? NetlifyAuthorizeFlowResult : TAction extends "install" ? NetlifyInstallFlowResult : never;
|
|
3111
|
+
|
|
3063
3112
|
interface PlanetScaleAuthorizeActionResult {
|
|
3064
3113
|
token: string;
|
|
3065
3114
|
}
|
|
3066
|
-
|
|
3115
|
+
interface PlanetScaleAuthorizeFlowCustomContext {
|
|
3116
|
+
credentialId?: string;
|
|
3117
|
+
}
|
|
3118
|
+
type PlanetScaleAuthorizeFlowContext = PlanetScaleAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
3067
3119
|
interface PlanetScaleAuthorizeFlowResult {
|
|
3068
3120
|
token: string;
|
|
3069
3121
|
}
|
|
3070
3122
|
|
|
3123
|
+
type PlanetScaleFlows = "authorize";
|
|
3124
|
+
type PlanetScaleFlowContext<TAction extends PlanetScaleFlows> = TAction extends "authorize" ? PlanetScaleAuthorizeFlowCustomContext : never;
|
|
3125
|
+
type PlanetScaleFlowResult<TAction extends PlanetScaleFlows> = TAction extends "authorize" ? PlanetScaleAuthorizeFlowResult : never;
|
|
3126
|
+
|
|
3071
3127
|
interface VercelConnectActionContext {
|
|
3072
3128
|
token: string;
|
|
3073
3129
|
}
|
|
3074
3130
|
interface VercelConnectActionResult {
|
|
3075
3131
|
isConnected: boolean;
|
|
3076
3132
|
}
|
|
3077
|
-
type VercelAuthorizeFlowContext = IntegrationFlowContext;
|
|
3078
3133
|
interface VercelAuthorizeActionResult {
|
|
3079
3134
|
token: string;
|
|
3080
3135
|
configurationId: string;
|
|
3081
3136
|
isConnected: boolean;
|
|
3082
3137
|
}
|
|
3138
|
+
interface VercelAuthorizeFlowCustomContext {
|
|
3139
|
+
credentialId?: string;
|
|
3140
|
+
}
|
|
3141
|
+
type VercelAuthorizeFlowContext = VercelAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
3083
3142
|
interface VercelAuthorizeFlowResult {
|
|
3084
3143
|
token: string;
|
|
3085
3144
|
configurationId: string;
|
|
@@ -3093,11 +3152,16 @@ interface VercelInstallActionContext {
|
|
|
3093
3152
|
interface VercelInstallActionResult {
|
|
3094
3153
|
installationId: string;
|
|
3095
3154
|
}
|
|
3096
|
-
type
|
|
3097
|
-
|
|
3155
|
+
type VercelInstallFlowCustomContext = VercelInstallActionContext & {
|
|
3156
|
+
credentialId: string;
|
|
3098
3157
|
};
|
|
3158
|
+
type VercelInstallFlowContext = VercelInstallFlowCustomContext & IntegrationFlowContext;
|
|
3099
3159
|
type VercelInstallFlowResult = VercelInstallActionResult;
|
|
3100
3160
|
|
|
3161
|
+
type VercelFlows = "authorize" | "install";
|
|
3162
|
+
type VercelFlowContext<TAction extends VercelFlows> = TAction extends "authorize" ? VercelAuthorizeFlowCustomContext : TAction extends "install" ? VercelInstallFlowCustomContext : never;
|
|
3163
|
+
type VercelFlowResult<TAction extends VercelFlows> = TAction extends "authorize" ? VercelAuthorizeFlowResult : TAction extends "install" ? VercelInstallFlowResult : never;
|
|
3164
|
+
|
|
3101
3165
|
interface PlatformAdapterClientAuthorization {
|
|
3102
3166
|
platform?: PlatformClientAuthorization;
|
|
3103
3167
|
github?: GithubClientAuthorization;
|
|
@@ -3107,6 +3171,7 @@ interface PlatformAdapterClientAuthorization {
|
|
|
3107
3171
|
neon?: NeonClientAuthorization;
|
|
3108
3172
|
mailchimp?: MailchimpClientAuthorization;
|
|
3109
3173
|
shopify?: ShopifyClientAuthorization;
|
|
3174
|
+
hubspot?: HubspotClientAuthorization;
|
|
3110
3175
|
text?: TextClientAuthorization;
|
|
3111
3176
|
}
|
|
3112
3177
|
type PlatformAdapterClientOptions = PlatformAdapterClientAuthorization & {
|
|
@@ -3119,6 +3184,7 @@ type PlatformAdapterClientOptions = PlatformAdapterClientAuthorization & {
|
|
|
3119
3184
|
neon?: boolean;
|
|
3120
3185
|
mailchimp?: boolean;
|
|
3121
3186
|
shopify?: boolean;
|
|
3187
|
+
hubspot?: boolean;
|
|
3122
3188
|
text?: boolean;
|
|
3123
3189
|
};
|
|
3124
3190
|
};
|
|
@@ -3144,6 +3210,7 @@ declare function initPlatformAdapterClient(baseUrl?: string, tokens?: {
|
|
|
3144
3210
|
neon?: NeonClientAuthorization;
|
|
3145
3211
|
mailchimp?: MailchimpClientAuthorization;
|
|
3146
3212
|
shopify?: ShopifyClientAuthorization;
|
|
3213
|
+
hubspot?: HubspotClientAuthorization;
|
|
3147
3214
|
text?: TextClientAuthorization;
|
|
3148
3215
|
}): void;
|
|
3149
3216
|
declare function updatePlatformAdapterClient(tokens?: {
|
|
@@ -3155,6 +3222,7 @@ declare function updatePlatformAdapterClient(tokens?: {
|
|
|
3155
3222
|
neon?: NeonClientAuthorization;
|
|
3156
3223
|
mailchimp?: MailchimpClientAuthorization;
|
|
3157
3224
|
shopify?: ShopifyClientAuthorization;
|
|
3225
|
+
hubspot?: HubspotClientAuthorization;
|
|
3158
3226
|
text?: TextClientAuthorization;
|
|
3159
3227
|
}): void;
|
|
3160
3228
|
|
|
@@ -5068,4 +5136,4 @@ declare function getIntegrationFlowUrl<TFlowContext, TFlowResult, TState>(name:
|
|
|
5068
5136
|
};
|
|
5069
5137
|
}): Promise<IntegrationFlowOutput<TFlowResult> | undefined>;
|
|
5070
5138
|
|
|
5071
|
-
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, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, BillingProduct, Category, ChatDeactivatedWebhookData, ChatTransferredWebhookData, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateCredentialPayload, CreateWorkflowPayload, Credential, CredentialDto, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GetWorkflowPayload, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientAuthorization, GithubClientOptions, HubspotApiError, HubspotAuthorizeActionResult, HubspotAuthorizeFlowContext, HubspotAuthorizeFlowResult, HubspotClientAuthorization, HubspotClientInstanceOptions, HubspotEvent, HubspotEventNames, IncomingChatWebhookData, IncomingEventWebhookData, 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, MailchimpApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowResult, MailchimpClientAuthorization, MailchimpClientInstanceOptions, MailchimpEvent, MailchimpEventNames, MailchimpListWebhook, MailchimpSubscribeWebhookData, MailchimpUnsubscribeWebhookData, MailchimpWebhookConcreteData, MailchimpWebhookData, MailchimpWebhookDataBase, MailchimpWebhookEvents, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowResult, NeonClientAuthorization, NeonClientOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowResult, NetlifyClientAuthorization, NetlifyClientOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowResult, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientAuthorization, PlanetScaleClientOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, 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, ShopifyAuthorizeFlowResult, ShopifyClientAuthorization, ShopifyClientOptions, ShopifyEvent, ShopifyEventNames, ShopifyOrderCreatedWebhookData, ShopifyWebhookConcreteData, ShopifyWebhookData, ShopifyWebhookDataBase, ShopifyWebhookTopics, ShortcutDto, SubscribeToHubspotEventPayload, SubscribeToIntegrationEventPayload, SubscribeToMailchimpEventPayload, SubscribeToShopifyEventPayload, SubscribeToTextLivechatEventPayload, SyncAppVariablePayload, TextApiError, TextAuthorizeActionResult, TextAuthorizeFlowContext, TextAuthorizeFlowResult, TextClientAuthorization, TextClientOptions, TextLiveChatEvent, TextLivechatEventNames, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, TriggerPayload, TriggerType, UnauthorizeAccountsApiError, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, 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, UserAddedToChatWebhookData, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserRemovedFromChatWebhookData, UserVercelIntegrationDto, VercelAuthorizeActionResult, VercelAuthorizeFlowContext, VercelAuthorizeFlowResult, VercelClientAuthorization, VercelClientOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowResult, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, Webhook, WebhookActions, WebhookChat, WebhookConcreteData, WebhookData, WebhookDataBase, WebhookDto, WebhookEvent, WebhookEvents, WebhookMessageEvent, WebhookSystemMessageEvent, WebhookSystemMessages, WebhookUser, WorkflowDefinitionAddNodeTask, WorkflowDefinitionAddTriggerTask, WorkflowDefinitionDto, WorkflowDefinitionForkJoinTask, WorkflowDefinitionHttpTask, WorkflowDefinitionJoinTask, WorkflowDefinitionSwitchTask, WorkflowDefinitionTask, WorkflowDefinitionTaskBase, WorkflowDefinitionTaskCore, WorkflowDefinitionTaskType, WorkflowDefinitionTerminateTask, WorkflowDefinitionTriggerTask, WorkflowDefinitionsQueryParams, WorkflowDto, WorkflowExecution, WorkflowExecutionDetails, WorkflowExecutionPayload, WorkflowsDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, getAppAutoReviewPayload, 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, hubspotClientUrl, hubspotEventsZods, initApi, 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, updateGithubClient, updateHubspotClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updatePlatformAdapterClient, updateShopifyClient, updateTextClient, updateVercelClient, vercelClientInstance };
|
|
5139
|
+
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, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, BillingProduct, Category, ChatDeactivatedWebhookData, ChatTransferredWebhookData, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateCredentialPayload, CreateWorkflowPayload, Credential, CredentialDto, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GetWorkflowPayload, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowCustomContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubFlowContext, GitHubFlowResult, GitHubFlows, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowCustomContext, GitHubInstallFlowResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientAuthorization, GithubClientOptions, HubSpotFlowContext, HubSpotFlowResult, HubSpotFlows, HubspotApiError, HubspotAuthorizeActionResult, HubspotAuthorizeFlowContext, HubspotAuthorizeFlowCustomContext, HubspotAuthorizeFlowResult, HubspotClientAuthorization, HubspotClientInstanceOptions, HubspotEvent, HubspotEventNames, IncomingChatWebhookData, IncomingEventWebhookData, 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, MailchimpApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowCustomContext, MailchimpAuthorizeFlowResult, MailchimpClientAuthorization, MailchimpClientInstanceOptions, MailchimpEvent, MailchimpEventNames, MailchimpFlowContext, MailchimpFlowResult, MailchimpFlows, MailchimpListWebhook, MailchimpSubscribeWebhookData, MailchimpUnsubscribeWebhookData, MailchimpWebhookConcreteData, MailchimpWebhookData, MailchimpWebhookDataBase, MailchimpWebhookEvents, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowCustomContext, NeonAuthorizeFlowResult, NeonClientAuthorization, NeonClientOptions, NeonFlowContext, NeonFlowResult, NeonFlows, 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, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowCustomContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientAuthorization, PlanetScaleClientOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleFlowContext, PlanetScaleFlowResult, PlanetScaleFlows, 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, ShopifyOrderCreatedWebhookData, ShopifyWebhookConcreteData, ShopifyWebhookData, ShopifyWebhookDataBase, ShopifyWebhookTopics, ShortcutDto, SubscribeToHubspotEventPayload, SubscribeToIntegrationEventPayload, SubscribeToMailchimpEventPayload, SubscribeToShopifyEventPayload, SubscribeToTextLivechatEventPayload, SyncAppVariablePayload, TextApiError, TextAuthorizeActionResult, TextAuthorizeFlowContext, TextAuthorizeFlowCustomContext, TextAuthorizeFlowResult, TextClientAuthorization, TextClientOptions, TextFlowContext, TextFlowResult, TextFlows, TextLiveChatEvent, TextLivechatEventNames, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, TriggerPayload, TriggerType, UnauthorizeAccountsApiError, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, 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, UserAddedToChatWebhookData, 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, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, Webhook, WebhookActions, WebhookChat, WebhookConcreteData, WebhookData, WebhookDataBase, WebhookDto, WebhookEvent, WebhookEvents, WebhookMessageEvent, WebhookSystemMessageEvent, WebhookSystemMessages, WebhookUser, WorkflowDefinitionAddNodeTask, WorkflowDefinitionAddTriggerTask, WorkflowDefinitionDto, WorkflowDefinitionForkJoinTask, WorkflowDefinitionHttpTask, WorkflowDefinitionJoinTask, WorkflowDefinitionSwitchTask, WorkflowDefinitionTask, WorkflowDefinitionTaskBase, WorkflowDefinitionTaskCore, WorkflowDefinitionTaskType, WorkflowDefinitionTerminateTask, WorkflowDefinitionTriggerTask, WorkflowDefinitionsQueryParams, WorkflowDto, WorkflowExecution, WorkflowExecutionDetails, WorkflowExecutionPayload, WorkflowsDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, getAppAutoReviewPayload, 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, hubspotClientUrl, hubspotEventsZods, initApi, 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, updateGithubClient, updateHubspotClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updatePlatformAdapterClient, updateShopifyClient, updateTextClient, updateVercelClient, vercelClientInstance };
|
package/dist/index.d.ts
CHANGED
|
@@ -1846,11 +1846,18 @@ type IntegrationFlowOutput<TFlowResult> = {
|
|
|
1846
1846
|
interface HubspotAuthorizeActionResult {
|
|
1847
1847
|
token: string;
|
|
1848
1848
|
}
|
|
1849
|
+
interface HubspotAuthorizeFlowCustomContext {
|
|
1850
|
+
credentialId?: string;
|
|
1851
|
+
}
|
|
1849
1852
|
type HubspotAuthorizeFlowContext = IntegrationFlowContext;
|
|
1850
1853
|
interface HubspotAuthorizeFlowResult {
|
|
1851
1854
|
token: string;
|
|
1852
1855
|
}
|
|
1853
1856
|
|
|
1857
|
+
type HubSpotFlows = "authorize";
|
|
1858
|
+
type HubSpotFlowContext<TAction extends HubSpotFlows> = TAction extends "authorize" ? HubspotAuthorizeFlowCustomContext : never;
|
|
1859
|
+
type HubSpotFlowResult<TAction extends HubSpotFlows> = TAction extends "authorize" ? HubspotAuthorizeFlowResult : never;
|
|
1860
|
+
|
|
1854
1861
|
declare enum HubspotEventNames {
|
|
1855
1862
|
SomeEvent = "some_event"
|
|
1856
1863
|
}
|
|
@@ -1971,12 +1978,19 @@ interface MailchimpAuthorizeActionResult {
|
|
|
1971
1978
|
server: string;
|
|
1972
1979
|
token: string;
|
|
1973
1980
|
}
|
|
1974
|
-
|
|
1981
|
+
interface MailchimpAuthorizeFlowCustomContext {
|
|
1982
|
+
credentialId?: string;
|
|
1983
|
+
}
|
|
1984
|
+
type MailchimpAuthorizeFlowContext = MailchimpAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
1975
1985
|
interface MailchimpAuthorizeFlowResult {
|
|
1976
1986
|
server: string;
|
|
1977
1987
|
token: string;
|
|
1978
1988
|
}
|
|
1979
1989
|
|
|
1990
|
+
type MailchimpFlows = "authorize";
|
|
1991
|
+
type MailchimpFlowContext<TAction extends MailchimpFlows> = TAction extends "authorize" ? MailchimpAuthorizeFlowCustomContext : never;
|
|
1992
|
+
type MailchimpFlowResult<TAction extends MailchimpFlows> = TAction extends "authorize" ? MailchimpAuthorizeFlowResult : never;
|
|
1993
|
+
|
|
1980
1994
|
declare enum MailchimpEventNames {
|
|
1981
1995
|
Subscribed = "subscribed",
|
|
1982
1996
|
Unsubscribed = "unsubscribed"
|
|
@@ -2150,14 +2164,19 @@ interface ShopifyAuthorizeActionResult {
|
|
|
2150
2164
|
shop: string;
|
|
2151
2165
|
token: string;
|
|
2152
2166
|
}
|
|
2153
|
-
type
|
|
2154
|
-
|
|
2167
|
+
type ShopifyAuthorizeFlowCustomContext = ShopifyAuthorizeActionContext & {
|
|
2168
|
+
credentialId?: string;
|
|
2155
2169
|
};
|
|
2170
|
+
type ShopifyAuthorizeFlowContext = ShopifyAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
2156
2171
|
interface ShopifyAuthorizeFlowResult {
|
|
2157
2172
|
shop: string;
|
|
2158
2173
|
token: string;
|
|
2159
2174
|
}
|
|
2160
2175
|
|
|
2176
|
+
type ShopifyFlows = "authorize";
|
|
2177
|
+
type ShopifyFlowContext<TAction extends ShopifyFlows> = TAction extends "authorize" ? ShopifyAuthorizeFlowCustomContext : never;
|
|
2178
|
+
type ShopifyFlowResult<TAction extends ShopifyFlows> = TAction extends "authorize" ? ShopifyAuthorizeFlowResult : never;
|
|
2179
|
+
|
|
2161
2180
|
declare const shopifyEventsZods: {
|
|
2162
2181
|
provider: z.ZodLiteral<"shopify">;
|
|
2163
2182
|
eventName: z.ZodNativeEnum<typeof ShopifyEventNames>;
|
|
@@ -2284,11 +2303,18 @@ declare enum TextLivechatEventNames {
|
|
|
2284
2303
|
interface TextAuthorizeActionResult {
|
|
2285
2304
|
token: string;
|
|
2286
2305
|
}
|
|
2287
|
-
|
|
2306
|
+
interface TextAuthorizeFlowCustomContext {
|
|
2307
|
+
credentialId?: string;
|
|
2308
|
+
}
|
|
2309
|
+
type TextAuthorizeFlowContext = TextAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
2288
2310
|
interface TextAuthorizeFlowResult {
|
|
2289
2311
|
token: string;
|
|
2290
2312
|
}
|
|
2291
2313
|
|
|
2314
|
+
type TextFlows = "authorize";
|
|
2315
|
+
type TextFlowContext<TAction extends TextFlows> = TAction extends "authorize" ? TextAuthorizeFlowCustomContext : never;
|
|
2316
|
+
type TextFlowResult<TAction extends TextFlows> = TAction extends "authorize" ? TextAuthorizeFlowResult : never;
|
|
2317
|
+
|
|
2292
2318
|
declare const textLivechatEventsZods: {
|
|
2293
2319
|
provider: z.ZodLiteral<"text-livechat">;
|
|
2294
2320
|
eventName: z.ZodNativeEnum<typeof TextLivechatEventNames>;
|
|
@@ -3010,7 +3036,10 @@ interface GitHubAuthorizeAppActionResult {
|
|
|
3010
3036
|
interface GitHubAuthorizeOauthActionResult {
|
|
3011
3037
|
token: string;
|
|
3012
3038
|
}
|
|
3013
|
-
|
|
3039
|
+
interface GitHubAuthorizeFlowCustomContext {
|
|
3040
|
+
credentialId?: string;
|
|
3041
|
+
}
|
|
3042
|
+
type GitHubAuthorizeFlowContext = GitHubAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
3014
3043
|
interface GitHubAuthorizeFlowResult {
|
|
3015
3044
|
appToken: string;
|
|
3016
3045
|
oauthToken: string;
|
|
@@ -3025,23 +3054,38 @@ interface GitHubInstallActionResult {
|
|
|
3025
3054
|
appToken: string;
|
|
3026
3055
|
installationId: string;
|
|
3027
3056
|
}
|
|
3028
|
-
type
|
|
3029
|
-
|
|
3057
|
+
type GitHubInstallFlowCustomContext = GitHubInstallActionContext & {
|
|
3058
|
+
credentialId: string;
|
|
3030
3059
|
};
|
|
3060
|
+
type GitHubInstallFlowContext = GitHubInstallFlowCustomContext & IntegrationFlowContext;
|
|
3031
3061
|
type GitHubInstallFlowResult = GitHubInstallActionResult;
|
|
3032
3062
|
|
|
3063
|
+
type GitHubFlows = "authorize" | "install";
|
|
3064
|
+
type GitHubFlowContext<TAction extends GitHubFlows> = TAction extends "authorize" ? GitHubAuthorizeFlowCustomContext : TAction extends "install" ? GitHubInstallFlowCustomContext : never;
|
|
3065
|
+
type GitHubFlowResult<TAction extends GitHubFlows> = TAction extends "authorize" ? GitHubAuthorizeFlowResult : TAction extends "install" ? GitHubInstallFlowResult : never;
|
|
3066
|
+
|
|
3033
3067
|
interface NeonAuthorizeActionResult {
|
|
3034
3068
|
token: string;
|
|
3035
3069
|
}
|
|
3036
|
-
|
|
3070
|
+
interface NeonAuthorizeFlowCustomContext {
|
|
3071
|
+
credentialId?: string;
|
|
3072
|
+
}
|
|
3073
|
+
type NeonAuthorizeFlowContext = NeonAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
3037
3074
|
interface NeonAuthorizeFlowResult {
|
|
3038
3075
|
token: string;
|
|
3039
3076
|
}
|
|
3040
3077
|
|
|
3078
|
+
type NeonFlows = "authorize";
|
|
3079
|
+
type NeonFlowContext<TAction extends NeonFlows> = TAction extends "authorize" ? NeonAuthorizeFlowCustomContext : never;
|
|
3080
|
+
type NeonFlowResult<TAction extends NeonFlows> = TAction extends "authorize" ? NeonAuthorizeFlowResult : never;
|
|
3081
|
+
|
|
3041
3082
|
interface NetlifyAuthorizeActionResult {
|
|
3042
3083
|
token: string;
|
|
3043
3084
|
}
|
|
3044
|
-
|
|
3085
|
+
interface NetlifyAuthorizeFlowCustomContext {
|
|
3086
|
+
credentialId?: string;
|
|
3087
|
+
}
|
|
3088
|
+
type NetlifyAuthorizeFlowContext = NetlifyAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
3045
3089
|
interface NetlifyAuthorizeFlowResult {
|
|
3046
3090
|
token: string;
|
|
3047
3091
|
}
|
|
@@ -3055,31 +3099,46 @@ interface NetlifyInstallActionContext {
|
|
|
3055
3099
|
interface NetlifyInstallActionResult {
|
|
3056
3100
|
installationId: string;
|
|
3057
3101
|
}
|
|
3058
|
-
type
|
|
3059
|
-
|
|
3102
|
+
type NetlifyInstallFlowCustomContext = NetlifyInstallActionContext & {
|
|
3103
|
+
credentialId: string;
|
|
3060
3104
|
};
|
|
3105
|
+
type NetlifyInstallFlowContext = NetlifyInstallFlowCustomContext & IntegrationFlowContext;
|
|
3061
3106
|
type NetlifyInstallFlowResult = NetlifyInstallActionResult;
|
|
3062
3107
|
|
|
3108
|
+
type NetlifyFlows = "authorize" | "install";
|
|
3109
|
+
type NetlifyFlowContext<TAction extends NetlifyFlows> = TAction extends "authorize" ? NetlifyAuthorizeFlowCustomContext : TAction extends "install" ? NetlifyInstallFlowCustomContext : never;
|
|
3110
|
+
type NetlifyFlowResult<TAction extends NetlifyFlows> = TAction extends "authorize" ? NetlifyAuthorizeFlowResult : TAction extends "install" ? NetlifyInstallFlowResult : never;
|
|
3111
|
+
|
|
3063
3112
|
interface PlanetScaleAuthorizeActionResult {
|
|
3064
3113
|
token: string;
|
|
3065
3114
|
}
|
|
3066
|
-
|
|
3115
|
+
interface PlanetScaleAuthorizeFlowCustomContext {
|
|
3116
|
+
credentialId?: string;
|
|
3117
|
+
}
|
|
3118
|
+
type PlanetScaleAuthorizeFlowContext = PlanetScaleAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
3067
3119
|
interface PlanetScaleAuthorizeFlowResult {
|
|
3068
3120
|
token: string;
|
|
3069
3121
|
}
|
|
3070
3122
|
|
|
3123
|
+
type PlanetScaleFlows = "authorize";
|
|
3124
|
+
type PlanetScaleFlowContext<TAction extends PlanetScaleFlows> = TAction extends "authorize" ? PlanetScaleAuthorizeFlowCustomContext : never;
|
|
3125
|
+
type PlanetScaleFlowResult<TAction extends PlanetScaleFlows> = TAction extends "authorize" ? PlanetScaleAuthorizeFlowResult : never;
|
|
3126
|
+
|
|
3071
3127
|
interface VercelConnectActionContext {
|
|
3072
3128
|
token: string;
|
|
3073
3129
|
}
|
|
3074
3130
|
interface VercelConnectActionResult {
|
|
3075
3131
|
isConnected: boolean;
|
|
3076
3132
|
}
|
|
3077
|
-
type VercelAuthorizeFlowContext = IntegrationFlowContext;
|
|
3078
3133
|
interface VercelAuthorizeActionResult {
|
|
3079
3134
|
token: string;
|
|
3080
3135
|
configurationId: string;
|
|
3081
3136
|
isConnected: boolean;
|
|
3082
3137
|
}
|
|
3138
|
+
interface VercelAuthorizeFlowCustomContext {
|
|
3139
|
+
credentialId?: string;
|
|
3140
|
+
}
|
|
3141
|
+
type VercelAuthorizeFlowContext = VercelAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
3083
3142
|
interface VercelAuthorizeFlowResult {
|
|
3084
3143
|
token: string;
|
|
3085
3144
|
configurationId: string;
|
|
@@ -3093,11 +3152,16 @@ interface VercelInstallActionContext {
|
|
|
3093
3152
|
interface VercelInstallActionResult {
|
|
3094
3153
|
installationId: string;
|
|
3095
3154
|
}
|
|
3096
|
-
type
|
|
3097
|
-
|
|
3155
|
+
type VercelInstallFlowCustomContext = VercelInstallActionContext & {
|
|
3156
|
+
credentialId: string;
|
|
3098
3157
|
};
|
|
3158
|
+
type VercelInstallFlowContext = VercelInstallFlowCustomContext & IntegrationFlowContext;
|
|
3099
3159
|
type VercelInstallFlowResult = VercelInstallActionResult;
|
|
3100
3160
|
|
|
3161
|
+
type VercelFlows = "authorize" | "install";
|
|
3162
|
+
type VercelFlowContext<TAction extends VercelFlows> = TAction extends "authorize" ? VercelAuthorizeFlowCustomContext : TAction extends "install" ? VercelInstallFlowCustomContext : never;
|
|
3163
|
+
type VercelFlowResult<TAction extends VercelFlows> = TAction extends "authorize" ? VercelAuthorizeFlowResult : TAction extends "install" ? VercelInstallFlowResult : never;
|
|
3164
|
+
|
|
3101
3165
|
interface PlatformAdapterClientAuthorization {
|
|
3102
3166
|
platform?: PlatformClientAuthorization;
|
|
3103
3167
|
github?: GithubClientAuthorization;
|
|
@@ -3107,6 +3171,7 @@ interface PlatformAdapterClientAuthorization {
|
|
|
3107
3171
|
neon?: NeonClientAuthorization;
|
|
3108
3172
|
mailchimp?: MailchimpClientAuthorization;
|
|
3109
3173
|
shopify?: ShopifyClientAuthorization;
|
|
3174
|
+
hubspot?: HubspotClientAuthorization;
|
|
3110
3175
|
text?: TextClientAuthorization;
|
|
3111
3176
|
}
|
|
3112
3177
|
type PlatformAdapterClientOptions = PlatformAdapterClientAuthorization & {
|
|
@@ -3119,6 +3184,7 @@ type PlatformAdapterClientOptions = PlatformAdapterClientAuthorization & {
|
|
|
3119
3184
|
neon?: boolean;
|
|
3120
3185
|
mailchimp?: boolean;
|
|
3121
3186
|
shopify?: boolean;
|
|
3187
|
+
hubspot?: boolean;
|
|
3122
3188
|
text?: boolean;
|
|
3123
3189
|
};
|
|
3124
3190
|
};
|
|
@@ -3144,6 +3210,7 @@ declare function initPlatformAdapterClient(baseUrl?: string, tokens?: {
|
|
|
3144
3210
|
neon?: NeonClientAuthorization;
|
|
3145
3211
|
mailchimp?: MailchimpClientAuthorization;
|
|
3146
3212
|
shopify?: ShopifyClientAuthorization;
|
|
3213
|
+
hubspot?: HubspotClientAuthorization;
|
|
3147
3214
|
text?: TextClientAuthorization;
|
|
3148
3215
|
}): void;
|
|
3149
3216
|
declare function updatePlatformAdapterClient(tokens?: {
|
|
@@ -3155,6 +3222,7 @@ declare function updatePlatformAdapterClient(tokens?: {
|
|
|
3155
3222
|
neon?: NeonClientAuthorization;
|
|
3156
3223
|
mailchimp?: MailchimpClientAuthorization;
|
|
3157
3224
|
shopify?: ShopifyClientAuthorization;
|
|
3225
|
+
hubspot?: HubspotClientAuthorization;
|
|
3158
3226
|
text?: TextClientAuthorization;
|
|
3159
3227
|
}): void;
|
|
3160
3228
|
|
|
@@ -5068,4 +5136,4 @@ declare function getIntegrationFlowUrl<TFlowContext, TFlowResult, TState>(name:
|
|
|
5068
5136
|
};
|
|
5069
5137
|
}): Promise<IntegrationFlowOutput<TFlowResult> | undefined>;
|
|
5070
5138
|
|
|
5071
|
-
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, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, BillingProduct, Category, ChatDeactivatedWebhookData, ChatTransferredWebhookData, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateCredentialPayload, CreateWorkflowPayload, Credential, CredentialDto, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GetWorkflowPayload, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientAuthorization, GithubClientOptions, HubspotApiError, HubspotAuthorizeActionResult, HubspotAuthorizeFlowContext, HubspotAuthorizeFlowResult, HubspotClientAuthorization, HubspotClientInstanceOptions, HubspotEvent, HubspotEventNames, IncomingChatWebhookData, IncomingEventWebhookData, 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, MailchimpApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowResult, MailchimpClientAuthorization, MailchimpClientInstanceOptions, MailchimpEvent, MailchimpEventNames, MailchimpListWebhook, MailchimpSubscribeWebhookData, MailchimpUnsubscribeWebhookData, MailchimpWebhookConcreteData, MailchimpWebhookData, MailchimpWebhookDataBase, MailchimpWebhookEvents, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowResult, NeonClientAuthorization, NeonClientOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowResult, NetlifyClientAuthorization, NetlifyClientOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowResult, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientAuthorization, PlanetScaleClientOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, 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, ShopifyAuthorizeFlowResult, ShopifyClientAuthorization, ShopifyClientOptions, ShopifyEvent, ShopifyEventNames, ShopifyOrderCreatedWebhookData, ShopifyWebhookConcreteData, ShopifyWebhookData, ShopifyWebhookDataBase, ShopifyWebhookTopics, ShortcutDto, SubscribeToHubspotEventPayload, SubscribeToIntegrationEventPayload, SubscribeToMailchimpEventPayload, SubscribeToShopifyEventPayload, SubscribeToTextLivechatEventPayload, SyncAppVariablePayload, TextApiError, TextAuthorizeActionResult, TextAuthorizeFlowContext, TextAuthorizeFlowResult, TextClientAuthorization, TextClientOptions, TextLiveChatEvent, TextLivechatEventNames, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, TriggerPayload, TriggerType, UnauthorizeAccountsApiError, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, 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, UserAddedToChatWebhookData, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserRemovedFromChatWebhookData, UserVercelIntegrationDto, VercelAuthorizeActionResult, VercelAuthorizeFlowContext, VercelAuthorizeFlowResult, VercelClientAuthorization, VercelClientOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowResult, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, Webhook, WebhookActions, WebhookChat, WebhookConcreteData, WebhookData, WebhookDataBase, WebhookDto, WebhookEvent, WebhookEvents, WebhookMessageEvent, WebhookSystemMessageEvent, WebhookSystemMessages, WebhookUser, WorkflowDefinitionAddNodeTask, WorkflowDefinitionAddTriggerTask, WorkflowDefinitionDto, WorkflowDefinitionForkJoinTask, WorkflowDefinitionHttpTask, WorkflowDefinitionJoinTask, WorkflowDefinitionSwitchTask, WorkflowDefinitionTask, WorkflowDefinitionTaskBase, WorkflowDefinitionTaskCore, WorkflowDefinitionTaskType, WorkflowDefinitionTerminateTask, WorkflowDefinitionTriggerTask, WorkflowDefinitionsQueryParams, WorkflowDto, WorkflowExecution, WorkflowExecutionDetails, WorkflowExecutionPayload, WorkflowsDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, getAppAutoReviewPayload, 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, hubspotClientUrl, hubspotEventsZods, initApi, 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, updateGithubClient, updateHubspotClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updatePlatformAdapterClient, updateShopifyClient, updateTextClient, updateVercelClient, vercelClientInstance };
|
|
5139
|
+
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, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, BillingProduct, Category, ChatDeactivatedWebhookData, ChatTransferredWebhookData, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateCredentialPayload, CreateWorkflowPayload, Credential, CredentialDto, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GetWorkflowPayload, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowCustomContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubFlowContext, GitHubFlowResult, GitHubFlows, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowCustomContext, GitHubInstallFlowResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientAuthorization, GithubClientOptions, HubSpotFlowContext, HubSpotFlowResult, HubSpotFlows, HubspotApiError, HubspotAuthorizeActionResult, HubspotAuthorizeFlowContext, HubspotAuthorizeFlowCustomContext, HubspotAuthorizeFlowResult, HubspotClientAuthorization, HubspotClientInstanceOptions, HubspotEvent, HubspotEventNames, IncomingChatWebhookData, IncomingEventWebhookData, 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, MailchimpApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowCustomContext, MailchimpAuthorizeFlowResult, MailchimpClientAuthorization, MailchimpClientInstanceOptions, MailchimpEvent, MailchimpEventNames, MailchimpFlowContext, MailchimpFlowResult, MailchimpFlows, MailchimpListWebhook, MailchimpSubscribeWebhookData, MailchimpUnsubscribeWebhookData, MailchimpWebhookConcreteData, MailchimpWebhookData, MailchimpWebhookDataBase, MailchimpWebhookEvents, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowCustomContext, NeonAuthorizeFlowResult, NeonClientAuthorization, NeonClientOptions, NeonFlowContext, NeonFlowResult, NeonFlows, 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, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowCustomContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientAuthorization, PlanetScaleClientOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleFlowContext, PlanetScaleFlowResult, PlanetScaleFlows, 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, ShopifyOrderCreatedWebhookData, ShopifyWebhookConcreteData, ShopifyWebhookData, ShopifyWebhookDataBase, ShopifyWebhookTopics, ShortcutDto, SubscribeToHubspotEventPayload, SubscribeToIntegrationEventPayload, SubscribeToMailchimpEventPayload, SubscribeToShopifyEventPayload, SubscribeToTextLivechatEventPayload, SyncAppVariablePayload, TextApiError, TextAuthorizeActionResult, TextAuthorizeFlowContext, TextAuthorizeFlowCustomContext, TextAuthorizeFlowResult, TextClientAuthorization, TextClientOptions, TextFlowContext, TextFlowResult, TextFlows, TextLiveChatEvent, TextLivechatEventNames, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, TriggerPayload, TriggerType, UnauthorizeAccountsApiError, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, 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, UserAddedToChatWebhookData, 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, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, Webhook, WebhookActions, WebhookChat, WebhookConcreteData, WebhookData, WebhookDataBase, WebhookDto, WebhookEvent, WebhookEvents, WebhookMessageEvent, WebhookSystemMessageEvent, WebhookSystemMessages, WebhookUser, WorkflowDefinitionAddNodeTask, WorkflowDefinitionAddTriggerTask, WorkflowDefinitionDto, WorkflowDefinitionForkJoinTask, WorkflowDefinitionHttpTask, WorkflowDefinitionJoinTask, WorkflowDefinitionSwitchTask, WorkflowDefinitionTask, WorkflowDefinitionTaskBase, WorkflowDefinitionTaskCore, WorkflowDefinitionTaskType, WorkflowDefinitionTerminateTask, WorkflowDefinitionTriggerTask, WorkflowDefinitionsQueryParams, WorkflowDto, WorkflowExecution, WorkflowExecutionDetails, WorkflowExecutionPayload, WorkflowsDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, getAppAutoReviewPayload, 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, hubspotClientUrl, hubspotEventsZods, initApi, 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, updateGithubClient, updateHubspotClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updatePlatformAdapterClient, updateShopifyClient, updateTextClient, updateVercelClient, vercelClientInstance };
|
package/dist/index.js
CHANGED
|
@@ -5882,6 +5882,9 @@ function getPlatformAdapterClientAuthorization(req) {
|
|
|
5882
5882
|
token: req.headers.get("x-adapter-shopify-token"),
|
|
5883
5883
|
shop: req.headers.get("x-adapter-shopify-shop")
|
|
5884
5884
|
},
|
|
5885
|
+
hubspot: {
|
|
5886
|
+
token: req.headers.get("x-adapter-hubspot-token")
|
|
5887
|
+
},
|
|
5885
5888
|
text: {
|
|
5886
5889
|
token: req.headers.get("x-adapter-text-token")
|
|
5887
5890
|
}
|
|
@@ -5915,13 +5918,16 @@ function getPlatformAdapterClientAuthorization(req) {
|
|
|
5915
5918
|
token: req.headers["x-adapter-shopify-token"],
|
|
5916
5919
|
shop: req.headers["x-adapter-shopify-shop"]
|
|
5917
5920
|
},
|
|
5921
|
+
hubspot: {
|
|
5922
|
+
token: req.headers["x-adapter-hubspot-token"]
|
|
5923
|
+
},
|
|
5918
5924
|
text: {
|
|
5919
5925
|
token: req.headers["x-adapter-text-token"]
|
|
5920
5926
|
}
|
|
5921
5927
|
};
|
|
5922
5928
|
}
|
|
5923
5929
|
function getPlatformAdapterClientConfig(options = {}) {
|
|
5924
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H;
|
|
5930
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K;
|
|
5925
5931
|
const currentHeaders = platformAdapterClientInstance.defaults.headers;
|
|
5926
5932
|
const headers = {
|
|
5927
5933
|
platform: {
|
|
@@ -5940,41 +5946,45 @@ function getPlatformAdapterClientConfig(options = {}) {
|
|
|
5940
5946
|
mailchimpServer: (_r = currentHeaders["x-adapter-mailchimp-server"]) != null ? _r : (_q = options.mailchimp) == null ? void 0 : _q.server,
|
|
5941
5947
|
shopify: (_t = currentHeaders["x-adapter-shopify-token"]) != null ? _t : (_s = options.shopify) == null ? void 0 : _s.token,
|
|
5942
5948
|
shopifyShop: (_v = currentHeaders["x-adapter-shopify-shop"]) != null ? _v : (_u = options.shopify) == null ? void 0 : _u.shop,
|
|
5943
|
-
|
|
5949
|
+
hubspot: (_x = currentHeaders["x-adapter-hubspot-token"]) != null ? _x : (_w = options.hubspot) == null ? void 0 : _w.token,
|
|
5950
|
+
text: (_z = currentHeaders["x-adapter-text-token"]) != null ? _z : (_y = options.text) == null ? void 0 : _y.token
|
|
5944
5951
|
}
|
|
5945
5952
|
};
|
|
5946
5953
|
if (currentHeaders["x-adapter-platform-token"]) {
|
|
5947
|
-
currentHeaders["X-Region"] = (
|
|
5954
|
+
currentHeaders["X-Region"] = (_A = getRegion2(currentHeaders["x-adapter-platform-token"])) != null ? _A : void 0;
|
|
5948
5955
|
}
|
|
5949
|
-
if (((
|
|
5956
|
+
if (((_B = options.ensureAuthorizationToken) == null ? void 0 : _B.platform) && !headers.platform.token) {
|
|
5950
5957
|
throw new UnauthorizeApiError("accounts");
|
|
5951
5958
|
}
|
|
5952
|
-
if (((
|
|
5959
|
+
if (((_C = options.ensureAuthorizationToken) == null ? void 0 : _C.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
|
|
5953
5960
|
throw new UnauthorizeApiError("github");
|
|
5954
5961
|
}
|
|
5955
|
-
if (((
|
|
5962
|
+
if (((_D = options.ensureAuthorizationToken) == null ? void 0 : _D.vercel) && !headers.integrations.vercel) {
|
|
5956
5963
|
throw new UnauthorizeApiError("vercel");
|
|
5957
5964
|
}
|
|
5958
|
-
if (((
|
|
5965
|
+
if (((_E = options.ensureAuthorizationToken) == null ? void 0 : _E.netlify) && !headers.integrations.netlify) {
|
|
5959
5966
|
throw new UnauthorizeApiError("netlify");
|
|
5960
5967
|
}
|
|
5961
|
-
if (((
|
|
5968
|
+
if (((_F = options.ensureAuthorizationToken) == null ? void 0 : _F.planetscale) && !headers.integrations.planetscale) {
|
|
5962
5969
|
throw new UnauthorizeApiError("planetscale");
|
|
5963
5970
|
}
|
|
5964
|
-
if (((
|
|
5971
|
+
if (((_G = options.ensureAuthorizationToken) == null ? void 0 : _G.neon) && !headers.integrations.neon) {
|
|
5965
5972
|
throw new UnauthorizeApiError("neon");
|
|
5966
5973
|
}
|
|
5967
|
-
if (((
|
|
5974
|
+
if (((_H = options.ensureAuthorizationToken) == null ? void 0 : _H.mailchimp) && (!headers.integrations.mailchimp || !headers.integrations.mailchimpServer)) {
|
|
5968
5975
|
throw new UnauthorizeApiError("mailchimp");
|
|
5969
5976
|
}
|
|
5970
|
-
if (((
|
|
5977
|
+
if (((_I = options.ensureAuthorizationToken) == null ? void 0 : _I.shopify) && (!headers.integrations.shopify || !headers.integrations.shopifyShop)) {
|
|
5971
5978
|
throw new UnauthorizeApiError("shopify");
|
|
5972
5979
|
}
|
|
5973
|
-
if (((
|
|
5980
|
+
if (((_J = options.ensureAuthorizationToken) == null ? void 0 : _J.hubspot) && !headers.integrations.hubspot) {
|
|
5981
|
+
throw new UnauthorizeApiError("hubspot");
|
|
5982
|
+
}
|
|
5983
|
+
if (((_K = options.ensureAuthorizationToken) == null ? void 0 : _K.text) && !headers.integrations.text) {
|
|
5974
5984
|
throw new UnauthorizeApiError("text");
|
|
5975
5985
|
}
|
|
5976
5986
|
return {
|
|
5977
|
-
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.token ? { "x-adapter-platform-token": headers.platform.token } : {}), headers.integrations.github.app ? { "x-adapter-github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "x-adapter-github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "x-adapter-netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "x-adapter-vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "x-adapter-planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "x-adapter-neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "x-adapter-mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.mailchimpServer ? { "x-adapter-mailchimp-server": headers.integrations.mailchimpServer } : {}), headers.integrations.shopify ? { "x-adapter-shopify-token": headers.integrations.shopify } : {}), headers.integrations.shopifyShop ? { "x-adapter-shopify-shop": headers.integrations.shopifyShop } : {}), headers.integrations.text ? { "x-adapter-text-token": headers.integrations.text } : {})
|
|
5987
|
+
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.token ? { "x-adapter-platform-token": headers.platform.token } : {}), headers.integrations.github.app ? { "x-adapter-github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "x-adapter-github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "x-adapter-netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "x-adapter-vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "x-adapter-planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "x-adapter-neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "x-adapter-mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.mailchimpServer ? { "x-adapter-mailchimp-server": headers.integrations.mailchimpServer } : {}), headers.integrations.shopify ? { "x-adapter-shopify-token": headers.integrations.shopify } : {}), headers.integrations.shopifyShop ? { "x-adapter-shopify-shop": headers.integrations.shopifyShop } : {}), headers.integrations.hubspot ? { "x-adapter-hubspot-token": headers.integrations.hubspot } : {}), headers.integrations.text ? { "x-adapter-text-token": headers.integrations.text } : {})
|
|
5978
5988
|
};
|
|
5979
5989
|
}
|
|
5980
5990
|
var getPlatformAdapterClientDefaultConfig = (authorization) => getPlatformAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
@@ -5997,7 +6007,7 @@ function initPlatformAdapterClient(baseUrl, tokens) {
|
|
|
5997
6007
|
}
|
|
5998
6008
|
}
|
|
5999
6009
|
function updatePlatformAdapterClient(tokens) {
|
|
6000
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
6010
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
6001
6011
|
const headers = platformAdapterClientInstance.defaults.headers;
|
|
6002
6012
|
if ((_a = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _a.token) {
|
|
6003
6013
|
headers["x-adapter-platform-token"] = tokens.platform.token;
|
|
@@ -6032,7 +6042,10 @@ function updatePlatformAdapterClient(tokens) {
|
|
|
6032
6042
|
if ((_k = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _k.token) {
|
|
6033
6043
|
headers["x-adapter-shopify-token"] = tokens.shopify.token;
|
|
6034
6044
|
}
|
|
6035
|
-
if ((_l = tokens == null ? void 0 : tokens.
|
|
6045
|
+
if ((_l = tokens == null ? void 0 : tokens.hubspot) == null ? void 0 : _l.token) {
|
|
6046
|
+
headers["x-adapter-hubspot-token"] = tokens.hubspot.token;
|
|
6047
|
+
}
|
|
6048
|
+
if ((_m = tokens == null ? void 0 : tokens.text) == null ? void 0 : _m.token) {
|
|
6036
6049
|
headers["x-adapter-text-token"] = tokens.text.token;
|
|
6037
6050
|
}
|
|
6038
6051
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -5739,6 +5739,9 @@ function getPlatformAdapterClientAuthorization(req) {
|
|
|
5739
5739
|
token: req.headers.get("x-adapter-shopify-token"),
|
|
5740
5740
|
shop: req.headers.get("x-adapter-shopify-shop")
|
|
5741
5741
|
},
|
|
5742
|
+
hubspot: {
|
|
5743
|
+
token: req.headers.get("x-adapter-hubspot-token")
|
|
5744
|
+
},
|
|
5742
5745
|
text: {
|
|
5743
5746
|
token: req.headers.get("x-adapter-text-token")
|
|
5744
5747
|
}
|
|
@@ -5772,13 +5775,16 @@ function getPlatformAdapterClientAuthorization(req) {
|
|
|
5772
5775
|
token: req.headers["x-adapter-shopify-token"],
|
|
5773
5776
|
shop: req.headers["x-adapter-shopify-shop"]
|
|
5774
5777
|
},
|
|
5778
|
+
hubspot: {
|
|
5779
|
+
token: req.headers["x-adapter-hubspot-token"]
|
|
5780
|
+
},
|
|
5775
5781
|
text: {
|
|
5776
5782
|
token: req.headers["x-adapter-text-token"]
|
|
5777
5783
|
}
|
|
5778
5784
|
};
|
|
5779
5785
|
}
|
|
5780
5786
|
function getPlatformAdapterClientConfig(options = {}) {
|
|
5781
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H;
|
|
5787
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K;
|
|
5782
5788
|
const currentHeaders = platformAdapterClientInstance.defaults.headers;
|
|
5783
5789
|
const headers = {
|
|
5784
5790
|
platform: {
|
|
@@ -5797,41 +5803,45 @@ function getPlatformAdapterClientConfig(options = {}) {
|
|
|
5797
5803
|
mailchimpServer: (_r = currentHeaders["x-adapter-mailchimp-server"]) != null ? _r : (_q = options.mailchimp) == null ? void 0 : _q.server,
|
|
5798
5804
|
shopify: (_t = currentHeaders["x-adapter-shopify-token"]) != null ? _t : (_s = options.shopify) == null ? void 0 : _s.token,
|
|
5799
5805
|
shopifyShop: (_v = currentHeaders["x-adapter-shopify-shop"]) != null ? _v : (_u = options.shopify) == null ? void 0 : _u.shop,
|
|
5800
|
-
|
|
5806
|
+
hubspot: (_x = currentHeaders["x-adapter-hubspot-token"]) != null ? _x : (_w = options.hubspot) == null ? void 0 : _w.token,
|
|
5807
|
+
text: (_z = currentHeaders["x-adapter-text-token"]) != null ? _z : (_y = options.text) == null ? void 0 : _y.token
|
|
5801
5808
|
}
|
|
5802
5809
|
};
|
|
5803
5810
|
if (currentHeaders["x-adapter-platform-token"]) {
|
|
5804
|
-
currentHeaders["X-Region"] = (
|
|
5811
|
+
currentHeaders["X-Region"] = (_A = getRegion2(currentHeaders["x-adapter-platform-token"])) != null ? _A : void 0;
|
|
5805
5812
|
}
|
|
5806
|
-
if (((
|
|
5813
|
+
if (((_B = options.ensureAuthorizationToken) == null ? void 0 : _B.platform) && !headers.platform.token) {
|
|
5807
5814
|
throw new UnauthorizeApiError("accounts");
|
|
5808
5815
|
}
|
|
5809
|
-
if (((
|
|
5816
|
+
if (((_C = options.ensureAuthorizationToken) == null ? void 0 : _C.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
|
|
5810
5817
|
throw new UnauthorizeApiError("github");
|
|
5811
5818
|
}
|
|
5812
|
-
if (((
|
|
5819
|
+
if (((_D = options.ensureAuthorizationToken) == null ? void 0 : _D.vercel) && !headers.integrations.vercel) {
|
|
5813
5820
|
throw new UnauthorizeApiError("vercel");
|
|
5814
5821
|
}
|
|
5815
|
-
if (((
|
|
5822
|
+
if (((_E = options.ensureAuthorizationToken) == null ? void 0 : _E.netlify) && !headers.integrations.netlify) {
|
|
5816
5823
|
throw new UnauthorizeApiError("netlify");
|
|
5817
5824
|
}
|
|
5818
|
-
if (((
|
|
5825
|
+
if (((_F = options.ensureAuthorizationToken) == null ? void 0 : _F.planetscale) && !headers.integrations.planetscale) {
|
|
5819
5826
|
throw new UnauthorizeApiError("planetscale");
|
|
5820
5827
|
}
|
|
5821
|
-
if (((
|
|
5828
|
+
if (((_G = options.ensureAuthorizationToken) == null ? void 0 : _G.neon) && !headers.integrations.neon) {
|
|
5822
5829
|
throw new UnauthorizeApiError("neon");
|
|
5823
5830
|
}
|
|
5824
|
-
if (((
|
|
5831
|
+
if (((_H = options.ensureAuthorizationToken) == null ? void 0 : _H.mailchimp) && (!headers.integrations.mailchimp || !headers.integrations.mailchimpServer)) {
|
|
5825
5832
|
throw new UnauthorizeApiError("mailchimp");
|
|
5826
5833
|
}
|
|
5827
|
-
if (((
|
|
5834
|
+
if (((_I = options.ensureAuthorizationToken) == null ? void 0 : _I.shopify) && (!headers.integrations.shopify || !headers.integrations.shopifyShop)) {
|
|
5828
5835
|
throw new UnauthorizeApiError("shopify");
|
|
5829
5836
|
}
|
|
5830
|
-
if (((
|
|
5837
|
+
if (((_J = options.ensureAuthorizationToken) == null ? void 0 : _J.hubspot) && !headers.integrations.hubspot) {
|
|
5838
|
+
throw new UnauthorizeApiError("hubspot");
|
|
5839
|
+
}
|
|
5840
|
+
if (((_K = options.ensureAuthorizationToken) == null ? void 0 : _K.text) && !headers.integrations.text) {
|
|
5831
5841
|
throw new UnauthorizeApiError("text");
|
|
5832
5842
|
}
|
|
5833
5843
|
return {
|
|
5834
|
-
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.token ? { "x-adapter-platform-token": headers.platform.token } : {}), headers.integrations.github.app ? { "x-adapter-github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "x-adapter-github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "x-adapter-netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "x-adapter-vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "x-adapter-planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "x-adapter-neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "x-adapter-mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.mailchimpServer ? { "x-adapter-mailchimp-server": headers.integrations.mailchimpServer } : {}), headers.integrations.shopify ? { "x-adapter-shopify-token": headers.integrations.shopify } : {}), headers.integrations.shopifyShop ? { "x-adapter-shopify-shop": headers.integrations.shopifyShop } : {}), headers.integrations.text ? { "x-adapter-text-token": headers.integrations.text } : {})
|
|
5844
|
+
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.token ? { "x-adapter-platform-token": headers.platform.token } : {}), headers.integrations.github.app ? { "x-adapter-github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "x-adapter-github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "x-adapter-netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "x-adapter-vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "x-adapter-planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.neon ? { "x-adapter-neon-token": headers.integrations.neon } : {}), headers.integrations.mailchimp ? { "x-adapter-mailchimp-token": headers.integrations.mailchimp } : {}), headers.integrations.mailchimpServer ? { "x-adapter-mailchimp-server": headers.integrations.mailchimpServer } : {}), headers.integrations.shopify ? { "x-adapter-shopify-token": headers.integrations.shopify } : {}), headers.integrations.shopifyShop ? { "x-adapter-shopify-shop": headers.integrations.shopifyShop } : {}), headers.integrations.hubspot ? { "x-adapter-hubspot-token": headers.integrations.hubspot } : {}), headers.integrations.text ? { "x-adapter-text-token": headers.integrations.text } : {})
|
|
5835
5845
|
};
|
|
5836
5846
|
}
|
|
5837
5847
|
var getPlatformAdapterClientDefaultConfig = (authorization) => getPlatformAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
@@ -5854,7 +5864,7 @@ function initPlatformAdapterClient(baseUrl, tokens) {
|
|
|
5854
5864
|
}
|
|
5855
5865
|
}
|
|
5856
5866
|
function updatePlatformAdapterClient(tokens) {
|
|
5857
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
5867
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
5858
5868
|
const headers = platformAdapterClientInstance.defaults.headers;
|
|
5859
5869
|
if ((_a = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _a.token) {
|
|
5860
5870
|
headers["x-adapter-platform-token"] = tokens.platform.token;
|
|
@@ -5889,7 +5899,10 @@ function updatePlatformAdapterClient(tokens) {
|
|
|
5889
5899
|
if ((_k = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _k.token) {
|
|
5890
5900
|
headers["x-adapter-shopify-token"] = tokens.shopify.token;
|
|
5891
5901
|
}
|
|
5892
|
-
if ((_l = tokens == null ? void 0 : tokens.
|
|
5902
|
+
if ((_l = tokens == null ? void 0 : tokens.hubspot) == null ? void 0 : _l.token) {
|
|
5903
|
+
headers["x-adapter-hubspot-token"] = tokens.hubspot.token;
|
|
5904
|
+
}
|
|
5905
|
+
if ((_m = tokens == null ? void 0 : tokens.text) == null ? void 0 : _m.token) {
|
|
5893
5906
|
headers["x-adapter-text-token"] = tokens.text.token;
|
|
5894
5907
|
}
|
|
5895
5908
|
}
|