@livechat/developer-studio-api 3.4.24 → 3.5.1
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 +2468 -1581
- package/dist/index.d.ts +2468 -1581
- package/dist/index.js +912 -627
- package/dist/index.mjs +896 -627
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -51,7 +51,7 @@ interface GitHubUser {
|
|
|
51
51
|
url: string;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
type ApiErrorName = 'adapter' | 'accounts' | 'livechat' | 'helpdesk' | 'dps' | 'github' | 'vercel' | 'netlify' | 'planetscale' | 'neon' | 'mailchimp' | 'shopify' | 'hubspot' | 'bigcommerce' | 'text' | 'slack';
|
|
54
|
+
type ApiErrorName = 'adapter' | 'console' | 'accounts' | 'livechat' | 'helpdesk' | 'dps' | 'github' | 'vercel' | 'netlify' | 'planetscale' | 'neon' | 'mailchimp' | 'shopify' | 'hubspot' | 'bigcommerce' | 'text' | 'slack';
|
|
55
55
|
type ApiErrorSource = 'accounts' | 'github' | 'vercel' | 'netlify' | 'planetscale' | 'neon' | 'mailchimp' | 'shopify' | 'hubspot' | 'bigcommerce' | 'text' | 'slack';
|
|
56
56
|
type ApiErrorKind = 'unauthorized' | 'error';
|
|
57
57
|
type ApiError<TData = unknown> = {
|
|
@@ -197,6 +197,9 @@ interface BigCommerceClientAuthorization {
|
|
|
197
197
|
interface BigCommerceClientOptions extends BigCommerceClientAuthorization {
|
|
198
198
|
ensureAuthorizationToken?: boolean;
|
|
199
199
|
}
|
|
200
|
+
declare function getBigCommerceClientAuthorization(req: {
|
|
201
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
202
|
+
}, headerPrefix?: string): BigCommerceClientAuthorization;
|
|
200
203
|
declare class BigCommerceApiError extends ApiErrorBase<{
|
|
201
204
|
errors: Record<string, string[]>;
|
|
202
205
|
}> {
|
|
@@ -288,6 +291,9 @@ interface GithubClientOptions {
|
|
|
288
291
|
token?: string;
|
|
289
292
|
ensureAuthorizationToken?: boolean;
|
|
290
293
|
}
|
|
294
|
+
declare function getGitHubClientAuthorization(req: {
|
|
295
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
296
|
+
}, headerPrefix?: string): GithubClientAuthorization;
|
|
291
297
|
declare const githubClientInstance: axios.AxiosInstance;
|
|
292
298
|
declare function getGithubClientConfig(options?: GithubClientOptions | undefined): AxiosRequestConfig;
|
|
293
299
|
declare function initGithubClient(token?: string): void;
|
|
@@ -389,12 +395,34 @@ interface GitHubRepositorySeed {
|
|
|
389
395
|
encoding: string;
|
|
390
396
|
}
|
|
391
397
|
|
|
398
|
+
declare enum GitHubWebhookActions {
|
|
399
|
+
Unknown = "unknown",
|
|
400
|
+
Deleted = "deleted"
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
type GitHubWebhookDataBase<TPayload = unknown> = TPayload & {
|
|
404
|
+
action: GitHubWebhookActions;
|
|
405
|
+
};
|
|
406
|
+
type GitHubWebhookConcreteData<TAction extends GitHubWebhookActions, TPayload> = GitHubWebhookDataBase<TPayload> & {
|
|
407
|
+
action: TAction;
|
|
408
|
+
};
|
|
409
|
+
type GitHubUnknownWebhookData = GitHubWebhookConcreteData<GitHubWebhookActions.Unknown, Record<string, unknown>>;
|
|
410
|
+
type GitHubDeleteWebhookData = GitHubWebhookConcreteData<GitHubWebhookActions.Deleted, {
|
|
411
|
+
installation?: {
|
|
412
|
+
id: string;
|
|
413
|
+
};
|
|
414
|
+
}>;
|
|
415
|
+
type GitHubWebhookData = GitHubUnknownWebhookData | GitHubDeleteWebhookData;
|
|
416
|
+
|
|
392
417
|
interface HubspotClientAuthorization {
|
|
393
418
|
token?: string;
|
|
394
419
|
}
|
|
395
420
|
interface HubspotClientInstanceOptions extends HubspotClientAuthorization {
|
|
396
421
|
ensureAuthorizationToken?: boolean;
|
|
397
422
|
}
|
|
423
|
+
declare function getHubspotClientAuthorization(req: {
|
|
424
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
425
|
+
}, headerPrefix?: string): HubspotClientAuthorization;
|
|
398
426
|
declare class HubspotApiError extends ApiErrorBase<{
|
|
399
427
|
errors: Record<string, string[]>;
|
|
400
428
|
}> {
|
|
@@ -458,6 +486,9 @@ interface MailchimpClientAuthorization {
|
|
|
458
486
|
interface MailchimpClientInstanceOptions extends MailchimpClientAuthorization {
|
|
459
487
|
ensureAuthorizationToken?: boolean;
|
|
460
488
|
}
|
|
489
|
+
declare function getMailchimpClientAuthorization(req: {
|
|
490
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
491
|
+
}, headerPrefix?: string): MailchimpClientAuthorization;
|
|
461
492
|
declare class MailchimpApiError extends ApiErrorBase<{
|
|
462
493
|
errors: Record<string, string[]>;
|
|
463
494
|
}> {
|
|
@@ -610,6 +641,9 @@ interface NetlifyClientAuthorization {
|
|
|
610
641
|
interface NetlifyClientOptions extends NetlifyClientAuthorization {
|
|
611
642
|
ensureAuthorizationToken?: boolean;
|
|
612
643
|
}
|
|
644
|
+
declare function getNetlifyClientAuthorization(req: {
|
|
645
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
646
|
+
}, headerPrefix?: string): NetlifyClientAuthorization;
|
|
613
647
|
declare const netlifyClientInstance: axios.AxiosInstance;
|
|
614
648
|
declare function getNetlifyClientConfig(options?: NetlifyClientOptions): AxiosRequestConfig;
|
|
615
649
|
declare function initNetlifyClient(token?: string): void;
|
|
@@ -733,6 +767,9 @@ interface ShopifyClientAuthorization {
|
|
|
733
767
|
interface ShopifyClientOptions extends ShopifyClientAuthorization {
|
|
734
768
|
ensureAuthorizationToken?: boolean;
|
|
735
769
|
}
|
|
770
|
+
declare function getShopifyClientAuthorization(req: {
|
|
771
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
772
|
+
}, headerPrefix?: string): ShopifyClientAuthorization;
|
|
736
773
|
declare class ShopifyApiError extends ApiErrorBase<{
|
|
737
774
|
errors: Record<string, string[]>;
|
|
738
775
|
}> {
|
|
@@ -863,6 +900,9 @@ declare class SlackApiError extends ApiErrorBase<{
|
|
|
863
900
|
} & Record<string, string[]>> {
|
|
864
901
|
name: "slack";
|
|
865
902
|
}
|
|
903
|
+
declare function getSlackClientAuthorization(req: {
|
|
904
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
905
|
+
}, headerPrefix?: string): SlackClientAuthorization;
|
|
866
906
|
declare const slackClientInstance: axios.AxiosInstance;
|
|
867
907
|
declare function getSlackClientConfig(options?: SlackClientInstanceOptions): AxiosRequestConfig;
|
|
868
908
|
declare function updateSlackClient(token?: string): void;
|
|
@@ -937,6 +977,9 @@ type TextClientAuthorization = GlobalAccountsClientAuthorization;
|
|
|
937
977
|
interface TextClientOptions extends TextClientAuthorization {
|
|
938
978
|
ensureAuthorizationToken?: boolean;
|
|
939
979
|
}
|
|
980
|
+
declare function getTextClientAuthorization(req: {
|
|
981
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
982
|
+
}, headerPrefix?: string): TextClientAuthorization;
|
|
940
983
|
declare class TextApiError extends ApiErrorBase<{
|
|
941
984
|
error: {
|
|
942
985
|
type: string;
|
|
@@ -1004,7 +1047,7 @@ type Credential = {
|
|
|
1004
1047
|
access_token_url: string;
|
|
1005
1048
|
client_id: string;
|
|
1006
1049
|
client_secret?: string;
|
|
1007
|
-
provider_fields?: Record<string, string>;
|
|
1050
|
+
provider_fields?: Record<string, string | undefined>;
|
|
1008
1051
|
connected?: boolean;
|
|
1009
1052
|
};
|
|
1010
1053
|
} | {
|
|
@@ -1015,7 +1058,7 @@ type CredentialDto = Credential & {
|
|
|
1015
1058
|
created_at: string;
|
|
1016
1059
|
updated_at: string;
|
|
1017
1060
|
};
|
|
1018
|
-
type OAuthCredential<TProviderFields extends Record<string, string> = Record<string, string>, TOptional extends boolean = true> = Extract<Credential, {
|
|
1061
|
+
type OAuthCredential<TProviderFields extends Record<string, string | undefined> = Record<string, string | undefined>, TOptional extends boolean = true> = Extract<Credential, {
|
|
1019
1062
|
type: 'oauth2';
|
|
1020
1063
|
}> & {
|
|
1021
1064
|
data: TOptional extends true ? {
|
|
@@ -1048,6 +1091,7 @@ type MailchimpOauthCredential = OAuthCredential<{
|
|
|
1048
1091
|
}, false>;
|
|
1049
1092
|
type ShopifyOauthCredential = OAuthCredential<{
|
|
1050
1093
|
shop: string;
|
|
1094
|
+
source?: 'marketplace';
|
|
1051
1095
|
}, false>;
|
|
1052
1096
|
type BigCommerceOauthCredential = OAuthCredential<{
|
|
1053
1097
|
shop: string;
|
|
@@ -1285,6 +1329,9 @@ interface VercelClientAuthorization {
|
|
|
1285
1329
|
interface VercelClientOptions extends VercelClientAuthorization {
|
|
1286
1330
|
ensureAuthorizationToken?: boolean;
|
|
1287
1331
|
}
|
|
1332
|
+
declare function getVercelClientAuthorization(req: {
|
|
1333
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
1334
|
+
}, headerPrefix?: string): VercelClientAuthorization;
|
|
1288
1335
|
declare const vercelClientInstance: axios.AxiosInstance;
|
|
1289
1336
|
declare function getVercelClientConfig(options?: VercelClientOptions): AxiosRequestConfig;
|
|
1290
1337
|
declare function initVercelClient(token?: string): void;
|
|
@@ -1502,1006 +1549,444 @@ interface AuthorizeData {
|
|
|
1502
1549
|
refresh_token: string;
|
|
1503
1550
|
}
|
|
1504
1551
|
|
|
1505
|
-
interface
|
|
1506
|
-
|
|
1507
|
-
|
|
1552
|
+
interface AdapterClientAuthorization {
|
|
1553
|
+
platform?: GlobalAccountsClientAuthorization;
|
|
1554
|
+
github?: GithubClientAuthorization;
|
|
1555
|
+
netlify?: NetlifyClientAuthorization;
|
|
1556
|
+
vercel?: VercelClientAuthorization;
|
|
1557
|
+
planetscale?: PlanetScaleClientAuthorization;
|
|
1558
|
+
neon?: NeonClientAuthorization;
|
|
1559
|
+
mailchimp?: MailchimpClientAuthorization;
|
|
1560
|
+
shopify?: ShopifyClientAuthorization;
|
|
1561
|
+
hubspot?: HubspotClientAuthorization;
|
|
1562
|
+
bigcommerce?: BigCommerceClientAuthorization;
|
|
1563
|
+
text?: TextClientAuthorization;
|
|
1564
|
+
slack?: SlackClientAuthorization;
|
|
1508
1565
|
}
|
|
1509
|
-
type
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1566
|
+
type AdapterClientOptions = AdapterClientAuthorization & {
|
|
1567
|
+
ensureAuthorizationToken?: {
|
|
1568
|
+
platform?: boolean;
|
|
1569
|
+
github?: boolean;
|
|
1570
|
+
netlify?: boolean;
|
|
1571
|
+
vercel?: boolean;
|
|
1572
|
+
planetscale?: boolean;
|
|
1573
|
+
neon?: boolean;
|
|
1574
|
+
mailchimp?: boolean;
|
|
1575
|
+
shopify?: boolean;
|
|
1576
|
+
hubspot?: boolean;
|
|
1577
|
+
bigcommerce?: boolean;
|
|
1578
|
+
text?: boolean;
|
|
1579
|
+
slack?: boolean;
|
|
1519
1580
|
};
|
|
1520
|
-
display?: AppDisplayData;
|
|
1521
|
-
stage?: 'labs';
|
|
1522
1581
|
};
|
|
1582
|
+
declare class AdapterApiError extends ApiErrorBase<{
|
|
1583
|
+
errorCode: string;
|
|
1584
|
+
errorMessage: string;
|
|
1585
|
+
}> {
|
|
1586
|
+
name: "adapter";
|
|
1587
|
+
static notFound(message?: string): AdapterApiError;
|
|
1588
|
+
}
|
|
1589
|
+
declare const adapterClientInstance: axios.AxiosInstance;
|
|
1590
|
+
declare function getAdapterClientConfig(options?: AdapterClientOptions): AxiosRequestConfig;
|
|
1591
|
+
declare const getAdapterClientDefaultConfig: (authorization?: AdapterClientAuthorization) => AxiosRequestConfig<any>;
|
|
1592
|
+
declare function initAdapterClient(baseUrl?: string, tokens?: {
|
|
1593
|
+
platform?: GlobalAccountsClientAuthorization;
|
|
1594
|
+
github?: GithubClientAuthorization;
|
|
1595
|
+
netlify?: NetlifyClientAuthorization;
|
|
1596
|
+
vercel?: VercelClientAuthorization;
|
|
1597
|
+
planetscale?: PlanetScaleClientAuthorization;
|
|
1598
|
+
neon?: NeonClientAuthorization;
|
|
1599
|
+
mailchimp?: MailchimpClientAuthorization;
|
|
1600
|
+
shopify?: ShopifyClientAuthorization;
|
|
1601
|
+
hubspot?: HubspotClientAuthorization;
|
|
1602
|
+
slack?: SlackClientAuthorization;
|
|
1603
|
+
bigcommerce?: BigCommerceClientAuthorization;
|
|
1604
|
+
text?: TextClientAuthorization;
|
|
1605
|
+
}): void;
|
|
1606
|
+
declare function updateAdapterClient(tokens?: {
|
|
1607
|
+
platform?: GlobalAccountsClientAuthorization;
|
|
1608
|
+
github?: GithubClientAuthorization;
|
|
1609
|
+
netlify?: NetlifyClientAuthorization;
|
|
1610
|
+
vercel?: VercelClientAuthorization;
|
|
1611
|
+
planetscale?: PlanetScaleClientAuthorization;
|
|
1612
|
+
neon?: NeonClientAuthorization;
|
|
1613
|
+
mailchimp?: MailchimpClientAuthorization;
|
|
1614
|
+
shopify?: ShopifyClientAuthorization;
|
|
1615
|
+
hubspot?: HubspotClientAuthorization;
|
|
1616
|
+
slack?: SlackClientAuthorization;
|
|
1617
|
+
bigcommerce?: BigCommerceClientAuthorization;
|
|
1618
|
+
text?: TextClientAuthorization;
|
|
1619
|
+
}): void;
|
|
1523
1620
|
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
id: string;
|
|
1533
|
-
};
|
|
1534
|
-
}, {
|
|
1535
|
-
id: string;
|
|
1536
|
-
}, {
|
|
1537
|
-
needToBeActivated?: boolean;
|
|
1538
|
-
}>;
|
|
1539
|
-
|
|
1540
|
-
type PushAppSagaAuthorizationStep = SagaStep<{
|
|
1541
|
-
action: 'add' | 'update';
|
|
1542
|
-
data: AppAuthorizationData;
|
|
1543
|
-
} | {
|
|
1544
|
-
action: 'remove';
|
|
1545
|
-
}>;
|
|
1546
|
-
|
|
1547
|
-
type PushAppSagaDeploymentStep = SagaStep<{
|
|
1548
|
-
action: 'link';
|
|
1549
|
-
data: LinkAppDeploymentData;
|
|
1550
|
-
} | {
|
|
1551
|
-
action: 'upsert';
|
|
1552
|
-
data: AppDeploymentData;
|
|
1553
|
-
} | {
|
|
1554
|
-
action: 'remove';
|
|
1555
|
-
}, AppDeploymentData, {
|
|
1556
|
-
needToBeInstalled?: boolean;
|
|
1557
|
-
}>;
|
|
1558
|
-
|
|
1559
|
-
type PushAppSagaDisplayStep = SagaStep<{
|
|
1560
|
-
action: 'add';
|
|
1561
|
-
data: AppDisplayData;
|
|
1621
|
+
declare enum IntegrationModes {
|
|
1622
|
+
Redirect = "redirect",
|
|
1623
|
+
Modal = "modal"
|
|
1624
|
+
}
|
|
1625
|
+
type IntegrationFlowContext = {
|
|
1626
|
+
state: string;
|
|
1627
|
+
} & ({
|
|
1628
|
+
mode: IntegrationModes.Modal;
|
|
1562
1629
|
} | {
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1630
|
+
mode: IntegrationModes.Redirect;
|
|
1631
|
+
redirectUrl: string;
|
|
1632
|
+
});
|
|
1633
|
+
type IntegrationFlowOutput<TFlowResult> = {
|
|
1634
|
+
status: 'success';
|
|
1635
|
+
result: TFlowResult;
|
|
1566
1636
|
} | {
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
type PushAppSagaMonetizationStep = SagaStep<{
|
|
1571
|
-
action: 'upsert';
|
|
1572
|
-
data: AppMonetizationData;
|
|
1637
|
+
status: 'error';
|
|
1638
|
+
message: string;
|
|
1573
1639
|
} | {
|
|
1574
|
-
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
type PushAppSagaPropertiesStep = SagaStep<{
|
|
1578
|
-
add: ({
|
|
1579
|
-
propertyId: string;
|
|
1580
|
-
} & AppPropertyData)[];
|
|
1581
|
-
update: ({
|
|
1582
|
-
propertyId: string;
|
|
1583
|
-
} & AppPropertyData)[];
|
|
1584
|
-
remove: {
|
|
1585
|
-
propertyId: string;
|
|
1586
|
-
}[];
|
|
1587
|
-
}>;
|
|
1640
|
+
status: 'cancel';
|
|
1641
|
+
};
|
|
1588
1642
|
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1643
|
+
declare enum IntegrationNames {
|
|
1644
|
+
Accounts = "accounts",
|
|
1645
|
+
GitHub = "github",
|
|
1646
|
+
Netlify = "netlify",
|
|
1647
|
+
Vercel = "vercel",
|
|
1648
|
+
PlanetScale = "planetscale",
|
|
1649
|
+
Neon = "neon",
|
|
1650
|
+
Mailchimp = "mailchimp",
|
|
1651
|
+
Shopify = "shopify",
|
|
1652
|
+
HubSpot = "hubspot",
|
|
1653
|
+
BigCommerce = "bigcommerce",
|
|
1654
|
+
OpenAI = "openai",
|
|
1655
|
+
Text = "text",
|
|
1656
|
+
LiveChat = "text-livechat",
|
|
1657
|
+
HelpDesk = "text-helpdesk",
|
|
1658
|
+
Slack = "slack"
|
|
1659
|
+
}
|
|
1660
|
+
declare enum IntegrationDisplayNames {
|
|
1661
|
+
Accounts = "Accounts",
|
|
1662
|
+
GitHub = "Github",
|
|
1663
|
+
Netlify = "Netlify",
|
|
1664
|
+
Vercel = "Vercel",
|
|
1665
|
+
PlanetScale = "Planetscale",
|
|
1666
|
+
Neon = "Neon",
|
|
1667
|
+
Mailchimp = "Mailchimp",
|
|
1668
|
+
Shopify = "Shopify",
|
|
1669
|
+
HubSpot = "Hubspot",
|
|
1670
|
+
BigCommerce = "BigCommerce",
|
|
1671
|
+
OpenAI = "OpenAI",
|
|
1672
|
+
Text = "Text",
|
|
1673
|
+
LiveChat = "LiveChat",
|
|
1674
|
+
HelpDesk = "HelpDesk",
|
|
1675
|
+
Slack = "Slack"
|
|
1676
|
+
}
|
|
1601
1677
|
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1678
|
+
interface SlackAuthorizeActionResult {
|
|
1679
|
+
token: string;
|
|
1680
|
+
}
|
|
1681
|
+
interface SlackAuthorizeFlowCustomContext {
|
|
1682
|
+
credentialId?: string;
|
|
1683
|
+
}
|
|
1684
|
+
type SlackAuthorizeFlowContext = SlackAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
1685
|
+
interface SlackAuthorizeFlowResult {
|
|
1686
|
+
token: string;
|
|
1687
|
+
}
|
|
1611
1688
|
|
|
1612
|
-
type
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
} & AppWidgetData)[];
|
|
1616
|
-
update: ({
|
|
1617
|
-
widgetId: string;
|
|
1618
|
-
} & AppWidgetData)[];
|
|
1619
|
-
remove: {
|
|
1620
|
-
widgetId: string;
|
|
1621
|
-
}[];
|
|
1622
|
-
}>;
|
|
1689
|
+
type SlackFlows = 'authorize';
|
|
1690
|
+
type SlackFlowContext<TAction extends SlackFlows> = TAction extends 'authorize' ? SlackAuthorizeFlowCustomContext : never;
|
|
1691
|
+
type SlackFlowResult<TAction extends SlackFlows> = TAction extends 'authorize' ? SlackAuthorizeFlowResult : never;
|
|
1623
1692
|
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
monetization?: PushAppSagaMonetizationStep;
|
|
1628
|
-
repository?: PushAppSagaRepositoryStep;
|
|
1629
|
-
deployment?: PushAppSagaDeploymentStep;
|
|
1630
|
-
storage?: PushAppSagaStorageStep;
|
|
1631
|
-
properties?: PushAppSagaPropertiesStep;
|
|
1632
|
-
widgets?: PushAppSagaWidgetsStep;
|
|
1633
|
-
display?: PushAppSagaDisplayStep;
|
|
1634
|
-
}>;
|
|
1635
|
-
|
|
1636
|
-
interface PushAppPayload {
|
|
1637
|
-
manifest: AppManifest;
|
|
1638
|
-
metadata: {
|
|
1639
|
-
sagaId: string;
|
|
1640
|
-
};
|
|
1693
|
+
declare enum SlackEventNames {
|
|
1694
|
+
ChannelNewMessagePosted = "channel_new_message_posted",
|
|
1695
|
+
MemberNewMention = "member_new_mention"
|
|
1641
1696
|
}
|
|
1642
|
-
|
|
1697
|
+
declare const slackEventsZods: {
|
|
1698
|
+
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
1699
|
+
eventName: z.ZodNativeEnum<typeof SlackEventNames>;
|
|
1700
|
+
events: {
|
|
1701
|
+
channelNewMessagePosted: z.ZodObject<{
|
|
1702
|
+
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
1703
|
+
channelId: z.ZodString;
|
|
1704
|
+
}, "strip", z.ZodTypeAny, {
|
|
1705
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1706
|
+
channelId: string;
|
|
1707
|
+
}, {
|
|
1708
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1709
|
+
channelId: string;
|
|
1710
|
+
}>;
|
|
1711
|
+
memberNewMention: z.ZodObject<{
|
|
1712
|
+
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
1713
|
+
userId: z.ZodString;
|
|
1714
|
+
}, "strip", z.ZodTypeAny, {
|
|
1715
|
+
name: SlackEventNames.MemberNewMention;
|
|
1716
|
+
userId: string;
|
|
1717
|
+
}, {
|
|
1718
|
+
name: SlackEventNames.MemberNewMention;
|
|
1719
|
+
userId: string;
|
|
1720
|
+
}>;
|
|
1721
|
+
};
|
|
1722
|
+
readonly event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
1723
|
+
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
1724
|
+
channelId: z.ZodString;
|
|
1725
|
+
}, "strip", z.ZodTypeAny, {
|
|
1726
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1727
|
+
channelId: string;
|
|
1728
|
+
}, {
|
|
1729
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1730
|
+
channelId: string;
|
|
1731
|
+
}>, z.ZodObject<{
|
|
1732
|
+
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
1733
|
+
userId: z.ZodString;
|
|
1734
|
+
}, "strip", z.ZodTypeAny, {
|
|
1735
|
+
name: SlackEventNames.MemberNewMention;
|
|
1736
|
+
userId: string;
|
|
1737
|
+
}, {
|
|
1738
|
+
name: SlackEventNames.MemberNewMention;
|
|
1739
|
+
userId: string;
|
|
1740
|
+
}>]>;
|
|
1741
|
+
readonly source: z.ZodObject<{
|
|
1742
|
+
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
1743
|
+
sourceKey: z.ZodString;
|
|
1744
|
+
}, "strip", z.ZodTypeAny, {
|
|
1745
|
+
sourceName: "apps" | "workflows";
|
|
1746
|
+
sourceKey: string;
|
|
1747
|
+
}, {
|
|
1748
|
+
sourceName: "apps" | "workflows";
|
|
1749
|
+
sourceKey: string;
|
|
1750
|
+
}>;
|
|
1751
|
+
readonly subscribe: z.ZodIntersection<z.ZodObject<{
|
|
1752
|
+
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
1753
|
+
sourceKey: z.ZodString;
|
|
1754
|
+
}, "strip", z.ZodTypeAny, {
|
|
1755
|
+
sourceName: "apps" | "workflows";
|
|
1756
|
+
sourceKey: string;
|
|
1757
|
+
}, {
|
|
1758
|
+
sourceName: "apps" | "workflows";
|
|
1759
|
+
sourceKey: string;
|
|
1760
|
+
}>, z.ZodObject<{
|
|
1761
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
1762
|
+
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
1763
|
+
channelId: z.ZodString;
|
|
1764
|
+
}, "strip", z.ZodTypeAny, {
|
|
1765
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1766
|
+
channelId: string;
|
|
1767
|
+
}, {
|
|
1768
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1769
|
+
channelId: string;
|
|
1770
|
+
}>, z.ZodObject<{
|
|
1771
|
+
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
1772
|
+
userId: z.ZodString;
|
|
1773
|
+
}, "strip", z.ZodTypeAny, {
|
|
1774
|
+
name: SlackEventNames.MemberNewMention;
|
|
1775
|
+
userId: string;
|
|
1776
|
+
}, {
|
|
1777
|
+
name: SlackEventNames.MemberNewMention;
|
|
1778
|
+
userId: string;
|
|
1779
|
+
}>]>;
|
|
1780
|
+
callback: z.ZodString;
|
|
1781
|
+
}, "strip", z.ZodTypeAny, {
|
|
1782
|
+
event: {
|
|
1783
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1784
|
+
channelId: string;
|
|
1785
|
+
} | {
|
|
1786
|
+
name: SlackEventNames.MemberNewMention;
|
|
1787
|
+
userId: string;
|
|
1788
|
+
};
|
|
1789
|
+
callback: string;
|
|
1790
|
+
}, {
|
|
1791
|
+
event: {
|
|
1792
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1793
|
+
channelId: string;
|
|
1794
|
+
} | {
|
|
1795
|
+
name: SlackEventNames.MemberNewMention;
|
|
1796
|
+
userId: string;
|
|
1797
|
+
};
|
|
1798
|
+
callback: string;
|
|
1799
|
+
}>>;
|
|
1800
|
+
readonly subscribeContent: z.ZodObject<{
|
|
1801
|
+
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
1802
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
1803
|
+
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
1804
|
+
channelId: z.ZodString;
|
|
1805
|
+
}, "strip", z.ZodTypeAny, {
|
|
1806
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1807
|
+
channelId: string;
|
|
1808
|
+
}, {
|
|
1809
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1810
|
+
channelId: string;
|
|
1811
|
+
}>, z.ZodObject<{
|
|
1812
|
+
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
1813
|
+
userId: z.ZodString;
|
|
1814
|
+
}, "strip", z.ZodTypeAny, {
|
|
1815
|
+
name: SlackEventNames.MemberNewMention;
|
|
1816
|
+
userId: string;
|
|
1817
|
+
}, {
|
|
1818
|
+
name: SlackEventNames.MemberNewMention;
|
|
1819
|
+
userId: string;
|
|
1820
|
+
}>]>;
|
|
1821
|
+
callback: z.ZodString;
|
|
1822
|
+
}, "strip", z.ZodTypeAny, {
|
|
1823
|
+
event: {
|
|
1824
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1825
|
+
channelId: string;
|
|
1826
|
+
} | {
|
|
1827
|
+
name: SlackEventNames.MemberNewMention;
|
|
1828
|
+
userId: string;
|
|
1829
|
+
};
|
|
1830
|
+
callback: string;
|
|
1831
|
+
provider: IntegrationNames.Slack;
|
|
1832
|
+
}, {
|
|
1833
|
+
event: {
|
|
1834
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1835
|
+
channelId: string;
|
|
1836
|
+
} | {
|
|
1837
|
+
name: SlackEventNames.MemberNewMention;
|
|
1838
|
+
userId: string;
|
|
1839
|
+
};
|
|
1840
|
+
callback: string;
|
|
1841
|
+
provider: IntegrationNames.Slack;
|
|
1842
|
+
}>;
|
|
1843
|
+
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
1844
|
+
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
1845
|
+
sourceKey: z.ZodString;
|
|
1846
|
+
}, "strip", z.ZodTypeAny, {
|
|
1847
|
+
sourceName: "apps" | "workflows";
|
|
1848
|
+
sourceKey: string;
|
|
1849
|
+
}, {
|
|
1850
|
+
sourceName: "apps" | "workflows";
|
|
1851
|
+
sourceKey: string;
|
|
1852
|
+
}>, z.ZodObject<{
|
|
1853
|
+
event: z.ZodObject<{
|
|
1854
|
+
name: z.ZodNativeEnum<typeof SlackEventNames>;
|
|
1855
|
+
}, "strip", z.ZodTypeAny, {
|
|
1856
|
+
name: SlackEventNames;
|
|
1857
|
+
}, {
|
|
1858
|
+
name: SlackEventNames;
|
|
1859
|
+
}>;
|
|
1860
|
+
}, "strip", z.ZodTypeAny, {
|
|
1861
|
+
event: {
|
|
1862
|
+
name: SlackEventNames;
|
|
1863
|
+
};
|
|
1864
|
+
}, {
|
|
1865
|
+
event: {
|
|
1866
|
+
name: SlackEventNames;
|
|
1867
|
+
};
|
|
1868
|
+
}>>;
|
|
1869
|
+
readonly unsubscribeContent: z.ZodObject<{
|
|
1870
|
+
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
1871
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
1872
|
+
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
1873
|
+
channelId: z.ZodString;
|
|
1874
|
+
}, "strip", z.ZodTypeAny, {
|
|
1875
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1876
|
+
channelId: string;
|
|
1877
|
+
}, {
|
|
1878
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1879
|
+
channelId: string;
|
|
1880
|
+
}>, z.ZodObject<{
|
|
1881
|
+
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
1882
|
+
userId: z.ZodString;
|
|
1883
|
+
}, "strip", z.ZodTypeAny, {
|
|
1884
|
+
name: SlackEventNames.MemberNewMention;
|
|
1885
|
+
userId: string;
|
|
1886
|
+
}, {
|
|
1887
|
+
name: SlackEventNames.MemberNewMention;
|
|
1888
|
+
userId: string;
|
|
1889
|
+
}>]>;
|
|
1890
|
+
}, "strip", z.ZodTypeAny, {
|
|
1891
|
+
event: {
|
|
1892
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1893
|
+
channelId: string;
|
|
1894
|
+
} | {
|
|
1895
|
+
name: SlackEventNames.MemberNewMention;
|
|
1896
|
+
userId: string;
|
|
1897
|
+
};
|
|
1898
|
+
provider: IntegrationNames.Slack;
|
|
1899
|
+
}, {
|
|
1900
|
+
event: {
|
|
1901
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1902
|
+
channelId: string;
|
|
1903
|
+
} | {
|
|
1904
|
+
name: SlackEventNames.MemberNewMention;
|
|
1905
|
+
userId: string;
|
|
1906
|
+
};
|
|
1907
|
+
provider: IntegrationNames.Slack;
|
|
1908
|
+
}>;
|
|
1909
|
+
};
|
|
1910
|
+
type SlackEvent = z.infer<typeof slackEventsZods.event>;
|
|
1911
|
+
type SubscribeToSlackEventPayload = z.infer<typeof slackEventsZods.subscribe>;
|
|
1912
|
+
type UnsubscribeFromSlackEventPayload = z.infer<typeof slackEventsZods.unsubscribe>;
|
|
1643
1913
|
|
|
1644
|
-
interface
|
|
1645
|
-
|
|
1646
|
-
manifest: AppManifest;
|
|
1914
|
+
interface BigCommerceAuthorizeActionContext {
|
|
1915
|
+
shop: string;
|
|
1647
1916
|
}
|
|
1648
|
-
interface
|
|
1649
|
-
|
|
1917
|
+
interface BigCommerceAuthorizeActionResult {
|
|
1918
|
+
shop: string;
|
|
1919
|
+
token: string;
|
|
1650
1920
|
}
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1921
|
+
type BigCommerceAuthorizeFlowCustomContext = ({
|
|
1922
|
+
credentialId: undefined;
|
|
1923
|
+
} & BigCommerceAuthorizeActionContext) | {
|
|
1924
|
+
credentialId: string;
|
|
1925
|
+
};
|
|
1926
|
+
type BigCommerceAuthorizeFlowContext = BigCommerceAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
1927
|
+
interface BigCommerceAuthorizeFlowResult {
|
|
1928
|
+
shop: string;
|
|
1929
|
+
token: string;
|
|
1660
1930
|
}
|
|
1661
1931
|
|
|
1662
|
-
type
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
} & Omit<AppAuthorizationData, 'clientId'>;
|
|
1666
|
-
interface AddAppAuthorizationResult {
|
|
1667
|
-
clientId: string;
|
|
1668
|
-
clientSecret: string;
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
interface RemoveAppAuthorizationPayload {
|
|
1672
|
-
appId: string;
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
type UpdateAppAuthorizationPayload = {
|
|
1676
|
-
appId: string;
|
|
1677
|
-
} & AppAuthorizationData;
|
|
1678
|
-
|
|
1679
|
-
type AppDeploymentData = {
|
|
1680
|
-
provider: AppDeploymentProvider;
|
|
1681
|
-
} & AppDeploymentBlockConfig & (({
|
|
1682
|
-
provider: 'netlify';
|
|
1683
|
-
} & Partial<AppNetlifyDeploymentConfig>) | ({
|
|
1684
|
-
provider: 'vercel';
|
|
1685
|
-
} & Partial<AppVercelDeploymentConfig>) | {
|
|
1686
|
-
provider: 'custom';
|
|
1687
|
-
});
|
|
1932
|
+
type BigCommerceFlows = 'authorize';
|
|
1933
|
+
type BigCommerceFlowContext<TAction extends BigCommerceFlows> = TAction extends 'authorize' ? BigCommerceAuthorizeFlowCustomContext : never;
|
|
1934
|
+
type BigCommerceFlowResult<TAction extends BigCommerceFlows> = TAction extends 'authorize' ? BigCommerceAuthorizeFlowResult : never;
|
|
1688
1935
|
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
deploy: {
|
|
1697
|
-
id?: string;
|
|
1698
|
-
state?: 'ERROR' | 'READY' | 'BUILDING';
|
|
1699
|
-
};
|
|
1700
|
-
repository: {
|
|
1701
|
-
isAccessible: boolean;
|
|
1702
|
-
installationId?: number | null;
|
|
1703
|
-
};
|
|
1936
|
+
declare enum BigCommerceEventNames {
|
|
1937
|
+
CartCreated = "cart_created",
|
|
1938
|
+
CartUpdated = "cart_updated",
|
|
1939
|
+
OrderCreated = "order_created",
|
|
1940
|
+
OrderUpdated = "order_updated",
|
|
1941
|
+
ProductCreated = "product_created",
|
|
1942
|
+
ProductUpdated = "product_updated"
|
|
1704
1943
|
}
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
}
|
|
1751
|
-
type LinkAppDeploymentVercelProjectData = {
|
|
1752
|
-
type: 'new';
|
|
1753
|
-
projectName?: string;
|
|
1754
|
-
} | {
|
|
1755
|
-
type: 'existing';
|
|
1756
|
-
projectId: string;
|
|
1757
|
-
};
|
|
1758
|
-
type LinkAppDeploymentVercelData = {
|
|
1759
|
-
installationId?: string;
|
|
1760
|
-
} & LinkAppDeploymentVercelProjectData;
|
|
1761
|
-
type LinkAppDeploymentData = (({
|
|
1762
|
-
provider: 'netlify';
|
|
1763
|
-
} & LinkAppDeploymentNetlifyData) | ({
|
|
1764
|
-
provider: 'vercel';
|
|
1765
|
-
} & LinkAppDeploymentVercelData) | {
|
|
1766
|
-
provider: 'custom';
|
|
1767
|
-
url: string;
|
|
1768
|
-
}) & {
|
|
1769
|
-
force?: boolean;
|
|
1770
|
-
};
|
|
1771
|
-
type LinkAppDeploymentPayload = {
|
|
1772
|
-
appId: string;
|
|
1773
|
-
} & LinkAppDeploymentData;
|
|
1774
|
-
interface LinkAppDeploymentResult {
|
|
1775
|
-
url: string;
|
|
1776
|
-
needToBeInstalled: boolean;
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
interface UnlinkAppDeploymentData {
|
|
1780
|
-
shouldDelete?: true;
|
|
1781
|
-
}
|
|
1782
|
-
type UnlinkAppDeploymentPayload = {
|
|
1783
|
-
appId: string;
|
|
1784
|
-
} & UnlinkAppDeploymentData;
|
|
1785
|
-
|
|
1786
|
-
type UpsertAppDeploymentPayload = {
|
|
1787
|
-
appId: string;
|
|
1788
|
-
} & AppDeploymentData;
|
|
1789
|
-
|
|
1790
|
-
type AppMonetizationData = {
|
|
1791
|
-
price: number;
|
|
1792
|
-
frequency: 'monthly' | 'once';
|
|
1793
|
-
trialDays: number;
|
|
1794
|
-
} & ({
|
|
1795
|
-
charge: 'account';
|
|
1796
|
-
tiers?: {
|
|
1797
|
-
accountsFrom: number;
|
|
1798
|
-
discount: number;
|
|
1799
|
-
}[];
|
|
1800
|
-
} | {
|
|
1801
|
-
charge: 'organization';
|
|
1802
|
-
});
|
|
1803
|
-
|
|
1804
|
-
interface RemoveAppMonetizationPayload {
|
|
1805
|
-
appId: string;
|
|
1806
|
-
}
|
|
1807
|
-
|
|
1808
|
-
type UpsertAppMonetizationPayload = {
|
|
1809
|
-
appId: string;
|
|
1810
|
-
} & AppMonetizationData;
|
|
1811
|
-
|
|
1812
|
-
type AppPropertiesData = Record<string, AppPropertyData>;
|
|
1813
|
-
|
|
1814
|
-
interface RemoveAppPropertiesPayload {
|
|
1815
|
-
appId: string;
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
type UpsertAppPropertiesPayload = {
|
|
1819
|
-
appId: string;
|
|
1820
|
-
} & AppPropertiesData;
|
|
1821
|
-
|
|
1822
|
-
interface AppPropertyData {
|
|
1823
|
-
type: PropertyDto['type'];
|
|
1824
|
-
description: string;
|
|
1825
|
-
default_value: string;
|
|
1826
|
-
access: PropertyAccessDto;
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
interface RemoveAppPropertyPayload {
|
|
1830
|
-
appId: string;
|
|
1831
|
-
propertyId: string;
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
type UpsertAppPropertyPayload = {
|
|
1835
|
-
appId: string;
|
|
1836
|
-
propertyId: string;
|
|
1837
|
-
} & AppPropertyData;
|
|
1838
|
-
|
|
1839
|
-
type AppRepositoryData = {
|
|
1840
|
-
provider: AppRepositoryProvider;
|
|
1841
|
-
} & AppRepositoryBlockConfig;
|
|
1842
|
-
|
|
1843
|
-
interface AppGitHubRepository {
|
|
1844
|
-
name: string;
|
|
1845
|
-
branch: string;
|
|
1846
|
-
isSeeded: boolean;
|
|
1847
|
-
language: string;
|
|
1848
|
-
description?: string;
|
|
1849
|
-
}
|
|
1850
|
-
type AppRepository = {
|
|
1851
|
-
provider: 'github';
|
|
1852
|
-
} & AppGitHubRepository;
|
|
1853
|
-
|
|
1854
|
-
type LinkAppRepositoryGitHubData = {
|
|
1855
|
-
type: 'new';
|
|
1856
|
-
name?: string;
|
|
1857
|
-
template?: string;
|
|
1858
|
-
} | {
|
|
1859
|
-
type: 'existing';
|
|
1860
|
-
fullName: string;
|
|
1861
|
-
branch: string;
|
|
1862
|
-
};
|
|
1863
|
-
type LinkAppRepositoryData = {
|
|
1864
|
-
target: AppRepositoryTarget | undefined;
|
|
1865
|
-
force?: boolean;
|
|
1866
|
-
} & ({
|
|
1867
|
-
provider: 'github';
|
|
1868
|
-
} & LinkAppRepositoryGitHubData);
|
|
1869
|
-
type LinkAppRepositoryPayload = {
|
|
1870
|
-
appId: string;
|
|
1871
|
-
} & LinkAppRepositoryData;
|
|
1872
|
-
interface LinkAppRepositoryResult {
|
|
1873
|
-
name: string;
|
|
1874
|
-
branch: string;
|
|
1875
|
-
needToBeInstalled: boolean;
|
|
1876
|
-
needToBeSeeded: boolean;
|
|
1877
|
-
}
|
|
1878
|
-
|
|
1879
|
-
interface SeedAppRepositoryPayload {
|
|
1880
|
-
appId: string;
|
|
1881
|
-
}
|
|
1882
|
-
interface SeedAppRepositoryResult {
|
|
1883
|
-
isSeeded: boolean;
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
interface UnlinkAppRepositoryData {
|
|
1887
|
-
shouldDelete?: true;
|
|
1888
|
-
}
|
|
1889
|
-
type UnlinkAppRepositoryPayload = {
|
|
1890
|
-
appId: string;
|
|
1891
|
-
} & UnlinkAppRepositoryData;
|
|
1892
|
-
|
|
1893
|
-
type UpsertAppRepositoryPayload = {
|
|
1894
|
-
appId: string;
|
|
1895
|
-
} & AppRepositoryData;
|
|
1896
|
-
|
|
1897
|
-
type AppStorageData = {
|
|
1898
|
-
provider: AppStorageProvider;
|
|
1899
|
-
} & AppStorageBlockConfig & (({
|
|
1900
|
-
provider: 'planetscale';
|
|
1901
|
-
} & Partial<AppPlanetScaleStorageConfig>) | ({
|
|
1902
|
-
provider: 'neon';
|
|
1903
|
-
} & Partial<AppNeonStorageConfig>));
|
|
1904
|
-
|
|
1905
|
-
interface AppPlanetScaleStorage {
|
|
1906
|
-
database: {
|
|
1907
|
-
id: string;
|
|
1908
|
-
name: string;
|
|
1909
|
-
url: string;
|
|
1910
|
-
};
|
|
1911
|
-
}
|
|
1912
|
-
interface AppNeonStorage {
|
|
1913
|
-
projectName: string;
|
|
1914
|
-
projectId: string;
|
|
1915
|
-
branchId: string;
|
|
1916
|
-
databaseName: string;
|
|
1917
|
-
}
|
|
1918
|
-
type AppStorage = ({
|
|
1919
|
-
provider: 'planetscale';
|
|
1920
|
-
} & AppPlanetScaleStorage) | ({
|
|
1921
|
-
provider: 'neon';
|
|
1922
|
-
} & AppNeonStorage);
|
|
1923
|
-
|
|
1924
|
-
type LinkAppStoragePlanetScaleDatabaseData = {
|
|
1925
|
-
type: 'new';
|
|
1926
|
-
databaseName?: string;
|
|
1927
|
-
} | {
|
|
1928
|
-
type: 'existing';
|
|
1929
|
-
databaseId: string;
|
|
1930
|
-
};
|
|
1931
|
-
type LinkAppStoragePlanetScaleData = {
|
|
1932
|
-
organization: string;
|
|
1933
|
-
} & LinkAppStoragePlanetScaleDatabaseData;
|
|
1934
|
-
type LinkAppStorageNeonData = {
|
|
1935
|
-
type: 'new';
|
|
1936
|
-
projectName?: string;
|
|
1937
|
-
databaseName?: string;
|
|
1938
|
-
} | ({
|
|
1939
|
-
type: 'existing';
|
|
1940
|
-
projectId: string;
|
|
1941
|
-
branchId: string;
|
|
1942
|
-
} & ({
|
|
1943
|
-
databaseType: 'new';
|
|
1944
|
-
databaseName?: string;
|
|
1945
|
-
} | {
|
|
1946
|
-
databaseType: 'existing';
|
|
1947
|
-
databaseName: string;
|
|
1948
|
-
}));
|
|
1949
|
-
type LinkAppStorageData = {
|
|
1950
|
-
seedRepository: boolean;
|
|
1951
|
-
force?: boolean;
|
|
1952
|
-
} & (({
|
|
1953
|
-
provider: 'planetscale';
|
|
1954
|
-
} & LinkAppStoragePlanetScaleData) | ({
|
|
1955
|
-
provider: 'neon';
|
|
1956
|
-
} & LinkAppStorageNeonData));
|
|
1957
|
-
type LinkAppStoragePayload = {
|
|
1958
|
-
appId: string;
|
|
1959
|
-
} & LinkAppStorageData;
|
|
1960
|
-
|
|
1961
|
-
interface UnlinkAppStorageData {
|
|
1962
|
-
shouldDelete?: true;
|
|
1963
|
-
shouldDeleteDatabase?: true;
|
|
1964
|
-
}
|
|
1965
|
-
type UnlinkAppStoragePayload = {
|
|
1966
|
-
appId: string;
|
|
1967
|
-
} & UnlinkAppStorageData;
|
|
1968
|
-
|
|
1969
|
-
type UpsertAppStoragePayload = {
|
|
1970
|
-
appId: string;
|
|
1971
|
-
} & AppStorageData;
|
|
1972
|
-
|
|
1973
|
-
type AppWidgetsData = Record<string, AppWidgetData>;
|
|
1974
|
-
|
|
1975
|
-
interface RemoveAppWidgetsPayload {
|
|
1976
|
-
appId: string;
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
|
-
type UpsertAppWidgetsPayload = {
|
|
1980
|
-
appId: string;
|
|
1981
|
-
} & AppWidgetsData;
|
|
1982
|
-
|
|
1983
|
-
interface AppWidgetData {
|
|
1984
|
-
placement: string;
|
|
1985
|
-
initialState?: string;
|
|
1986
|
-
url: string;
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
interface RemoveAppWidgetPayload {
|
|
1990
|
-
appId: string;
|
|
1991
|
-
widgetId: string;
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
type UpsertAppWidgetPayload = {
|
|
1995
|
-
appId: string;
|
|
1996
|
-
widgetId: string;
|
|
1997
|
-
} & AppWidgetData;
|
|
1998
|
-
|
|
1999
|
-
interface AppDisplayData {
|
|
2000
|
-
shortDescription?: string;
|
|
2001
|
-
longDescription?: string;
|
|
2002
|
-
}
|
|
2003
|
-
|
|
2004
|
-
interface AppBaseTemplate {
|
|
2005
|
-
id: string;
|
|
2006
|
-
name: string;
|
|
2007
|
-
description: string;
|
|
2008
|
-
tags: string[];
|
|
2009
|
-
image?: string;
|
|
2010
|
-
icons?: Record<string, string>;
|
|
2011
|
-
}
|
|
2012
|
-
type AppRepositoryTemplate = AppBaseTemplate & {
|
|
2013
|
-
repository: {
|
|
2014
|
-
name: string;
|
|
2015
|
-
target?: AppRepositoryTarget;
|
|
2016
|
-
};
|
|
2017
|
-
};
|
|
2018
|
-
type AppTemplate = AppBaseTemplate & {
|
|
2019
|
-
manifest: AppManifest;
|
|
2020
|
-
icons?: {
|
|
2021
|
-
small: string;
|
|
2022
|
-
};
|
|
2023
|
-
category: {
|
|
2024
|
-
name: string;
|
|
2025
|
-
};
|
|
2026
|
-
template?: boolean;
|
|
2027
|
-
};
|
|
2028
|
-
interface AppRepositoryTemplates {
|
|
2029
|
-
nextjs: AppRepositoryTemplate;
|
|
2030
|
-
vite: AppRepositoryTemplate;
|
|
2031
|
-
saas: AppRepositoryTemplate;
|
|
2032
|
-
}
|
|
2033
|
-
interface AppTemplates {
|
|
2034
|
-
saas: AppTemplate;
|
|
2035
|
-
}
|
|
2036
|
-
|
|
2037
|
-
type AppVariableType = 'custom' | 'auth' | 'storage';
|
|
2038
|
-
type AppVariableStatus = 'valid' | 'invalid' | 'warning' | 'unknown';
|
|
2039
|
-
type AppVariableLocalProvider = 'console';
|
|
2040
|
-
type AppVariableExternalProvider = 'vercel' | 'netlify';
|
|
2041
|
-
type AppVariableProvider = AppVariableLocalProvider | AppVariableExternalProvider;
|
|
2042
|
-
interface AppVariable {
|
|
2043
|
-
key: string;
|
|
2044
|
-
value: {
|
|
2045
|
-
local?: {
|
|
2046
|
-
type: AppVariableLocalProvider;
|
|
2047
|
-
id: string;
|
|
2048
|
-
value: string;
|
|
2049
|
-
isReadonly: boolean;
|
|
2050
|
-
};
|
|
2051
|
-
external?: {
|
|
2052
|
-
type: AppVariableExternalProvider;
|
|
2053
|
-
id: string;
|
|
2054
|
-
value: string;
|
|
2055
|
-
};
|
|
2056
|
-
};
|
|
2057
|
-
type?: AppVariableType;
|
|
2058
|
-
status?: AppVariableStatus;
|
|
2059
|
-
isLinked: boolean;
|
|
2060
|
-
isDecrypted: boolean;
|
|
2061
|
-
}
|
|
2062
|
-
|
|
2063
|
-
interface CreateAppVariablePayload {
|
|
2064
|
-
appId: string;
|
|
2065
|
-
key: string;
|
|
2066
|
-
value: string;
|
|
2067
|
-
}
|
|
2068
|
-
|
|
2069
|
-
interface EditAppVariablePayload {
|
|
2070
|
-
appId: string;
|
|
2071
|
-
key: string;
|
|
2072
|
-
localValue: string;
|
|
2073
|
-
externalValue: string;
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
|
-
interface SyncAppVariablePayload {
|
|
2077
|
-
source: {
|
|
2078
|
-
type: AppVariableProvider;
|
|
2079
|
-
id: string;
|
|
2080
|
-
value: string;
|
|
2081
|
-
};
|
|
2082
|
-
target: {
|
|
2083
|
-
id?: string;
|
|
2084
|
-
};
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
|
-
interface AdapterClientAuthorization {
|
|
2088
|
-
platform?: GlobalAccountsClientAuthorization;
|
|
2089
|
-
github?: GithubClientAuthorization;
|
|
2090
|
-
netlify?: NetlifyClientAuthorization;
|
|
2091
|
-
vercel?: VercelClientAuthorization;
|
|
2092
|
-
planetscale?: PlanetScaleClientAuthorization;
|
|
2093
|
-
neon?: NeonClientAuthorization;
|
|
2094
|
-
mailchimp?: MailchimpClientAuthorization;
|
|
2095
|
-
shopify?: ShopifyClientAuthorization;
|
|
2096
|
-
hubspot?: HubspotClientAuthorization;
|
|
2097
|
-
bigcommerce?: BigCommerceClientAuthorization;
|
|
2098
|
-
text?: TextClientAuthorization;
|
|
2099
|
-
slack?: SlackClientAuthorization;
|
|
2100
|
-
}
|
|
2101
|
-
type AdapterClientOptions = AdapterClientAuthorization & {
|
|
2102
|
-
ensureAuthorizationToken?: {
|
|
2103
|
-
platform?: boolean;
|
|
2104
|
-
github?: boolean;
|
|
2105
|
-
netlify?: boolean;
|
|
2106
|
-
vercel?: boolean;
|
|
2107
|
-
planetscale?: boolean;
|
|
2108
|
-
neon?: boolean;
|
|
2109
|
-
mailchimp?: boolean;
|
|
2110
|
-
shopify?: boolean;
|
|
2111
|
-
hubspot?: boolean;
|
|
2112
|
-
bigcommerce?: boolean;
|
|
2113
|
-
text?: boolean;
|
|
2114
|
-
slack?: boolean;
|
|
2115
|
-
};
|
|
2116
|
-
};
|
|
2117
|
-
declare class AdapterApiError extends ApiErrorBase<{
|
|
2118
|
-
errorCode: string;
|
|
2119
|
-
errorMessage: string;
|
|
2120
|
-
}> {
|
|
2121
|
-
name: "adapter";
|
|
2122
|
-
static notFound(message?: string): AdapterApiError;
|
|
2123
|
-
}
|
|
2124
|
-
declare const adapterClientInstance: axios.AxiosInstance;
|
|
2125
|
-
declare function getAdapterClientConfig(options?: AdapterClientOptions): AxiosRequestConfig;
|
|
2126
|
-
declare const getAdapterClientDefaultConfig: (authorization?: AdapterClientAuthorization) => AxiosRequestConfig<any>;
|
|
2127
|
-
declare function initAdapterClient(baseUrl?: string, tokens?: {
|
|
2128
|
-
platform?: GlobalAccountsClientAuthorization;
|
|
2129
|
-
github?: GithubClientAuthorization;
|
|
2130
|
-
netlify?: NetlifyClientAuthorization;
|
|
2131
|
-
vercel?: VercelClientAuthorization;
|
|
2132
|
-
planetscale?: PlanetScaleClientAuthorization;
|
|
2133
|
-
neon?: NeonClientAuthorization;
|
|
2134
|
-
mailchimp?: MailchimpClientAuthorization;
|
|
2135
|
-
shopify?: ShopifyClientAuthorization;
|
|
2136
|
-
hubspot?: HubspotClientAuthorization;
|
|
2137
|
-
slack?: SlackClientAuthorization;
|
|
2138
|
-
bigcommerce?: BigCommerceClientAuthorization;
|
|
2139
|
-
text?: TextClientAuthorization;
|
|
2140
|
-
}): void;
|
|
2141
|
-
declare function updateAdapterClient(tokens?: {
|
|
2142
|
-
platform?: GlobalAccountsClientAuthorization;
|
|
2143
|
-
github?: GithubClientAuthorization;
|
|
2144
|
-
netlify?: NetlifyClientAuthorization;
|
|
2145
|
-
vercel?: VercelClientAuthorization;
|
|
2146
|
-
planetscale?: PlanetScaleClientAuthorization;
|
|
2147
|
-
neon?: NeonClientAuthorization;
|
|
2148
|
-
mailchimp?: MailchimpClientAuthorization;
|
|
2149
|
-
shopify?: ShopifyClientAuthorization;
|
|
2150
|
-
hubspot?: HubspotClientAuthorization;
|
|
2151
|
-
slack?: SlackClientAuthorization;
|
|
2152
|
-
bigcommerce?: BigCommerceClientAuthorization;
|
|
2153
|
-
text?: TextClientAuthorization;
|
|
2154
|
-
}): void;
|
|
2155
|
-
|
|
2156
|
-
declare enum IntegrationModes {
|
|
2157
|
-
Redirect = "redirect",
|
|
2158
|
-
Modal = "modal"
|
|
2159
|
-
}
|
|
2160
|
-
type IntegrationFlowContext = {
|
|
2161
|
-
state: string;
|
|
2162
|
-
} & ({
|
|
2163
|
-
mode: IntegrationModes.Modal;
|
|
2164
|
-
} | {
|
|
2165
|
-
mode: IntegrationModes.Redirect;
|
|
2166
|
-
redirectUrl: string;
|
|
2167
|
-
});
|
|
2168
|
-
type IntegrationFlowOutput<TFlowResult> = {
|
|
2169
|
-
status: 'success';
|
|
2170
|
-
result: TFlowResult;
|
|
2171
|
-
} | {
|
|
2172
|
-
status: 'error';
|
|
2173
|
-
message: string;
|
|
2174
|
-
} | {
|
|
2175
|
-
status: 'cancel';
|
|
2176
|
-
};
|
|
2177
|
-
|
|
2178
|
-
declare enum IntegrationNames {
|
|
2179
|
-
Accounts = "accounts",
|
|
2180
|
-
GitHub = "github",
|
|
2181
|
-
Netlify = "netlify",
|
|
2182
|
-
Vercel = "vercel",
|
|
2183
|
-
PlanetScale = "planetscale",
|
|
2184
|
-
Neon = "neon",
|
|
2185
|
-
Mailchimp = "mailchimp",
|
|
2186
|
-
Shopify = "shopify",
|
|
2187
|
-
HubSpot = "hubspot",
|
|
2188
|
-
BigCommerce = "bigcommerce",
|
|
2189
|
-
OpenAI = "openai",
|
|
2190
|
-
Text = "text",
|
|
2191
|
-
LiveChat = "text-livechat",
|
|
2192
|
-
HelpDesk = "text-helpdesk",
|
|
2193
|
-
Slack = "slack"
|
|
2194
|
-
}
|
|
2195
|
-
declare enum IntegrationDisplayNames {
|
|
2196
|
-
Accounts = "Accounts",
|
|
2197
|
-
GitHub = "Github",
|
|
2198
|
-
Netlify = "Netlify",
|
|
2199
|
-
Vercel = "Vercel",
|
|
2200
|
-
PlanetScale = "Planetscale",
|
|
2201
|
-
Neon = "Neon",
|
|
2202
|
-
Mailchimp = "Mailchimp",
|
|
2203
|
-
Shopify = "Shopify",
|
|
2204
|
-
HubSpot = "Hubspot",
|
|
2205
|
-
BigCommerce = "BigCommerce",
|
|
2206
|
-
OpenAI = "OpenAI",
|
|
2207
|
-
Text = "Text",
|
|
2208
|
-
LiveChat = "LiveChat",
|
|
2209
|
-
HelpDesk = "HelpDesk",
|
|
2210
|
-
Slack = "Slack"
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
interface SlackAuthorizeActionResult {
|
|
2214
|
-
token: string;
|
|
2215
|
-
}
|
|
2216
|
-
interface SlackAuthorizeFlowCustomContext {
|
|
2217
|
-
credentialId?: string;
|
|
2218
|
-
}
|
|
2219
|
-
type SlackAuthorizeFlowContext = SlackAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
2220
|
-
interface SlackAuthorizeFlowResult {
|
|
2221
|
-
token: string;
|
|
2222
|
-
}
|
|
2223
|
-
|
|
2224
|
-
type SlackFlows = 'authorize';
|
|
2225
|
-
type SlackFlowContext<TAction extends SlackFlows> = TAction extends 'authorize' ? SlackAuthorizeFlowCustomContext : never;
|
|
2226
|
-
type SlackFlowResult<TAction extends SlackFlows> = TAction extends 'authorize' ? SlackAuthorizeFlowResult : never;
|
|
2227
|
-
|
|
2228
|
-
declare enum SlackEventNames {
|
|
2229
|
-
ChannelNewMessagePosted = "channel_new_message_posted",
|
|
2230
|
-
MemberNewMention = "member_new_mention"
|
|
2231
|
-
}
|
|
2232
|
-
declare const slackEventsZods: {
|
|
2233
|
-
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
2234
|
-
eventName: z.ZodNativeEnum<typeof SlackEventNames>;
|
|
2235
|
-
events: {
|
|
2236
|
-
channelNewMessagePosted: z.ZodObject<{
|
|
2237
|
-
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
2238
|
-
channelId: z.ZodString;
|
|
2239
|
-
}, "strip", z.ZodTypeAny, {
|
|
2240
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2241
|
-
channelId: string;
|
|
2242
|
-
}, {
|
|
2243
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2244
|
-
channelId: string;
|
|
2245
|
-
}>;
|
|
2246
|
-
memberNewMention: z.ZodObject<{
|
|
2247
|
-
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
2248
|
-
userId: z.ZodString;
|
|
2249
|
-
}, "strip", z.ZodTypeAny, {
|
|
2250
|
-
name: SlackEventNames.MemberNewMention;
|
|
2251
|
-
userId: string;
|
|
2252
|
-
}, {
|
|
2253
|
-
name: SlackEventNames.MemberNewMention;
|
|
2254
|
-
userId: string;
|
|
2255
|
-
}>;
|
|
2256
|
-
};
|
|
2257
|
-
readonly event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2258
|
-
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
2259
|
-
channelId: z.ZodString;
|
|
2260
|
-
}, "strip", z.ZodTypeAny, {
|
|
2261
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2262
|
-
channelId: string;
|
|
2263
|
-
}, {
|
|
2264
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2265
|
-
channelId: string;
|
|
2266
|
-
}>, z.ZodObject<{
|
|
2267
|
-
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
2268
|
-
userId: z.ZodString;
|
|
2269
|
-
}, "strip", z.ZodTypeAny, {
|
|
2270
|
-
name: SlackEventNames.MemberNewMention;
|
|
2271
|
-
userId: string;
|
|
2272
|
-
}, {
|
|
2273
|
-
name: SlackEventNames.MemberNewMention;
|
|
2274
|
-
userId: string;
|
|
2275
|
-
}>]>;
|
|
2276
|
-
readonly source: z.ZodObject<{
|
|
2277
|
-
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
2278
|
-
sourceKey: z.ZodString;
|
|
2279
|
-
}, "strip", z.ZodTypeAny, {
|
|
2280
|
-
sourceName: "apps" | "workflows";
|
|
2281
|
-
sourceKey: string;
|
|
2282
|
-
}, {
|
|
2283
|
-
sourceName: "apps" | "workflows";
|
|
2284
|
-
sourceKey: string;
|
|
2285
|
-
}>;
|
|
2286
|
-
readonly subscribe: z.ZodIntersection<z.ZodObject<{
|
|
2287
|
-
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
2288
|
-
sourceKey: z.ZodString;
|
|
2289
|
-
}, "strip", z.ZodTypeAny, {
|
|
2290
|
-
sourceName: "apps" | "workflows";
|
|
2291
|
-
sourceKey: string;
|
|
2292
|
-
}, {
|
|
2293
|
-
sourceName: "apps" | "workflows";
|
|
2294
|
-
sourceKey: string;
|
|
2295
|
-
}>, z.ZodObject<{
|
|
2296
|
-
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2297
|
-
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
2298
|
-
channelId: z.ZodString;
|
|
2299
|
-
}, "strip", z.ZodTypeAny, {
|
|
2300
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2301
|
-
channelId: string;
|
|
2302
|
-
}, {
|
|
2303
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2304
|
-
channelId: string;
|
|
2305
|
-
}>, z.ZodObject<{
|
|
2306
|
-
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
2307
|
-
userId: z.ZodString;
|
|
2308
|
-
}, "strip", z.ZodTypeAny, {
|
|
2309
|
-
name: SlackEventNames.MemberNewMention;
|
|
2310
|
-
userId: string;
|
|
2311
|
-
}, {
|
|
2312
|
-
name: SlackEventNames.MemberNewMention;
|
|
2313
|
-
userId: string;
|
|
2314
|
-
}>]>;
|
|
2315
|
-
callback: z.ZodString;
|
|
2316
|
-
}, "strip", z.ZodTypeAny, {
|
|
2317
|
-
event: {
|
|
2318
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2319
|
-
channelId: string;
|
|
2320
|
-
} | {
|
|
2321
|
-
name: SlackEventNames.MemberNewMention;
|
|
2322
|
-
userId: string;
|
|
2323
|
-
};
|
|
2324
|
-
callback: string;
|
|
2325
|
-
}, {
|
|
2326
|
-
event: {
|
|
2327
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2328
|
-
channelId: string;
|
|
2329
|
-
} | {
|
|
2330
|
-
name: SlackEventNames.MemberNewMention;
|
|
2331
|
-
userId: string;
|
|
2332
|
-
};
|
|
2333
|
-
callback: string;
|
|
2334
|
-
}>>;
|
|
2335
|
-
readonly subscribeContent: z.ZodObject<{
|
|
2336
|
-
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
2337
|
-
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2338
|
-
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
2339
|
-
channelId: z.ZodString;
|
|
2340
|
-
}, "strip", z.ZodTypeAny, {
|
|
2341
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2342
|
-
channelId: string;
|
|
2343
|
-
}, {
|
|
2344
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2345
|
-
channelId: string;
|
|
2346
|
-
}>, z.ZodObject<{
|
|
2347
|
-
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
2348
|
-
userId: z.ZodString;
|
|
2349
|
-
}, "strip", z.ZodTypeAny, {
|
|
2350
|
-
name: SlackEventNames.MemberNewMention;
|
|
2351
|
-
userId: string;
|
|
2352
|
-
}, {
|
|
2353
|
-
name: SlackEventNames.MemberNewMention;
|
|
2354
|
-
userId: string;
|
|
2355
|
-
}>]>;
|
|
2356
|
-
callback: z.ZodString;
|
|
2357
|
-
}, "strip", z.ZodTypeAny, {
|
|
2358
|
-
event: {
|
|
2359
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2360
|
-
channelId: string;
|
|
2361
|
-
} | {
|
|
2362
|
-
name: SlackEventNames.MemberNewMention;
|
|
2363
|
-
userId: string;
|
|
2364
|
-
};
|
|
2365
|
-
callback: string;
|
|
2366
|
-
provider: IntegrationNames.Slack;
|
|
2367
|
-
}, {
|
|
2368
|
-
event: {
|
|
2369
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2370
|
-
channelId: string;
|
|
2371
|
-
} | {
|
|
2372
|
-
name: SlackEventNames.MemberNewMention;
|
|
2373
|
-
userId: string;
|
|
2374
|
-
};
|
|
2375
|
-
callback: string;
|
|
2376
|
-
provider: IntegrationNames.Slack;
|
|
2377
|
-
}>;
|
|
2378
|
-
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
2379
|
-
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
2380
|
-
sourceKey: z.ZodString;
|
|
2381
|
-
}, "strip", z.ZodTypeAny, {
|
|
2382
|
-
sourceName: "apps" | "workflows";
|
|
2383
|
-
sourceKey: string;
|
|
2384
|
-
}, {
|
|
2385
|
-
sourceName: "apps" | "workflows";
|
|
2386
|
-
sourceKey: string;
|
|
2387
|
-
}>, z.ZodObject<{
|
|
2388
|
-
event: z.ZodObject<{
|
|
2389
|
-
name: z.ZodNativeEnum<typeof SlackEventNames>;
|
|
2390
|
-
}, "strip", z.ZodTypeAny, {
|
|
2391
|
-
name: SlackEventNames;
|
|
2392
|
-
}, {
|
|
2393
|
-
name: SlackEventNames;
|
|
2394
|
-
}>;
|
|
2395
|
-
}, "strip", z.ZodTypeAny, {
|
|
2396
|
-
event: {
|
|
2397
|
-
name: SlackEventNames;
|
|
2398
|
-
};
|
|
2399
|
-
}, {
|
|
2400
|
-
event: {
|
|
2401
|
-
name: SlackEventNames;
|
|
2402
|
-
};
|
|
2403
|
-
}>>;
|
|
2404
|
-
readonly unsubscribeContent: z.ZodObject<{
|
|
2405
|
-
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
2406
|
-
event: z.ZodObject<{
|
|
2407
|
-
name: z.ZodNativeEnum<typeof SlackEventNames>;
|
|
2408
|
-
}, "strip", z.ZodTypeAny, {
|
|
2409
|
-
name: SlackEventNames;
|
|
2410
|
-
}, {
|
|
2411
|
-
name: SlackEventNames;
|
|
2412
|
-
}>;
|
|
2413
|
-
}, "strip", z.ZodTypeAny, {
|
|
2414
|
-
event: {
|
|
2415
|
-
name: SlackEventNames;
|
|
2416
|
-
};
|
|
2417
|
-
provider: IntegrationNames.Slack;
|
|
2418
|
-
}, {
|
|
2419
|
-
event: {
|
|
2420
|
-
name: SlackEventNames;
|
|
2421
|
-
};
|
|
2422
|
-
provider: IntegrationNames.Slack;
|
|
2423
|
-
}>;
|
|
2424
|
-
};
|
|
2425
|
-
type SlackEvent = z.infer<typeof slackEventsZods.event>;
|
|
2426
|
-
type SubscribeToSlackEventPayload = z.infer<typeof slackEventsZods.subscribe>;
|
|
2427
|
-
type UnsubscribeFromSlackEventPayload = z.infer<typeof slackEventsZods.unsubscribe>;
|
|
2428
|
-
|
|
2429
|
-
interface BigCommerceAuthorizeActionContext {
|
|
2430
|
-
shop: string;
|
|
2431
|
-
}
|
|
2432
|
-
interface BigCommerceAuthorizeActionResult {
|
|
2433
|
-
shop: string;
|
|
2434
|
-
token: string;
|
|
2435
|
-
}
|
|
2436
|
-
type BigCommerceAuthorizeFlowCustomContext = ({
|
|
2437
|
-
credentialId: undefined;
|
|
2438
|
-
} & BigCommerceAuthorizeActionContext) | {
|
|
2439
|
-
credentialId: string;
|
|
2440
|
-
};
|
|
2441
|
-
type BigCommerceAuthorizeFlowContext = BigCommerceAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
2442
|
-
interface BigCommerceAuthorizeFlowResult {
|
|
2443
|
-
shop: string;
|
|
2444
|
-
token: string;
|
|
2445
|
-
}
|
|
2446
|
-
|
|
2447
|
-
type BigCommerceFlows = 'authorize';
|
|
2448
|
-
type BigCommerceFlowContext<TAction extends BigCommerceFlows> = TAction extends 'authorize' ? BigCommerceAuthorizeFlowCustomContext : never;
|
|
2449
|
-
type BigCommerceFlowResult<TAction extends BigCommerceFlows> = TAction extends 'authorize' ? BigCommerceAuthorizeFlowResult : never;
|
|
2450
|
-
|
|
2451
|
-
declare enum BigCommerceEventNames {
|
|
2452
|
-
CartCreated = "cart_created",
|
|
2453
|
-
CartUpdated = "cart_updated",
|
|
2454
|
-
OrderCreated = "order_created",
|
|
2455
|
-
OrderUpdated = "order_updated",
|
|
2456
|
-
ProductCreated = "product_created",
|
|
2457
|
-
ProductUpdated = "product_updated"
|
|
2458
|
-
}
|
|
2459
|
-
declare const bigcommerceEventsZods: {
|
|
2460
|
-
provider: z.ZodLiteral<IntegrationNames.BigCommerce>;
|
|
2461
|
-
eventName: z.ZodNativeEnum<typeof BigCommerceEventNames>;
|
|
2462
|
-
events: {
|
|
2463
|
-
cartCreated: z.ZodObject<{
|
|
2464
|
-
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
2465
|
-
}, "strip", z.ZodTypeAny, {
|
|
2466
|
-
name: BigCommerceEventNames.CartCreated;
|
|
2467
|
-
}, {
|
|
2468
|
-
name: BigCommerceEventNames.CartCreated;
|
|
2469
|
-
}>;
|
|
2470
|
-
cartUpdated: z.ZodObject<{
|
|
2471
|
-
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
2472
|
-
}, "strip", z.ZodTypeAny, {
|
|
2473
|
-
name: BigCommerceEventNames.CartUpdated;
|
|
2474
|
-
}, {
|
|
2475
|
-
name: BigCommerceEventNames.CartUpdated;
|
|
2476
|
-
}>;
|
|
2477
|
-
orderCreated: z.ZodObject<{
|
|
2478
|
-
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
2479
|
-
}, "strip", z.ZodTypeAny, {
|
|
2480
|
-
name: BigCommerceEventNames.OrderCreated;
|
|
2481
|
-
}, {
|
|
2482
|
-
name: BigCommerceEventNames.OrderCreated;
|
|
2483
|
-
}>;
|
|
2484
|
-
orderUpdated: z.ZodObject<{
|
|
2485
|
-
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
2486
|
-
}, "strip", z.ZodTypeAny, {
|
|
2487
|
-
name: BigCommerceEventNames.OrderUpdated;
|
|
2488
|
-
}, {
|
|
2489
|
-
name: BigCommerceEventNames.OrderUpdated;
|
|
2490
|
-
}>;
|
|
2491
|
-
productCreated: z.ZodObject<{
|
|
2492
|
-
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
2493
|
-
}, "strip", z.ZodTypeAny, {
|
|
2494
|
-
name: BigCommerceEventNames.ProductCreated;
|
|
2495
|
-
}, {
|
|
2496
|
-
name: BigCommerceEventNames.ProductCreated;
|
|
2497
|
-
}>;
|
|
2498
|
-
productUpdated: z.ZodObject<{
|
|
2499
|
-
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
2500
|
-
}, "strip", z.ZodTypeAny, {
|
|
2501
|
-
name: BigCommerceEventNames.ProductUpdated;
|
|
2502
|
-
}, {
|
|
2503
|
-
name: BigCommerceEventNames.ProductUpdated;
|
|
2504
|
-
}>;
|
|
1944
|
+
declare const bigcommerceEventsZods: {
|
|
1945
|
+
provider: z.ZodLiteral<IntegrationNames.BigCommerce>;
|
|
1946
|
+
eventName: z.ZodNativeEnum<typeof BigCommerceEventNames>;
|
|
1947
|
+
events: {
|
|
1948
|
+
cartCreated: z.ZodObject<{
|
|
1949
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
1950
|
+
}, "strip", z.ZodTypeAny, {
|
|
1951
|
+
name: BigCommerceEventNames.CartCreated;
|
|
1952
|
+
}, {
|
|
1953
|
+
name: BigCommerceEventNames.CartCreated;
|
|
1954
|
+
}>;
|
|
1955
|
+
cartUpdated: z.ZodObject<{
|
|
1956
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
1957
|
+
}, "strip", z.ZodTypeAny, {
|
|
1958
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
1959
|
+
}, {
|
|
1960
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
1961
|
+
}>;
|
|
1962
|
+
orderCreated: z.ZodObject<{
|
|
1963
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
1964
|
+
}, "strip", z.ZodTypeAny, {
|
|
1965
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
1966
|
+
}, {
|
|
1967
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
1968
|
+
}>;
|
|
1969
|
+
orderUpdated: z.ZodObject<{
|
|
1970
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
1971
|
+
}, "strip", z.ZodTypeAny, {
|
|
1972
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
1973
|
+
}, {
|
|
1974
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
1975
|
+
}>;
|
|
1976
|
+
productCreated: z.ZodObject<{
|
|
1977
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
1978
|
+
}, "strip", z.ZodTypeAny, {
|
|
1979
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
1980
|
+
}, {
|
|
1981
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
1982
|
+
}>;
|
|
1983
|
+
productUpdated: z.ZodObject<{
|
|
1984
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
1985
|
+
}, "strip", z.ZodTypeAny, {
|
|
1986
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
1987
|
+
}, {
|
|
1988
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
1989
|
+
}>;
|
|
2505
1990
|
};
|
|
2506
1991
|
readonly event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2507
1992
|
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
@@ -2712,39 +2197,139 @@ declare const bigcommerceEventsZods: {
|
|
|
2712
2197
|
sourceName: "apps" | "workflows";
|
|
2713
2198
|
sourceKey: string;
|
|
2714
2199
|
}>, z.ZodObject<{
|
|
2715
|
-
event: z.ZodObject<{
|
|
2716
|
-
name: z.
|
|
2200
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2201
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
2717
2202
|
}, "strip", z.ZodTypeAny, {
|
|
2718
|
-
name: BigCommerceEventNames;
|
|
2203
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2719
2204
|
}, {
|
|
2720
|
-
name: BigCommerceEventNames;
|
|
2721
|
-
}
|
|
2205
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2206
|
+
}>, z.ZodObject<{
|
|
2207
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
2208
|
+
}, "strip", z.ZodTypeAny, {
|
|
2209
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2210
|
+
}, {
|
|
2211
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2212
|
+
}>, z.ZodObject<{
|
|
2213
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
2214
|
+
}, "strip", z.ZodTypeAny, {
|
|
2215
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2216
|
+
}, {
|
|
2217
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2218
|
+
}>, z.ZodObject<{
|
|
2219
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
2220
|
+
}, "strip", z.ZodTypeAny, {
|
|
2221
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2222
|
+
}, {
|
|
2223
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2224
|
+
}>, z.ZodObject<{
|
|
2225
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
2226
|
+
}, "strip", z.ZodTypeAny, {
|
|
2227
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2228
|
+
}, {
|
|
2229
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2230
|
+
}>, z.ZodObject<{
|
|
2231
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
2232
|
+
}, "strip", z.ZodTypeAny, {
|
|
2233
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2234
|
+
}, {
|
|
2235
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2236
|
+
}>]>;
|
|
2722
2237
|
}, "strip", z.ZodTypeAny, {
|
|
2723
2238
|
event: {
|
|
2724
|
-
name: BigCommerceEventNames;
|
|
2239
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2240
|
+
} | {
|
|
2241
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2242
|
+
} | {
|
|
2243
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2244
|
+
} | {
|
|
2245
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2246
|
+
} | {
|
|
2247
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2248
|
+
} | {
|
|
2249
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2725
2250
|
};
|
|
2726
2251
|
}, {
|
|
2727
2252
|
event: {
|
|
2728
|
-
name: BigCommerceEventNames;
|
|
2253
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2254
|
+
} | {
|
|
2255
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2256
|
+
} | {
|
|
2257
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2258
|
+
} | {
|
|
2259
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2260
|
+
} | {
|
|
2261
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2262
|
+
} | {
|
|
2263
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2729
2264
|
};
|
|
2730
2265
|
}>>;
|
|
2731
2266
|
readonly unsubscribeContent: z.ZodObject<{
|
|
2732
2267
|
provider: z.ZodLiteral<IntegrationNames.BigCommerce>;
|
|
2733
|
-
event: z.ZodObject<{
|
|
2734
|
-
name: z.
|
|
2268
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2269
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
2735
2270
|
}, "strip", z.ZodTypeAny, {
|
|
2736
|
-
name: BigCommerceEventNames;
|
|
2271
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2737
2272
|
}, {
|
|
2738
|
-
name: BigCommerceEventNames;
|
|
2739
|
-
}
|
|
2273
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2274
|
+
}>, z.ZodObject<{
|
|
2275
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
2276
|
+
}, "strip", z.ZodTypeAny, {
|
|
2277
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2278
|
+
}, {
|
|
2279
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2280
|
+
}>, z.ZodObject<{
|
|
2281
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
2282
|
+
}, "strip", z.ZodTypeAny, {
|
|
2283
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2284
|
+
}, {
|
|
2285
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2286
|
+
}>, z.ZodObject<{
|
|
2287
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
2288
|
+
}, "strip", z.ZodTypeAny, {
|
|
2289
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2290
|
+
}, {
|
|
2291
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2292
|
+
}>, z.ZodObject<{
|
|
2293
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
2294
|
+
}, "strip", z.ZodTypeAny, {
|
|
2295
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2296
|
+
}, {
|
|
2297
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2298
|
+
}>, z.ZodObject<{
|
|
2299
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
2300
|
+
}, "strip", z.ZodTypeAny, {
|
|
2301
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2302
|
+
}, {
|
|
2303
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2304
|
+
}>]>;
|
|
2740
2305
|
}, "strip", z.ZodTypeAny, {
|
|
2741
2306
|
event: {
|
|
2742
|
-
name: BigCommerceEventNames;
|
|
2307
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2308
|
+
} | {
|
|
2309
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2310
|
+
} | {
|
|
2311
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2312
|
+
} | {
|
|
2313
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2314
|
+
} | {
|
|
2315
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2316
|
+
} | {
|
|
2317
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2743
2318
|
};
|
|
2744
2319
|
provider: IntegrationNames.BigCommerce;
|
|
2745
2320
|
}, {
|
|
2746
2321
|
event: {
|
|
2747
|
-
name: BigCommerceEventNames;
|
|
2322
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2323
|
+
} | {
|
|
2324
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2325
|
+
} | {
|
|
2326
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2327
|
+
} | {
|
|
2328
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2329
|
+
} | {
|
|
2330
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2331
|
+
} | {
|
|
2332
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2748
2333
|
};
|
|
2749
2334
|
provider: IntegrationNames.BigCommerce;
|
|
2750
2335
|
}>;
|
|
@@ -2896,39 +2481,59 @@ declare const hubspotEventsZods: {
|
|
|
2896
2481
|
sourceName: "apps" | "workflows";
|
|
2897
2482
|
sourceKey: string;
|
|
2898
2483
|
}>, z.ZodObject<{
|
|
2899
|
-
event: z.ZodObject<{
|
|
2900
|
-
name: z.
|
|
2484
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2485
|
+
name: z.ZodLiteral<HubspotEventNames.ContactCreated>;
|
|
2486
|
+
}, "strip", z.ZodTypeAny, {
|
|
2487
|
+
name: HubspotEventNames.ContactCreated;
|
|
2488
|
+
}, {
|
|
2489
|
+
name: HubspotEventNames.ContactCreated;
|
|
2490
|
+
}>, z.ZodObject<{
|
|
2491
|
+
name: z.ZodLiteral<HubspotEventNames.ContactDeleted>;
|
|
2901
2492
|
}, "strip", z.ZodTypeAny, {
|
|
2902
|
-
name: HubspotEventNames;
|
|
2493
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2903
2494
|
}, {
|
|
2904
|
-
name: HubspotEventNames;
|
|
2905
|
-
}>;
|
|
2495
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2496
|
+
}>]>;
|
|
2906
2497
|
}, "strip", z.ZodTypeAny, {
|
|
2907
2498
|
event: {
|
|
2908
|
-
name: HubspotEventNames;
|
|
2499
|
+
name: HubspotEventNames.ContactCreated;
|
|
2500
|
+
} | {
|
|
2501
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2909
2502
|
};
|
|
2910
2503
|
}, {
|
|
2911
2504
|
event: {
|
|
2912
|
-
name: HubspotEventNames;
|
|
2505
|
+
name: HubspotEventNames.ContactCreated;
|
|
2506
|
+
} | {
|
|
2507
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2913
2508
|
};
|
|
2914
2509
|
}>>;
|
|
2915
2510
|
readonly unsubscribeContent: z.ZodObject<{
|
|
2916
2511
|
provider: z.ZodLiteral<IntegrationNames.HubSpot>;
|
|
2917
|
-
event: z.ZodObject<{
|
|
2918
|
-
name: z.
|
|
2512
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2513
|
+
name: z.ZodLiteral<HubspotEventNames.ContactCreated>;
|
|
2919
2514
|
}, "strip", z.ZodTypeAny, {
|
|
2920
|
-
name: HubspotEventNames;
|
|
2515
|
+
name: HubspotEventNames.ContactCreated;
|
|
2921
2516
|
}, {
|
|
2922
|
-
name: HubspotEventNames;
|
|
2923
|
-
}
|
|
2517
|
+
name: HubspotEventNames.ContactCreated;
|
|
2518
|
+
}>, z.ZodObject<{
|
|
2519
|
+
name: z.ZodLiteral<HubspotEventNames.ContactDeleted>;
|
|
2520
|
+
}, "strip", z.ZodTypeAny, {
|
|
2521
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2522
|
+
}, {
|
|
2523
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2524
|
+
}>]>;
|
|
2924
2525
|
}, "strip", z.ZodTypeAny, {
|
|
2925
2526
|
event: {
|
|
2926
|
-
name: HubspotEventNames;
|
|
2527
|
+
name: HubspotEventNames.ContactCreated;
|
|
2528
|
+
} | {
|
|
2529
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2927
2530
|
};
|
|
2928
2531
|
provider: IntegrationNames.HubSpot;
|
|
2929
2532
|
}, {
|
|
2930
2533
|
event: {
|
|
2931
|
-
name: HubspotEventNames;
|
|
2534
|
+
name: HubspotEventNames.ContactCreated;
|
|
2535
|
+
} | {
|
|
2536
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2932
2537
|
};
|
|
2933
2538
|
provider: IntegrationNames.HubSpot;
|
|
2934
2539
|
}>;
|
|
@@ -3137,25 +2742,40 @@ declare const mailchimpEventsZods: {
|
|
|
3137
2742
|
}>>;
|
|
3138
2743
|
readonly unsubscribeContent: z.ZodObject<{
|
|
3139
2744
|
provider: z.ZodLiteral<IntegrationNames.Mailchimp>;
|
|
3140
|
-
event: z.ZodObject<{
|
|
2745
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3141
2746
|
listId: z.ZodString;
|
|
3142
|
-
name: z.
|
|
2747
|
+
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
3143
2748
|
}, "strip", z.ZodTypeAny, {
|
|
3144
|
-
name: MailchimpEventNames;
|
|
2749
|
+
name: MailchimpEventNames.Subscribed;
|
|
3145
2750
|
listId: string;
|
|
3146
2751
|
}, {
|
|
3147
|
-
name: MailchimpEventNames;
|
|
2752
|
+
name: MailchimpEventNames.Subscribed;
|
|
3148
2753
|
listId: string;
|
|
3149
|
-
}
|
|
2754
|
+
}>, z.ZodObject<{
|
|
2755
|
+
listId: z.ZodString;
|
|
2756
|
+
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
2757
|
+
}, "strip", z.ZodTypeAny, {
|
|
2758
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2759
|
+
listId: string;
|
|
2760
|
+
}, {
|
|
2761
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2762
|
+
listId: string;
|
|
2763
|
+
}>]>;
|
|
3150
2764
|
}, "strip", z.ZodTypeAny, {
|
|
3151
2765
|
event: {
|
|
3152
|
-
name: MailchimpEventNames;
|
|
2766
|
+
name: MailchimpEventNames.Subscribed;
|
|
2767
|
+
listId: string;
|
|
2768
|
+
} | {
|
|
2769
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
3153
2770
|
listId: string;
|
|
3154
2771
|
};
|
|
3155
2772
|
provider: IntegrationNames.Mailchimp;
|
|
3156
2773
|
}, {
|
|
3157
2774
|
event: {
|
|
3158
|
-
name: MailchimpEventNames;
|
|
2775
|
+
name: MailchimpEventNames.Subscribed;
|
|
2776
|
+
listId: string;
|
|
2777
|
+
} | {
|
|
2778
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
3159
2779
|
listId: string;
|
|
3160
2780
|
};
|
|
3161
2781
|
provider: IntegrationNames.Mailchimp;
|
|
@@ -3167,6 +2787,7 @@ type UnsubscribeFromMailchimpEventPayload = z.infer<typeof mailchimpEventsZods.u
|
|
|
3167
2787
|
|
|
3168
2788
|
interface ShopifyAuthorizeActionContext {
|
|
3169
2789
|
shop: string;
|
|
2790
|
+
source?: 'marketplace';
|
|
3170
2791
|
}
|
|
3171
2792
|
interface ShopifyAuthorizeActionResult {
|
|
3172
2793
|
shop: string;
|
|
@@ -3299,13 +2920,13 @@ declare const shopifyEventsZods: {
|
|
|
3299
2920
|
}>>;
|
|
3300
2921
|
readonly unsubscribeContent: z.ZodObject<{
|
|
3301
2922
|
provider: z.ZodLiteral<IntegrationNames.Shopify>;
|
|
3302
|
-
event: z.ZodObject<{
|
|
3303
|
-
name: z.
|
|
2923
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2924
|
+
name: z.ZodLiteral<ShopifyEventNames>;
|
|
3304
2925
|
}, "strip", z.ZodTypeAny, {
|
|
3305
2926
|
name: ShopifyEventNames;
|
|
3306
2927
|
}, {
|
|
3307
2928
|
name: ShopifyEventNames;
|
|
3308
|
-
}>;
|
|
2929
|
+
}>]>;
|
|
3309
2930
|
}, "strip", z.ZodTypeAny, {
|
|
3310
2931
|
event: {
|
|
3311
2932
|
name: ShopifyEventNames;
|
|
@@ -3467,7 +3088,199 @@ declare const textHelpDeskEventsZods: {
|
|
|
3467
3088
|
sourceName: "apps" | "workflows";
|
|
3468
3089
|
sourceKey: string;
|
|
3469
3090
|
}>;
|
|
3470
|
-
readonly subscribe: z.ZodIntersection<z.ZodObject<{
|
|
3091
|
+
readonly subscribe: z.ZodIntersection<z.ZodObject<{
|
|
3092
|
+
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
3093
|
+
sourceKey: z.ZodString;
|
|
3094
|
+
}, "strip", z.ZodTypeAny, {
|
|
3095
|
+
sourceName: "apps" | "workflows";
|
|
3096
|
+
sourceKey: string;
|
|
3097
|
+
}, {
|
|
3098
|
+
sourceName: "apps" | "workflows";
|
|
3099
|
+
sourceKey: string;
|
|
3100
|
+
}>, z.ZodObject<{
|
|
3101
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3102
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketCreated>;
|
|
3103
|
+
}, "strip", z.ZodTypeAny, {
|
|
3104
|
+
name: TextHelpDeskEventNames.TicketCreated;
|
|
3105
|
+
}, {
|
|
3106
|
+
name: TextHelpDeskEventNames.TicketCreated;
|
|
3107
|
+
}>, z.ZodObject<{
|
|
3108
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketUpdated>;
|
|
3109
|
+
}, "strip", z.ZodTypeAny, {
|
|
3110
|
+
name: TextHelpDeskEventNames.TicketUpdated;
|
|
3111
|
+
}, {
|
|
3112
|
+
name: TextHelpDeskEventNames.TicketUpdated;
|
|
3113
|
+
}>, z.ZodObject<{
|
|
3114
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketStatusChanged>;
|
|
3115
|
+
}, "strip", z.ZodTypeAny, {
|
|
3116
|
+
name: TextHelpDeskEventNames.TicketStatusChanged;
|
|
3117
|
+
}, {
|
|
3118
|
+
name: TextHelpDeskEventNames.TicketStatusChanged;
|
|
3119
|
+
}>, z.ZodObject<{
|
|
3120
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketPriorityChanged>;
|
|
3121
|
+
}, "strip", z.ZodTypeAny, {
|
|
3122
|
+
name: TextHelpDeskEventNames.TicketPriorityChanged;
|
|
3123
|
+
}, {
|
|
3124
|
+
name: TextHelpDeskEventNames.TicketPriorityChanged;
|
|
3125
|
+
}>, z.ZodObject<{
|
|
3126
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketTagsChanged>;
|
|
3127
|
+
}, "strip", z.ZodTypeAny, {
|
|
3128
|
+
name: TextHelpDeskEventNames.TicketTagsChanged;
|
|
3129
|
+
}, {
|
|
3130
|
+
name: TextHelpDeskEventNames.TicketTagsChanged;
|
|
3131
|
+
}>, z.ZodObject<{
|
|
3132
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketFollowersChanged>;
|
|
3133
|
+
}, "strip", z.ZodTypeAny, {
|
|
3134
|
+
name: TextHelpDeskEventNames.TicketFollowersChanged;
|
|
3135
|
+
}, {
|
|
3136
|
+
name: TextHelpDeskEventNames.TicketFollowersChanged;
|
|
3137
|
+
}>, z.ZodObject<{
|
|
3138
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketAssignmentChanged>;
|
|
3139
|
+
}, "strip", z.ZodTypeAny, {
|
|
3140
|
+
name: TextHelpDeskEventNames.TicketAssignmentChanged;
|
|
3141
|
+
}, {
|
|
3142
|
+
name: TextHelpDeskEventNames.TicketAssignmentChanged;
|
|
3143
|
+
}>, z.ZodObject<{
|
|
3144
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketMessageAdded>;
|
|
3145
|
+
}, "strip", z.ZodTypeAny, {
|
|
3146
|
+
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3147
|
+
}, {
|
|
3148
|
+
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3149
|
+
}>]>;
|
|
3150
|
+
callback: z.ZodString;
|
|
3151
|
+
}, "strip", z.ZodTypeAny, {
|
|
3152
|
+
event: {
|
|
3153
|
+
name: TextHelpDeskEventNames.TicketCreated;
|
|
3154
|
+
} | {
|
|
3155
|
+
name: TextHelpDeskEventNames.TicketUpdated;
|
|
3156
|
+
} | {
|
|
3157
|
+
name: TextHelpDeskEventNames.TicketStatusChanged;
|
|
3158
|
+
} | {
|
|
3159
|
+
name: TextHelpDeskEventNames.TicketPriorityChanged;
|
|
3160
|
+
} | {
|
|
3161
|
+
name: TextHelpDeskEventNames.TicketTagsChanged;
|
|
3162
|
+
} | {
|
|
3163
|
+
name: TextHelpDeskEventNames.TicketFollowersChanged;
|
|
3164
|
+
} | {
|
|
3165
|
+
name: TextHelpDeskEventNames.TicketAssignmentChanged;
|
|
3166
|
+
} | {
|
|
3167
|
+
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3168
|
+
};
|
|
3169
|
+
callback: string;
|
|
3170
|
+
}, {
|
|
3171
|
+
event: {
|
|
3172
|
+
name: TextHelpDeskEventNames.TicketCreated;
|
|
3173
|
+
} | {
|
|
3174
|
+
name: TextHelpDeskEventNames.TicketUpdated;
|
|
3175
|
+
} | {
|
|
3176
|
+
name: TextHelpDeskEventNames.TicketStatusChanged;
|
|
3177
|
+
} | {
|
|
3178
|
+
name: TextHelpDeskEventNames.TicketPriorityChanged;
|
|
3179
|
+
} | {
|
|
3180
|
+
name: TextHelpDeskEventNames.TicketTagsChanged;
|
|
3181
|
+
} | {
|
|
3182
|
+
name: TextHelpDeskEventNames.TicketFollowersChanged;
|
|
3183
|
+
} | {
|
|
3184
|
+
name: TextHelpDeskEventNames.TicketAssignmentChanged;
|
|
3185
|
+
} | {
|
|
3186
|
+
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3187
|
+
};
|
|
3188
|
+
callback: string;
|
|
3189
|
+
}>>;
|
|
3190
|
+
readonly subscribeContent: z.ZodObject<{
|
|
3191
|
+
provider: z.ZodLiteral<IntegrationNames.HelpDesk>;
|
|
3192
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3193
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketCreated>;
|
|
3194
|
+
}, "strip", z.ZodTypeAny, {
|
|
3195
|
+
name: TextHelpDeskEventNames.TicketCreated;
|
|
3196
|
+
}, {
|
|
3197
|
+
name: TextHelpDeskEventNames.TicketCreated;
|
|
3198
|
+
}>, z.ZodObject<{
|
|
3199
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketUpdated>;
|
|
3200
|
+
}, "strip", z.ZodTypeAny, {
|
|
3201
|
+
name: TextHelpDeskEventNames.TicketUpdated;
|
|
3202
|
+
}, {
|
|
3203
|
+
name: TextHelpDeskEventNames.TicketUpdated;
|
|
3204
|
+
}>, z.ZodObject<{
|
|
3205
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketStatusChanged>;
|
|
3206
|
+
}, "strip", z.ZodTypeAny, {
|
|
3207
|
+
name: TextHelpDeskEventNames.TicketStatusChanged;
|
|
3208
|
+
}, {
|
|
3209
|
+
name: TextHelpDeskEventNames.TicketStatusChanged;
|
|
3210
|
+
}>, z.ZodObject<{
|
|
3211
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketPriorityChanged>;
|
|
3212
|
+
}, "strip", z.ZodTypeAny, {
|
|
3213
|
+
name: TextHelpDeskEventNames.TicketPriorityChanged;
|
|
3214
|
+
}, {
|
|
3215
|
+
name: TextHelpDeskEventNames.TicketPriorityChanged;
|
|
3216
|
+
}>, z.ZodObject<{
|
|
3217
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketTagsChanged>;
|
|
3218
|
+
}, "strip", z.ZodTypeAny, {
|
|
3219
|
+
name: TextHelpDeskEventNames.TicketTagsChanged;
|
|
3220
|
+
}, {
|
|
3221
|
+
name: TextHelpDeskEventNames.TicketTagsChanged;
|
|
3222
|
+
}>, z.ZodObject<{
|
|
3223
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketFollowersChanged>;
|
|
3224
|
+
}, "strip", z.ZodTypeAny, {
|
|
3225
|
+
name: TextHelpDeskEventNames.TicketFollowersChanged;
|
|
3226
|
+
}, {
|
|
3227
|
+
name: TextHelpDeskEventNames.TicketFollowersChanged;
|
|
3228
|
+
}>, z.ZodObject<{
|
|
3229
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketAssignmentChanged>;
|
|
3230
|
+
}, "strip", z.ZodTypeAny, {
|
|
3231
|
+
name: TextHelpDeskEventNames.TicketAssignmentChanged;
|
|
3232
|
+
}, {
|
|
3233
|
+
name: TextHelpDeskEventNames.TicketAssignmentChanged;
|
|
3234
|
+
}>, z.ZodObject<{
|
|
3235
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketMessageAdded>;
|
|
3236
|
+
}, "strip", z.ZodTypeAny, {
|
|
3237
|
+
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3238
|
+
}, {
|
|
3239
|
+
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3240
|
+
}>]>;
|
|
3241
|
+
callback: z.ZodString;
|
|
3242
|
+
}, "strip", z.ZodTypeAny, {
|
|
3243
|
+
event: {
|
|
3244
|
+
name: TextHelpDeskEventNames.TicketCreated;
|
|
3245
|
+
} | {
|
|
3246
|
+
name: TextHelpDeskEventNames.TicketUpdated;
|
|
3247
|
+
} | {
|
|
3248
|
+
name: TextHelpDeskEventNames.TicketStatusChanged;
|
|
3249
|
+
} | {
|
|
3250
|
+
name: TextHelpDeskEventNames.TicketPriorityChanged;
|
|
3251
|
+
} | {
|
|
3252
|
+
name: TextHelpDeskEventNames.TicketTagsChanged;
|
|
3253
|
+
} | {
|
|
3254
|
+
name: TextHelpDeskEventNames.TicketFollowersChanged;
|
|
3255
|
+
} | {
|
|
3256
|
+
name: TextHelpDeskEventNames.TicketAssignmentChanged;
|
|
3257
|
+
} | {
|
|
3258
|
+
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3259
|
+
};
|
|
3260
|
+
callback: string;
|
|
3261
|
+
provider: IntegrationNames.HelpDesk;
|
|
3262
|
+
}, {
|
|
3263
|
+
event: {
|
|
3264
|
+
name: TextHelpDeskEventNames.TicketCreated;
|
|
3265
|
+
} | {
|
|
3266
|
+
name: TextHelpDeskEventNames.TicketUpdated;
|
|
3267
|
+
} | {
|
|
3268
|
+
name: TextHelpDeskEventNames.TicketStatusChanged;
|
|
3269
|
+
} | {
|
|
3270
|
+
name: TextHelpDeskEventNames.TicketPriorityChanged;
|
|
3271
|
+
} | {
|
|
3272
|
+
name: TextHelpDeskEventNames.TicketTagsChanged;
|
|
3273
|
+
} | {
|
|
3274
|
+
name: TextHelpDeskEventNames.TicketFollowersChanged;
|
|
3275
|
+
} | {
|
|
3276
|
+
name: TextHelpDeskEventNames.TicketAssignmentChanged;
|
|
3277
|
+
} | {
|
|
3278
|
+
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3279
|
+
};
|
|
3280
|
+
callback: string;
|
|
3281
|
+
provider: IntegrationNames.HelpDesk;
|
|
3282
|
+
}>;
|
|
3283
|
+
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
3471
3284
|
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
3472
3285
|
sourceKey: z.ZodString;
|
|
3473
3286
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3526,7 +3339,6 @@ declare const textHelpDeskEventsZods: {
|
|
|
3526
3339
|
}, {
|
|
3527
3340
|
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3528
3341
|
}>]>;
|
|
3529
|
-
callback: z.ZodString;
|
|
3530
3342
|
}, "strip", z.ZodTypeAny, {
|
|
3531
3343
|
event: {
|
|
3532
3344
|
name: TextHelpDeskEventNames.TicketCreated;
|
|
@@ -3545,7 +3357,6 @@ declare const textHelpDeskEventsZods: {
|
|
|
3545
3357
|
} | {
|
|
3546
3358
|
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3547
3359
|
};
|
|
3548
|
-
callback: string;
|
|
3549
3360
|
}, {
|
|
3550
3361
|
event: {
|
|
3551
3362
|
name: TextHelpDeskEventNames.TicketCreated;
|
|
@@ -3564,9 +3375,8 @@ declare const textHelpDeskEventsZods: {
|
|
|
3564
3375
|
} | {
|
|
3565
3376
|
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3566
3377
|
};
|
|
3567
|
-
callback: string;
|
|
3568
3378
|
}>>;
|
|
3569
|
-
readonly
|
|
3379
|
+
readonly unsubscribeContent: z.ZodObject<{
|
|
3570
3380
|
provider: z.ZodLiteral<IntegrationNames.HelpDesk>;
|
|
3571
3381
|
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3572
3382
|
name: z.ZodLiteral<TextHelpDeskEventNames.TicketCreated>;
|
|
@@ -3617,7 +3427,6 @@ declare const textHelpDeskEventsZods: {
|
|
|
3617
3427
|
}, {
|
|
3618
3428
|
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3619
3429
|
}>]>;
|
|
3620
|
-
callback: z.ZodString;
|
|
3621
3430
|
}, "strip", z.ZodTypeAny, {
|
|
3622
3431
|
event: {
|
|
3623
3432
|
name: TextHelpDeskEventNames.TicketCreated;
|
|
@@ -3636,7 +3445,6 @@ declare const textHelpDeskEventsZods: {
|
|
|
3636
3445
|
} | {
|
|
3637
3446
|
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3638
3447
|
};
|
|
3639
|
-
callback: string;
|
|
3640
3448
|
provider: IntegrationNames.HelpDesk;
|
|
3641
3449
|
}, {
|
|
3642
3450
|
event: {
|
|
@@ -3656,53 +3464,6 @@ declare const textHelpDeskEventsZods: {
|
|
|
3656
3464
|
} | {
|
|
3657
3465
|
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
3658
3466
|
};
|
|
3659
|
-
callback: string;
|
|
3660
|
-
provider: IntegrationNames.HelpDesk;
|
|
3661
|
-
}>;
|
|
3662
|
-
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
3663
|
-
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
3664
|
-
sourceKey: z.ZodString;
|
|
3665
|
-
}, "strip", z.ZodTypeAny, {
|
|
3666
|
-
sourceName: "apps" | "workflows";
|
|
3667
|
-
sourceKey: string;
|
|
3668
|
-
}, {
|
|
3669
|
-
sourceName: "apps" | "workflows";
|
|
3670
|
-
sourceKey: string;
|
|
3671
|
-
}>, z.ZodObject<{
|
|
3672
|
-
event: z.ZodObject<{
|
|
3673
|
-
name: z.ZodNativeEnum<typeof TextHelpDeskEventNames>;
|
|
3674
|
-
}, "strip", z.ZodTypeAny, {
|
|
3675
|
-
name: TextHelpDeskEventNames;
|
|
3676
|
-
}, {
|
|
3677
|
-
name: TextHelpDeskEventNames;
|
|
3678
|
-
}>;
|
|
3679
|
-
}, "strip", z.ZodTypeAny, {
|
|
3680
|
-
event: {
|
|
3681
|
-
name: TextHelpDeskEventNames;
|
|
3682
|
-
};
|
|
3683
|
-
}, {
|
|
3684
|
-
event: {
|
|
3685
|
-
name: TextHelpDeskEventNames;
|
|
3686
|
-
};
|
|
3687
|
-
}>>;
|
|
3688
|
-
readonly unsubscribeContent: z.ZodObject<{
|
|
3689
|
-
provider: z.ZodLiteral<IntegrationNames.HelpDesk>;
|
|
3690
|
-
event: z.ZodObject<{
|
|
3691
|
-
name: z.ZodNativeEnum<typeof TextHelpDeskEventNames>;
|
|
3692
|
-
}, "strip", z.ZodTypeAny, {
|
|
3693
|
-
name: TextHelpDeskEventNames;
|
|
3694
|
-
}, {
|
|
3695
|
-
name: TextHelpDeskEventNames;
|
|
3696
|
-
}>;
|
|
3697
|
-
}, "strip", z.ZodTypeAny, {
|
|
3698
|
-
event: {
|
|
3699
|
-
name: TextHelpDeskEventNames;
|
|
3700
|
-
};
|
|
3701
|
-
provider: IntegrationNames.HelpDesk;
|
|
3702
|
-
}, {
|
|
3703
|
-
event: {
|
|
3704
|
-
name: TextHelpDeskEventNames;
|
|
3705
|
-
};
|
|
3706
3467
|
provider: IntegrationNames.HelpDesk;
|
|
3707
3468
|
}>;
|
|
3708
3469
|
};
|
|
@@ -4172,39 +3933,259 @@ declare const textLivechatEventsZods: {
|
|
|
4172
3933
|
sourceName: "apps" | "workflows";
|
|
4173
3934
|
sourceKey: string;
|
|
4174
3935
|
}>, z.ZodObject<{
|
|
4175
|
-
event: z.ZodObject<{
|
|
4176
|
-
name: z.
|
|
3936
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3937
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
|
|
3938
|
+
targetAgentId: z.ZodOptional<z.ZodString>;
|
|
4177
3939
|
}, "strip", z.ZodTypeAny, {
|
|
4178
|
-
name: TextLivechatEventNames;
|
|
3940
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3941
|
+
targetAgentId?: string | undefined;
|
|
4179
3942
|
}, {
|
|
4180
|
-
name: TextLivechatEventNames;
|
|
4181
|
-
|
|
3943
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3944
|
+
targetAgentId?: string | undefined;
|
|
3945
|
+
}>, z.ZodObject<{
|
|
3946
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
|
|
3947
|
+
}, "strip", z.ZodTypeAny, {
|
|
3948
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3949
|
+
}, {
|
|
3950
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3951
|
+
}>, z.ZodObject<{
|
|
3952
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTransferred>;
|
|
3953
|
+
}, "strip", z.ZodTypeAny, {
|
|
3954
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3955
|
+
}, {
|
|
3956
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3957
|
+
}>, z.ZodObject<{
|
|
3958
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTagged>;
|
|
3959
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
3960
|
+
exact: z.ZodOptional<z.ZodBoolean>;
|
|
3961
|
+
}, "strip", z.ZodTypeAny, {
|
|
3962
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3963
|
+
exact?: boolean | undefined;
|
|
3964
|
+
tag?: string | undefined;
|
|
3965
|
+
}, {
|
|
3966
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3967
|
+
exact?: boolean | undefined;
|
|
3968
|
+
tag?: string | undefined;
|
|
3969
|
+
}>, z.ZodObject<{
|
|
3970
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
3971
|
+
rating: z.ZodOptional<z.ZodEnum<["good", "bad", "all"]>>;
|
|
3972
|
+
}, "strip", z.ZodTypeAny, {
|
|
3973
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3974
|
+
rating?: "good" | "bad" | "all" | undefined;
|
|
3975
|
+
}, {
|
|
3976
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3977
|
+
rating?: "good" | "bad" | "all" | undefined;
|
|
3978
|
+
}>, z.ZodObject<{
|
|
3979
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
3980
|
+
}, "strip", z.ZodTypeAny, {
|
|
3981
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3982
|
+
}, {
|
|
3983
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3984
|
+
}>, z.ZodObject<{
|
|
3985
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatMessage>;
|
|
3986
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
3987
|
+
}, "strip", z.ZodTypeAny, {
|
|
3988
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3989
|
+
filter?: string | undefined;
|
|
3990
|
+
}, {
|
|
3991
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3992
|
+
filter?: string | undefined;
|
|
3993
|
+
}>, z.ZodObject<{
|
|
3994
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserAddedToChat>;
|
|
3995
|
+
userType: z.ZodOptional<z.ZodEnum<["agent", "customer"]>>;
|
|
3996
|
+
}, "strip", z.ZodTypeAny, {
|
|
3997
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3998
|
+
userType?: "agent" | "customer" | undefined;
|
|
3999
|
+
}, {
|
|
4000
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4001
|
+
userType?: "agent" | "customer" | undefined;
|
|
4002
|
+
}>, z.ZodObject<{
|
|
4003
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserRemovedFromChat>;
|
|
4004
|
+
}, "strip", z.ZodTypeAny, {
|
|
4005
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4006
|
+
}, {
|
|
4007
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4008
|
+
}>]>;
|
|
4182
4009
|
}, "strip", z.ZodTypeAny, {
|
|
4183
4010
|
event: {
|
|
4184
|
-
name: TextLivechatEventNames;
|
|
4011
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4012
|
+
targetAgentId?: string | undefined;
|
|
4013
|
+
} | {
|
|
4014
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4015
|
+
} | {
|
|
4016
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4017
|
+
} | {
|
|
4018
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4019
|
+
exact?: boolean | undefined;
|
|
4020
|
+
tag?: string | undefined;
|
|
4021
|
+
} | {
|
|
4022
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4023
|
+
rating?: "good" | "bad" | "all" | undefined;
|
|
4024
|
+
} | {
|
|
4025
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4026
|
+
} | {
|
|
4027
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4028
|
+
filter?: string | undefined;
|
|
4029
|
+
} | {
|
|
4030
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4031
|
+
userType?: "agent" | "customer" | undefined;
|
|
4032
|
+
} | {
|
|
4033
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4185
4034
|
};
|
|
4186
4035
|
}, {
|
|
4187
4036
|
event: {
|
|
4188
|
-
name: TextLivechatEventNames;
|
|
4037
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4038
|
+
targetAgentId?: string | undefined;
|
|
4039
|
+
} | {
|
|
4040
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4041
|
+
} | {
|
|
4042
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4043
|
+
} | {
|
|
4044
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4045
|
+
exact?: boolean | undefined;
|
|
4046
|
+
tag?: string | undefined;
|
|
4047
|
+
} | {
|
|
4048
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4049
|
+
rating?: "good" | "bad" | "all" | undefined;
|
|
4050
|
+
} | {
|
|
4051
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4052
|
+
} | {
|
|
4053
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4054
|
+
filter?: string | undefined;
|
|
4055
|
+
} | {
|
|
4056
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4057
|
+
userType?: "agent" | "customer" | undefined;
|
|
4058
|
+
} | {
|
|
4059
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4189
4060
|
};
|
|
4190
4061
|
}>>;
|
|
4191
4062
|
readonly unsubscribeContent: z.ZodObject<{
|
|
4192
4063
|
provider: z.ZodLiteral<IntegrationNames.LiveChat>;
|
|
4193
|
-
event: z.ZodObject<{
|
|
4194
|
-
name: z.
|
|
4064
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4065
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
|
|
4066
|
+
targetAgentId: z.ZodOptional<z.ZodString>;
|
|
4067
|
+
}, "strip", z.ZodTypeAny, {
|
|
4068
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4069
|
+
targetAgentId?: string | undefined;
|
|
4070
|
+
}, {
|
|
4071
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4072
|
+
targetAgentId?: string | undefined;
|
|
4073
|
+
}>, z.ZodObject<{
|
|
4074
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
|
|
4195
4075
|
}, "strip", z.ZodTypeAny, {
|
|
4196
|
-
name: TextLivechatEventNames;
|
|
4076
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4197
4077
|
}, {
|
|
4198
|
-
name: TextLivechatEventNames;
|
|
4199
|
-
}
|
|
4078
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4079
|
+
}>, z.ZodObject<{
|
|
4080
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTransferred>;
|
|
4081
|
+
}, "strip", z.ZodTypeAny, {
|
|
4082
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4083
|
+
}, {
|
|
4084
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4085
|
+
}>, z.ZodObject<{
|
|
4086
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTagged>;
|
|
4087
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
4088
|
+
exact: z.ZodOptional<z.ZodBoolean>;
|
|
4089
|
+
}, "strip", z.ZodTypeAny, {
|
|
4090
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4091
|
+
exact?: boolean | undefined;
|
|
4092
|
+
tag?: string | undefined;
|
|
4093
|
+
}, {
|
|
4094
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4095
|
+
exact?: boolean | undefined;
|
|
4096
|
+
tag?: string | undefined;
|
|
4097
|
+
}>, z.ZodObject<{
|
|
4098
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
4099
|
+
rating: z.ZodOptional<z.ZodEnum<["good", "bad", "all"]>>;
|
|
4100
|
+
}, "strip", z.ZodTypeAny, {
|
|
4101
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4102
|
+
rating?: "good" | "bad" | "all" | undefined;
|
|
4103
|
+
}, {
|
|
4104
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4105
|
+
rating?: "good" | "bad" | "all" | undefined;
|
|
4106
|
+
}>, z.ZodObject<{
|
|
4107
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
4108
|
+
}, "strip", z.ZodTypeAny, {
|
|
4109
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4110
|
+
}, {
|
|
4111
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4112
|
+
}>, z.ZodObject<{
|
|
4113
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatMessage>;
|
|
4114
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
4115
|
+
}, "strip", z.ZodTypeAny, {
|
|
4116
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4117
|
+
filter?: string | undefined;
|
|
4118
|
+
}, {
|
|
4119
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4120
|
+
filter?: string | undefined;
|
|
4121
|
+
}>, z.ZodObject<{
|
|
4122
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserAddedToChat>;
|
|
4123
|
+
userType: z.ZodOptional<z.ZodEnum<["agent", "customer"]>>;
|
|
4124
|
+
}, "strip", z.ZodTypeAny, {
|
|
4125
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4126
|
+
userType?: "agent" | "customer" | undefined;
|
|
4127
|
+
}, {
|
|
4128
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4129
|
+
userType?: "agent" | "customer" | undefined;
|
|
4130
|
+
}>, z.ZodObject<{
|
|
4131
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserRemovedFromChat>;
|
|
4132
|
+
}, "strip", z.ZodTypeAny, {
|
|
4133
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4134
|
+
}, {
|
|
4135
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4136
|
+
}>]>;
|
|
4200
4137
|
}, "strip", z.ZodTypeAny, {
|
|
4201
4138
|
event: {
|
|
4202
|
-
name: TextLivechatEventNames;
|
|
4139
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4140
|
+
targetAgentId?: string | undefined;
|
|
4141
|
+
} | {
|
|
4142
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4143
|
+
} | {
|
|
4144
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4145
|
+
} | {
|
|
4146
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4147
|
+
exact?: boolean | undefined;
|
|
4148
|
+
tag?: string | undefined;
|
|
4149
|
+
} | {
|
|
4150
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4151
|
+
rating?: "good" | "bad" | "all" | undefined;
|
|
4152
|
+
} | {
|
|
4153
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4154
|
+
} | {
|
|
4155
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4156
|
+
filter?: string | undefined;
|
|
4157
|
+
} | {
|
|
4158
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4159
|
+
userType?: "agent" | "customer" | undefined;
|
|
4160
|
+
} | {
|
|
4161
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4203
4162
|
};
|
|
4204
4163
|
provider: IntegrationNames.LiveChat;
|
|
4205
4164
|
}, {
|
|
4206
4165
|
event: {
|
|
4207
|
-
name: TextLivechatEventNames;
|
|
4166
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4167
|
+
targetAgentId?: string | undefined;
|
|
4168
|
+
} | {
|
|
4169
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4170
|
+
} | {
|
|
4171
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4172
|
+
} | {
|
|
4173
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4174
|
+
exact?: boolean | undefined;
|
|
4175
|
+
tag?: string | undefined;
|
|
4176
|
+
} | {
|
|
4177
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4178
|
+
rating?: "good" | "bad" | "all" | undefined;
|
|
4179
|
+
} | {
|
|
4180
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4181
|
+
} | {
|
|
4182
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4183
|
+
filter?: string | undefined;
|
|
4184
|
+
} | {
|
|
4185
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4186
|
+
userType?: "agent" | "customer" | undefined;
|
|
4187
|
+
} | {
|
|
4188
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4208
4189
|
};
|
|
4209
4190
|
provider: IntegrationNames.LiveChat;
|
|
4210
4191
|
}>;
|
|
@@ -4381,63 +4362,507 @@ declare const integrationEventsZods: {
|
|
|
4381
4362
|
}>, z.ZodObject<{
|
|
4382
4363
|
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
4383
4364
|
}, "strip", z.ZodTypeAny, {
|
|
4384
|
-
name: BigCommerceEventNames.CartUpdated;
|
|
4365
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4366
|
+
}, {
|
|
4367
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4368
|
+
}>, z.ZodObject<{
|
|
4369
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
4370
|
+
}, "strip", z.ZodTypeAny, {
|
|
4371
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4372
|
+
}, {
|
|
4373
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4374
|
+
}>, z.ZodObject<{
|
|
4375
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
4376
|
+
}, "strip", z.ZodTypeAny, {
|
|
4377
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4378
|
+
}, {
|
|
4379
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4380
|
+
}>, z.ZodObject<{
|
|
4381
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
4382
|
+
}, "strip", z.ZodTypeAny, {
|
|
4383
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4384
|
+
}, {
|
|
4385
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4386
|
+
}>, z.ZodObject<{
|
|
4387
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
4388
|
+
}, "strip", z.ZodTypeAny, {
|
|
4389
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4390
|
+
}, {
|
|
4391
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4392
|
+
}>]>]>, z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4393
|
+
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
4394
|
+
channelId: z.ZodString;
|
|
4395
|
+
}, "strip", z.ZodTypeAny, {
|
|
4396
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
4397
|
+
channelId: string;
|
|
4398
|
+
}, {
|
|
4399
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
4400
|
+
channelId: string;
|
|
4401
|
+
}>, z.ZodObject<{
|
|
4402
|
+
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
4403
|
+
userId: z.ZodString;
|
|
4404
|
+
}, "strip", z.ZodTypeAny, {
|
|
4405
|
+
name: SlackEventNames.MemberNewMention;
|
|
4406
|
+
userId: string;
|
|
4407
|
+
}, {
|
|
4408
|
+
name: SlackEventNames.MemberNewMention;
|
|
4409
|
+
userId: string;
|
|
4410
|
+
}>]>]>;
|
|
4411
|
+
readonly source: z.ZodObject<{
|
|
4412
|
+
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
4413
|
+
sourceKey: z.ZodString;
|
|
4414
|
+
}, "strip", z.ZodTypeAny, {
|
|
4415
|
+
sourceName: "apps" | "workflows";
|
|
4416
|
+
sourceKey: string;
|
|
4417
|
+
}, {
|
|
4418
|
+
sourceName: "apps" | "workflows";
|
|
4419
|
+
sourceKey: string;
|
|
4420
|
+
}>;
|
|
4421
|
+
readonly subscribe: z.ZodIntersection<z.ZodObject<{
|
|
4422
|
+
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
4423
|
+
sourceKey: z.ZodString;
|
|
4424
|
+
}, "strip", z.ZodTypeAny, {
|
|
4425
|
+
sourceName: "apps" | "workflows";
|
|
4426
|
+
sourceKey: string;
|
|
4427
|
+
}, {
|
|
4428
|
+
sourceName: "apps" | "workflows";
|
|
4429
|
+
sourceKey: string;
|
|
4430
|
+
}>, z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
4431
|
+
provider: z.ZodLiteral<IntegrationNames.LiveChat>;
|
|
4432
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4433
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
|
|
4434
|
+
targetAgentId: z.ZodOptional<z.ZodString>;
|
|
4435
|
+
}, "strip", z.ZodTypeAny, {
|
|
4436
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4437
|
+
targetAgentId?: string | undefined;
|
|
4438
|
+
}, {
|
|
4439
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4440
|
+
targetAgentId?: string | undefined;
|
|
4441
|
+
}>, z.ZodObject<{
|
|
4442
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
|
|
4443
|
+
}, "strip", z.ZodTypeAny, {
|
|
4444
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4445
|
+
}, {
|
|
4446
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4447
|
+
}>, z.ZodObject<{
|
|
4448
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTransferred>;
|
|
4449
|
+
}, "strip", z.ZodTypeAny, {
|
|
4450
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4451
|
+
}, {
|
|
4452
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4453
|
+
}>, z.ZodObject<{
|
|
4454
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTagged>;
|
|
4455
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
4456
|
+
exact: z.ZodOptional<z.ZodBoolean>;
|
|
4457
|
+
}, "strip", z.ZodTypeAny, {
|
|
4458
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4459
|
+
exact?: boolean | undefined;
|
|
4460
|
+
tag?: string | undefined;
|
|
4461
|
+
}, {
|
|
4462
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4463
|
+
exact?: boolean | undefined;
|
|
4464
|
+
tag?: string | undefined;
|
|
4465
|
+
}>, z.ZodObject<{
|
|
4466
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
4467
|
+
rating: z.ZodOptional<z.ZodEnum<["good", "bad", "all"]>>;
|
|
4468
|
+
}, "strip", z.ZodTypeAny, {
|
|
4469
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4470
|
+
rating?: "good" | "bad" | "all" | undefined;
|
|
4471
|
+
}, {
|
|
4472
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4473
|
+
rating?: "good" | "bad" | "all" | undefined;
|
|
4474
|
+
}>, z.ZodObject<{
|
|
4475
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
4476
|
+
}, "strip", z.ZodTypeAny, {
|
|
4477
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4478
|
+
}, {
|
|
4479
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4480
|
+
}>, z.ZodObject<{
|
|
4481
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatMessage>;
|
|
4482
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
4483
|
+
}, "strip", z.ZodTypeAny, {
|
|
4484
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4485
|
+
filter?: string | undefined;
|
|
4486
|
+
}, {
|
|
4487
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4488
|
+
filter?: string | undefined;
|
|
4489
|
+
}>, z.ZodObject<{
|
|
4490
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserAddedToChat>;
|
|
4491
|
+
userType: z.ZodOptional<z.ZodEnum<["agent", "customer"]>>;
|
|
4492
|
+
}, "strip", z.ZodTypeAny, {
|
|
4493
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4494
|
+
userType?: "agent" | "customer" | undefined;
|
|
4495
|
+
}, {
|
|
4496
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4497
|
+
userType?: "agent" | "customer" | undefined;
|
|
4498
|
+
}>, z.ZodObject<{
|
|
4499
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserRemovedFromChat>;
|
|
4500
|
+
}, "strip", z.ZodTypeAny, {
|
|
4501
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4502
|
+
}, {
|
|
4503
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4504
|
+
}>]>;
|
|
4505
|
+
callback: z.ZodString;
|
|
4506
|
+
}, "strip", z.ZodTypeAny, {
|
|
4507
|
+
event: {
|
|
4508
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4509
|
+
targetAgentId?: string | undefined;
|
|
4510
|
+
} | {
|
|
4511
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4512
|
+
} | {
|
|
4513
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4514
|
+
} | {
|
|
4515
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4516
|
+
exact?: boolean | undefined;
|
|
4517
|
+
tag?: string | undefined;
|
|
4518
|
+
} | {
|
|
4519
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4520
|
+
rating?: "good" | "bad" | "all" | undefined;
|
|
4521
|
+
} | {
|
|
4522
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4523
|
+
} | {
|
|
4524
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4525
|
+
filter?: string | undefined;
|
|
4526
|
+
} | {
|
|
4527
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4528
|
+
userType?: "agent" | "customer" | undefined;
|
|
4529
|
+
} | {
|
|
4530
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4531
|
+
};
|
|
4532
|
+
callback: string;
|
|
4533
|
+
provider: IntegrationNames.LiveChat;
|
|
4534
|
+
}, {
|
|
4535
|
+
event: {
|
|
4536
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4537
|
+
targetAgentId?: string | undefined;
|
|
4538
|
+
} | {
|
|
4539
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4540
|
+
} | {
|
|
4541
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4542
|
+
} | {
|
|
4543
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4544
|
+
exact?: boolean | undefined;
|
|
4545
|
+
tag?: string | undefined;
|
|
4546
|
+
} | {
|
|
4547
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4548
|
+
rating?: "good" | "bad" | "all" | undefined;
|
|
4549
|
+
} | {
|
|
4550
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4551
|
+
} | {
|
|
4552
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4553
|
+
filter?: string | undefined;
|
|
4554
|
+
} | {
|
|
4555
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4556
|
+
userType?: "agent" | "customer" | undefined;
|
|
4557
|
+
} | {
|
|
4558
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4559
|
+
};
|
|
4560
|
+
callback: string;
|
|
4561
|
+
provider: IntegrationNames.LiveChat;
|
|
4562
|
+
}>, z.ZodObject<{
|
|
4563
|
+
provider: z.ZodLiteral<IntegrationNames.HelpDesk>;
|
|
4564
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4565
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketCreated>;
|
|
4566
|
+
}, "strip", z.ZodTypeAny, {
|
|
4567
|
+
name: TextHelpDeskEventNames.TicketCreated;
|
|
4568
|
+
}, {
|
|
4569
|
+
name: TextHelpDeskEventNames.TicketCreated;
|
|
4570
|
+
}>, z.ZodObject<{
|
|
4571
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketUpdated>;
|
|
4572
|
+
}, "strip", z.ZodTypeAny, {
|
|
4573
|
+
name: TextHelpDeskEventNames.TicketUpdated;
|
|
4574
|
+
}, {
|
|
4575
|
+
name: TextHelpDeskEventNames.TicketUpdated;
|
|
4576
|
+
}>, z.ZodObject<{
|
|
4577
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketStatusChanged>;
|
|
4578
|
+
}, "strip", z.ZodTypeAny, {
|
|
4579
|
+
name: TextHelpDeskEventNames.TicketStatusChanged;
|
|
4580
|
+
}, {
|
|
4581
|
+
name: TextHelpDeskEventNames.TicketStatusChanged;
|
|
4582
|
+
}>, z.ZodObject<{
|
|
4583
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketPriorityChanged>;
|
|
4584
|
+
}, "strip", z.ZodTypeAny, {
|
|
4585
|
+
name: TextHelpDeskEventNames.TicketPriorityChanged;
|
|
4586
|
+
}, {
|
|
4587
|
+
name: TextHelpDeskEventNames.TicketPriorityChanged;
|
|
4588
|
+
}>, z.ZodObject<{
|
|
4589
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketTagsChanged>;
|
|
4590
|
+
}, "strip", z.ZodTypeAny, {
|
|
4591
|
+
name: TextHelpDeskEventNames.TicketTagsChanged;
|
|
4592
|
+
}, {
|
|
4593
|
+
name: TextHelpDeskEventNames.TicketTagsChanged;
|
|
4594
|
+
}>, z.ZodObject<{
|
|
4595
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketFollowersChanged>;
|
|
4596
|
+
}, "strip", z.ZodTypeAny, {
|
|
4597
|
+
name: TextHelpDeskEventNames.TicketFollowersChanged;
|
|
4598
|
+
}, {
|
|
4599
|
+
name: TextHelpDeskEventNames.TicketFollowersChanged;
|
|
4600
|
+
}>, z.ZodObject<{
|
|
4601
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketAssignmentChanged>;
|
|
4602
|
+
}, "strip", z.ZodTypeAny, {
|
|
4603
|
+
name: TextHelpDeskEventNames.TicketAssignmentChanged;
|
|
4604
|
+
}, {
|
|
4605
|
+
name: TextHelpDeskEventNames.TicketAssignmentChanged;
|
|
4606
|
+
}>, z.ZodObject<{
|
|
4607
|
+
name: z.ZodLiteral<TextHelpDeskEventNames.TicketMessageAdded>;
|
|
4608
|
+
}, "strip", z.ZodTypeAny, {
|
|
4609
|
+
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
4610
|
+
}, {
|
|
4611
|
+
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
4612
|
+
}>]>;
|
|
4613
|
+
callback: z.ZodString;
|
|
4614
|
+
}, "strip", z.ZodTypeAny, {
|
|
4615
|
+
event: {
|
|
4616
|
+
name: TextHelpDeskEventNames.TicketCreated;
|
|
4617
|
+
} | {
|
|
4618
|
+
name: TextHelpDeskEventNames.TicketUpdated;
|
|
4619
|
+
} | {
|
|
4620
|
+
name: TextHelpDeskEventNames.TicketStatusChanged;
|
|
4621
|
+
} | {
|
|
4622
|
+
name: TextHelpDeskEventNames.TicketPriorityChanged;
|
|
4623
|
+
} | {
|
|
4624
|
+
name: TextHelpDeskEventNames.TicketTagsChanged;
|
|
4625
|
+
} | {
|
|
4626
|
+
name: TextHelpDeskEventNames.TicketFollowersChanged;
|
|
4627
|
+
} | {
|
|
4628
|
+
name: TextHelpDeskEventNames.TicketAssignmentChanged;
|
|
4629
|
+
} | {
|
|
4630
|
+
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
4631
|
+
};
|
|
4632
|
+
callback: string;
|
|
4633
|
+
provider: IntegrationNames.HelpDesk;
|
|
4385
4634
|
}, {
|
|
4386
|
-
|
|
4635
|
+
event: {
|
|
4636
|
+
name: TextHelpDeskEventNames.TicketCreated;
|
|
4637
|
+
} | {
|
|
4638
|
+
name: TextHelpDeskEventNames.TicketUpdated;
|
|
4639
|
+
} | {
|
|
4640
|
+
name: TextHelpDeskEventNames.TicketStatusChanged;
|
|
4641
|
+
} | {
|
|
4642
|
+
name: TextHelpDeskEventNames.TicketPriorityChanged;
|
|
4643
|
+
} | {
|
|
4644
|
+
name: TextHelpDeskEventNames.TicketTagsChanged;
|
|
4645
|
+
} | {
|
|
4646
|
+
name: TextHelpDeskEventNames.TicketFollowersChanged;
|
|
4647
|
+
} | {
|
|
4648
|
+
name: TextHelpDeskEventNames.TicketAssignmentChanged;
|
|
4649
|
+
} | {
|
|
4650
|
+
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
4651
|
+
};
|
|
4652
|
+
callback: string;
|
|
4653
|
+
provider: IntegrationNames.HelpDesk;
|
|
4387
4654
|
}>, z.ZodObject<{
|
|
4388
|
-
|
|
4655
|
+
provider: z.ZodLiteral<IntegrationNames.Shopify>;
|
|
4656
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4657
|
+
name: z.ZodLiteral<ShopifyEventNames>;
|
|
4658
|
+
}, "strip", z.ZodTypeAny, {
|
|
4659
|
+
name: ShopifyEventNames;
|
|
4660
|
+
}, {
|
|
4661
|
+
name: ShopifyEventNames;
|
|
4662
|
+
}>]>;
|
|
4663
|
+
callback: z.ZodString;
|
|
4389
4664
|
}, "strip", z.ZodTypeAny, {
|
|
4390
|
-
|
|
4665
|
+
event: {
|
|
4666
|
+
name: ShopifyEventNames;
|
|
4667
|
+
};
|
|
4668
|
+
callback: string;
|
|
4669
|
+
provider: IntegrationNames.Shopify;
|
|
4391
4670
|
}, {
|
|
4392
|
-
|
|
4671
|
+
event: {
|
|
4672
|
+
name: ShopifyEventNames;
|
|
4673
|
+
};
|
|
4674
|
+
callback: string;
|
|
4675
|
+
provider: IntegrationNames.Shopify;
|
|
4393
4676
|
}>, z.ZodObject<{
|
|
4394
|
-
|
|
4677
|
+
provider: z.ZodLiteral<IntegrationNames.Mailchimp>;
|
|
4678
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4679
|
+
listId: z.ZodString;
|
|
4680
|
+
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
4681
|
+
}, "strip", z.ZodTypeAny, {
|
|
4682
|
+
name: MailchimpEventNames.Subscribed;
|
|
4683
|
+
listId: string;
|
|
4684
|
+
}, {
|
|
4685
|
+
name: MailchimpEventNames.Subscribed;
|
|
4686
|
+
listId: string;
|
|
4687
|
+
}>, z.ZodObject<{
|
|
4688
|
+
listId: z.ZodString;
|
|
4689
|
+
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
4690
|
+
}, "strip", z.ZodTypeAny, {
|
|
4691
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
4692
|
+
listId: string;
|
|
4693
|
+
}, {
|
|
4694
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
4695
|
+
listId: string;
|
|
4696
|
+
}>]>;
|
|
4697
|
+
callback: z.ZodString;
|
|
4395
4698
|
}, "strip", z.ZodTypeAny, {
|
|
4396
|
-
|
|
4699
|
+
event: {
|
|
4700
|
+
name: MailchimpEventNames.Subscribed;
|
|
4701
|
+
listId: string;
|
|
4702
|
+
} | {
|
|
4703
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
4704
|
+
listId: string;
|
|
4705
|
+
};
|
|
4706
|
+
callback: string;
|
|
4707
|
+
provider: IntegrationNames.Mailchimp;
|
|
4397
4708
|
}, {
|
|
4398
|
-
|
|
4709
|
+
event: {
|
|
4710
|
+
name: MailchimpEventNames.Subscribed;
|
|
4711
|
+
listId: string;
|
|
4712
|
+
} | {
|
|
4713
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
4714
|
+
listId: string;
|
|
4715
|
+
};
|
|
4716
|
+
callback: string;
|
|
4717
|
+
provider: IntegrationNames.Mailchimp;
|
|
4399
4718
|
}>, z.ZodObject<{
|
|
4400
|
-
|
|
4719
|
+
provider: z.ZodLiteral<IntegrationNames.HubSpot>;
|
|
4720
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4721
|
+
name: z.ZodLiteral<HubspotEventNames.ContactCreated>;
|
|
4722
|
+
}, "strip", z.ZodTypeAny, {
|
|
4723
|
+
name: HubspotEventNames.ContactCreated;
|
|
4724
|
+
}, {
|
|
4725
|
+
name: HubspotEventNames.ContactCreated;
|
|
4726
|
+
}>, z.ZodObject<{
|
|
4727
|
+
name: z.ZodLiteral<HubspotEventNames.ContactDeleted>;
|
|
4728
|
+
}, "strip", z.ZodTypeAny, {
|
|
4729
|
+
name: HubspotEventNames.ContactDeleted;
|
|
4730
|
+
}, {
|
|
4731
|
+
name: HubspotEventNames.ContactDeleted;
|
|
4732
|
+
}>]>;
|
|
4733
|
+
callback: z.ZodString;
|
|
4401
4734
|
}, "strip", z.ZodTypeAny, {
|
|
4402
|
-
|
|
4735
|
+
event: {
|
|
4736
|
+
name: HubspotEventNames.ContactCreated;
|
|
4737
|
+
} | {
|
|
4738
|
+
name: HubspotEventNames.ContactDeleted;
|
|
4739
|
+
};
|
|
4740
|
+
callback: string;
|
|
4741
|
+
provider: IntegrationNames.HubSpot;
|
|
4403
4742
|
}, {
|
|
4404
|
-
|
|
4743
|
+
event: {
|
|
4744
|
+
name: HubspotEventNames.ContactCreated;
|
|
4745
|
+
} | {
|
|
4746
|
+
name: HubspotEventNames.ContactDeleted;
|
|
4747
|
+
};
|
|
4748
|
+
callback: string;
|
|
4749
|
+
provider: IntegrationNames.HubSpot;
|
|
4405
4750
|
}>, z.ZodObject<{
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4751
|
+
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
4752
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4753
|
+
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
4754
|
+
channelId: z.ZodString;
|
|
4755
|
+
}, "strip", z.ZodTypeAny, {
|
|
4756
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
4757
|
+
channelId: string;
|
|
4758
|
+
}, {
|
|
4759
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
4760
|
+
channelId: string;
|
|
4761
|
+
}>, z.ZodObject<{
|
|
4762
|
+
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
4763
|
+
userId: z.ZodString;
|
|
4764
|
+
}, "strip", z.ZodTypeAny, {
|
|
4765
|
+
name: SlackEventNames.MemberNewMention;
|
|
4766
|
+
userId: string;
|
|
4767
|
+
}, {
|
|
4768
|
+
name: SlackEventNames.MemberNewMention;
|
|
4769
|
+
userId: string;
|
|
4770
|
+
}>]>;
|
|
4771
|
+
callback: z.ZodString;
|
|
4414
4772
|
}, "strip", z.ZodTypeAny, {
|
|
4415
|
-
|
|
4416
|
-
|
|
4773
|
+
event: {
|
|
4774
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
4775
|
+
channelId: string;
|
|
4776
|
+
} | {
|
|
4777
|
+
name: SlackEventNames.MemberNewMention;
|
|
4778
|
+
userId: string;
|
|
4779
|
+
};
|
|
4780
|
+
callback: string;
|
|
4781
|
+
provider: IntegrationNames.Slack;
|
|
4417
4782
|
}, {
|
|
4418
|
-
|
|
4419
|
-
|
|
4783
|
+
event: {
|
|
4784
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
4785
|
+
channelId: string;
|
|
4786
|
+
} | {
|
|
4787
|
+
name: SlackEventNames.MemberNewMention;
|
|
4788
|
+
userId: string;
|
|
4789
|
+
};
|
|
4790
|
+
callback: string;
|
|
4791
|
+
provider: IntegrationNames.Slack;
|
|
4420
4792
|
}>, z.ZodObject<{
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4793
|
+
provider: z.ZodLiteral<IntegrationNames.BigCommerce>;
|
|
4794
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4795
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
4796
|
+
}, "strip", z.ZodTypeAny, {
|
|
4797
|
+
name: BigCommerceEventNames.CartCreated;
|
|
4798
|
+
}, {
|
|
4799
|
+
name: BigCommerceEventNames.CartCreated;
|
|
4800
|
+
}>, z.ZodObject<{
|
|
4801
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
4802
|
+
}, "strip", z.ZodTypeAny, {
|
|
4803
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4804
|
+
}, {
|
|
4805
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4806
|
+
}>, z.ZodObject<{
|
|
4807
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
4808
|
+
}, "strip", z.ZodTypeAny, {
|
|
4809
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4810
|
+
}, {
|
|
4811
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4812
|
+
}>, z.ZodObject<{
|
|
4813
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
4814
|
+
}, "strip", z.ZodTypeAny, {
|
|
4815
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4816
|
+
}, {
|
|
4817
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4818
|
+
}>, z.ZodObject<{
|
|
4819
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
4820
|
+
}, "strip", z.ZodTypeAny, {
|
|
4821
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4822
|
+
}, {
|
|
4823
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4824
|
+
}>, z.ZodObject<{
|
|
4825
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
4826
|
+
}, "strip", z.ZodTypeAny, {
|
|
4827
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4828
|
+
}, {
|
|
4829
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4830
|
+
}>]>;
|
|
4831
|
+
callback: z.ZodString;
|
|
4433
4832
|
}, "strip", z.ZodTypeAny, {
|
|
4434
|
-
|
|
4435
|
-
|
|
4833
|
+
event: {
|
|
4834
|
+
name: BigCommerceEventNames.CartCreated;
|
|
4835
|
+
} | {
|
|
4836
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4837
|
+
} | {
|
|
4838
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4839
|
+
} | {
|
|
4840
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4841
|
+
} | {
|
|
4842
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4843
|
+
} | {
|
|
4844
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4845
|
+
};
|
|
4846
|
+
callback: string;
|
|
4847
|
+
provider: IntegrationNames.BigCommerce;
|
|
4436
4848
|
}, {
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4849
|
+
event: {
|
|
4850
|
+
name: BigCommerceEventNames.CartCreated;
|
|
4851
|
+
} | {
|
|
4852
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4853
|
+
} | {
|
|
4854
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4855
|
+
} | {
|
|
4856
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4857
|
+
} | {
|
|
4858
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4859
|
+
} | {
|
|
4860
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4861
|
+
};
|
|
4862
|
+
callback: string;
|
|
4863
|
+
provider: IntegrationNames.BigCommerce;
|
|
4864
|
+
}>]>>;
|
|
4865
|
+
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
4441
4866
|
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
4442
4867
|
sourceKey: z.ZodString;
|
|
4443
4868
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4521,7 +4946,6 @@ declare const integrationEventsZods: {
|
|
|
4521
4946
|
}, {
|
|
4522
4947
|
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4523
4948
|
}>]>;
|
|
4524
|
-
callback: z.ZodString;
|
|
4525
4949
|
}, "strip", z.ZodTypeAny, {
|
|
4526
4950
|
event: {
|
|
4527
4951
|
name: TextLivechatEventNames.ChatStarted;
|
|
@@ -4548,7 +4972,6 @@ declare const integrationEventsZods: {
|
|
|
4548
4972
|
} | {
|
|
4549
4973
|
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4550
4974
|
};
|
|
4551
|
-
callback: string;
|
|
4552
4975
|
provider: IntegrationNames.LiveChat;
|
|
4553
4976
|
}, {
|
|
4554
4977
|
event: {
|
|
@@ -4576,7 +4999,6 @@ declare const integrationEventsZods: {
|
|
|
4576
4999
|
} | {
|
|
4577
5000
|
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4578
5001
|
};
|
|
4579
|
-
callback: string;
|
|
4580
5002
|
provider: IntegrationNames.LiveChat;
|
|
4581
5003
|
}>, z.ZodObject<{
|
|
4582
5004
|
provider: z.ZodLiteral<IntegrationNames.HelpDesk>;
|
|
@@ -4629,7 +5051,6 @@ declare const integrationEventsZods: {
|
|
|
4629
5051
|
}, {
|
|
4630
5052
|
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
4631
5053
|
}>]>;
|
|
4632
|
-
callback: z.ZodString;
|
|
4633
5054
|
}, "strip", z.ZodTypeAny, {
|
|
4634
5055
|
event: {
|
|
4635
5056
|
name: TextHelpDeskEventNames.TicketCreated;
|
|
@@ -4648,7 +5069,6 @@ declare const integrationEventsZods: {
|
|
|
4648
5069
|
} | {
|
|
4649
5070
|
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
4650
5071
|
};
|
|
4651
|
-
callback: string;
|
|
4652
5072
|
provider: IntegrationNames.HelpDesk;
|
|
4653
5073
|
}, {
|
|
4654
5074
|
event: {
|
|
@@ -4668,7 +5088,6 @@ declare const integrationEventsZods: {
|
|
|
4668
5088
|
} | {
|
|
4669
5089
|
name: TextHelpDeskEventNames.TicketMessageAdded;
|
|
4670
5090
|
};
|
|
4671
|
-
callback: string;
|
|
4672
5091
|
provider: IntegrationNames.HelpDesk;
|
|
4673
5092
|
}>, z.ZodObject<{
|
|
4674
5093
|
provider: z.ZodLiteral<IntegrationNames.Shopify>;
|
|
@@ -4679,18 +5098,15 @@ declare const integrationEventsZods: {
|
|
|
4679
5098
|
}, {
|
|
4680
5099
|
name: ShopifyEventNames;
|
|
4681
5100
|
}>]>;
|
|
4682
|
-
callback: z.ZodString;
|
|
4683
5101
|
}, "strip", z.ZodTypeAny, {
|
|
4684
5102
|
event: {
|
|
4685
5103
|
name: ShopifyEventNames;
|
|
4686
5104
|
};
|
|
4687
|
-
callback: string;
|
|
4688
5105
|
provider: IntegrationNames.Shopify;
|
|
4689
5106
|
}, {
|
|
4690
5107
|
event: {
|
|
4691
5108
|
name: ShopifyEventNames;
|
|
4692
5109
|
};
|
|
4693
|
-
callback: string;
|
|
4694
5110
|
provider: IntegrationNames.Shopify;
|
|
4695
5111
|
}>, z.ZodObject<{
|
|
4696
5112
|
provider: z.ZodLiteral<IntegrationNames.Mailchimp>;
|
|
@@ -4713,7 +5129,6 @@ declare const integrationEventsZods: {
|
|
|
4713
5129
|
name: MailchimpEventNames.Unsubscribed;
|
|
4714
5130
|
listId: string;
|
|
4715
5131
|
}>]>;
|
|
4716
|
-
callback: z.ZodString;
|
|
4717
5132
|
}, "strip", z.ZodTypeAny, {
|
|
4718
5133
|
event: {
|
|
4719
5134
|
name: MailchimpEventNames.Subscribed;
|
|
@@ -4722,7 +5137,6 @@ declare const integrationEventsZods: {
|
|
|
4722
5137
|
name: MailchimpEventNames.Unsubscribed;
|
|
4723
5138
|
listId: string;
|
|
4724
5139
|
};
|
|
4725
|
-
callback: string;
|
|
4726
5140
|
provider: IntegrationNames.Mailchimp;
|
|
4727
5141
|
}, {
|
|
4728
5142
|
event: {
|
|
@@ -4732,7 +5146,6 @@ declare const integrationEventsZods: {
|
|
|
4732
5146
|
name: MailchimpEventNames.Unsubscribed;
|
|
4733
5147
|
listId: string;
|
|
4734
5148
|
};
|
|
4735
|
-
callback: string;
|
|
4736
5149
|
provider: IntegrationNames.Mailchimp;
|
|
4737
5150
|
}>, z.ZodObject<{
|
|
4738
5151
|
provider: z.ZodLiteral<IntegrationNames.HubSpot>;
|
|
@@ -4749,14 +5162,12 @@ declare const integrationEventsZods: {
|
|
|
4749
5162
|
}, {
|
|
4750
5163
|
name: HubspotEventNames.ContactDeleted;
|
|
4751
5164
|
}>]>;
|
|
4752
|
-
callback: z.ZodString;
|
|
4753
5165
|
}, "strip", z.ZodTypeAny, {
|
|
4754
5166
|
event: {
|
|
4755
5167
|
name: HubspotEventNames.ContactCreated;
|
|
4756
5168
|
} | {
|
|
4757
5169
|
name: HubspotEventNames.ContactDeleted;
|
|
4758
5170
|
};
|
|
4759
|
-
callback: string;
|
|
4760
5171
|
provider: IntegrationNames.HubSpot;
|
|
4761
5172
|
}, {
|
|
4762
5173
|
event: {
|
|
@@ -4764,7 +5175,6 @@ declare const integrationEventsZods: {
|
|
|
4764
5175
|
} | {
|
|
4765
5176
|
name: HubspotEventNames.ContactDeleted;
|
|
4766
5177
|
};
|
|
4767
|
-
callback: string;
|
|
4768
5178
|
provider: IntegrationNames.HubSpot;
|
|
4769
5179
|
}>, z.ZodObject<{
|
|
4770
5180
|
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
@@ -4787,426 +5197,899 @@ declare const integrationEventsZods: {
|
|
|
4787
5197
|
name: SlackEventNames.MemberNewMention;
|
|
4788
5198
|
userId: string;
|
|
4789
5199
|
}>]>;
|
|
4790
|
-
callback: z.ZodString;
|
|
4791
5200
|
}, "strip", z.ZodTypeAny, {
|
|
4792
5201
|
event: {
|
|
4793
5202
|
name: SlackEventNames.ChannelNewMessagePosted;
|
|
4794
5203
|
channelId: string;
|
|
4795
5204
|
} | {
|
|
4796
5205
|
name: SlackEventNames.MemberNewMention;
|
|
4797
|
-
userId: string;
|
|
4798
|
-
};
|
|
4799
|
-
callback: string;
|
|
4800
|
-
provider: IntegrationNames.Slack;
|
|
4801
|
-
}, {
|
|
4802
|
-
event: {
|
|
4803
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
4804
|
-
channelId: string;
|
|
4805
|
-
} | {
|
|
4806
|
-
name: SlackEventNames.MemberNewMention;
|
|
4807
|
-
userId: string;
|
|
4808
|
-
};
|
|
4809
|
-
callback: string;
|
|
4810
|
-
provider: IntegrationNames.Slack;
|
|
4811
|
-
}>, z.ZodObject<{
|
|
4812
|
-
provider: z.ZodLiteral<IntegrationNames.BigCommerce>;
|
|
4813
|
-
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4814
|
-
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
4815
|
-
}, "strip", z.ZodTypeAny, {
|
|
4816
|
-
name: BigCommerceEventNames.CartCreated;
|
|
4817
|
-
}, {
|
|
4818
|
-
name: BigCommerceEventNames.CartCreated;
|
|
4819
|
-
}>, z.ZodObject<{
|
|
4820
|
-
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
4821
|
-
}, "strip", z.ZodTypeAny, {
|
|
4822
|
-
name: BigCommerceEventNames.CartUpdated;
|
|
4823
|
-
}, {
|
|
4824
|
-
name: BigCommerceEventNames.CartUpdated;
|
|
4825
|
-
}>, z.ZodObject<{
|
|
4826
|
-
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
4827
|
-
}, "strip", z.ZodTypeAny, {
|
|
4828
|
-
name: BigCommerceEventNames.OrderCreated;
|
|
4829
|
-
}, {
|
|
4830
|
-
name: BigCommerceEventNames.OrderCreated;
|
|
4831
|
-
}>, z.ZodObject<{
|
|
4832
|
-
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
4833
|
-
}, "strip", z.ZodTypeAny, {
|
|
4834
|
-
name: BigCommerceEventNames.OrderUpdated;
|
|
4835
|
-
}, {
|
|
4836
|
-
name: BigCommerceEventNames.OrderUpdated;
|
|
4837
|
-
}>, z.ZodObject<{
|
|
4838
|
-
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
4839
|
-
}, "strip", z.ZodTypeAny, {
|
|
4840
|
-
name: BigCommerceEventNames.ProductCreated;
|
|
4841
|
-
}, {
|
|
4842
|
-
name: BigCommerceEventNames.ProductCreated;
|
|
4843
|
-
}>, z.ZodObject<{
|
|
4844
|
-
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
4845
|
-
}, "strip", z.ZodTypeAny, {
|
|
4846
|
-
name: BigCommerceEventNames.ProductUpdated;
|
|
4847
|
-
}, {
|
|
4848
|
-
name: BigCommerceEventNames.ProductUpdated;
|
|
4849
|
-
}>]>;
|
|
4850
|
-
callback: z.ZodString;
|
|
4851
|
-
}, "strip", z.ZodTypeAny, {
|
|
4852
|
-
event: {
|
|
4853
|
-
name: BigCommerceEventNames.CartCreated;
|
|
4854
|
-
} | {
|
|
4855
|
-
name: BigCommerceEventNames.CartUpdated;
|
|
4856
|
-
} | {
|
|
4857
|
-
name: BigCommerceEventNames.OrderCreated;
|
|
4858
|
-
} | {
|
|
4859
|
-
name: BigCommerceEventNames.OrderUpdated;
|
|
4860
|
-
} | {
|
|
4861
|
-
name: BigCommerceEventNames.ProductCreated;
|
|
4862
|
-
} | {
|
|
4863
|
-
name: BigCommerceEventNames.ProductUpdated;
|
|
4864
|
-
};
|
|
4865
|
-
callback: string;
|
|
4866
|
-
provider: IntegrationNames.BigCommerce;
|
|
4867
|
-
}, {
|
|
4868
|
-
event: {
|
|
4869
|
-
name: BigCommerceEventNames.CartCreated;
|
|
4870
|
-
} | {
|
|
4871
|
-
name: BigCommerceEventNames.CartUpdated;
|
|
4872
|
-
} | {
|
|
4873
|
-
name: BigCommerceEventNames.OrderCreated;
|
|
4874
|
-
} | {
|
|
4875
|
-
name: BigCommerceEventNames.OrderUpdated;
|
|
4876
|
-
} | {
|
|
4877
|
-
name: BigCommerceEventNames.ProductCreated;
|
|
4878
|
-
} | {
|
|
4879
|
-
name: BigCommerceEventNames.ProductUpdated;
|
|
4880
|
-
};
|
|
4881
|
-
callback: string;
|
|
4882
|
-
provider: IntegrationNames.BigCommerce;
|
|
4883
|
-
}>]>>;
|
|
4884
|
-
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
4885
|
-
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
4886
|
-
sourceKey: z.ZodString;
|
|
4887
|
-
}, "strip", z.ZodTypeAny, {
|
|
4888
|
-
sourceName: "apps" | "workflows";
|
|
4889
|
-
sourceKey: string;
|
|
4890
|
-
}, {
|
|
4891
|
-
sourceName: "apps" | "workflows";
|
|
4892
|
-
sourceKey: string;
|
|
4893
|
-
}>, z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
4894
|
-
provider: z.ZodLiteral<IntegrationNames.LiveChat>;
|
|
4895
|
-
event: z.ZodObject<{
|
|
4896
|
-
name: z.ZodNativeEnum<typeof TextLivechatEventNames>;
|
|
4897
|
-
}, "strip", z.ZodTypeAny, {
|
|
4898
|
-
name: TextLivechatEventNames;
|
|
4899
|
-
}, {
|
|
4900
|
-
name: TextLivechatEventNames;
|
|
4901
|
-
}>;
|
|
4902
|
-
}, "strip", z.ZodTypeAny, {
|
|
4903
|
-
event: {
|
|
4904
|
-
name: TextLivechatEventNames;
|
|
4905
|
-
};
|
|
4906
|
-
provider: IntegrationNames.LiveChat;
|
|
4907
|
-
}, {
|
|
4908
|
-
event: {
|
|
4909
|
-
name: TextLivechatEventNames;
|
|
4910
|
-
};
|
|
4911
|
-
provider: IntegrationNames.LiveChat;
|
|
4912
|
-
}>, z.ZodObject<{
|
|
4913
|
-
provider: z.ZodLiteral<IntegrationNames.HelpDesk>;
|
|
4914
|
-
event: z.ZodObject<{
|
|
4915
|
-
name: z.ZodNativeEnum<typeof TextHelpDeskEventNames>;
|
|
4916
|
-
}, "strip", z.ZodTypeAny, {
|
|
4917
|
-
name: TextHelpDeskEventNames;
|
|
4918
|
-
}, {
|
|
4919
|
-
name: TextHelpDeskEventNames;
|
|
4920
|
-
}>;
|
|
4921
|
-
}, "strip", z.ZodTypeAny, {
|
|
4922
|
-
event: {
|
|
4923
|
-
name: TextHelpDeskEventNames;
|
|
4924
|
-
};
|
|
4925
|
-
provider: IntegrationNames.HelpDesk;
|
|
4926
|
-
}, {
|
|
4927
|
-
event: {
|
|
4928
|
-
name: TextHelpDeskEventNames;
|
|
4929
|
-
};
|
|
4930
|
-
provider: IntegrationNames.HelpDesk;
|
|
4931
|
-
}>, z.ZodObject<{
|
|
4932
|
-
provider: z.ZodLiteral<IntegrationNames.Shopify>;
|
|
4933
|
-
event: z.ZodObject<{
|
|
4934
|
-
name: z.ZodNativeEnum<typeof ShopifyEventNames>;
|
|
4935
|
-
}, "strip", z.ZodTypeAny, {
|
|
4936
|
-
name: ShopifyEventNames;
|
|
4937
|
-
}, {
|
|
4938
|
-
name: ShopifyEventNames;
|
|
4939
|
-
}>;
|
|
4940
|
-
}, "strip", z.ZodTypeAny, {
|
|
4941
|
-
event: {
|
|
4942
|
-
name: ShopifyEventNames;
|
|
4943
|
-
};
|
|
4944
|
-
provider: IntegrationNames.Shopify;
|
|
4945
|
-
}, {
|
|
4946
|
-
event: {
|
|
4947
|
-
name: ShopifyEventNames;
|
|
4948
|
-
};
|
|
4949
|
-
provider: IntegrationNames.Shopify;
|
|
4950
|
-
}>, z.ZodObject<{
|
|
4951
|
-
provider: z.ZodLiteral<IntegrationNames.Mailchimp>;
|
|
4952
|
-
event: z.ZodObject<{
|
|
4953
|
-
listId: z.ZodString;
|
|
4954
|
-
name: z.ZodNativeEnum<typeof MailchimpEventNames>;
|
|
4955
|
-
}, "strip", z.ZodTypeAny, {
|
|
4956
|
-
name: MailchimpEventNames;
|
|
4957
|
-
listId: string;
|
|
4958
|
-
}, {
|
|
4959
|
-
name: MailchimpEventNames;
|
|
4960
|
-
listId: string;
|
|
4961
|
-
}>;
|
|
4962
|
-
}, "strip", z.ZodTypeAny, {
|
|
4963
|
-
event: {
|
|
4964
|
-
name: MailchimpEventNames;
|
|
4965
|
-
listId: string;
|
|
4966
|
-
};
|
|
4967
|
-
provider: IntegrationNames.Mailchimp;
|
|
4968
|
-
}, {
|
|
4969
|
-
event: {
|
|
4970
|
-
name: MailchimpEventNames;
|
|
4971
|
-
listId: string;
|
|
4972
|
-
};
|
|
4973
|
-
provider: IntegrationNames.Mailchimp;
|
|
4974
|
-
}>, z.ZodObject<{
|
|
4975
|
-
provider: z.ZodLiteral<IntegrationNames.HubSpot>;
|
|
4976
|
-
event: z.ZodObject<{
|
|
4977
|
-
name: z.ZodNativeEnum<typeof HubspotEventNames>;
|
|
4978
|
-
}, "strip", z.ZodTypeAny, {
|
|
4979
|
-
name: HubspotEventNames;
|
|
4980
|
-
}, {
|
|
4981
|
-
name: HubspotEventNames;
|
|
4982
|
-
}>;
|
|
4983
|
-
}, "strip", z.ZodTypeAny, {
|
|
4984
|
-
event: {
|
|
4985
|
-
name: HubspotEventNames;
|
|
4986
|
-
};
|
|
4987
|
-
provider: IntegrationNames.HubSpot;
|
|
4988
|
-
}, {
|
|
4989
|
-
event: {
|
|
4990
|
-
name: HubspotEventNames;
|
|
4991
|
-
};
|
|
4992
|
-
provider: IntegrationNames.HubSpot;
|
|
4993
|
-
}>, z.ZodObject<{
|
|
4994
|
-
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
4995
|
-
event: z.ZodObject<{
|
|
4996
|
-
name: z.ZodNativeEnum<typeof SlackEventNames>;
|
|
4997
|
-
}, "strip", z.ZodTypeAny, {
|
|
4998
|
-
name: SlackEventNames;
|
|
4999
|
-
}, {
|
|
5000
|
-
name: SlackEventNames;
|
|
5001
|
-
}>;
|
|
5002
|
-
}, "strip", z.ZodTypeAny, {
|
|
5003
|
-
event: {
|
|
5004
|
-
name: SlackEventNames;
|
|
5206
|
+
userId: string;
|
|
5005
5207
|
};
|
|
5006
5208
|
provider: IntegrationNames.Slack;
|
|
5007
5209
|
}, {
|
|
5008
5210
|
event: {
|
|
5009
|
-
name: SlackEventNames;
|
|
5211
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
5212
|
+
channelId: string;
|
|
5213
|
+
} | {
|
|
5214
|
+
name: SlackEventNames.MemberNewMention;
|
|
5215
|
+
userId: string;
|
|
5010
5216
|
};
|
|
5011
5217
|
provider: IntegrationNames.Slack;
|
|
5012
5218
|
}>, z.ZodObject<{
|
|
5013
5219
|
provider: z.ZodLiteral<IntegrationNames.BigCommerce>;
|
|
5014
|
-
event: z.ZodObject<{
|
|
5015
|
-
name: z.
|
|
5220
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
5221
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
5016
5222
|
}, "strip", z.ZodTypeAny, {
|
|
5017
|
-
name: BigCommerceEventNames;
|
|
5223
|
+
name: BigCommerceEventNames.CartCreated;
|
|
5018
5224
|
}, {
|
|
5019
|
-
name: BigCommerceEventNames;
|
|
5020
|
-
}
|
|
5225
|
+
name: BigCommerceEventNames.CartCreated;
|
|
5226
|
+
}>, z.ZodObject<{
|
|
5227
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
5228
|
+
}, "strip", z.ZodTypeAny, {
|
|
5229
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
5230
|
+
}, {
|
|
5231
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
5232
|
+
}>, z.ZodObject<{
|
|
5233
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
5234
|
+
}, "strip", z.ZodTypeAny, {
|
|
5235
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
5236
|
+
}, {
|
|
5237
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
5238
|
+
}>, z.ZodObject<{
|
|
5239
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
5240
|
+
}, "strip", z.ZodTypeAny, {
|
|
5241
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
5242
|
+
}, {
|
|
5243
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
5244
|
+
}>, z.ZodObject<{
|
|
5245
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
5246
|
+
}, "strip", z.ZodTypeAny, {
|
|
5247
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
5248
|
+
}, {
|
|
5249
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
5250
|
+
}>, z.ZodObject<{
|
|
5251
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
5252
|
+
}, "strip", z.ZodTypeAny, {
|
|
5253
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
5254
|
+
}, {
|
|
5255
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
5256
|
+
}>]>;
|
|
5021
5257
|
}, "strip", z.ZodTypeAny, {
|
|
5022
5258
|
event: {
|
|
5023
|
-
name: BigCommerceEventNames;
|
|
5259
|
+
name: BigCommerceEventNames.CartCreated;
|
|
5260
|
+
} | {
|
|
5261
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
5262
|
+
} | {
|
|
5263
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
5264
|
+
} | {
|
|
5265
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
5266
|
+
} | {
|
|
5267
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
5268
|
+
} | {
|
|
5269
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
5024
5270
|
};
|
|
5025
5271
|
provider: IntegrationNames.BigCommerce;
|
|
5026
5272
|
}, {
|
|
5027
5273
|
event: {
|
|
5028
|
-
name: BigCommerceEventNames;
|
|
5274
|
+
name: BigCommerceEventNames.CartCreated;
|
|
5275
|
+
} | {
|
|
5276
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
5277
|
+
} | {
|
|
5278
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
5279
|
+
} | {
|
|
5280
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
5281
|
+
} | {
|
|
5282
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
5283
|
+
} | {
|
|
5284
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
5029
5285
|
};
|
|
5030
5286
|
provider: IntegrationNames.BigCommerce;
|
|
5031
5287
|
}>]>>;
|
|
5032
5288
|
};
|
|
5033
|
-
type IntegrationEventSourceName = z.infer<typeof integrationEventsZods.sourceName>;
|
|
5034
|
-
type IntegrationEventSource = z.infer<typeof integrationEventsZods.source>;
|
|
5035
|
-
type IntegrationEventProviderName = z.infer<typeof integrationEventsZods.providerName>;
|
|
5036
|
-
type IntegrationEvent = z.infer<typeof integrationEventsZods.event>;
|
|
5037
|
-
type SubscribeToIntegrationEventPayload = z.infer<typeof integrationEventsZods.subscribe>;
|
|
5038
|
-
type UnsubscribeFromIntegrationEventPayload = z.infer<typeof integrationEventsZods.unsubscribe>;
|
|
5289
|
+
type IntegrationEventSourceName = z.infer<typeof integrationEventsZods.sourceName>;
|
|
5290
|
+
type IntegrationEventSource = z.infer<typeof integrationEventsZods.source>;
|
|
5291
|
+
type IntegrationEventProviderName = z.infer<typeof integrationEventsZods.providerName>;
|
|
5292
|
+
type IntegrationEvent = z.infer<typeof integrationEventsZods.event>;
|
|
5293
|
+
type SubscribeToIntegrationEventPayload = z.infer<typeof integrationEventsZods.subscribe>;
|
|
5294
|
+
type UnsubscribeFromIntegrationEventPayload = z.infer<typeof integrationEventsZods.unsubscribe>;
|
|
5295
|
+
|
|
5296
|
+
interface GitHubAuthorizeAppActionResult {
|
|
5297
|
+
token: string;
|
|
5298
|
+
}
|
|
5299
|
+
interface GitHubAuthorizeOauthActionResult {
|
|
5300
|
+
token: string;
|
|
5301
|
+
}
|
|
5302
|
+
interface GitHubAuthorizeFlowCustomContext {
|
|
5303
|
+
appCredentialId?: string;
|
|
5304
|
+
oauthCredentialId?: string;
|
|
5305
|
+
}
|
|
5306
|
+
type GitHubAuthorizeFlowContext = GitHubAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
5307
|
+
interface GitHubAuthorizeFlowResult {
|
|
5308
|
+
appToken: string;
|
|
5309
|
+
oauthToken: string;
|
|
5310
|
+
}
|
|
5311
|
+
|
|
5312
|
+
interface GitHubInstallActionContext {
|
|
5313
|
+
targetRepository?: string;
|
|
5314
|
+
isAlreadyInstalled?: true;
|
|
5315
|
+
showInstruction?: true;
|
|
5316
|
+
}
|
|
5317
|
+
interface GitHubInstallActionResult {
|
|
5318
|
+
appToken: string;
|
|
5319
|
+
installationId: string;
|
|
5320
|
+
}
|
|
5321
|
+
type GitHubInstallFlowCustomContext = GitHubInstallActionContext & {
|
|
5322
|
+
credentialId: string;
|
|
5323
|
+
};
|
|
5324
|
+
type GitHubInstallFlowContext = GitHubInstallFlowCustomContext & IntegrationFlowContext;
|
|
5325
|
+
type GitHubInstallFlowResult = GitHubInstallActionResult;
|
|
5326
|
+
|
|
5327
|
+
type GitHubFlows = 'authorize' | 'install';
|
|
5328
|
+
type GitHubFlowContext<TAction extends GitHubFlows> = TAction extends 'authorize' ? GitHubAuthorizeFlowCustomContext : TAction extends 'install' ? GitHubInstallFlowCustomContext : never;
|
|
5329
|
+
type GitHubFlowResult<TAction extends GitHubFlows> = TAction extends 'authorize' ? GitHubAuthorizeFlowResult : TAction extends 'install' ? GitHubInstallFlowResult : never;
|
|
5330
|
+
|
|
5331
|
+
interface NetlifyAuthorizeActionResult {
|
|
5332
|
+
token: string;
|
|
5333
|
+
}
|
|
5334
|
+
interface NetlifyAuthorizeFlowCustomContext {
|
|
5335
|
+
credentialId?: string;
|
|
5336
|
+
}
|
|
5337
|
+
type NetlifyAuthorizeFlowContext = NetlifyAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
5338
|
+
interface NetlifyAuthorizeFlowResult {
|
|
5339
|
+
token: string;
|
|
5340
|
+
}
|
|
5341
|
+
|
|
5342
|
+
interface NetlifyInstallActionContext {
|
|
5343
|
+
siteId?: string;
|
|
5344
|
+
token?: string;
|
|
5345
|
+
targetRepository?: string;
|
|
5346
|
+
showInstruction?: true;
|
|
5347
|
+
}
|
|
5348
|
+
interface NetlifyInstallActionResult {
|
|
5349
|
+
installationId: string;
|
|
5350
|
+
}
|
|
5351
|
+
type NetlifyInstallFlowCustomContext = NetlifyInstallActionContext & {
|
|
5352
|
+
credentialId: string;
|
|
5353
|
+
};
|
|
5354
|
+
type NetlifyInstallFlowContext = NetlifyInstallFlowCustomContext & IntegrationFlowContext;
|
|
5355
|
+
type NetlifyInstallFlowResult = NetlifyInstallActionResult;
|
|
5356
|
+
|
|
5357
|
+
type NetlifyFlows = 'authorize' | 'install';
|
|
5358
|
+
type NetlifyFlowContext<TAction extends NetlifyFlows> = TAction extends 'authorize' ? NetlifyAuthorizeFlowCustomContext : TAction extends 'install' ? NetlifyInstallFlowCustomContext : never;
|
|
5359
|
+
type NetlifyFlowResult<TAction extends NetlifyFlows> = TAction extends 'authorize' ? NetlifyAuthorizeFlowResult : TAction extends 'install' ? NetlifyInstallFlowResult : never;
|
|
5360
|
+
|
|
5361
|
+
interface VercelConnectActionContext {
|
|
5362
|
+
token: string;
|
|
5363
|
+
}
|
|
5364
|
+
interface VercelConnectActionResult {
|
|
5365
|
+
isConnected: boolean;
|
|
5366
|
+
}
|
|
5367
|
+
interface VercelAuthorizeActionResult {
|
|
5368
|
+
token: string;
|
|
5369
|
+
configurationId: string;
|
|
5370
|
+
isConnected: boolean;
|
|
5371
|
+
}
|
|
5372
|
+
interface VercelAuthorizeFlowCustomContext {
|
|
5373
|
+
credentialId?: string;
|
|
5374
|
+
}
|
|
5375
|
+
type VercelAuthorizeFlowContext = VercelAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
5376
|
+
interface VercelAuthorizeFlowResult {
|
|
5377
|
+
token: string;
|
|
5378
|
+
configurationId: string;
|
|
5379
|
+
}
|
|
5380
|
+
|
|
5381
|
+
interface VercelInstallActionContext {
|
|
5382
|
+
token: string;
|
|
5383
|
+
targetRepository?: string;
|
|
5384
|
+
showInstruction?: true;
|
|
5385
|
+
}
|
|
5386
|
+
interface VercelInstallActionResult {
|
|
5387
|
+
installationId: string;
|
|
5388
|
+
}
|
|
5389
|
+
type VercelInstallFlowCustomContext = VercelInstallActionContext & {
|
|
5390
|
+
credentialId: string;
|
|
5391
|
+
};
|
|
5392
|
+
type VercelInstallFlowContext = VercelInstallFlowCustomContext & IntegrationFlowContext;
|
|
5393
|
+
type VercelInstallFlowResult = VercelInstallActionResult;
|
|
5394
|
+
|
|
5395
|
+
type VercelFlows = 'authorize' | 'install';
|
|
5396
|
+
type VercelFlowContext<TAction extends VercelFlows> = TAction extends 'authorize' ? VercelAuthorizeFlowCustomContext : TAction extends 'install' ? VercelInstallFlowCustomContext : never;
|
|
5397
|
+
type VercelFlowResult<TAction extends VercelFlows> = TAction extends 'authorize' ? VercelAuthorizeFlowResult : TAction extends 'install' ? VercelInstallFlowResult : never;
|
|
5398
|
+
|
|
5399
|
+
interface BillingAccountDto {
|
|
5400
|
+
account_code: string;
|
|
5401
|
+
state: string;
|
|
5402
|
+
username: string;
|
|
5403
|
+
email: string;
|
|
5404
|
+
first_name: string;
|
|
5405
|
+
last_name: string;
|
|
5406
|
+
company_name: string;
|
|
5407
|
+
vat_number: string;
|
|
5408
|
+
tax_exempt: boolean;
|
|
5409
|
+
accept_language: string;
|
|
5410
|
+
address: {
|
|
5411
|
+
first_name: string;
|
|
5412
|
+
last_name: string;
|
|
5413
|
+
phone: string;
|
|
5414
|
+
city: string;
|
|
5415
|
+
country: string;
|
|
5416
|
+
state: string;
|
|
5417
|
+
zip: string;
|
|
5418
|
+
};
|
|
5419
|
+
}
|
|
5420
|
+
|
|
5421
|
+
interface BillingAccountInfoDto {
|
|
5422
|
+
first_name: string;
|
|
5423
|
+
last_name: string;
|
|
5424
|
+
company: string;
|
|
5425
|
+
address1: string;
|
|
5426
|
+
address2: string;
|
|
5427
|
+
city: string;
|
|
5428
|
+
state: string;
|
|
5429
|
+
zip: string;
|
|
5430
|
+
country: string;
|
|
5431
|
+
phone: string;
|
|
5432
|
+
vat_number: string;
|
|
5433
|
+
ip_address: string;
|
|
5434
|
+
ip_address_country: string;
|
|
5435
|
+
card_type: string;
|
|
5436
|
+
year: number;
|
|
5437
|
+
month: number;
|
|
5438
|
+
first_six: string;
|
|
5439
|
+
last_four: string;
|
|
5440
|
+
}
|
|
5441
|
+
|
|
5442
|
+
type BillingProduct = 'livechat' | 'platform';
|
|
5443
|
+
|
|
5444
|
+
type BillingClientAuthorization = GlobalAccountsClientAuthorization;
|
|
5445
|
+
interface BillingClientOptions extends BillingClientAuthorization {
|
|
5446
|
+
ensureAuthorizationToken?: boolean;
|
|
5447
|
+
}
|
|
5448
|
+
declare const billingClientInstance: axios.AxiosInstance;
|
|
5449
|
+
declare function getBillingClientConfig(options?: BillingClientOptions): AxiosRequestConfig;
|
|
5450
|
+
declare function initBillingClient(baseUrl?: string, token?: string): void;
|
|
5451
|
+
|
|
5452
|
+
interface BillingInvoiceDto {
|
|
5453
|
+
number: number;
|
|
5454
|
+
state: string;
|
|
5455
|
+
created_at: string;
|
|
5456
|
+
total_cents: number;
|
|
5457
|
+
currency: string;
|
|
5458
|
+
items: {
|
|
5459
|
+
description: string;
|
|
5460
|
+
unit_amount_cents: number;
|
|
5461
|
+
quantity: number;
|
|
5462
|
+
total_amount_cents: number;
|
|
5463
|
+
origin: string;
|
|
5464
|
+
}[];
|
|
5465
|
+
}
|
|
5466
|
+
|
|
5467
|
+
interface AppBaseData {
|
|
5468
|
+
name: string;
|
|
5469
|
+
product: string;
|
|
5470
|
+
}
|
|
5471
|
+
type AppManifest = AppBaseData & {
|
|
5472
|
+
id?: string;
|
|
5473
|
+
blocks?: {
|
|
5474
|
+
authorization?: AppAuthorizationData;
|
|
5475
|
+
monetization?: AppMonetizationData;
|
|
5476
|
+
repository?: AppRepositoryData;
|
|
5477
|
+
deployment?: AppDeploymentData;
|
|
5478
|
+
storage?: AppStorageData;
|
|
5479
|
+
properties?: AppPropertiesData;
|
|
5480
|
+
widgets?: AppWidgetsData;
|
|
5481
|
+
};
|
|
5482
|
+
display?: AppDisplayData;
|
|
5483
|
+
stage?: 'labs';
|
|
5484
|
+
};
|
|
5485
|
+
|
|
5486
|
+
type PushAppSagaBaseStep = SagaStep<{
|
|
5487
|
+
action: 'create';
|
|
5488
|
+
data: AppBaseData;
|
|
5489
|
+
} | {
|
|
5490
|
+
action: 'update';
|
|
5491
|
+
data: AppBaseData;
|
|
5492
|
+
changes: SagaStepChanges<AppBaseData>;
|
|
5493
|
+
meta: {
|
|
5494
|
+
id: string;
|
|
5495
|
+
};
|
|
5496
|
+
}, {
|
|
5497
|
+
id: string;
|
|
5498
|
+
}, {
|
|
5499
|
+
needToBeActivated?: boolean;
|
|
5500
|
+
}>;
|
|
5501
|
+
|
|
5502
|
+
type PushAppSagaAuthorizationStep = SagaStep<{
|
|
5503
|
+
action: 'add' | 'update';
|
|
5504
|
+
data: AppAuthorizationData;
|
|
5505
|
+
} | {
|
|
5506
|
+
action: 'remove';
|
|
5507
|
+
}>;
|
|
5508
|
+
|
|
5509
|
+
type PushAppSagaDeploymentStep = SagaStep<{
|
|
5510
|
+
action: 'link';
|
|
5511
|
+
data: LinkAppDeploymentData;
|
|
5512
|
+
} | {
|
|
5513
|
+
action: 'upsert';
|
|
5514
|
+
data: AppDeploymentData;
|
|
5515
|
+
} | {
|
|
5516
|
+
action: 'remove';
|
|
5517
|
+
}, AppDeploymentData, {
|
|
5518
|
+
needToBeInstalled?: boolean;
|
|
5519
|
+
}>;
|
|
5520
|
+
|
|
5521
|
+
type PushAppSagaDisplayStep = SagaStep<{
|
|
5522
|
+
action: 'add';
|
|
5523
|
+
data: AppDisplayData;
|
|
5524
|
+
} | {
|
|
5525
|
+
action: 'update';
|
|
5526
|
+
data: AppDisplayData;
|
|
5527
|
+
changes: SagaStepChanges<AppDisplayData>;
|
|
5528
|
+
} | {
|
|
5529
|
+
action: 'remove';
|
|
5530
|
+
}>;
|
|
5531
|
+
|
|
5532
|
+
type PushAppSagaMonetizationStep = SagaStep<{
|
|
5533
|
+
action: 'upsert';
|
|
5534
|
+
data: AppMonetizationData;
|
|
5535
|
+
} | {
|
|
5536
|
+
action: 'remove';
|
|
5537
|
+
}>;
|
|
5538
|
+
|
|
5539
|
+
type PushAppSagaPropertiesStep = SagaStep<{
|
|
5540
|
+
add: ({
|
|
5541
|
+
propertyId: string;
|
|
5542
|
+
} & AppPropertyData)[];
|
|
5543
|
+
update: ({
|
|
5544
|
+
propertyId: string;
|
|
5545
|
+
} & AppPropertyData)[];
|
|
5546
|
+
remove: {
|
|
5547
|
+
propertyId: string;
|
|
5548
|
+
}[];
|
|
5549
|
+
}>;
|
|
5550
|
+
|
|
5551
|
+
type PushAppSagaRepositoryStep = SagaStep<{
|
|
5552
|
+
action: 'link';
|
|
5553
|
+
data: LinkAppRepositoryData;
|
|
5554
|
+
} | {
|
|
5555
|
+
action: 'upsert';
|
|
5556
|
+
data: AppRepositoryData;
|
|
5557
|
+
} | {
|
|
5558
|
+
action: 'remove';
|
|
5559
|
+
}, AppRepositoryData, {
|
|
5560
|
+
needToBeInstalled?: boolean;
|
|
5561
|
+
needToBeSeeded?: boolean;
|
|
5562
|
+
}>;
|
|
5563
|
+
|
|
5564
|
+
type PushAppSagaStorageStep = SagaStep<{
|
|
5565
|
+
action: 'link';
|
|
5566
|
+
data: LinkAppStorageData;
|
|
5567
|
+
} | {
|
|
5568
|
+
action: 'upsert';
|
|
5569
|
+
data: AppStorageData;
|
|
5570
|
+
} | {
|
|
5571
|
+
action: 'remove';
|
|
5572
|
+
}, AppStorageData>;
|
|
5573
|
+
|
|
5574
|
+
type PushAppSagaWidgetsStep = SagaStep<{
|
|
5575
|
+
add: ({
|
|
5576
|
+
widgetId: string;
|
|
5577
|
+
} & AppWidgetData)[];
|
|
5578
|
+
update: ({
|
|
5579
|
+
widgetId: string;
|
|
5580
|
+
} & AppWidgetData)[];
|
|
5581
|
+
remove: {
|
|
5582
|
+
widgetId: string;
|
|
5583
|
+
}[];
|
|
5584
|
+
}>;
|
|
5585
|
+
|
|
5586
|
+
type PushAppSaga = Saga<{
|
|
5587
|
+
app?: PushAppSagaBaseStep;
|
|
5588
|
+
authorization?: PushAppSagaAuthorizationStep;
|
|
5589
|
+
monetization?: PushAppSagaMonetizationStep;
|
|
5590
|
+
repository?: PushAppSagaRepositoryStep;
|
|
5591
|
+
deployment?: PushAppSagaDeploymentStep;
|
|
5592
|
+
storage?: PushAppSagaStorageStep;
|
|
5593
|
+
properties?: PushAppSagaPropertiesStep;
|
|
5594
|
+
widgets?: PushAppSagaWidgetsStep;
|
|
5595
|
+
display?: PushAppSagaDisplayStep;
|
|
5596
|
+
}>;
|
|
5597
|
+
|
|
5598
|
+
interface PushAppPayload {
|
|
5599
|
+
manifest: AppManifest;
|
|
5600
|
+
metadata: {
|
|
5601
|
+
sagaId: string;
|
|
5602
|
+
};
|
|
5603
|
+
}
|
|
5604
|
+
type PushAppResult = SagaOutput<PushAppSaga>;
|
|
5605
|
+
|
|
5606
|
+
interface VerifyAppPayload {
|
|
5607
|
+
appId: string;
|
|
5608
|
+
manifest: AppManifest;
|
|
5609
|
+
}
|
|
5610
|
+
interface VerifyAppResult {
|
|
5611
|
+
status: 'ok' | 'nok';
|
|
5612
|
+
}
|
|
5613
|
+
|
|
5614
|
+
interface AppAuthorizationData {
|
|
5615
|
+
type: 'server_side_app' | 'javascript_app';
|
|
5616
|
+
redirectUri: string;
|
|
5617
|
+
scopes?: {
|
|
5618
|
+
scope: string;
|
|
5619
|
+
required: boolean;
|
|
5620
|
+
}[];
|
|
5621
|
+
clientId?: string;
|
|
5622
|
+
}
|
|
5623
|
+
|
|
5624
|
+
type AddAppAuthorizationPayload = {
|
|
5625
|
+
appId: string;
|
|
5626
|
+
appName: string;
|
|
5627
|
+
} & Omit<AppAuthorizationData, 'clientId'>;
|
|
5628
|
+
interface AddAppAuthorizationResult {
|
|
5629
|
+
clientId: string;
|
|
5630
|
+
clientSecret: string;
|
|
5631
|
+
}
|
|
5632
|
+
|
|
5633
|
+
interface RemoveAppAuthorizationPayload {
|
|
5634
|
+
appId: string;
|
|
5635
|
+
}
|
|
5636
|
+
|
|
5637
|
+
type UpdateAppAuthorizationPayload = {
|
|
5638
|
+
appId: string;
|
|
5639
|
+
} & AppAuthorizationData;
|
|
5640
|
+
|
|
5641
|
+
type AppDeploymentData = {
|
|
5642
|
+
provider: AppDeploymentProvider;
|
|
5643
|
+
} & AppDeploymentBlockConfig & (({
|
|
5644
|
+
provider: 'netlify';
|
|
5645
|
+
} & Partial<AppNetlifyDeploymentConfig>) | ({
|
|
5646
|
+
provider: 'vercel';
|
|
5647
|
+
} & Partial<AppVercelDeploymentConfig>) | {
|
|
5648
|
+
provider: 'custom';
|
|
5649
|
+
});
|
|
5650
|
+
|
|
5651
|
+
interface AppVercelDeployment {
|
|
5652
|
+
project: {
|
|
5653
|
+
id: string;
|
|
5654
|
+
name: string;
|
|
5655
|
+
url: string;
|
|
5656
|
+
adminUrl: string;
|
|
5657
|
+
};
|
|
5658
|
+
deploy: {
|
|
5659
|
+
id?: string;
|
|
5660
|
+
state?: 'ERROR' | 'READY' | 'BUILDING';
|
|
5661
|
+
};
|
|
5662
|
+
repository: {
|
|
5663
|
+
isAccessible: boolean;
|
|
5664
|
+
installationId?: number | null;
|
|
5665
|
+
};
|
|
5666
|
+
}
|
|
5667
|
+
interface AppNetlifyDeployment {
|
|
5668
|
+
site: {
|
|
5669
|
+
id: string;
|
|
5670
|
+
name: string;
|
|
5671
|
+
state: string;
|
|
5672
|
+
url: string;
|
|
5673
|
+
adminUrl: string;
|
|
5674
|
+
plugins: {
|
|
5675
|
+
package: string;
|
|
5676
|
+
}[];
|
|
5677
|
+
error?: string;
|
|
5678
|
+
};
|
|
5679
|
+
repository: {
|
|
5680
|
+
installationId: string;
|
|
5681
|
+
};
|
|
5682
|
+
deploy: {
|
|
5683
|
+
id: string;
|
|
5684
|
+
state: string;
|
|
5685
|
+
error?: string;
|
|
5686
|
+
pluginRuns?: {
|
|
5687
|
+
title: string;
|
|
5688
|
+
summary: string;
|
|
5689
|
+
state: string;
|
|
5690
|
+
}[];
|
|
5691
|
+
};
|
|
5692
|
+
envs: {
|
|
5693
|
+
key: string;
|
|
5694
|
+
value: string;
|
|
5695
|
+
}[];
|
|
5696
|
+
}
|
|
5697
|
+
type AppDeployment = ({
|
|
5698
|
+
provider: 'netlify';
|
|
5699
|
+
} & AppNetlifyDeployment) | ({
|
|
5700
|
+
provider: 'vercel';
|
|
5701
|
+
} & AppVercelDeployment);
|
|
5702
|
+
|
|
5703
|
+
type LinkAppDeploymentNetlifySiteData = {
|
|
5704
|
+
type: 'new';
|
|
5705
|
+
siteName?: string;
|
|
5706
|
+
} | {
|
|
5707
|
+
type: 'existing';
|
|
5708
|
+
siteId: string;
|
|
5709
|
+
};
|
|
5710
|
+
type LinkAppDeploymentNetlifyData = {
|
|
5711
|
+
installationId?: string;
|
|
5712
|
+
} & LinkAppDeploymentNetlifySiteData;
|
|
5713
|
+
type LinkAppDeploymentVercelProjectData = {
|
|
5714
|
+
type: 'new';
|
|
5715
|
+
projectName?: string;
|
|
5716
|
+
} | {
|
|
5717
|
+
type: 'existing';
|
|
5718
|
+
projectId: string;
|
|
5719
|
+
};
|
|
5720
|
+
type LinkAppDeploymentVercelData = {
|
|
5721
|
+
installationId?: string;
|
|
5722
|
+
} & LinkAppDeploymentVercelProjectData;
|
|
5723
|
+
type LinkAppDeploymentData = (({
|
|
5724
|
+
provider: 'netlify';
|
|
5725
|
+
} & LinkAppDeploymentNetlifyData) | ({
|
|
5726
|
+
provider: 'vercel';
|
|
5727
|
+
} & LinkAppDeploymentVercelData) | {
|
|
5728
|
+
provider: 'custom';
|
|
5729
|
+
url: string;
|
|
5730
|
+
}) & {
|
|
5731
|
+
force?: boolean;
|
|
5732
|
+
};
|
|
5733
|
+
type LinkAppDeploymentPayload = {
|
|
5734
|
+
appId: string;
|
|
5735
|
+
} & LinkAppDeploymentData;
|
|
5736
|
+
interface LinkAppDeploymentResult {
|
|
5737
|
+
url: string;
|
|
5738
|
+
needToBeInstalled: boolean;
|
|
5739
|
+
}
|
|
5039
5740
|
|
|
5040
|
-
interface
|
|
5041
|
-
|
|
5741
|
+
interface UnlinkAppDeploymentData {
|
|
5742
|
+
shouldDelete?: true;
|
|
5042
5743
|
}
|
|
5043
|
-
|
|
5044
|
-
|
|
5744
|
+
type UnlinkAppDeploymentPayload = {
|
|
5745
|
+
appId: string;
|
|
5746
|
+
} & UnlinkAppDeploymentData;
|
|
5747
|
+
|
|
5748
|
+
type UpsertAppDeploymentPayload = {
|
|
5749
|
+
appId: string;
|
|
5750
|
+
} & AppDeploymentData;
|
|
5751
|
+
|
|
5752
|
+
type AppMonetizationData = {
|
|
5753
|
+
price: number;
|
|
5754
|
+
frequency: 'monthly' | 'once';
|
|
5755
|
+
trialDays: number;
|
|
5756
|
+
} & ({
|
|
5757
|
+
charge: 'account';
|
|
5758
|
+
tiers?: {
|
|
5759
|
+
accountsFrom: number;
|
|
5760
|
+
discount: number;
|
|
5761
|
+
}[];
|
|
5762
|
+
} | {
|
|
5763
|
+
charge: 'organization';
|
|
5764
|
+
});
|
|
5765
|
+
|
|
5766
|
+
interface RemoveAppMonetizationPayload {
|
|
5767
|
+
appId: string;
|
|
5045
5768
|
}
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5769
|
+
|
|
5770
|
+
type UpsertAppMonetizationPayload = {
|
|
5771
|
+
appId: string;
|
|
5772
|
+
} & AppMonetizationData;
|
|
5773
|
+
|
|
5774
|
+
type AppPropertiesData = Record<string, AppPropertyData>;
|
|
5775
|
+
|
|
5776
|
+
interface RemoveAppPropertiesPayload {
|
|
5777
|
+
appId: string;
|
|
5049
5778
|
}
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5779
|
+
|
|
5780
|
+
type UpsertAppPropertiesPayload = {
|
|
5781
|
+
appId: string;
|
|
5782
|
+
} & AppPropertiesData;
|
|
5783
|
+
|
|
5784
|
+
interface AppPropertyData {
|
|
5785
|
+
type: PropertyDto['type'];
|
|
5786
|
+
description: string;
|
|
5787
|
+
default_value: string;
|
|
5788
|
+
access: PropertyAccessDto;
|
|
5054
5789
|
}
|
|
5055
5790
|
|
|
5056
|
-
interface
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
showInstruction?: true;
|
|
5791
|
+
interface RemoveAppPropertyPayload {
|
|
5792
|
+
appId: string;
|
|
5793
|
+
propertyId: string;
|
|
5060
5794
|
}
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5795
|
+
|
|
5796
|
+
type UpsertAppPropertyPayload = {
|
|
5797
|
+
appId: string;
|
|
5798
|
+
propertyId: string;
|
|
5799
|
+
} & AppPropertyData;
|
|
5800
|
+
|
|
5801
|
+
type AppRepositoryData = {
|
|
5802
|
+
provider: AppRepositoryProvider;
|
|
5803
|
+
} & AppRepositoryBlockConfig;
|
|
5804
|
+
|
|
5805
|
+
interface AppGitHubRepository {
|
|
5806
|
+
name: string;
|
|
5807
|
+
branch: string;
|
|
5808
|
+
isSeeded: boolean;
|
|
5809
|
+
language: string;
|
|
5810
|
+
description?: string;
|
|
5064
5811
|
}
|
|
5065
|
-
type
|
|
5066
|
-
|
|
5067
|
-
};
|
|
5068
|
-
type GitHubInstallFlowContext = GitHubInstallFlowCustomContext & IntegrationFlowContext;
|
|
5069
|
-
type GitHubInstallFlowResult = GitHubInstallActionResult;
|
|
5812
|
+
type AppRepository = {
|
|
5813
|
+
provider: 'github';
|
|
5814
|
+
} & AppGitHubRepository;
|
|
5070
5815
|
|
|
5071
|
-
type
|
|
5072
|
-
type
|
|
5073
|
-
|
|
5816
|
+
type LinkAppRepositoryGitHubData = {
|
|
5817
|
+
type: 'new';
|
|
5818
|
+
name?: string;
|
|
5819
|
+
template?: string;
|
|
5820
|
+
} | {
|
|
5821
|
+
type: 'existing';
|
|
5822
|
+
fullName: string;
|
|
5823
|
+
branch: string;
|
|
5824
|
+
};
|
|
5825
|
+
type LinkAppRepositoryData = {
|
|
5826
|
+
target: AppRepositoryTarget | undefined;
|
|
5827
|
+
force?: boolean;
|
|
5828
|
+
} & ({
|
|
5829
|
+
provider: 'github';
|
|
5830
|
+
} & LinkAppRepositoryGitHubData);
|
|
5831
|
+
type LinkAppRepositoryPayload = {
|
|
5832
|
+
appId: string;
|
|
5833
|
+
} & LinkAppRepositoryData;
|
|
5834
|
+
interface LinkAppRepositoryResult {
|
|
5835
|
+
name: string;
|
|
5836
|
+
branch: string;
|
|
5837
|
+
needToBeInstalled: boolean;
|
|
5838
|
+
needToBeSeeded: boolean;
|
|
5839
|
+
}
|
|
5074
5840
|
|
|
5075
|
-
interface
|
|
5076
|
-
|
|
5841
|
+
interface SeedAppRepositoryPayload {
|
|
5842
|
+
appId: string;
|
|
5077
5843
|
}
|
|
5078
|
-
interface
|
|
5079
|
-
|
|
5844
|
+
interface SeedAppRepositoryResult {
|
|
5845
|
+
isSeeded: boolean;
|
|
5080
5846
|
}
|
|
5081
|
-
|
|
5082
|
-
interface
|
|
5083
|
-
|
|
5847
|
+
|
|
5848
|
+
interface UnlinkAppRepositoryData {
|
|
5849
|
+
shouldDelete?: true;
|
|
5084
5850
|
}
|
|
5851
|
+
type UnlinkAppRepositoryPayload = {
|
|
5852
|
+
appId: string;
|
|
5853
|
+
} & UnlinkAppRepositoryData;
|
|
5085
5854
|
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5855
|
+
type UpsertAppRepositoryPayload = {
|
|
5856
|
+
appId: string;
|
|
5857
|
+
} & AppRepositoryData;
|
|
5858
|
+
|
|
5859
|
+
type AppStorageData = {
|
|
5860
|
+
provider: AppStorageProvider;
|
|
5861
|
+
} & AppStorageBlockConfig & (({
|
|
5862
|
+
provider: 'planetscale';
|
|
5863
|
+
} & Partial<AppPlanetScaleStorageConfig>) | ({
|
|
5864
|
+
provider: 'neon';
|
|
5865
|
+
} & Partial<AppNeonStorageConfig>));
|
|
5866
|
+
|
|
5867
|
+
interface AppPlanetScaleStorage {
|
|
5868
|
+
database: {
|
|
5869
|
+
id: string;
|
|
5870
|
+
name: string;
|
|
5871
|
+
url: string;
|
|
5872
|
+
};
|
|
5091
5873
|
}
|
|
5092
|
-
interface
|
|
5093
|
-
|
|
5874
|
+
interface AppNeonStorage {
|
|
5875
|
+
projectName: string;
|
|
5876
|
+
projectId: string;
|
|
5877
|
+
branchId: string;
|
|
5878
|
+
databaseName: string;
|
|
5094
5879
|
}
|
|
5095
|
-
type
|
|
5096
|
-
|
|
5097
|
-
}
|
|
5098
|
-
|
|
5099
|
-
|
|
5880
|
+
type AppStorage = ({
|
|
5881
|
+
provider: 'planetscale';
|
|
5882
|
+
} & AppPlanetScaleStorage) | ({
|
|
5883
|
+
provider: 'neon';
|
|
5884
|
+
} & AppNeonStorage);
|
|
5100
5885
|
|
|
5101
|
-
type
|
|
5102
|
-
type
|
|
5103
|
-
|
|
5886
|
+
type LinkAppStoragePlanetScaleDatabaseData = {
|
|
5887
|
+
type: 'new';
|
|
5888
|
+
databaseName?: string;
|
|
5889
|
+
} | {
|
|
5890
|
+
type: 'existing';
|
|
5891
|
+
databaseId: string;
|
|
5892
|
+
};
|
|
5893
|
+
type LinkAppStoragePlanetScaleData = {
|
|
5894
|
+
organization: string;
|
|
5895
|
+
} & LinkAppStoragePlanetScaleDatabaseData;
|
|
5896
|
+
type LinkAppStorageNeonData = {
|
|
5897
|
+
type: 'new';
|
|
5898
|
+
projectName?: string;
|
|
5899
|
+
databaseName?: string;
|
|
5900
|
+
} | ({
|
|
5901
|
+
type: 'existing';
|
|
5902
|
+
projectId: string;
|
|
5903
|
+
branchId: string;
|
|
5904
|
+
} & ({
|
|
5905
|
+
databaseType: 'new';
|
|
5906
|
+
databaseName?: string;
|
|
5907
|
+
} | {
|
|
5908
|
+
databaseType: 'existing';
|
|
5909
|
+
databaseName: string;
|
|
5910
|
+
}));
|
|
5911
|
+
type LinkAppStorageData = {
|
|
5912
|
+
seedRepository: boolean;
|
|
5913
|
+
force?: boolean;
|
|
5914
|
+
} & (({
|
|
5915
|
+
provider: 'planetscale';
|
|
5916
|
+
} & LinkAppStoragePlanetScaleData) | ({
|
|
5917
|
+
provider: 'neon';
|
|
5918
|
+
} & LinkAppStorageNeonData));
|
|
5919
|
+
type LinkAppStoragePayload = {
|
|
5920
|
+
appId: string;
|
|
5921
|
+
} & LinkAppStorageData;
|
|
5104
5922
|
|
|
5105
|
-
interface
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
interface VercelConnectActionResult {
|
|
5109
|
-
isConnected: boolean;
|
|
5923
|
+
interface UnlinkAppStorageData {
|
|
5924
|
+
shouldDelete?: true;
|
|
5925
|
+
shouldDeleteDatabase?: true;
|
|
5110
5926
|
}
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5927
|
+
type UnlinkAppStoragePayload = {
|
|
5928
|
+
appId: string;
|
|
5929
|
+
} & UnlinkAppStorageData;
|
|
5930
|
+
|
|
5931
|
+
type UpsertAppStoragePayload = {
|
|
5932
|
+
appId: string;
|
|
5933
|
+
} & AppStorageData;
|
|
5934
|
+
|
|
5935
|
+
type AppWidgetsData = Record<string, AppWidgetData>;
|
|
5936
|
+
|
|
5937
|
+
interface RemoveAppWidgetsPayload {
|
|
5938
|
+
appId: string;
|
|
5115
5939
|
}
|
|
5116
|
-
|
|
5117
|
-
|
|
5940
|
+
|
|
5941
|
+
type UpsertAppWidgetsPayload = {
|
|
5942
|
+
appId: string;
|
|
5943
|
+
} & AppWidgetsData;
|
|
5944
|
+
|
|
5945
|
+
interface AppWidgetData {
|
|
5946
|
+
placement: string;
|
|
5947
|
+
initialState?: string;
|
|
5948
|
+
url: string;
|
|
5118
5949
|
}
|
|
5119
|
-
|
|
5120
|
-
interface
|
|
5121
|
-
|
|
5122
|
-
|
|
5950
|
+
|
|
5951
|
+
interface RemoveAppWidgetPayload {
|
|
5952
|
+
appId: string;
|
|
5953
|
+
widgetId: string;
|
|
5123
5954
|
}
|
|
5124
5955
|
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5956
|
+
type UpsertAppWidgetPayload = {
|
|
5957
|
+
appId: string;
|
|
5958
|
+
widgetId: string;
|
|
5959
|
+
} & AppWidgetData;
|
|
5960
|
+
|
|
5961
|
+
interface AppDisplayData {
|
|
5962
|
+
shortDescription?: string;
|
|
5963
|
+
longDescription?: string;
|
|
5129
5964
|
}
|
|
5130
|
-
|
|
5131
|
-
|
|
5965
|
+
|
|
5966
|
+
interface AppBaseTemplate {
|
|
5967
|
+
id: string;
|
|
5968
|
+
name: string;
|
|
5969
|
+
description: string;
|
|
5970
|
+
tags: string[];
|
|
5971
|
+
image?: string;
|
|
5972
|
+
icons?: Record<string, string>;
|
|
5132
5973
|
}
|
|
5133
|
-
type
|
|
5134
|
-
|
|
5974
|
+
type AppRepositoryTemplate = AppBaseTemplate & {
|
|
5975
|
+
repository: {
|
|
5976
|
+
name: string;
|
|
5977
|
+
target?: AppRepositoryTarget;
|
|
5978
|
+
};
|
|
5135
5979
|
};
|
|
5136
|
-
type
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5980
|
+
type AppTemplate = AppBaseTemplate & {
|
|
5981
|
+
manifest: AppManifest;
|
|
5982
|
+
icons?: {
|
|
5983
|
+
small: string;
|
|
5984
|
+
};
|
|
5985
|
+
category: {
|
|
5986
|
+
name: string;
|
|
5987
|
+
};
|
|
5988
|
+
template?: boolean;
|
|
5989
|
+
};
|
|
5990
|
+
interface AppRepositoryTemplates {
|
|
5991
|
+
nextjs: AppRepositoryTemplate;
|
|
5992
|
+
vite: AppRepositoryTemplate;
|
|
5993
|
+
saas: AppRepositoryTemplate;
|
|
5994
|
+
}
|
|
5995
|
+
interface AppTemplates {
|
|
5996
|
+
saas: AppTemplate;
|
|
5997
|
+
}
|
|
5142
5998
|
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5999
|
+
type AppVariableType = 'custom' | 'auth' | 'storage';
|
|
6000
|
+
type AppVariableStatus = 'valid' | 'invalid' | 'warning' | 'unknown';
|
|
6001
|
+
type AppVariableLocalProvider = 'console';
|
|
6002
|
+
type AppVariableExternalProvider = 'vercel' | 'netlify';
|
|
6003
|
+
type AppVariableProvider = AppVariableLocalProvider | AppVariableExternalProvider;
|
|
6004
|
+
interface AppVariable {
|
|
6005
|
+
key: string;
|
|
6006
|
+
value: {
|
|
6007
|
+
local?: {
|
|
6008
|
+
type: AppVariableLocalProvider;
|
|
6009
|
+
id: string;
|
|
6010
|
+
value: string;
|
|
6011
|
+
isReadonly: boolean;
|
|
6012
|
+
};
|
|
6013
|
+
external?: {
|
|
6014
|
+
type: AppVariableExternalProvider;
|
|
6015
|
+
id: string;
|
|
6016
|
+
value: string;
|
|
6017
|
+
};
|
|
5162
6018
|
};
|
|
6019
|
+
type?: AppVariableType;
|
|
6020
|
+
status?: AppVariableStatus;
|
|
6021
|
+
isLinked: boolean;
|
|
6022
|
+
isDecrypted: boolean;
|
|
5163
6023
|
}
|
|
5164
6024
|
|
|
5165
|
-
interface
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
address1: string;
|
|
5170
|
-
address2: string;
|
|
5171
|
-
city: string;
|
|
5172
|
-
state: string;
|
|
5173
|
-
zip: string;
|
|
5174
|
-
country: string;
|
|
5175
|
-
phone: string;
|
|
5176
|
-
vat_number: string;
|
|
5177
|
-
ip_address: string;
|
|
5178
|
-
ip_address_country: string;
|
|
5179
|
-
card_type: string;
|
|
5180
|
-
year: number;
|
|
5181
|
-
month: number;
|
|
5182
|
-
first_six: string;
|
|
5183
|
-
last_four: string;
|
|
6025
|
+
interface CreateAppVariablePayload {
|
|
6026
|
+
appId: string;
|
|
6027
|
+
key: string;
|
|
6028
|
+
value: string;
|
|
5184
6029
|
}
|
|
5185
6030
|
|
|
5186
|
-
|
|
6031
|
+
interface EditAppVariablePayload {
|
|
6032
|
+
appId: string;
|
|
6033
|
+
key: string;
|
|
6034
|
+
localValue: string;
|
|
6035
|
+
externalValue: string;
|
|
6036
|
+
}
|
|
5187
6037
|
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
6038
|
+
interface SyncAppVariablePayload {
|
|
6039
|
+
source: {
|
|
6040
|
+
type: AppVariableProvider;
|
|
6041
|
+
id: string;
|
|
6042
|
+
value: string;
|
|
6043
|
+
};
|
|
6044
|
+
target: {
|
|
6045
|
+
id?: string;
|
|
6046
|
+
};
|
|
5191
6047
|
}
|
|
5192
|
-
declare const billingClientInstance: axios.AxiosInstance;
|
|
5193
|
-
declare function getBillingClientConfig(options?: BillingClientOptions): AxiosRequestConfig;
|
|
5194
|
-
declare function initBillingClient(baseUrl?: string, token?: string): void;
|
|
5195
6048
|
|
|
5196
|
-
interface
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
6049
|
+
interface ConsoleClientAuthorization {
|
|
6050
|
+
platform?: GlobalAccountsClientAuthorization;
|
|
6051
|
+
github?: GithubClientAuthorization;
|
|
6052
|
+
netlify?: NetlifyClientAuthorization;
|
|
6053
|
+
vercel?: VercelClientAuthorization;
|
|
6054
|
+
planetscale?: PlanetScaleClientAuthorization;
|
|
6055
|
+
neon?: NeonClientAuthorization;
|
|
6056
|
+
}
|
|
6057
|
+
type ConsoleClientOptions = ConsoleClientAuthorization & {
|
|
6058
|
+
ensureAuthorizationToken?: {
|
|
6059
|
+
platform?: boolean;
|
|
6060
|
+
github?: boolean;
|
|
6061
|
+
netlify?: boolean;
|
|
6062
|
+
vercel?: boolean;
|
|
6063
|
+
planetscale?: boolean;
|
|
6064
|
+
neon?: boolean;
|
|
6065
|
+
};
|
|
6066
|
+
};
|
|
6067
|
+
declare class ConsoleApiError extends ApiErrorBase<{
|
|
6068
|
+
errorCode: string;
|
|
6069
|
+
errorMessage: string;
|
|
6070
|
+
}> {
|
|
6071
|
+
name: "console";
|
|
6072
|
+
static notFound(message?: string): ConsoleApiError;
|
|
5209
6073
|
}
|
|
6074
|
+
declare const consoleClientInstance: axios.AxiosInstance;
|
|
6075
|
+
declare function getConsoleClientConfig(options?: ConsoleClientOptions): AxiosRequestConfig;
|
|
6076
|
+
declare const getConsoleClientDefaultConfig: (authorization?: ConsoleClientAuthorization) => AxiosRequestConfig<any>;
|
|
6077
|
+
declare function initConsoleClient(baseUrl?: string, tokens?: {
|
|
6078
|
+
platform?: GlobalAccountsClientAuthorization;
|
|
6079
|
+
github?: GithubClientAuthorization;
|
|
6080
|
+
netlify?: NetlifyClientAuthorization;
|
|
6081
|
+
vercel?: VercelClientAuthorization;
|
|
6082
|
+
planetscale?: PlanetScaleClientAuthorization;
|
|
6083
|
+
neon?: NeonClientAuthorization;
|
|
6084
|
+
}): void;
|
|
6085
|
+
declare function updateConsoleClient(tokens?: {
|
|
6086
|
+
platform?: GlobalAccountsClientAuthorization;
|
|
6087
|
+
github?: GithubClientAuthorization;
|
|
6088
|
+
netlify?: NetlifyClientAuthorization;
|
|
6089
|
+
vercel?: VercelClientAuthorization;
|
|
6090
|
+
planetscale?: PlanetScaleClientAuthorization;
|
|
6091
|
+
neon?: NeonClientAuthorization;
|
|
6092
|
+
}): void;
|
|
5210
6093
|
|
|
5211
6094
|
interface ApplicationPaymentDto {
|
|
5212
6095
|
creditCardRequired: boolean;
|
|
@@ -6487,81 +7370,6 @@ declare const api: {
|
|
|
6487
7370
|
};
|
|
6488
7371
|
};
|
|
6489
7372
|
adapter: {
|
|
6490
|
-
app: {
|
|
6491
|
-
blocks: {
|
|
6492
|
-
authorization: {
|
|
6493
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppAuthorizationData, any>>;
|
|
6494
|
-
add(payload: AddAppAuthorizationPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AddAppAuthorizationResult, any>>;
|
|
6495
|
-
update(payload: UpdateAppAuthorizationPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6496
|
-
remove(payload: RemoveAppAuthorizationPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6497
|
-
};
|
|
6498
|
-
monetization: {
|
|
6499
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppMonetizationData, any>>;
|
|
6500
|
-
upsert(payload: UpsertAppMonetizationPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6501
|
-
remove(payload: RemoveAppMonetizationPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6502
|
-
};
|
|
6503
|
-
repository: {
|
|
6504
|
-
getAggregate(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<{
|
|
6505
|
-
provider: "github";
|
|
6506
|
-
} & AppGitHubRepository, any>>;
|
|
6507
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppRepositoryData, any>>;
|
|
6508
|
-
link(payload: LinkAppRepositoryPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<LinkAppRepositoryResult, any>>;
|
|
6509
|
-
unlink(payload: UnlinkAppRepositoryPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6510
|
-
upsert(payload: UpsertAppRepositoryPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6511
|
-
seed(payload: SeedAppRepositoryPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<SeedAppRepositoryResult, any>>;
|
|
6512
|
-
};
|
|
6513
|
-
deployment: {
|
|
6514
|
-
getAggregate(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppDeployment, any>>;
|
|
6515
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppDeploymentData, any>>;
|
|
6516
|
-
link(payload: LinkAppDeploymentPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<LinkAppDeploymentResult, any>>;
|
|
6517
|
-
unlink(payload: UnlinkAppDeploymentPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6518
|
-
upsert(payload: UpsertAppDeploymentPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6519
|
-
};
|
|
6520
|
-
storage: {
|
|
6521
|
-
getAggregate(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppStorage, any>>;
|
|
6522
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppStorageData, any>>;
|
|
6523
|
-
link(payload: LinkAppStoragePayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6524
|
-
unlink(payload: UnlinkAppStoragePayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6525
|
-
upsert(payload: UpsertAppStoragePayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6526
|
-
};
|
|
6527
|
-
properties: {
|
|
6528
|
-
property: {
|
|
6529
|
-
get(appId: string, propertyId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppPropertyData, any>>;
|
|
6530
|
-
upsert(payload: UpsertAppPropertyPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6531
|
-
remove(payload: RemoveAppPropertyPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6532
|
-
};
|
|
6533
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppPropertiesData, any>>;
|
|
6534
|
-
upsert(payload: UpsertAppPropertiesPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6535
|
-
remove(payload: RemoveAppPropertiesPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6536
|
-
};
|
|
6537
|
-
widgets: {
|
|
6538
|
-
widget: {
|
|
6539
|
-
get(appId: string, widgetId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppWidgetData, any>>;
|
|
6540
|
-
upsert(payload: UpsertAppWidgetPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6541
|
-
remove(payload: RemoveAppWidgetPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6542
|
-
};
|
|
6543
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppWidgetsData, any>>;
|
|
6544
|
-
upsert(payload: UpsertAppWidgetsPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6545
|
-
remove(payload: RemoveAppWidgetsPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6546
|
-
};
|
|
6547
|
-
};
|
|
6548
|
-
variables: {
|
|
6549
|
-
getVariables(appId: string, decrypted?: boolean, authorization?: AdapterClientAuthorization): Promise<AppVariable[]>;
|
|
6550
|
-
getVariable(appId: string, key: string, authorization?: AdapterClientAuthorization): Promise<AppVariable>;
|
|
6551
|
-
syncVariable(appId: string, key: string, payload: SyncAppVariablePayload, authorization?: AdapterClientAuthorization): Promise<void>;
|
|
6552
|
-
createVariable(appId: string, data: CreateAppVariablePayload, authorization?: AdapterClientAuthorization): Promise<void>;
|
|
6553
|
-
editVariable(appId: string, data: EditAppVariablePayload, authorization?: AdapterClientAuthorization): Promise<void>;
|
|
6554
|
-
deleteVariable(appId: string, key: string): Promise<void>;
|
|
6555
|
-
};
|
|
6556
|
-
templates: {
|
|
6557
|
-
getTemplates(authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppTemplates, any>>;
|
|
6558
|
-
getRepositoryTemplates(authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppRepositoryTemplates, any>>;
|
|
6559
|
-
};
|
|
6560
|
-
push(payload: PushAppPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<PushAppResult, any>>;
|
|
6561
|
-
pull(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppManifest, any>>;
|
|
6562
|
-
verify(payload: VerifyAppPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<VerifyAppResult, any>>;
|
|
6563
|
-
status<TSaga>(sagaId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<SagaOutput<TSaga> | undefined, any>>;
|
|
6564
|
-
};
|
|
6565
7373
|
integrations: {
|
|
6566
7374
|
mailchimp: {
|
|
6567
7375
|
events: {
|
|
@@ -6600,11 +7408,88 @@ declare const api: {
|
|
|
6600
7408
|
};
|
|
6601
7409
|
};
|
|
6602
7410
|
};
|
|
7411
|
+
};
|
|
7412
|
+
console: {
|
|
7413
|
+
app: {
|
|
7414
|
+
blocks: {
|
|
7415
|
+
authorization: {
|
|
7416
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppAuthorizationData, any>>;
|
|
7417
|
+
add(payload: AddAppAuthorizationPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AddAppAuthorizationResult, any>>;
|
|
7418
|
+
update(payload: UpdateAppAuthorizationPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7419
|
+
remove(payload: RemoveAppAuthorizationPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7420
|
+
};
|
|
7421
|
+
monetization: {
|
|
7422
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppMonetizationData, any>>;
|
|
7423
|
+
upsert(payload: UpsertAppMonetizationPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7424
|
+
remove(payload: RemoveAppMonetizationPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7425
|
+
};
|
|
7426
|
+
repository: {
|
|
7427
|
+
getAggregate(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<{
|
|
7428
|
+
provider: "github";
|
|
7429
|
+
} & AppGitHubRepository, any>>;
|
|
7430
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppRepositoryData, any>>;
|
|
7431
|
+
link(payload: LinkAppRepositoryPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<LinkAppRepositoryResult, any>>;
|
|
7432
|
+
unlink(payload: UnlinkAppRepositoryPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7433
|
+
upsert(payload: UpsertAppRepositoryPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7434
|
+
seed(payload: SeedAppRepositoryPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<SeedAppRepositoryResult, any>>;
|
|
7435
|
+
};
|
|
7436
|
+
deployment: {
|
|
7437
|
+
getAggregate(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppDeployment, any>>;
|
|
7438
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppDeploymentData, any>>;
|
|
7439
|
+
link(payload: LinkAppDeploymentPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<LinkAppDeploymentResult, any>>;
|
|
7440
|
+
unlink(payload: UnlinkAppDeploymentPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7441
|
+
upsert(payload: UpsertAppDeploymentPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7442
|
+
};
|
|
7443
|
+
storage: {
|
|
7444
|
+
getAggregate(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppStorage, any>>;
|
|
7445
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppStorageData, any>>;
|
|
7446
|
+
link(payload: LinkAppStoragePayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7447
|
+
unlink(payload: UnlinkAppStoragePayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7448
|
+
upsert(payload: UpsertAppStoragePayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7449
|
+
};
|
|
7450
|
+
properties: {
|
|
7451
|
+
property: {
|
|
7452
|
+
get(appId: string, propertyId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppPropertyData, any>>;
|
|
7453
|
+
upsert(payload: UpsertAppPropertyPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7454
|
+
remove(payload: RemoveAppPropertyPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7455
|
+
};
|
|
7456
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppPropertiesData, any>>;
|
|
7457
|
+
upsert(payload: UpsertAppPropertiesPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7458
|
+
remove(payload: RemoveAppPropertiesPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7459
|
+
};
|
|
7460
|
+
widgets: {
|
|
7461
|
+
widget: {
|
|
7462
|
+
get(appId: string, widgetId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppWidgetData, any>>;
|
|
7463
|
+
upsert(payload: UpsertAppWidgetPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7464
|
+
remove(payload: RemoveAppWidgetPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7465
|
+
};
|
|
7466
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppWidgetsData, any>>;
|
|
7467
|
+
upsert(payload: UpsertAppWidgetsPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7468
|
+
remove(payload: RemoveAppWidgetsPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
7469
|
+
};
|
|
7470
|
+
};
|
|
7471
|
+
variables: {
|
|
7472
|
+
getVariables(appId: string, decrypted?: boolean, authorization?: ConsoleClientAuthorization): Promise<AppVariable[]>;
|
|
7473
|
+
getVariable(appId: string, key: string, authorization?: ConsoleClientAuthorization): Promise<AppVariable>;
|
|
7474
|
+
syncVariable(appId: string, key: string, payload: SyncAppVariablePayload, authorization?: ConsoleClientAuthorization): Promise<void>;
|
|
7475
|
+
createVariable(appId: string, data: CreateAppVariablePayload, authorization?: ConsoleClientAuthorization): Promise<void>;
|
|
7476
|
+
editVariable(appId: string, data: EditAppVariablePayload, authorization?: ConsoleClientAuthorization): Promise<void>;
|
|
7477
|
+
deleteVariable(appId: string, key: string): Promise<void>;
|
|
7478
|
+
};
|
|
7479
|
+
templates: {
|
|
7480
|
+
getTemplates(authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppTemplates, any>>;
|
|
7481
|
+
getRepositoryTemplates(authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppRepositoryTemplates, any>>;
|
|
7482
|
+
};
|
|
7483
|
+
push(payload: PushAppPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<PushAppResult, any>>;
|
|
7484
|
+
pull(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppManifest, any>>;
|
|
7485
|
+
verify(payload: VerifyAppPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<VerifyAppResult, any>>;
|
|
7486
|
+
status<TSaga>(sagaId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<SagaOutput<TSaga> | undefined, any>>;
|
|
7487
|
+
};
|
|
6603
7488
|
log(payload: {
|
|
6604
7489
|
userId: string;
|
|
6605
7490
|
name: string;
|
|
6606
7491
|
payload: Record<string, unknown>;
|
|
6607
|
-
}, authorization?:
|
|
7492
|
+
}, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6608
7493
|
};
|
|
6609
7494
|
dps: {
|
|
6610
7495
|
applications: {
|
|
@@ -7256,6 +8141,7 @@ declare const api: {
|
|
|
7256
8141
|
update: (id: string) => string;
|
|
7257
8142
|
delete: (id: string) => string;
|
|
7258
8143
|
connect: (id: string) => string;
|
|
8144
|
+
disconnect: (id: string) => string;
|
|
7259
8145
|
};
|
|
7260
8146
|
};
|
|
7261
8147
|
get(id: string, authorization?: TextClientAuthorization): Promise<axios.AxiosResponse<CredentialDto, any>>;
|
|
@@ -7266,6 +8152,7 @@ declare const api: {
|
|
|
7266
8152
|
connect(id: string, code: string, authorization?: TextClientAuthorization): Promise<axios.AxiosResponse<{
|
|
7267
8153
|
access_token: string;
|
|
7268
8154
|
}, any>>;
|
|
8155
|
+
disconnect(id: string, authorization?: TextClientAuthorization): Promise<axios.AxiosResponse<Record<string, never>, any>>;
|
|
7269
8156
|
};
|
|
7270
8157
|
functions: {
|
|
7271
8158
|
meta: {
|
|
@@ -7382,4 +8269,4 @@ declare function getIntegrationFlowUrl<TFlowContext, TFlowResult, TState>(name:
|
|
|
7382
8269
|
|
|
7383
8270
|
declare const buildUrlFromSegments: (segments: string[], basePath: string, baseUrl?: string) => string;
|
|
7384
8271
|
|
|
7385
|
-
export { API_NOTIFICATIONS, type AccountDto, AccountsApiError, type AccountsClientAuthorization, type AccountsClientInstanceOptions, AdapterApiError, type AdapterClientAuthorization, type AdapterClientOptions, type AddAppAuthorizationPayload, type AddAppAuthorizationResult, type AgentConfigurationDto, type AgentDto, ApiClient, type ApiClientAuthorization, type ApiClientConfig, type ApiError, ApiErrorBase, type ApiErrorKind, type ApiErrorName, type ApiErrorSource, type ApiTokens, type ApiUrls, type AppAuthorizationData, type AppBaseData, type AppBaseTemplate, type AppDeployment, type AppDeploymentBlock, type AppDeploymentBlockConfig, type AppDeploymentData, type AppDeploymentProvider, type AppDisplayData, type AppEventDto, type AppGitHubRepository, type AppGitHubRepositoryConfig, type AppInfrastructureBlocks, type AppManifest, type AppMonetizationData, type AppMonitoringCustomReport, type AppMonitoringCustomReportDataDto, type AppMonitoringEvent, type AppMonitoringEventData, type AppMonitoringEventsLog, type AppMonitoringEventsLogItem, type AppMonitoringEventsReportDto, type AppMonitoringReportParams, type AppMonitoringUptimeReportDto, type AppNeonStorage, type AppNeonStorageConfig, type AppNetlifyDeployment, type AppNetlifyDeploymentConfig, type AppPlanetScaleStorage, type AppPlanetScaleStorageConfig, type AppPropertiesData, type AppPropertyData, type AppRepository, type AppRepositoryBlock, type AppRepositoryBlockConfig, type AppRepositoryData, type AppRepositoryProvider, type AppRepositoryTarget, type AppRepositoryTemplate, type AppRepositoryTemplates, type AppResourceDto, type AppStatsDto, type AppStorage, type AppStorageBlock, type AppStorageBlockConfig, type AppStorageData, type AppStorageProvider, type AppTemplate, type AppTemplates, type AppVariable, type AppVariableExternalProvider, type AppVariableLocalProvider, type AppVariableProvider, type AppVariableStatus, type AppVariableType, type AppVercelDeployment, type AppVercelDeploymentConfig, type AppWidgetData, type AppWidgetsData, type ApplicationAutoReviewDto, type ApplicationAutoReviewPayload, type ApplicationBasicDetailsDto, type ApplicationBenefitDto, type ApplicationChatBooster, type ApplicationDto, type ApplicationFeatureDto, type ApplicationIconDto, type ApplicationOverviewDto, type ApplicationPaymentDto, type ApplicationPropertyDto, type ApplicationScreenshotDto, type ApplicationTutorialAndSupportDto, type ApplicationUsageOptionsDto, type ApplicationWidget, type AuthorizeData, BigCommerceApiError, type BigCommerceAuthorizeActionContext, type BigCommerceAuthorizeActionResult, type BigCommerceAuthorizeFlowContext, type BigCommerceAuthorizeFlowCustomContext, type BigCommerceAuthorizeFlowResult, type BigCommerceCartCreatedWebhookData, type BigCommerceCartUpdatedWebhookData, type BigCommerceClientAuthorization, type BigCommerceClientOptions, type BigCommerceCreateWebhookPayload, type BigCommerceEvent, BigCommerceEventNames, type BigCommerceFlowContext, type BigCommerceFlowResult, type BigCommerceFlows, type BigCommerceOauthCredential, type BigCommerceOrderCreatedWebhookData, type BigCommerceOrderUpdatedWebhookData, type BigCommerceProductCreatedWebhookData, type BigCommerceProductUpdatedWebhookData, type BigCommerceWebhook, type BigCommerceWebhookConcreteData, type BigCommerceWebhookData, type BigCommerceWebhookDataBase, BigCommerceWebhookScopes, type BillingAccountDto, type BillingAccountInfoDto, type BillingClientAuthorization, type BillingClientOptions, type BillingInvoiceDto, type BillingProduct, type Category, type ChatDeactivatedLivechatWebhookData, type ChatTransferredLivechatWebhookData, type ClientDto, type ClientInfoDto, type ClientScopeDto, type ClientWithSecretDto, type CreateAppVariablePayload, type CreateApplicationAuthorizationPayload, type CreateApplicationChatActionPayload, type CreateApplicationPayload, type CreateApplicationResponse, type CreateApplicationSubmissionPayload, type CreateClientPayload, type CreateCredentialPayload, type CreateHubSpotWebhookSubscriptionPayload, type CreateLivechatBotTemplateDto, type CreateLivechatBotTemplateResponse, type CreateWebhookPayload, type Credential, type CredentialDto, type DeepPartial$1 as DeepPartial, type DeleteLivechatBotTemplateDto, type DeveloperLedgerParams, DpsApiError, type DpsClientAuthorization, type DpsClientOptions, type EditAppVariablePayload, type FunctionDto, type FunctionSchema, type GenerateResponsePayload, type GenerateResponseResponse, type GetAppMonitoringCustomReportDataPayload, type GetAppMonitoringEventsLogPayload, type GetAppMonitoringEventsLogResponse, type GetAppMonitoringEventsReportPayload, type GetAppMonitoringUptimeReportPayload, type GetPlanetScaleDatabasePasswordsResult, type GetPlanetScaleDatabasesResult, type GetPlanetScaleOrganizationsResult, type GetTextPlatformDashboardReportParams, type GetVercelProjectsResult, type GitHubAppCredential, type GitHubAuthorizeAppActionResult, type GitHubAuthorizeFlowContext, type GitHubAuthorizeFlowCustomContext, type GitHubAuthorizeFlowResult, type GitHubAuthorizeOauthActionResult, type GitHubFlowContext, type GitHubFlowResult, type GitHubFlows, type GitHubInstallActionContext, type GitHubInstallActionResult, type GitHubInstallFlowContext, type GitHubInstallFlowCustomContext, type GitHubInstallFlowResult, type GitHubInstallation, type GitHubOauthCredential, type GitHubRepository, type GitHubRepositoryBranch, type GitHubRepositoryHook, type GitHubRepositoryIssue, type GitHubRepositoryKey, type GitHubRepositorySeed, type GithubClientAuthorization, type GithubClientOptions, type GlobalAccountsClientAuthorization, HelpDeskApiError, type HelpDeskClientAuthorization, type HelpDeskClientOptions, type HelpDeskWebhookBaseData, type HelpDeskWebhookData, HelpDeskWebhookEventType, type HubSpotContactCreationWebhookData, type HubSpotContactDeletionWebhookData, type HubSpotFlowContext, type HubSpotFlowResult, type HubSpotFlows, type HubSpotOauthCredential, type HubSpotWebhookConcreteData, type HubSpotWebhookData, type HubSpotWebhookDataBase, HubSpotWebhookEventTypes, type HubSpotWebhookSettings, type HubSpotWebhookSubscription, HubspotApiError, type HubspotAuthorizeActionResult, type HubspotAuthorizeFlowContext, type HubspotAuthorizeFlowCustomContext, type HubspotAuthorizeFlowResult, type HubspotClientAuthorization, type HubspotClientInstanceOptions, type HubspotEvent, HubspotEventNames, type IncomingChatLivechatWebhookData, type IncomingEventLivechatWebhookData, IntegrationDisplayNames, type IntegrationEvent, type IntegrationEventProviderName, type IntegrationEventSource, type IntegrationEventSourceName, type IntegrationFlowContext, type IntegrationFlowOutput, IntegrationModes, IntegrationNames, type IssueLabel, type LicenseProperty, type LinkAppDeploymentData, type LinkAppDeploymentNetlifyData, type LinkAppDeploymentNetlifySiteData, type LinkAppDeploymentPayload, type LinkAppDeploymentResult, type LinkAppDeploymentVercelData, type LinkAppDeploymentVercelProjectData, type LinkAppRepositoryData, type LinkAppRepositoryGitHubData, type LinkAppRepositoryPayload, type LinkAppRepositoryResult, type LinkAppStorageData, type LinkAppStorageNeonData, type LinkAppStoragePayload, type LinkAppStoragePlanetScaleData, type LinkAppStoragePlanetScaleDatabaseData, type LiveChatClientAuthorization, type LiveChatClientOptions, type LiveChatConfigurationApiError, LivechatApiError, type LivechatBotTemplate, type LivechatWebhook, LivechatWebhookActions, type LivechatWebhookChat, type LivechatWebhookData, type LivechatWebhookDataBase, type LivechatWebhookDto, type LivechatWebhookEvent, LivechatWebhookEvents, type LivechatWebhookMessageEvent, type LivechatWebhookSystemMessageEvent, LivechatWebhookSystemMessages, type LivechatWebhookUser, MailchimpApiError, type MailchimpAuthorizeActionResult, type MailchimpAuthorizeFlowContext, type MailchimpAuthorizeFlowCustomContext, type MailchimpAuthorizeFlowResult, type MailchimpClientAuthorization, type MailchimpClientInstanceOptions, type MailchimpEvent, MailchimpEventNames, type MailchimpFlowContext, type MailchimpFlowResult, type MailchimpFlows, type MailchimpListWebhook, type MailchimpOauthCredential, type MailchimpSubscribeWebhookData, type MailchimpUnsubscribeWebhookData, type MailchimpWebhookConcreteData, type MailchimpWebhookData, type MailchimpWebhookDataBase, type MailchimpWebhookEvents, type MyAccountDto, type NeonClientAuthorization, type NeonClientOptions, type NeonOauthCredential, type NeonProjectBranchDto, type NeonProjectBranchesDto, type NeonProjectDatabaseDto, type NeonProjectDatabasesDto, type NeonProjectDto, type NeonProjectRoleDto, type NeonProjectRolesDto, type NeonProjectWithConnectionUriDto, type NeonProjectsDto, type NeonUser, type NetlifyAccount, type NetlifyAuthorizeActionResult, type NetlifyAuthorizeFlowContext, type NetlifyAuthorizeFlowCustomContext, type NetlifyAuthorizeFlowResult, type NetlifyClientAuthorization, type NetlifyClientOptions, type NetlifyDeploy, type NetlifyDeployKey, type NetlifyEnv, type NetlifyFlowContext, type NetlifyFlowResult, type NetlifyFlows, type NetlifyInstallActionContext, type NetlifyInstallActionResult, type NetlifyInstallFlowContext, type NetlifyInstallFlowCustomContext, type NetlifyInstallFlowResult, type NetlifyOauthCredential, type NetlifySite, type OAuthCredential, type OpenaiCredential, type OrganizationDto, type PatDto, type PatScopeDto, type PatWithSecretDto, type PlanetScaleClientAuthorization, type PlanetScaleClientOptions, type PlanetScaleDatabase, type PlanetScaleDatabasePassword, type PlanetScaleOauthCredential, type PlanetScaleOrganization, type PlanetScalePaginatedResult, type PlanetScalePagination, type PlanetScaleUser, type ProductDto, type PropertiesDto, type Property, type PropertyAccessDto, type PropertyAccessItemDto, type PropertyDto, type PushAppPayload, type PushAppResult, type PushAppSaga, type PushAppSagaAuthorizationStep, type PushAppSagaBaseStep, type PushAppSagaDeploymentStep, type PushAppSagaDisplayStep, type PushAppSagaMonetizationStep, type PushAppSagaPropertiesStep, type PushAppSagaRepositoryStep, type PushAppSagaStorageStep, type PushAppSagaWidgetsStep, type RegisterDeveloperPayload, type RemoveAppAuthorizationPayload, type RemoveAppMonetizationPayload, type RemoveAppPropertiesPayload, type RemoveAppPropertyPayload, type RemoveAppWidgetPayload, type RemoveAppWidgetsPayload, type ResearchCustomerItemDto, type ResearchCustomerLocationItemDto, type ResearchDictionaryParams, type ResearchMarketplaceItemDto, type ResearchMarketplaceParams, type ResearchTrafficItemDto, type ResearchTrafficParams, type ResetLivechatBotTemplateSecretDto, type ResourceConfig, type ResourceReference, type Saga, type SagaInput, type SagaOutput, type SagaStep, type SagaStepChanges, type SagaStepComparer, type SagaStepPropertyCompareResult, type SagaStepStatus, type SagaStepsSchema, type ScopeDto, type SeedAppRepositoryPayload, type SeedAppRepositoryResult, ShopifyApiError, type ShopifyAuthorizeActionContext, type ShopifyAuthorizeActionResult, type ShopifyAuthorizeFlowContext, type ShopifyAuthorizeFlowCustomContext, type ShopifyAuthorizeFlowResult, type ShopifyClientAuthorization, type ShopifyClientOptions, type ShopifyEvent, ShopifyEventNames, type ShopifyFlowContext, type ShopifyFlowResult, type ShopifyFlows, type ShopifyOauthCredential, type ShopifyOrderCreatedWebhookData, type ShopifyWebhookConcreteData, type ShopifyWebhookData, type ShopifyWebhookDataBase, type ShopifyWebhookTopics, type ShortcutDto, SlackApiError, type SlackAuthorizeActionResult, type SlackAuthorizeFlowContext, type SlackAuthorizeFlowCustomContext, type SlackAuthorizeFlowResult, type SlackChannelType, type SlackClientAuthorization, type SlackClientInstanceOptions, type SlackClientUserTokenInfo, type SlackEvent, type SlackEventAuthorizationsData, type SlackEventBaseData, type SlackEventBasePayload, type SlackEventMessagePostedData, type SlackEventMessagePostedPayload, SlackEventNames, type SlackEventPayloadData, SlackEventTypes, type SlackFlowContext, type SlackFlowResult, type SlackFlows, SlackMessageEventSubTypes, type SlackOauthCredential, type SubscribeToBigCommerceEventPayload, type SubscribeToHubspotEventPayload, type SubscribeToIntegrationEventPayload, type SubscribeToMailchimpEventPayload, type SubscribeToShopifyEventPayload, type SubscribeToSlackEventPayload, type SubscribeToTextHelpDeskEventPayload, type SubscribeToTextLivechatEventPayload, type SyncAppVariablePayload, TextApiError, type TextAuthCredential, type TextAuthorizeActionResult, type TextAuthorizeFlowContext, type TextAuthorizeFlowCustomContext, type TextAuthorizeFlowResult, type TextClientAuthorization, type TextClientOptions, type TextFlowContext, type TextFlowResult, type TextFlows, type TextHelpDeskEvent, TextHelpDeskEventNames, type TextLiveChatEvent, TextLivechatEventNames, type TextOAuthCredential, type TextPlatformDashboardCreditsDto, type TextPlatformDashboardPaymentDto, type TextPlatformDashboardReportDto, type TextPlatformDashboardReportItemDto, type ThreadTaggedLivechatWebhookData, type ThreadUntaggedLivechatWebhookData, type TicketAssignmentChangedHelpDeskWebhookData, type TicketCreatedHelpDeskWebhookData, type TicketFollowersChangedHelpDeskWebhookData, type TicketMessageAddedHelpDeskWebhookData, type TicketPriorityChangedHelpDeskWebhookData, type TicketStatusChangedHelpDeskWebhookData, type TicketTagsChangedHelpDeskWebhookData, type TicketUpdatedHelpDeskWebhookData, UnauthorizeAccountsApiError, UnauthorizeApiError, type UnlinkAppDeploymentData, type UnlinkAppDeploymentPayload, type UnlinkAppRepositoryData, type UnlinkAppRepositoryPayload, type UnlinkAppStorageData, type UnlinkAppStoragePayload, type UnsubscribeFromBigCommerceEventPayload, type UnsubscribeFromHubspotEventPayload, type UnsubscribeFromIntegrationEventPayload, type UnsubscribeFromMailchimpEventPayload, type UnsubscribeFromShopifyEventPayload, type UnsubscribeFromSlackEventPayload, type UnsubscribeFromTextHelpDeskEventPayload, type UnsubscribeFromTextLivechatEventPayload, type UpdateAppAuthorizationPayload, type UpdateAppInfrastructureBlocksPayload, type UpdateApplicationChangelogPayload, type UpdateApplicationChatActionPayload, type UpdateApplicationDirectInstallUrlPayload, type UpdateApplicationIconPayload, type UpdateApplicationOnboardingPayload, type UpdateApplicationProductPayload, type UpdateApplicationWebhookPayload, type UpdateApplicationWidgetDto, type UpdateChatWebhookPayload, type UpdateClientPayload, type UpdateCredentialPayload, type UpdateLivechatBotTemplateDto, type UpdateUserFeatures, type UpdateUserIntegrations, type UpdateWebhookPayload, type UpsertAppDeploymentPayload, type UpsertAppMonetizationPayload, type UpsertAppPropertiesPayload, type UpsertAppPropertyPayload, type UpsertAppRepositoryPayload, type UpsertAppResourcePayload, type UpsertAppStoragePayload, type UpsertAppWidgetPayload, type UpsertAppWidgetsPayload, type UpsertApplicationChatBoosterPayload, type UpsertHubSpotWebhookSettingsPayload, type UpsertWorkflowPayload, type UserAddedToChatLivechatWebhookData, type UserDto, type UserFeaturesDto, type UserGitHubIntegrationDto, type UserIntegrationsDto, type UserNeonIntegrationDto, type UserNetlifyIntegrationDto, type UserPlanetScaleIntegrationDto, type UserRemovedFromChatWebhookData, type UserSurveyDto, type UserVercelIntegrationDto, type VercelAuthorizeActionResult, type VercelAuthorizeFlowContext, type VercelAuthorizeFlowCustomContext, type VercelAuthorizeFlowResult, type VercelClientAuthorization, type VercelClientOptions, type VercelConnectActionContext, type VercelConnectActionResult, type VercelDeploy, type VercelFlowContext, type VercelFlowResult, type VercelFlows, type VercelInstallActionContext, type VercelInstallActionResult, type VercelInstallFlowContext, type VercelInstallFlowCustomContext, type VercelInstallFlowResult, type VercelNamespace, type VercelOauthCredential, type VercelPaginatedResult, type VercelPagination, type VercelProject, type VercelProjectEnv, type VercelRepository, type VercelSearchRepositoryResponse, type VerifyAppPayload, type VerifyAppResult, type WebhookDto, type WebhookTicketDto, type WorkflowDefinitionDto, type WorkflowDefinitionForkJoinTask, type WorkflowDefinitionHttpTask, type WorkflowDefinitionJoinTask, type WorkflowDefinitionSwitchTask, type WorkflowDefinitionTask, type WorkflowDefinitionTaskBase, WorkflowDefinitionTaskType, type WorkflowDefinitionTerminateTask, type WorkflowDefinitionsQueryParams, type WorkflowDto, type WorkflowExecution, type WorkflowExecutionDetails, WorkflowExecutionStatus, type WorkflowTemplate, WorkflowTemplateCategory, type WorkflowTriggerDto, type WorkflowTriggerType, type WorkflowsDto, adapterClientInstance, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, bigCommerceClientInstance, bigcommerceEventsZods, billingClientInstance, buildUrlFromSegments, dpsClientInstance, getAdapterClientConfig, getAdapterClientDefaultConfig, getAppAutoReviewPayload, getBigCommerceClientConfig, getBigCommerceClientUrl, getBillingClientConfig, getDpsClientConfig, getEmptyAppAutoReview, getGithubClientConfig, getHelpDeskClientConfig, getHubspotClientConfig, getIntegrationFlowUrl, getIntegrationFlowUrlForRedirection, getLiveChatClientConfig, getMailchimpClientConfig, getMailchimpClientUrl, getNeonClientConfig, getNetlifyClientConfig, getPlanetScaleClientConfig, getRegion, getShopifyClientConfig, getShopifyClientUrl, getSlackClientConfig, getTextClientConfig, getVercelClientConfig, githubClientInstance, helpdeskClientInstance, hubspotClientInstance, hubspotEventsZods, initAdapterClient, initApi, initBigCommerceClient, initBillingClient, initDpsClient, initGithubClient, initHelpDeskClient, initHubspotClient, initLiveChatClient, initMailchimpClient, initNeonClient, initNetlifyClient, initPlanetScaleClient, initPlatformAccountsClient, initShopifyClient, initSlackClient, initTextClient, initVercelClient, integrationEventsZods, livechatClientInstance, mailchimpClientInstance, mailchimpEventsZods, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, shopifyClientInstance, shopifyEventsZods, slackClientInstance, slackEventsZods, textClientInstance, textHelpDeskEventsZods, textLivechatEventsZods, updateAdapterClient, updateBigCommerceClient, updateGithubClient, updateHubspotClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updateShopifyClient, updateSlackClient, updateVercelClient, vercelClientInstance };
|
|
8272
|
+
export { API_NOTIFICATIONS, type AccountDto, AccountsApiError, type AccountsClientAuthorization, type AccountsClientInstanceOptions, AdapterApiError, type AdapterClientAuthorization, type AdapterClientOptions, type AddAppAuthorizationPayload, type AddAppAuthorizationResult, type AgentConfigurationDto, type AgentDto, ApiClient, type ApiClientAuthorization, type ApiClientConfig, type ApiError, ApiErrorBase, type ApiErrorKind, type ApiErrorName, type ApiErrorSource, type ApiTokens, type ApiUrls, type AppAuthorizationData, type AppBaseData, type AppBaseTemplate, type AppDeployment, type AppDeploymentBlock, type AppDeploymentBlockConfig, type AppDeploymentData, type AppDeploymentProvider, type AppDisplayData, type AppEventDto, type AppGitHubRepository, type AppGitHubRepositoryConfig, type AppInfrastructureBlocks, type AppManifest, type AppMonetizationData, type AppMonitoringCustomReport, type AppMonitoringCustomReportDataDto, type AppMonitoringEvent, type AppMonitoringEventData, type AppMonitoringEventsLog, type AppMonitoringEventsLogItem, type AppMonitoringEventsReportDto, type AppMonitoringReportParams, type AppMonitoringUptimeReportDto, type AppNeonStorage, type AppNeonStorageConfig, type AppNetlifyDeployment, type AppNetlifyDeploymentConfig, type AppPlanetScaleStorage, type AppPlanetScaleStorageConfig, type AppPropertiesData, type AppPropertyData, type AppRepository, type AppRepositoryBlock, type AppRepositoryBlockConfig, type AppRepositoryData, type AppRepositoryProvider, type AppRepositoryTarget, type AppRepositoryTemplate, type AppRepositoryTemplates, type AppResourceDto, type AppStatsDto, type AppStorage, type AppStorageBlock, type AppStorageBlockConfig, type AppStorageData, type AppStorageProvider, type AppTemplate, type AppTemplates, type AppVariable, type AppVariableExternalProvider, type AppVariableLocalProvider, type AppVariableProvider, type AppVariableStatus, type AppVariableType, type AppVercelDeployment, type AppVercelDeploymentConfig, type AppWidgetData, type AppWidgetsData, type ApplicationAutoReviewDto, type ApplicationAutoReviewPayload, type ApplicationBasicDetailsDto, type ApplicationBenefitDto, type ApplicationChatBooster, type ApplicationDto, type ApplicationFeatureDto, type ApplicationIconDto, type ApplicationOverviewDto, type ApplicationPaymentDto, type ApplicationPropertyDto, type ApplicationScreenshotDto, type ApplicationTutorialAndSupportDto, type ApplicationUsageOptionsDto, type ApplicationWidget, type AuthorizeData, BigCommerceApiError, type BigCommerceAuthorizeActionContext, type BigCommerceAuthorizeActionResult, type BigCommerceAuthorizeFlowContext, type BigCommerceAuthorizeFlowCustomContext, type BigCommerceAuthorizeFlowResult, type BigCommerceCartCreatedWebhookData, type BigCommerceCartUpdatedWebhookData, type BigCommerceClientAuthorization, type BigCommerceClientOptions, type BigCommerceCreateWebhookPayload, type BigCommerceEvent, BigCommerceEventNames, type BigCommerceFlowContext, type BigCommerceFlowResult, type BigCommerceFlows, type BigCommerceOauthCredential, type BigCommerceOrderCreatedWebhookData, type BigCommerceOrderUpdatedWebhookData, type BigCommerceProductCreatedWebhookData, type BigCommerceProductUpdatedWebhookData, type BigCommerceWebhook, type BigCommerceWebhookConcreteData, type BigCommerceWebhookData, type BigCommerceWebhookDataBase, BigCommerceWebhookScopes, type BillingAccountDto, type BillingAccountInfoDto, type BillingClientAuthorization, type BillingClientOptions, type BillingInvoiceDto, type BillingProduct, type Category, type ChatDeactivatedLivechatWebhookData, type ChatTransferredLivechatWebhookData, type ClientDto, type ClientInfoDto, type ClientScopeDto, type ClientWithSecretDto, ConsoleApiError, type ConsoleClientAuthorization, type ConsoleClientOptions, type CreateAppVariablePayload, type CreateApplicationAuthorizationPayload, type CreateApplicationChatActionPayload, type CreateApplicationPayload, type CreateApplicationResponse, type CreateApplicationSubmissionPayload, type CreateClientPayload, type CreateCredentialPayload, type CreateHubSpotWebhookSubscriptionPayload, type CreateLivechatBotTemplateDto, type CreateLivechatBotTemplateResponse, type CreateWebhookPayload, type Credential, type CredentialDto, type DeepPartial$1 as DeepPartial, type DeleteLivechatBotTemplateDto, type DeveloperLedgerParams, DpsApiError, type DpsClientAuthorization, type DpsClientOptions, type EditAppVariablePayload, type FunctionDto, type FunctionSchema, type GenerateResponsePayload, type GenerateResponseResponse, type GetAppMonitoringCustomReportDataPayload, type GetAppMonitoringEventsLogPayload, type GetAppMonitoringEventsLogResponse, type GetAppMonitoringEventsReportPayload, type GetAppMonitoringUptimeReportPayload, type GetPlanetScaleDatabasePasswordsResult, type GetPlanetScaleDatabasesResult, type GetPlanetScaleOrganizationsResult, type GetTextPlatformDashboardReportParams, type GetVercelProjectsResult, type GitHubAppCredential, type GitHubAuthorizeAppActionResult, type GitHubAuthorizeFlowContext, type GitHubAuthorizeFlowCustomContext, type GitHubAuthorizeFlowResult, type GitHubAuthorizeOauthActionResult, type GitHubDeleteWebhookData, type GitHubFlowContext, type GitHubFlowResult, type GitHubFlows, type GitHubInstallActionContext, type GitHubInstallActionResult, type GitHubInstallFlowContext, type GitHubInstallFlowCustomContext, type GitHubInstallFlowResult, type GitHubInstallation, type GitHubOauthCredential, type GitHubRepository, type GitHubRepositoryBranch, type GitHubRepositoryHook, type GitHubRepositoryIssue, type GitHubRepositoryKey, type GitHubRepositorySeed, type GitHubUnknownWebhookData, GitHubWebhookActions, type GitHubWebhookConcreteData, type GitHubWebhookData, type GitHubWebhookDataBase, type GithubClientAuthorization, type GithubClientOptions, type GlobalAccountsClientAuthorization, HelpDeskApiError, type HelpDeskClientAuthorization, type HelpDeskClientOptions, type HelpDeskWebhookBaseData, type HelpDeskWebhookData, HelpDeskWebhookEventType, type HubSpotContactCreationWebhookData, type HubSpotContactDeletionWebhookData, type HubSpotFlowContext, type HubSpotFlowResult, type HubSpotFlows, type HubSpotOauthCredential, type HubSpotWebhookConcreteData, type HubSpotWebhookData, type HubSpotWebhookDataBase, HubSpotWebhookEventTypes, type HubSpotWebhookSettings, type HubSpotWebhookSubscription, HubspotApiError, type HubspotAuthorizeActionResult, type HubspotAuthorizeFlowContext, type HubspotAuthorizeFlowCustomContext, type HubspotAuthorizeFlowResult, type HubspotClientAuthorization, type HubspotClientInstanceOptions, type HubspotEvent, HubspotEventNames, type IncomingChatLivechatWebhookData, type IncomingEventLivechatWebhookData, IntegrationDisplayNames, type IntegrationEvent, type IntegrationEventProviderName, type IntegrationEventSource, type IntegrationEventSourceName, type IntegrationFlowContext, type IntegrationFlowOutput, IntegrationModes, IntegrationNames, type IssueLabel, type LicenseProperty, type LinkAppDeploymentData, type LinkAppDeploymentNetlifyData, type LinkAppDeploymentNetlifySiteData, type LinkAppDeploymentPayload, type LinkAppDeploymentResult, type LinkAppDeploymentVercelData, type LinkAppDeploymentVercelProjectData, type LinkAppRepositoryData, type LinkAppRepositoryGitHubData, type LinkAppRepositoryPayload, type LinkAppRepositoryResult, type LinkAppStorageData, type LinkAppStorageNeonData, type LinkAppStoragePayload, type LinkAppStoragePlanetScaleData, type LinkAppStoragePlanetScaleDatabaseData, type LiveChatClientAuthorization, type LiveChatClientOptions, type LiveChatConfigurationApiError, LivechatApiError, type LivechatBotTemplate, type LivechatWebhook, LivechatWebhookActions, type LivechatWebhookChat, type LivechatWebhookData, type LivechatWebhookDataBase, type LivechatWebhookDto, type LivechatWebhookEvent, LivechatWebhookEvents, type LivechatWebhookMessageEvent, type LivechatWebhookSystemMessageEvent, LivechatWebhookSystemMessages, type LivechatWebhookUser, MailchimpApiError, type MailchimpAuthorizeActionResult, type MailchimpAuthorizeFlowContext, type MailchimpAuthorizeFlowCustomContext, type MailchimpAuthorizeFlowResult, type MailchimpClientAuthorization, type MailchimpClientInstanceOptions, type MailchimpEvent, MailchimpEventNames, type MailchimpFlowContext, type MailchimpFlowResult, type MailchimpFlows, type MailchimpListWebhook, type MailchimpOauthCredential, type MailchimpSubscribeWebhookData, type MailchimpUnsubscribeWebhookData, type MailchimpWebhookConcreteData, type MailchimpWebhookData, type MailchimpWebhookDataBase, type MailchimpWebhookEvents, type MyAccountDto, type NeonClientAuthorization, type NeonClientOptions, type NeonOauthCredential, type NeonProjectBranchDto, type NeonProjectBranchesDto, type NeonProjectDatabaseDto, type NeonProjectDatabasesDto, type NeonProjectDto, type NeonProjectRoleDto, type NeonProjectRolesDto, type NeonProjectWithConnectionUriDto, type NeonProjectsDto, type NeonUser, type NetlifyAccount, type NetlifyAuthorizeActionResult, type NetlifyAuthorizeFlowContext, type NetlifyAuthorizeFlowCustomContext, type NetlifyAuthorizeFlowResult, type NetlifyClientAuthorization, type NetlifyClientOptions, type NetlifyDeploy, type NetlifyDeployKey, type NetlifyEnv, type NetlifyFlowContext, type NetlifyFlowResult, type NetlifyFlows, type NetlifyInstallActionContext, type NetlifyInstallActionResult, type NetlifyInstallFlowContext, type NetlifyInstallFlowCustomContext, type NetlifyInstallFlowResult, type NetlifyOauthCredential, type NetlifySite, type OAuthCredential, type OpenaiCredential, type OrganizationDto, type PatDto, type PatScopeDto, type PatWithSecretDto, type PlanetScaleClientAuthorization, type PlanetScaleClientOptions, type PlanetScaleDatabase, type PlanetScaleDatabasePassword, type PlanetScaleOauthCredential, type PlanetScaleOrganization, type PlanetScalePaginatedResult, type PlanetScalePagination, type PlanetScaleUser, type ProductDto, type PropertiesDto, type Property, type PropertyAccessDto, type PropertyAccessItemDto, type PropertyDto, type PushAppPayload, type PushAppResult, type PushAppSaga, type PushAppSagaAuthorizationStep, type PushAppSagaBaseStep, type PushAppSagaDeploymentStep, type PushAppSagaDisplayStep, type PushAppSagaMonetizationStep, type PushAppSagaPropertiesStep, type PushAppSagaRepositoryStep, type PushAppSagaStorageStep, type PushAppSagaWidgetsStep, type RegisterDeveloperPayload, type RemoveAppAuthorizationPayload, type RemoveAppMonetizationPayload, type RemoveAppPropertiesPayload, type RemoveAppPropertyPayload, type RemoveAppWidgetPayload, type RemoveAppWidgetsPayload, type ResearchCustomerItemDto, type ResearchCustomerLocationItemDto, type ResearchDictionaryParams, type ResearchMarketplaceItemDto, type ResearchMarketplaceParams, type ResearchTrafficItemDto, type ResearchTrafficParams, type ResetLivechatBotTemplateSecretDto, type ResourceConfig, type ResourceReference, type Saga, type SagaInput, type SagaOutput, type SagaStep, type SagaStepChanges, type SagaStepComparer, type SagaStepPropertyCompareResult, type SagaStepStatus, type SagaStepsSchema, type ScopeDto, type SeedAppRepositoryPayload, type SeedAppRepositoryResult, ShopifyApiError, type ShopifyAuthorizeActionContext, type ShopifyAuthorizeActionResult, type ShopifyAuthorizeFlowContext, type ShopifyAuthorizeFlowCustomContext, type ShopifyAuthorizeFlowResult, type ShopifyClientAuthorization, type ShopifyClientOptions, type ShopifyEvent, ShopifyEventNames, type ShopifyFlowContext, type ShopifyFlowResult, type ShopifyFlows, type ShopifyOauthCredential, type ShopifyOrderCreatedWebhookData, type ShopifyWebhookConcreteData, type ShopifyWebhookData, type ShopifyWebhookDataBase, type ShopifyWebhookTopics, type ShortcutDto, SlackApiError, type SlackAuthorizeActionResult, type SlackAuthorizeFlowContext, type SlackAuthorizeFlowCustomContext, type SlackAuthorizeFlowResult, type SlackChannelType, type SlackClientAuthorization, type SlackClientInstanceOptions, type SlackClientUserTokenInfo, type SlackEvent, type SlackEventAuthorizationsData, type SlackEventBaseData, type SlackEventBasePayload, type SlackEventMessagePostedData, type SlackEventMessagePostedPayload, SlackEventNames, type SlackEventPayloadData, SlackEventTypes, type SlackFlowContext, type SlackFlowResult, type SlackFlows, SlackMessageEventSubTypes, type SlackOauthCredential, type SubscribeToBigCommerceEventPayload, type SubscribeToHubspotEventPayload, type SubscribeToIntegrationEventPayload, type SubscribeToMailchimpEventPayload, type SubscribeToShopifyEventPayload, type SubscribeToSlackEventPayload, type SubscribeToTextHelpDeskEventPayload, type SubscribeToTextLivechatEventPayload, type SyncAppVariablePayload, TextApiError, type TextAuthCredential, type TextAuthorizeActionResult, type TextAuthorizeFlowContext, type TextAuthorizeFlowCustomContext, type TextAuthorizeFlowResult, type TextClientAuthorization, type TextClientOptions, type TextFlowContext, type TextFlowResult, type TextFlows, type TextHelpDeskEvent, TextHelpDeskEventNames, type TextLiveChatEvent, TextLivechatEventNames, type TextOAuthCredential, type TextPlatformDashboardCreditsDto, type TextPlatformDashboardPaymentDto, type TextPlatformDashboardReportDto, type TextPlatformDashboardReportItemDto, type ThreadTaggedLivechatWebhookData, type ThreadUntaggedLivechatWebhookData, type TicketAssignmentChangedHelpDeskWebhookData, type TicketCreatedHelpDeskWebhookData, type TicketFollowersChangedHelpDeskWebhookData, type TicketMessageAddedHelpDeskWebhookData, type TicketPriorityChangedHelpDeskWebhookData, type TicketStatusChangedHelpDeskWebhookData, type TicketTagsChangedHelpDeskWebhookData, type TicketUpdatedHelpDeskWebhookData, UnauthorizeAccountsApiError, UnauthorizeApiError, type UnlinkAppDeploymentData, type UnlinkAppDeploymentPayload, type UnlinkAppRepositoryData, type UnlinkAppRepositoryPayload, type UnlinkAppStorageData, type UnlinkAppStoragePayload, type UnsubscribeFromBigCommerceEventPayload, type UnsubscribeFromHubspotEventPayload, type UnsubscribeFromIntegrationEventPayload, type UnsubscribeFromMailchimpEventPayload, type UnsubscribeFromShopifyEventPayload, type UnsubscribeFromSlackEventPayload, type UnsubscribeFromTextHelpDeskEventPayload, type UnsubscribeFromTextLivechatEventPayload, type UpdateAppAuthorizationPayload, type UpdateAppInfrastructureBlocksPayload, type UpdateApplicationChangelogPayload, type UpdateApplicationChatActionPayload, type UpdateApplicationDirectInstallUrlPayload, type UpdateApplicationIconPayload, type UpdateApplicationOnboardingPayload, type UpdateApplicationProductPayload, type UpdateApplicationWebhookPayload, type UpdateApplicationWidgetDto, type UpdateChatWebhookPayload, type UpdateClientPayload, type UpdateCredentialPayload, type UpdateLivechatBotTemplateDto, type UpdateUserFeatures, type UpdateUserIntegrations, type UpdateWebhookPayload, type UpsertAppDeploymentPayload, type UpsertAppMonetizationPayload, type UpsertAppPropertiesPayload, type UpsertAppPropertyPayload, type UpsertAppRepositoryPayload, type UpsertAppResourcePayload, type UpsertAppStoragePayload, type UpsertAppWidgetPayload, type UpsertAppWidgetsPayload, type UpsertApplicationChatBoosterPayload, type UpsertHubSpotWebhookSettingsPayload, type UpsertWorkflowPayload, type UserAddedToChatLivechatWebhookData, type UserDto, type UserFeaturesDto, type UserGitHubIntegrationDto, type UserIntegrationsDto, type UserNeonIntegrationDto, type UserNetlifyIntegrationDto, type UserPlanetScaleIntegrationDto, type UserRemovedFromChatWebhookData, type UserSurveyDto, type UserVercelIntegrationDto, type VercelAuthorizeActionResult, type VercelAuthorizeFlowContext, type VercelAuthorizeFlowCustomContext, type VercelAuthorizeFlowResult, type VercelClientAuthorization, type VercelClientOptions, type VercelConnectActionContext, type VercelConnectActionResult, type VercelDeploy, type VercelFlowContext, type VercelFlowResult, type VercelFlows, type VercelInstallActionContext, type VercelInstallActionResult, type VercelInstallFlowContext, type VercelInstallFlowCustomContext, type VercelInstallFlowResult, type VercelNamespace, type VercelOauthCredential, type VercelPaginatedResult, type VercelPagination, type VercelProject, type VercelProjectEnv, type VercelRepository, type VercelSearchRepositoryResponse, type VerifyAppPayload, type VerifyAppResult, type WebhookDto, type WebhookTicketDto, type WorkflowDefinitionDto, type WorkflowDefinitionForkJoinTask, type WorkflowDefinitionHttpTask, type WorkflowDefinitionJoinTask, type WorkflowDefinitionSwitchTask, type WorkflowDefinitionTask, type WorkflowDefinitionTaskBase, WorkflowDefinitionTaskType, type WorkflowDefinitionTerminateTask, type WorkflowDefinitionsQueryParams, type WorkflowDto, type WorkflowExecution, type WorkflowExecutionDetails, WorkflowExecutionStatus, type WorkflowTemplate, WorkflowTemplateCategory, type WorkflowTriggerDto, type WorkflowTriggerType, type WorkflowsDto, adapterClientInstance, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, bigCommerceClientInstance, bigcommerceEventsZods, billingClientInstance, buildUrlFromSegments, consoleClientInstance, dpsClientInstance, getAdapterClientConfig, getAdapterClientDefaultConfig, getAppAutoReviewPayload, getBigCommerceClientAuthorization, getBigCommerceClientConfig, getBigCommerceClientUrl, getBillingClientConfig, getConsoleClientConfig, getConsoleClientDefaultConfig, getDpsClientConfig, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientConfig, getHelpDeskClientConfig, getHubspotClientAuthorization, getHubspotClientConfig, getIntegrationFlowUrl, getIntegrationFlowUrlForRedirection, getLiveChatClientConfig, getMailchimpClientAuthorization, getMailchimpClientConfig, getMailchimpClientUrl, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientConfig, getRegion, getShopifyClientAuthorization, getShopifyClientConfig, getShopifyClientUrl, getSlackClientAuthorization, getSlackClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, helpdeskClientInstance, hubspotClientInstance, hubspotEventsZods, initAdapterClient, initApi, initBigCommerceClient, initBillingClient, initConsoleClient, initDpsClient, initGithubClient, initHelpDeskClient, initHubspotClient, initLiveChatClient, initMailchimpClient, initNeonClient, initNetlifyClient, initPlanetScaleClient, initPlatformAccountsClient, initShopifyClient, initSlackClient, initTextClient, initVercelClient, integrationEventsZods, livechatClientInstance, mailchimpClientInstance, mailchimpEventsZods, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, shopifyClientInstance, shopifyEventsZods, slackClientInstance, slackEventsZods, textClientInstance, textHelpDeskEventsZods, textLivechatEventsZods, updateAdapterClient, updateBigCommerceClient, updateConsoleClient, updateGithubClient, updateHubspotClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updateShopifyClient, updateSlackClient, updateVercelClient, vercelClientInstance };
|