@livechat/developer-studio-api 3.4.24 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1279 -1201
- package/dist/index.d.ts +1279 -1201
- package/dist/index.js +893 -594
- package/dist/index.mjs +878 -594
- package/package.json +3 -3
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;
|
|
@@ -395,6 +401,9 @@ interface HubspotClientAuthorization {
|
|
|
395
401
|
interface HubspotClientInstanceOptions extends HubspotClientAuthorization {
|
|
396
402
|
ensureAuthorizationToken?: boolean;
|
|
397
403
|
}
|
|
404
|
+
declare function getHubspotClientAuthorization(req: {
|
|
405
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
406
|
+
}, headerPrefix?: string): HubspotClientAuthorization;
|
|
398
407
|
declare class HubspotApiError extends ApiErrorBase<{
|
|
399
408
|
errors: Record<string, string[]>;
|
|
400
409
|
}> {
|
|
@@ -458,6 +467,9 @@ interface MailchimpClientAuthorization {
|
|
|
458
467
|
interface MailchimpClientInstanceOptions extends MailchimpClientAuthorization {
|
|
459
468
|
ensureAuthorizationToken?: boolean;
|
|
460
469
|
}
|
|
470
|
+
declare function getMailchimpClientAuthorization(req: {
|
|
471
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
472
|
+
}, headerPrefix?: string): MailchimpClientAuthorization;
|
|
461
473
|
declare class MailchimpApiError extends ApiErrorBase<{
|
|
462
474
|
errors: Record<string, string[]>;
|
|
463
475
|
}> {
|
|
@@ -610,6 +622,9 @@ interface NetlifyClientAuthorization {
|
|
|
610
622
|
interface NetlifyClientOptions extends NetlifyClientAuthorization {
|
|
611
623
|
ensureAuthorizationToken?: boolean;
|
|
612
624
|
}
|
|
625
|
+
declare function getNetlifyClientAuthorization(req: {
|
|
626
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
627
|
+
}, headerPrefix?: string): NetlifyClientAuthorization;
|
|
613
628
|
declare const netlifyClientInstance: axios.AxiosInstance;
|
|
614
629
|
declare function getNetlifyClientConfig(options?: NetlifyClientOptions): AxiosRequestConfig;
|
|
615
630
|
declare function initNetlifyClient(token?: string): void;
|
|
@@ -733,6 +748,9 @@ interface ShopifyClientAuthorization {
|
|
|
733
748
|
interface ShopifyClientOptions extends ShopifyClientAuthorization {
|
|
734
749
|
ensureAuthorizationToken?: boolean;
|
|
735
750
|
}
|
|
751
|
+
declare function getShopifyClientAuthorization(req: {
|
|
752
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
753
|
+
}, headerPrefix?: string): ShopifyClientAuthorization;
|
|
736
754
|
declare class ShopifyApiError extends ApiErrorBase<{
|
|
737
755
|
errors: Record<string, string[]>;
|
|
738
756
|
}> {
|
|
@@ -863,6 +881,9 @@ declare class SlackApiError extends ApiErrorBase<{
|
|
|
863
881
|
} & Record<string, string[]>> {
|
|
864
882
|
name: "slack";
|
|
865
883
|
}
|
|
884
|
+
declare function getSlackClientAuthorization(req: {
|
|
885
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
886
|
+
}, headerPrefix?: string): SlackClientAuthorization;
|
|
866
887
|
declare const slackClientInstance: axios.AxiosInstance;
|
|
867
888
|
declare function getSlackClientConfig(options?: SlackClientInstanceOptions): AxiosRequestConfig;
|
|
868
889
|
declare function updateSlackClient(token?: string): void;
|
|
@@ -937,6 +958,9 @@ type TextClientAuthorization = GlobalAccountsClientAuthorization;
|
|
|
937
958
|
interface TextClientOptions extends TextClientAuthorization {
|
|
938
959
|
ensureAuthorizationToken?: boolean;
|
|
939
960
|
}
|
|
961
|
+
declare function getTextClientAuthorization(req: {
|
|
962
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
963
|
+
}, headerPrefix?: string): TextClientAuthorization;
|
|
940
964
|
declare class TextApiError extends ApiErrorBase<{
|
|
941
965
|
error: {
|
|
942
966
|
type: string;
|
|
@@ -1004,7 +1028,7 @@ type Credential = {
|
|
|
1004
1028
|
access_token_url: string;
|
|
1005
1029
|
client_id: string;
|
|
1006
1030
|
client_secret?: string;
|
|
1007
|
-
provider_fields?: Record<string, string>;
|
|
1031
|
+
provider_fields?: Record<string, string | undefined>;
|
|
1008
1032
|
connected?: boolean;
|
|
1009
1033
|
};
|
|
1010
1034
|
} | {
|
|
@@ -1015,7 +1039,7 @@ type CredentialDto = Credential & {
|
|
|
1015
1039
|
created_at: string;
|
|
1016
1040
|
updated_at: string;
|
|
1017
1041
|
};
|
|
1018
|
-
type OAuthCredential<TProviderFields extends Record<string, string> = Record<string, string>, TOptional extends boolean = true> = Extract<Credential, {
|
|
1042
|
+
type OAuthCredential<TProviderFields extends Record<string, string | undefined> = Record<string, string | undefined>, TOptional extends boolean = true> = Extract<Credential, {
|
|
1019
1043
|
type: 'oauth2';
|
|
1020
1044
|
}> & {
|
|
1021
1045
|
data: TOptional extends true ? {
|
|
@@ -1048,6 +1072,7 @@ type MailchimpOauthCredential = OAuthCredential<{
|
|
|
1048
1072
|
}, false>;
|
|
1049
1073
|
type ShopifyOauthCredential = OAuthCredential<{
|
|
1050
1074
|
shop: string;
|
|
1075
|
+
source?: 'marketplace';
|
|
1051
1076
|
}, false>;
|
|
1052
1077
|
type BigCommerceOauthCredential = OAuthCredential<{
|
|
1053
1078
|
shop: string;
|
|
@@ -1285,6 +1310,9 @@ interface VercelClientAuthorization {
|
|
|
1285
1310
|
interface VercelClientOptions extends VercelClientAuthorization {
|
|
1286
1311
|
ensureAuthorizationToken?: boolean;
|
|
1287
1312
|
}
|
|
1313
|
+
declare function getVercelClientAuthorization(req: {
|
|
1314
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
1315
|
+
}, headerPrefix?: string): VercelClientAuthorization;
|
|
1288
1316
|
declare const vercelClientInstance: axios.AxiosInstance;
|
|
1289
1317
|
declare function getVercelClientConfig(options?: VercelClientOptions): AxiosRequestConfig;
|
|
1290
1318
|
declare function initVercelClient(token?: string): void;
|
|
@@ -1502,1006 +1530,424 @@ interface AuthorizeData {
|
|
|
1502
1530
|
refresh_token: string;
|
|
1503
1531
|
}
|
|
1504
1532
|
|
|
1505
|
-
interface
|
|
1506
|
-
|
|
1507
|
-
|
|
1533
|
+
interface AdapterClientAuthorization {
|
|
1534
|
+
platform?: GlobalAccountsClientAuthorization;
|
|
1535
|
+
github?: GithubClientAuthorization;
|
|
1536
|
+
netlify?: NetlifyClientAuthorization;
|
|
1537
|
+
vercel?: VercelClientAuthorization;
|
|
1538
|
+
planetscale?: PlanetScaleClientAuthorization;
|
|
1539
|
+
neon?: NeonClientAuthorization;
|
|
1540
|
+
mailchimp?: MailchimpClientAuthorization;
|
|
1541
|
+
shopify?: ShopifyClientAuthorization;
|
|
1542
|
+
hubspot?: HubspotClientAuthorization;
|
|
1543
|
+
bigcommerce?: BigCommerceClientAuthorization;
|
|
1544
|
+
text?: TextClientAuthorization;
|
|
1545
|
+
slack?: SlackClientAuthorization;
|
|
1508
1546
|
}
|
|
1509
|
-
type
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1547
|
+
type AdapterClientOptions = AdapterClientAuthorization & {
|
|
1548
|
+
ensureAuthorizationToken?: {
|
|
1549
|
+
platform?: boolean;
|
|
1550
|
+
github?: boolean;
|
|
1551
|
+
netlify?: boolean;
|
|
1552
|
+
vercel?: boolean;
|
|
1553
|
+
planetscale?: boolean;
|
|
1554
|
+
neon?: boolean;
|
|
1555
|
+
mailchimp?: boolean;
|
|
1556
|
+
shopify?: boolean;
|
|
1557
|
+
hubspot?: boolean;
|
|
1558
|
+
bigcommerce?: boolean;
|
|
1559
|
+
text?: boolean;
|
|
1560
|
+
slack?: boolean;
|
|
1519
1561
|
};
|
|
1520
|
-
display?: AppDisplayData;
|
|
1521
|
-
stage?: 'labs';
|
|
1522
1562
|
};
|
|
1563
|
+
declare class AdapterApiError extends ApiErrorBase<{
|
|
1564
|
+
errorCode: string;
|
|
1565
|
+
errorMessage: string;
|
|
1566
|
+
}> {
|
|
1567
|
+
name: "adapter";
|
|
1568
|
+
static notFound(message?: string): AdapterApiError;
|
|
1569
|
+
}
|
|
1570
|
+
declare const adapterClientInstance: axios.AxiosInstance;
|
|
1571
|
+
declare function getAdapterClientConfig(options?: AdapterClientOptions): AxiosRequestConfig;
|
|
1572
|
+
declare const getAdapterClientDefaultConfig: (authorization?: AdapterClientAuthorization) => AxiosRequestConfig<any>;
|
|
1573
|
+
declare function initAdapterClient(baseUrl?: string, tokens?: {
|
|
1574
|
+
platform?: GlobalAccountsClientAuthorization;
|
|
1575
|
+
github?: GithubClientAuthorization;
|
|
1576
|
+
netlify?: NetlifyClientAuthorization;
|
|
1577
|
+
vercel?: VercelClientAuthorization;
|
|
1578
|
+
planetscale?: PlanetScaleClientAuthorization;
|
|
1579
|
+
neon?: NeonClientAuthorization;
|
|
1580
|
+
mailchimp?: MailchimpClientAuthorization;
|
|
1581
|
+
shopify?: ShopifyClientAuthorization;
|
|
1582
|
+
hubspot?: HubspotClientAuthorization;
|
|
1583
|
+
slack?: SlackClientAuthorization;
|
|
1584
|
+
bigcommerce?: BigCommerceClientAuthorization;
|
|
1585
|
+
text?: TextClientAuthorization;
|
|
1586
|
+
}): void;
|
|
1587
|
+
declare function updateAdapterClient(tokens?: {
|
|
1588
|
+
platform?: GlobalAccountsClientAuthorization;
|
|
1589
|
+
github?: GithubClientAuthorization;
|
|
1590
|
+
netlify?: NetlifyClientAuthorization;
|
|
1591
|
+
vercel?: VercelClientAuthorization;
|
|
1592
|
+
planetscale?: PlanetScaleClientAuthorization;
|
|
1593
|
+
neon?: NeonClientAuthorization;
|
|
1594
|
+
mailchimp?: MailchimpClientAuthorization;
|
|
1595
|
+
shopify?: ShopifyClientAuthorization;
|
|
1596
|
+
hubspot?: HubspotClientAuthorization;
|
|
1597
|
+
slack?: SlackClientAuthorization;
|
|
1598
|
+
bigcommerce?: BigCommerceClientAuthorization;
|
|
1599
|
+
text?: TextClientAuthorization;
|
|
1600
|
+
}): void;
|
|
1523
1601
|
|
|
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;
|
|
1562
|
-
} | {
|
|
1563
|
-
action: 'update';
|
|
1564
|
-
data: AppDisplayData;
|
|
1565
|
-
changes: SagaStepChanges<AppDisplayData>;
|
|
1566
|
-
} | {
|
|
1567
|
-
action: 'remove';
|
|
1568
|
-
}>;
|
|
1569
|
-
|
|
1570
|
-
type PushAppSagaMonetizationStep = SagaStep<{
|
|
1571
|
-
action: 'upsert';
|
|
1572
|
-
data: AppMonetizationData;
|
|
1573
|
-
} | {
|
|
1574
|
-
action: 'remove';
|
|
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
|
-
}>;
|
|
1588
|
-
|
|
1589
|
-
type PushAppSagaRepositoryStep = SagaStep<{
|
|
1590
|
-
action: 'link';
|
|
1591
|
-
data: LinkAppRepositoryData;
|
|
1592
|
-
} | {
|
|
1593
|
-
action: 'upsert';
|
|
1594
|
-
data: AppRepositoryData;
|
|
1602
|
+
declare enum IntegrationModes {
|
|
1603
|
+
Redirect = "redirect",
|
|
1604
|
+
Modal = "modal"
|
|
1605
|
+
}
|
|
1606
|
+
type IntegrationFlowContext = {
|
|
1607
|
+
state: string;
|
|
1608
|
+
} & ({
|
|
1609
|
+
mode: IntegrationModes.Modal;
|
|
1595
1610
|
} | {
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
type PushAppSagaStorageStep = SagaStep<{
|
|
1603
|
-
action: 'link';
|
|
1604
|
-
data: LinkAppStorageData;
|
|
1611
|
+
mode: IntegrationModes.Redirect;
|
|
1612
|
+
redirectUrl: string;
|
|
1613
|
+
});
|
|
1614
|
+
type IntegrationFlowOutput<TFlowResult> = {
|
|
1615
|
+
status: 'success';
|
|
1616
|
+
result: TFlowResult;
|
|
1605
1617
|
} | {
|
|
1606
|
-
|
|
1607
|
-
|
|
1618
|
+
status: 'error';
|
|
1619
|
+
message: string;
|
|
1608
1620
|
} | {
|
|
1609
|
-
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
type PushAppSagaWidgetsStep = SagaStep<{
|
|
1613
|
-
add: ({
|
|
1614
|
-
widgetId: string;
|
|
1615
|
-
} & AppWidgetData)[];
|
|
1616
|
-
update: ({
|
|
1617
|
-
widgetId: string;
|
|
1618
|
-
} & AppWidgetData)[];
|
|
1619
|
-
remove: {
|
|
1620
|
-
widgetId: string;
|
|
1621
|
-
}[];
|
|
1622
|
-
}>;
|
|
1623
|
-
|
|
1624
|
-
type PushAppSaga = Saga<{
|
|
1625
|
-
app?: PushAppSagaBaseStep;
|
|
1626
|
-
authorization?: PushAppSagaAuthorizationStep;
|
|
1627
|
-
monetization?: PushAppSagaMonetizationStep;
|
|
1628
|
-
repository?: PushAppSagaRepositoryStep;
|
|
1629
|
-
deployment?: PushAppSagaDeploymentStep;
|
|
1630
|
-
storage?: PushAppSagaStorageStep;
|
|
1631
|
-
properties?: PushAppSagaPropertiesStep;
|
|
1632
|
-
widgets?: PushAppSagaWidgetsStep;
|
|
1633
|
-
display?: PushAppSagaDisplayStep;
|
|
1634
|
-
}>;
|
|
1621
|
+
status: 'cancel';
|
|
1622
|
+
};
|
|
1635
1623
|
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1624
|
+
declare enum IntegrationNames {
|
|
1625
|
+
Accounts = "accounts",
|
|
1626
|
+
GitHub = "github",
|
|
1627
|
+
Netlify = "netlify",
|
|
1628
|
+
Vercel = "vercel",
|
|
1629
|
+
PlanetScale = "planetscale",
|
|
1630
|
+
Neon = "neon",
|
|
1631
|
+
Mailchimp = "mailchimp",
|
|
1632
|
+
Shopify = "shopify",
|
|
1633
|
+
HubSpot = "hubspot",
|
|
1634
|
+
BigCommerce = "bigcommerce",
|
|
1635
|
+
OpenAI = "openai",
|
|
1636
|
+
Text = "text",
|
|
1637
|
+
LiveChat = "text-livechat",
|
|
1638
|
+
HelpDesk = "text-helpdesk",
|
|
1639
|
+
Slack = "slack"
|
|
1640
|
+
}
|
|
1641
|
+
declare enum IntegrationDisplayNames {
|
|
1642
|
+
Accounts = "Accounts",
|
|
1643
|
+
GitHub = "Github",
|
|
1644
|
+
Netlify = "Netlify",
|
|
1645
|
+
Vercel = "Vercel",
|
|
1646
|
+
PlanetScale = "Planetscale",
|
|
1647
|
+
Neon = "Neon",
|
|
1648
|
+
Mailchimp = "Mailchimp",
|
|
1649
|
+
Shopify = "Shopify",
|
|
1650
|
+
HubSpot = "Hubspot",
|
|
1651
|
+
BigCommerce = "BigCommerce",
|
|
1652
|
+
OpenAI = "OpenAI",
|
|
1653
|
+
Text = "Text",
|
|
1654
|
+
LiveChat = "LiveChat",
|
|
1655
|
+
HelpDesk = "HelpDesk",
|
|
1656
|
+
Slack = "Slack"
|
|
1641
1657
|
}
|
|
1642
|
-
type PushAppResult = SagaOutput<PushAppSaga>;
|
|
1643
1658
|
|
|
1644
|
-
interface
|
|
1645
|
-
|
|
1646
|
-
manifest: AppManifest;
|
|
1659
|
+
interface SlackAuthorizeActionResult {
|
|
1660
|
+
token: string;
|
|
1647
1661
|
}
|
|
1648
|
-
interface
|
|
1649
|
-
|
|
1662
|
+
interface SlackAuthorizeFlowCustomContext {
|
|
1663
|
+
credentialId?: string;
|
|
1650
1664
|
}
|
|
1651
|
-
|
|
1652
|
-
interface
|
|
1653
|
-
|
|
1654
|
-
redirectUri: string;
|
|
1655
|
-
scopes?: {
|
|
1656
|
-
scope: string;
|
|
1657
|
-
required: boolean;
|
|
1658
|
-
}[];
|
|
1659
|
-
clientId?: string;
|
|
1665
|
+
type SlackAuthorizeFlowContext = SlackAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
1666
|
+
interface SlackAuthorizeFlowResult {
|
|
1667
|
+
token: string;
|
|
1660
1668
|
}
|
|
1661
1669
|
|
|
1662
|
-
type
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
} & Omit<AppAuthorizationData, 'clientId'>;
|
|
1666
|
-
interface AddAppAuthorizationResult {
|
|
1667
|
-
clientId: string;
|
|
1668
|
-
clientSecret: string;
|
|
1669
|
-
}
|
|
1670
|
+
type SlackFlows = 'authorize';
|
|
1671
|
+
type SlackFlowContext<TAction extends SlackFlows> = TAction extends 'authorize' ? SlackAuthorizeFlowCustomContext : never;
|
|
1672
|
+
type SlackFlowResult<TAction extends SlackFlows> = TAction extends 'authorize' ? SlackAuthorizeFlowResult : never;
|
|
1670
1673
|
|
|
1671
|
-
|
|
1672
|
-
|
|
1674
|
+
declare enum SlackEventNames {
|
|
1675
|
+
ChannelNewMessagePosted = "channel_new_message_posted",
|
|
1676
|
+
MemberNewMention = "member_new_mention"
|
|
1673
1677
|
}
|
|
1678
|
+
declare const slackEventsZods: {
|
|
1679
|
+
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
1680
|
+
eventName: z.ZodNativeEnum<typeof SlackEventNames>;
|
|
1681
|
+
events: {
|
|
1682
|
+
channelNewMessagePosted: z.ZodObject<{
|
|
1683
|
+
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
1684
|
+
channelId: z.ZodString;
|
|
1685
|
+
}, "strip", z.ZodTypeAny, {
|
|
1686
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1687
|
+
channelId: string;
|
|
1688
|
+
}, {
|
|
1689
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1690
|
+
channelId: string;
|
|
1691
|
+
}>;
|
|
1692
|
+
memberNewMention: z.ZodObject<{
|
|
1693
|
+
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
1694
|
+
userId: z.ZodString;
|
|
1695
|
+
}, "strip", z.ZodTypeAny, {
|
|
1696
|
+
name: SlackEventNames.MemberNewMention;
|
|
1697
|
+
userId: string;
|
|
1698
|
+
}, {
|
|
1699
|
+
name: SlackEventNames.MemberNewMention;
|
|
1700
|
+
userId: string;
|
|
1701
|
+
}>;
|
|
1702
|
+
};
|
|
1703
|
+
readonly event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
1704
|
+
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
1705
|
+
channelId: z.ZodString;
|
|
1706
|
+
}, "strip", z.ZodTypeAny, {
|
|
1707
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1708
|
+
channelId: string;
|
|
1709
|
+
}, {
|
|
1710
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1711
|
+
channelId: string;
|
|
1712
|
+
}>, z.ZodObject<{
|
|
1713
|
+
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
1714
|
+
userId: z.ZodString;
|
|
1715
|
+
}, "strip", z.ZodTypeAny, {
|
|
1716
|
+
name: SlackEventNames.MemberNewMention;
|
|
1717
|
+
userId: string;
|
|
1718
|
+
}, {
|
|
1719
|
+
name: SlackEventNames.MemberNewMention;
|
|
1720
|
+
userId: string;
|
|
1721
|
+
}>]>;
|
|
1722
|
+
readonly source: z.ZodObject<{
|
|
1723
|
+
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
1724
|
+
sourceKey: z.ZodString;
|
|
1725
|
+
}, "strip", z.ZodTypeAny, {
|
|
1726
|
+
sourceName: "apps" | "workflows";
|
|
1727
|
+
sourceKey: string;
|
|
1728
|
+
}, {
|
|
1729
|
+
sourceName: "apps" | "workflows";
|
|
1730
|
+
sourceKey: string;
|
|
1731
|
+
}>;
|
|
1732
|
+
readonly subscribe: z.ZodIntersection<z.ZodObject<{
|
|
1733
|
+
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
1734
|
+
sourceKey: z.ZodString;
|
|
1735
|
+
}, "strip", z.ZodTypeAny, {
|
|
1736
|
+
sourceName: "apps" | "workflows";
|
|
1737
|
+
sourceKey: string;
|
|
1738
|
+
}, {
|
|
1739
|
+
sourceName: "apps" | "workflows";
|
|
1740
|
+
sourceKey: string;
|
|
1741
|
+
}>, z.ZodObject<{
|
|
1742
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
1743
|
+
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
1744
|
+
channelId: z.ZodString;
|
|
1745
|
+
}, "strip", z.ZodTypeAny, {
|
|
1746
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1747
|
+
channelId: string;
|
|
1748
|
+
}, {
|
|
1749
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1750
|
+
channelId: string;
|
|
1751
|
+
}>, z.ZodObject<{
|
|
1752
|
+
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
1753
|
+
userId: z.ZodString;
|
|
1754
|
+
}, "strip", z.ZodTypeAny, {
|
|
1755
|
+
name: SlackEventNames.MemberNewMention;
|
|
1756
|
+
userId: string;
|
|
1757
|
+
}, {
|
|
1758
|
+
name: SlackEventNames.MemberNewMention;
|
|
1759
|
+
userId: string;
|
|
1760
|
+
}>]>;
|
|
1761
|
+
callback: z.ZodString;
|
|
1762
|
+
}, "strip", z.ZodTypeAny, {
|
|
1763
|
+
event: {
|
|
1764
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1765
|
+
channelId: string;
|
|
1766
|
+
} | {
|
|
1767
|
+
name: SlackEventNames.MemberNewMention;
|
|
1768
|
+
userId: string;
|
|
1769
|
+
};
|
|
1770
|
+
callback: string;
|
|
1771
|
+
}, {
|
|
1772
|
+
event: {
|
|
1773
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1774
|
+
channelId: string;
|
|
1775
|
+
} | {
|
|
1776
|
+
name: SlackEventNames.MemberNewMention;
|
|
1777
|
+
userId: string;
|
|
1778
|
+
};
|
|
1779
|
+
callback: string;
|
|
1780
|
+
}>>;
|
|
1781
|
+
readonly subscribeContent: z.ZodObject<{
|
|
1782
|
+
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
1783
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
1784
|
+
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
1785
|
+
channelId: z.ZodString;
|
|
1786
|
+
}, "strip", z.ZodTypeAny, {
|
|
1787
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1788
|
+
channelId: string;
|
|
1789
|
+
}, {
|
|
1790
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1791
|
+
channelId: string;
|
|
1792
|
+
}>, z.ZodObject<{
|
|
1793
|
+
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
1794
|
+
userId: z.ZodString;
|
|
1795
|
+
}, "strip", z.ZodTypeAny, {
|
|
1796
|
+
name: SlackEventNames.MemberNewMention;
|
|
1797
|
+
userId: string;
|
|
1798
|
+
}, {
|
|
1799
|
+
name: SlackEventNames.MemberNewMention;
|
|
1800
|
+
userId: string;
|
|
1801
|
+
}>]>;
|
|
1802
|
+
callback: z.ZodString;
|
|
1803
|
+
}, "strip", z.ZodTypeAny, {
|
|
1804
|
+
event: {
|
|
1805
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1806
|
+
channelId: string;
|
|
1807
|
+
} | {
|
|
1808
|
+
name: SlackEventNames.MemberNewMention;
|
|
1809
|
+
userId: string;
|
|
1810
|
+
};
|
|
1811
|
+
callback: string;
|
|
1812
|
+
provider: IntegrationNames.Slack;
|
|
1813
|
+
}, {
|
|
1814
|
+
event: {
|
|
1815
|
+
name: SlackEventNames.ChannelNewMessagePosted;
|
|
1816
|
+
channelId: string;
|
|
1817
|
+
} | {
|
|
1818
|
+
name: SlackEventNames.MemberNewMention;
|
|
1819
|
+
userId: string;
|
|
1820
|
+
};
|
|
1821
|
+
callback: string;
|
|
1822
|
+
provider: IntegrationNames.Slack;
|
|
1823
|
+
}>;
|
|
1824
|
+
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
1825
|
+
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
1826
|
+
sourceKey: z.ZodString;
|
|
1827
|
+
}, "strip", z.ZodTypeAny, {
|
|
1828
|
+
sourceName: "apps" | "workflows";
|
|
1829
|
+
sourceKey: string;
|
|
1830
|
+
}, {
|
|
1831
|
+
sourceName: "apps" | "workflows";
|
|
1832
|
+
sourceKey: string;
|
|
1833
|
+
}>, z.ZodObject<{
|
|
1834
|
+
event: z.ZodObject<{
|
|
1835
|
+
name: z.ZodNativeEnum<typeof SlackEventNames>;
|
|
1836
|
+
}, "strip", z.ZodTypeAny, {
|
|
1837
|
+
name: SlackEventNames;
|
|
1838
|
+
}, {
|
|
1839
|
+
name: SlackEventNames;
|
|
1840
|
+
}>;
|
|
1841
|
+
}, "strip", z.ZodTypeAny, {
|
|
1842
|
+
event: {
|
|
1843
|
+
name: SlackEventNames;
|
|
1844
|
+
};
|
|
1845
|
+
}, {
|
|
1846
|
+
event: {
|
|
1847
|
+
name: SlackEventNames;
|
|
1848
|
+
};
|
|
1849
|
+
}>>;
|
|
1850
|
+
readonly unsubscribeContent: z.ZodObject<{
|
|
1851
|
+
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
1852
|
+
event: z.ZodObject<{
|
|
1853
|
+
name: z.ZodNativeEnum<typeof SlackEventNames>;
|
|
1854
|
+
}, "strip", z.ZodTypeAny, {
|
|
1855
|
+
name: SlackEventNames;
|
|
1856
|
+
}, {
|
|
1857
|
+
name: SlackEventNames;
|
|
1858
|
+
}>;
|
|
1859
|
+
}, "strip", z.ZodTypeAny, {
|
|
1860
|
+
event: {
|
|
1861
|
+
name: SlackEventNames;
|
|
1862
|
+
};
|
|
1863
|
+
provider: IntegrationNames.Slack;
|
|
1864
|
+
}, {
|
|
1865
|
+
event: {
|
|
1866
|
+
name: SlackEventNames;
|
|
1867
|
+
};
|
|
1868
|
+
provider: IntegrationNames.Slack;
|
|
1869
|
+
}>;
|
|
1870
|
+
};
|
|
1871
|
+
type SlackEvent = z.infer<typeof slackEventsZods.event>;
|
|
1872
|
+
type SubscribeToSlackEventPayload = z.infer<typeof slackEventsZods.subscribe>;
|
|
1873
|
+
type UnsubscribeFromSlackEventPayload = z.infer<typeof slackEventsZods.unsubscribe>;
|
|
1674
1874
|
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
}
|
|
1875
|
+
interface BigCommerceAuthorizeActionContext {
|
|
1876
|
+
shop: string;
|
|
1877
|
+
}
|
|
1878
|
+
interface BigCommerceAuthorizeActionResult {
|
|
1879
|
+
shop: string;
|
|
1880
|
+
token: string;
|
|
1881
|
+
}
|
|
1882
|
+
type BigCommerceAuthorizeFlowCustomContext = ({
|
|
1883
|
+
credentialId: undefined;
|
|
1884
|
+
} & BigCommerceAuthorizeActionContext) | {
|
|
1885
|
+
credentialId: string;
|
|
1886
|
+
};
|
|
1887
|
+
type BigCommerceAuthorizeFlowContext = BigCommerceAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
1888
|
+
interface BigCommerceAuthorizeFlowResult {
|
|
1889
|
+
shop: string;
|
|
1890
|
+
token: string;
|
|
1891
|
+
}
|
|
1678
1892
|
|
|
1679
|
-
type
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
provider: 'netlify';
|
|
1683
|
-
} & Partial<AppNetlifyDeploymentConfig>) | ({
|
|
1684
|
-
provider: 'vercel';
|
|
1685
|
-
} & Partial<AppVercelDeploymentConfig>) | {
|
|
1686
|
-
provider: 'custom';
|
|
1687
|
-
});
|
|
1893
|
+
type BigCommerceFlows = 'authorize';
|
|
1894
|
+
type BigCommerceFlowContext<TAction extends BigCommerceFlows> = TAction extends 'authorize' ? BigCommerceAuthorizeFlowCustomContext : never;
|
|
1895
|
+
type BigCommerceFlowResult<TAction extends BigCommerceFlows> = TAction extends 'authorize' ? BigCommerceAuthorizeFlowResult : never;
|
|
1688
1896
|
|
|
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
|
-
};
|
|
1897
|
+
declare enum BigCommerceEventNames {
|
|
1898
|
+
CartCreated = "cart_created",
|
|
1899
|
+
CartUpdated = "cart_updated",
|
|
1900
|
+
OrderCreated = "order_created",
|
|
1901
|
+
OrderUpdated = "order_updated",
|
|
1902
|
+
ProductCreated = "product_created",
|
|
1903
|
+
ProductUpdated = "product_updated"
|
|
1704
1904
|
}
|
|
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
|
-
}>;
|
|
1905
|
+
declare const bigcommerceEventsZods: {
|
|
1906
|
+
provider: z.ZodLiteral<IntegrationNames.BigCommerce>;
|
|
1907
|
+
eventName: z.ZodNativeEnum<typeof BigCommerceEventNames>;
|
|
1908
|
+
events: {
|
|
1909
|
+
cartCreated: z.ZodObject<{
|
|
1910
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
1911
|
+
}, "strip", z.ZodTypeAny, {
|
|
1912
|
+
name: BigCommerceEventNames.CartCreated;
|
|
1913
|
+
}, {
|
|
1914
|
+
name: BigCommerceEventNames.CartCreated;
|
|
1915
|
+
}>;
|
|
1916
|
+
cartUpdated: z.ZodObject<{
|
|
1917
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
1918
|
+
}, "strip", z.ZodTypeAny, {
|
|
1919
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
1920
|
+
}, {
|
|
1921
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
1922
|
+
}>;
|
|
1923
|
+
orderCreated: z.ZodObject<{
|
|
1924
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
1925
|
+
}, "strip", z.ZodTypeAny, {
|
|
1926
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
1927
|
+
}, {
|
|
1928
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
1929
|
+
}>;
|
|
1930
|
+
orderUpdated: z.ZodObject<{
|
|
1931
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
1932
|
+
}, "strip", z.ZodTypeAny, {
|
|
1933
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
1934
|
+
}, {
|
|
1935
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
1936
|
+
}>;
|
|
1937
|
+
productCreated: z.ZodObject<{
|
|
1938
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
1939
|
+
}, "strip", z.ZodTypeAny, {
|
|
1940
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
1941
|
+
}, {
|
|
1942
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
1943
|
+
}>;
|
|
1944
|
+
productUpdated: z.ZodObject<{
|
|
1945
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
1946
|
+
}, "strip", z.ZodTypeAny, {
|
|
1947
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
1948
|
+
}, {
|
|
1949
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
1950
|
+
}>;
|
|
2505
1951
|
};
|
|
2506
1952
|
readonly event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2507
1953
|
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
@@ -3167,6 +2613,7 @@ type UnsubscribeFromMailchimpEventPayload = z.infer<typeof mailchimpEventsZods.u
|
|
|
3167
2613
|
|
|
3168
2614
|
interface ShopifyAuthorizeActionContext {
|
|
3169
2615
|
shop: string;
|
|
2616
|
+
source?: 'marketplace';
|
|
3170
2617
|
}
|
|
3171
2618
|
interface ShopifyAuthorizeActionResult {
|
|
3172
2619
|
shop: string;
|
|
@@ -5030,183 +4477,810 @@ declare const integrationEventsZods: {
|
|
|
5030
4477
|
provider: IntegrationNames.BigCommerce;
|
|
5031
4478
|
}>]>>;
|
|
5032
4479
|
};
|
|
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>;
|
|
4480
|
+
type IntegrationEventSourceName = z.infer<typeof integrationEventsZods.sourceName>;
|
|
4481
|
+
type IntegrationEventSource = z.infer<typeof integrationEventsZods.source>;
|
|
4482
|
+
type IntegrationEventProviderName = z.infer<typeof integrationEventsZods.providerName>;
|
|
4483
|
+
type IntegrationEvent = z.infer<typeof integrationEventsZods.event>;
|
|
4484
|
+
type SubscribeToIntegrationEventPayload = z.infer<typeof integrationEventsZods.subscribe>;
|
|
4485
|
+
type UnsubscribeFromIntegrationEventPayload = z.infer<typeof integrationEventsZods.unsubscribe>;
|
|
4486
|
+
|
|
4487
|
+
interface GitHubAuthorizeAppActionResult {
|
|
4488
|
+
token: string;
|
|
4489
|
+
}
|
|
4490
|
+
interface GitHubAuthorizeOauthActionResult {
|
|
4491
|
+
token: string;
|
|
4492
|
+
}
|
|
4493
|
+
interface GitHubAuthorizeFlowCustomContext {
|
|
4494
|
+
appCredentialId?: string;
|
|
4495
|
+
oauthCredentialId?: string;
|
|
4496
|
+
}
|
|
4497
|
+
type GitHubAuthorizeFlowContext = GitHubAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
4498
|
+
interface GitHubAuthorizeFlowResult {
|
|
4499
|
+
appToken: string;
|
|
4500
|
+
oauthToken: string;
|
|
4501
|
+
}
|
|
4502
|
+
|
|
4503
|
+
interface GitHubInstallActionContext {
|
|
4504
|
+
targetRepository?: string;
|
|
4505
|
+
isAlreadyInstalled?: true;
|
|
4506
|
+
showInstruction?: true;
|
|
4507
|
+
}
|
|
4508
|
+
interface GitHubInstallActionResult {
|
|
4509
|
+
appToken: string;
|
|
4510
|
+
installationId: string;
|
|
4511
|
+
}
|
|
4512
|
+
type GitHubInstallFlowCustomContext = GitHubInstallActionContext & {
|
|
4513
|
+
credentialId: string;
|
|
4514
|
+
};
|
|
4515
|
+
type GitHubInstallFlowContext = GitHubInstallFlowCustomContext & IntegrationFlowContext;
|
|
4516
|
+
type GitHubInstallFlowResult = GitHubInstallActionResult;
|
|
4517
|
+
|
|
4518
|
+
type GitHubFlows = 'authorize' | 'install';
|
|
4519
|
+
type GitHubFlowContext<TAction extends GitHubFlows> = TAction extends 'authorize' ? GitHubAuthorizeFlowCustomContext : TAction extends 'install' ? GitHubInstallFlowCustomContext : never;
|
|
4520
|
+
type GitHubFlowResult<TAction extends GitHubFlows> = TAction extends 'authorize' ? GitHubAuthorizeFlowResult : TAction extends 'install' ? GitHubInstallFlowResult : never;
|
|
4521
|
+
|
|
4522
|
+
interface NetlifyAuthorizeActionResult {
|
|
4523
|
+
token: string;
|
|
4524
|
+
}
|
|
4525
|
+
interface NetlifyAuthorizeFlowCustomContext {
|
|
4526
|
+
credentialId?: string;
|
|
4527
|
+
}
|
|
4528
|
+
type NetlifyAuthorizeFlowContext = NetlifyAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
4529
|
+
interface NetlifyAuthorizeFlowResult {
|
|
4530
|
+
token: string;
|
|
4531
|
+
}
|
|
4532
|
+
|
|
4533
|
+
interface NetlifyInstallActionContext {
|
|
4534
|
+
siteId?: string;
|
|
4535
|
+
token?: string;
|
|
4536
|
+
targetRepository?: string;
|
|
4537
|
+
showInstruction?: true;
|
|
4538
|
+
}
|
|
4539
|
+
interface NetlifyInstallActionResult {
|
|
4540
|
+
installationId: string;
|
|
4541
|
+
}
|
|
4542
|
+
type NetlifyInstallFlowCustomContext = NetlifyInstallActionContext & {
|
|
4543
|
+
credentialId: string;
|
|
4544
|
+
};
|
|
4545
|
+
type NetlifyInstallFlowContext = NetlifyInstallFlowCustomContext & IntegrationFlowContext;
|
|
4546
|
+
type NetlifyInstallFlowResult = NetlifyInstallActionResult;
|
|
4547
|
+
|
|
4548
|
+
type NetlifyFlows = 'authorize' | 'install';
|
|
4549
|
+
type NetlifyFlowContext<TAction extends NetlifyFlows> = TAction extends 'authorize' ? NetlifyAuthorizeFlowCustomContext : TAction extends 'install' ? NetlifyInstallFlowCustomContext : never;
|
|
4550
|
+
type NetlifyFlowResult<TAction extends NetlifyFlows> = TAction extends 'authorize' ? NetlifyAuthorizeFlowResult : TAction extends 'install' ? NetlifyInstallFlowResult : never;
|
|
4551
|
+
|
|
4552
|
+
interface VercelConnectActionContext {
|
|
4553
|
+
token: string;
|
|
4554
|
+
}
|
|
4555
|
+
interface VercelConnectActionResult {
|
|
4556
|
+
isConnected: boolean;
|
|
4557
|
+
}
|
|
4558
|
+
interface VercelAuthorizeActionResult {
|
|
4559
|
+
token: string;
|
|
4560
|
+
configurationId: string;
|
|
4561
|
+
isConnected: boolean;
|
|
4562
|
+
}
|
|
4563
|
+
interface VercelAuthorizeFlowCustomContext {
|
|
4564
|
+
credentialId?: string;
|
|
4565
|
+
}
|
|
4566
|
+
type VercelAuthorizeFlowContext = VercelAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
4567
|
+
interface VercelAuthorizeFlowResult {
|
|
4568
|
+
token: string;
|
|
4569
|
+
configurationId: string;
|
|
4570
|
+
}
|
|
4571
|
+
|
|
4572
|
+
interface VercelInstallActionContext {
|
|
4573
|
+
token: string;
|
|
4574
|
+
targetRepository?: string;
|
|
4575
|
+
showInstruction?: true;
|
|
4576
|
+
}
|
|
4577
|
+
interface VercelInstallActionResult {
|
|
4578
|
+
installationId: string;
|
|
4579
|
+
}
|
|
4580
|
+
type VercelInstallFlowCustomContext = VercelInstallActionContext & {
|
|
4581
|
+
credentialId: string;
|
|
4582
|
+
};
|
|
4583
|
+
type VercelInstallFlowContext = VercelInstallFlowCustomContext & IntegrationFlowContext;
|
|
4584
|
+
type VercelInstallFlowResult = VercelInstallActionResult;
|
|
4585
|
+
|
|
4586
|
+
type VercelFlows = 'authorize' | 'install';
|
|
4587
|
+
type VercelFlowContext<TAction extends VercelFlows> = TAction extends 'authorize' ? VercelAuthorizeFlowCustomContext : TAction extends 'install' ? VercelInstallFlowCustomContext : never;
|
|
4588
|
+
type VercelFlowResult<TAction extends VercelFlows> = TAction extends 'authorize' ? VercelAuthorizeFlowResult : TAction extends 'install' ? VercelInstallFlowResult : never;
|
|
4589
|
+
|
|
4590
|
+
interface BillingAccountDto {
|
|
4591
|
+
account_code: string;
|
|
4592
|
+
state: string;
|
|
4593
|
+
username: string;
|
|
4594
|
+
email: string;
|
|
4595
|
+
first_name: string;
|
|
4596
|
+
last_name: string;
|
|
4597
|
+
company_name: string;
|
|
4598
|
+
vat_number: string;
|
|
4599
|
+
tax_exempt: boolean;
|
|
4600
|
+
accept_language: string;
|
|
4601
|
+
address: {
|
|
4602
|
+
first_name: string;
|
|
4603
|
+
last_name: string;
|
|
4604
|
+
phone: string;
|
|
4605
|
+
city: string;
|
|
4606
|
+
country: string;
|
|
4607
|
+
state: string;
|
|
4608
|
+
zip: string;
|
|
4609
|
+
};
|
|
4610
|
+
}
|
|
4611
|
+
|
|
4612
|
+
interface BillingAccountInfoDto {
|
|
4613
|
+
first_name: string;
|
|
4614
|
+
last_name: string;
|
|
4615
|
+
company: string;
|
|
4616
|
+
address1: string;
|
|
4617
|
+
address2: string;
|
|
4618
|
+
city: string;
|
|
4619
|
+
state: string;
|
|
4620
|
+
zip: string;
|
|
4621
|
+
country: string;
|
|
4622
|
+
phone: string;
|
|
4623
|
+
vat_number: string;
|
|
4624
|
+
ip_address: string;
|
|
4625
|
+
ip_address_country: string;
|
|
4626
|
+
card_type: string;
|
|
4627
|
+
year: number;
|
|
4628
|
+
month: number;
|
|
4629
|
+
first_six: string;
|
|
4630
|
+
last_four: string;
|
|
4631
|
+
}
|
|
4632
|
+
|
|
4633
|
+
type BillingProduct = 'livechat' | 'platform';
|
|
4634
|
+
|
|
4635
|
+
type BillingClientAuthorization = GlobalAccountsClientAuthorization;
|
|
4636
|
+
interface BillingClientOptions extends BillingClientAuthorization {
|
|
4637
|
+
ensureAuthorizationToken?: boolean;
|
|
4638
|
+
}
|
|
4639
|
+
declare const billingClientInstance: axios.AxiosInstance;
|
|
4640
|
+
declare function getBillingClientConfig(options?: BillingClientOptions): AxiosRequestConfig;
|
|
4641
|
+
declare function initBillingClient(baseUrl?: string, token?: string): void;
|
|
4642
|
+
|
|
4643
|
+
interface BillingInvoiceDto {
|
|
4644
|
+
number: number;
|
|
4645
|
+
state: string;
|
|
4646
|
+
created_at: string;
|
|
4647
|
+
total_cents: number;
|
|
4648
|
+
currency: string;
|
|
4649
|
+
items: {
|
|
4650
|
+
description: string;
|
|
4651
|
+
unit_amount_cents: number;
|
|
4652
|
+
quantity: number;
|
|
4653
|
+
total_amount_cents: number;
|
|
4654
|
+
origin: string;
|
|
4655
|
+
}[];
|
|
4656
|
+
}
|
|
4657
|
+
|
|
4658
|
+
interface AppBaseData {
|
|
4659
|
+
name: string;
|
|
4660
|
+
product: string;
|
|
4661
|
+
}
|
|
4662
|
+
type AppManifest = AppBaseData & {
|
|
4663
|
+
id?: string;
|
|
4664
|
+
blocks?: {
|
|
4665
|
+
authorization?: AppAuthorizationData;
|
|
4666
|
+
monetization?: AppMonetizationData;
|
|
4667
|
+
repository?: AppRepositoryData;
|
|
4668
|
+
deployment?: AppDeploymentData;
|
|
4669
|
+
storage?: AppStorageData;
|
|
4670
|
+
properties?: AppPropertiesData;
|
|
4671
|
+
widgets?: AppWidgetsData;
|
|
4672
|
+
};
|
|
4673
|
+
display?: AppDisplayData;
|
|
4674
|
+
stage?: 'labs';
|
|
4675
|
+
};
|
|
4676
|
+
|
|
4677
|
+
type PushAppSagaBaseStep = SagaStep<{
|
|
4678
|
+
action: 'create';
|
|
4679
|
+
data: AppBaseData;
|
|
4680
|
+
} | {
|
|
4681
|
+
action: 'update';
|
|
4682
|
+
data: AppBaseData;
|
|
4683
|
+
changes: SagaStepChanges<AppBaseData>;
|
|
4684
|
+
meta: {
|
|
4685
|
+
id: string;
|
|
4686
|
+
};
|
|
4687
|
+
}, {
|
|
4688
|
+
id: string;
|
|
4689
|
+
}, {
|
|
4690
|
+
needToBeActivated?: boolean;
|
|
4691
|
+
}>;
|
|
4692
|
+
|
|
4693
|
+
type PushAppSagaAuthorizationStep = SagaStep<{
|
|
4694
|
+
action: 'add' | 'update';
|
|
4695
|
+
data: AppAuthorizationData;
|
|
4696
|
+
} | {
|
|
4697
|
+
action: 'remove';
|
|
4698
|
+
}>;
|
|
4699
|
+
|
|
4700
|
+
type PushAppSagaDeploymentStep = SagaStep<{
|
|
4701
|
+
action: 'link';
|
|
4702
|
+
data: LinkAppDeploymentData;
|
|
4703
|
+
} | {
|
|
4704
|
+
action: 'upsert';
|
|
4705
|
+
data: AppDeploymentData;
|
|
4706
|
+
} | {
|
|
4707
|
+
action: 'remove';
|
|
4708
|
+
}, AppDeploymentData, {
|
|
4709
|
+
needToBeInstalled?: boolean;
|
|
4710
|
+
}>;
|
|
4711
|
+
|
|
4712
|
+
type PushAppSagaDisplayStep = SagaStep<{
|
|
4713
|
+
action: 'add';
|
|
4714
|
+
data: AppDisplayData;
|
|
4715
|
+
} | {
|
|
4716
|
+
action: 'update';
|
|
4717
|
+
data: AppDisplayData;
|
|
4718
|
+
changes: SagaStepChanges<AppDisplayData>;
|
|
4719
|
+
} | {
|
|
4720
|
+
action: 'remove';
|
|
4721
|
+
}>;
|
|
4722
|
+
|
|
4723
|
+
type PushAppSagaMonetizationStep = SagaStep<{
|
|
4724
|
+
action: 'upsert';
|
|
4725
|
+
data: AppMonetizationData;
|
|
4726
|
+
} | {
|
|
4727
|
+
action: 'remove';
|
|
4728
|
+
}>;
|
|
4729
|
+
|
|
4730
|
+
type PushAppSagaPropertiesStep = SagaStep<{
|
|
4731
|
+
add: ({
|
|
4732
|
+
propertyId: string;
|
|
4733
|
+
} & AppPropertyData)[];
|
|
4734
|
+
update: ({
|
|
4735
|
+
propertyId: string;
|
|
4736
|
+
} & AppPropertyData)[];
|
|
4737
|
+
remove: {
|
|
4738
|
+
propertyId: string;
|
|
4739
|
+
}[];
|
|
4740
|
+
}>;
|
|
4741
|
+
|
|
4742
|
+
type PushAppSagaRepositoryStep = SagaStep<{
|
|
4743
|
+
action: 'link';
|
|
4744
|
+
data: LinkAppRepositoryData;
|
|
4745
|
+
} | {
|
|
4746
|
+
action: 'upsert';
|
|
4747
|
+
data: AppRepositoryData;
|
|
4748
|
+
} | {
|
|
4749
|
+
action: 'remove';
|
|
4750
|
+
}, AppRepositoryData, {
|
|
4751
|
+
needToBeInstalled?: boolean;
|
|
4752
|
+
needToBeSeeded?: boolean;
|
|
4753
|
+
}>;
|
|
4754
|
+
|
|
4755
|
+
type PushAppSagaStorageStep = SagaStep<{
|
|
4756
|
+
action: 'link';
|
|
4757
|
+
data: LinkAppStorageData;
|
|
4758
|
+
} | {
|
|
4759
|
+
action: 'upsert';
|
|
4760
|
+
data: AppStorageData;
|
|
4761
|
+
} | {
|
|
4762
|
+
action: 'remove';
|
|
4763
|
+
}, AppStorageData>;
|
|
4764
|
+
|
|
4765
|
+
type PushAppSagaWidgetsStep = SagaStep<{
|
|
4766
|
+
add: ({
|
|
4767
|
+
widgetId: string;
|
|
4768
|
+
} & AppWidgetData)[];
|
|
4769
|
+
update: ({
|
|
4770
|
+
widgetId: string;
|
|
4771
|
+
} & AppWidgetData)[];
|
|
4772
|
+
remove: {
|
|
4773
|
+
widgetId: string;
|
|
4774
|
+
}[];
|
|
4775
|
+
}>;
|
|
4776
|
+
|
|
4777
|
+
type PushAppSaga = Saga<{
|
|
4778
|
+
app?: PushAppSagaBaseStep;
|
|
4779
|
+
authorization?: PushAppSagaAuthorizationStep;
|
|
4780
|
+
monetization?: PushAppSagaMonetizationStep;
|
|
4781
|
+
repository?: PushAppSagaRepositoryStep;
|
|
4782
|
+
deployment?: PushAppSagaDeploymentStep;
|
|
4783
|
+
storage?: PushAppSagaStorageStep;
|
|
4784
|
+
properties?: PushAppSagaPropertiesStep;
|
|
4785
|
+
widgets?: PushAppSagaWidgetsStep;
|
|
4786
|
+
display?: PushAppSagaDisplayStep;
|
|
4787
|
+
}>;
|
|
4788
|
+
|
|
4789
|
+
interface PushAppPayload {
|
|
4790
|
+
manifest: AppManifest;
|
|
4791
|
+
metadata: {
|
|
4792
|
+
sagaId: string;
|
|
4793
|
+
};
|
|
4794
|
+
}
|
|
4795
|
+
type PushAppResult = SagaOutput<PushAppSaga>;
|
|
4796
|
+
|
|
4797
|
+
interface VerifyAppPayload {
|
|
4798
|
+
appId: string;
|
|
4799
|
+
manifest: AppManifest;
|
|
4800
|
+
}
|
|
4801
|
+
interface VerifyAppResult {
|
|
4802
|
+
status: 'ok' | 'nok';
|
|
4803
|
+
}
|
|
4804
|
+
|
|
4805
|
+
interface AppAuthorizationData {
|
|
4806
|
+
type: 'server_side_app' | 'javascript_app';
|
|
4807
|
+
redirectUri: string;
|
|
4808
|
+
scopes?: {
|
|
4809
|
+
scope: string;
|
|
4810
|
+
required: boolean;
|
|
4811
|
+
}[];
|
|
4812
|
+
clientId?: string;
|
|
4813
|
+
}
|
|
4814
|
+
|
|
4815
|
+
type AddAppAuthorizationPayload = {
|
|
4816
|
+
appId: string;
|
|
4817
|
+
appName: string;
|
|
4818
|
+
} & Omit<AppAuthorizationData, 'clientId'>;
|
|
4819
|
+
interface AddAppAuthorizationResult {
|
|
4820
|
+
clientId: string;
|
|
4821
|
+
clientSecret: string;
|
|
4822
|
+
}
|
|
4823
|
+
|
|
4824
|
+
interface RemoveAppAuthorizationPayload {
|
|
4825
|
+
appId: string;
|
|
4826
|
+
}
|
|
4827
|
+
|
|
4828
|
+
type UpdateAppAuthorizationPayload = {
|
|
4829
|
+
appId: string;
|
|
4830
|
+
} & AppAuthorizationData;
|
|
4831
|
+
|
|
4832
|
+
type AppDeploymentData = {
|
|
4833
|
+
provider: AppDeploymentProvider;
|
|
4834
|
+
} & AppDeploymentBlockConfig & (({
|
|
4835
|
+
provider: 'netlify';
|
|
4836
|
+
} & Partial<AppNetlifyDeploymentConfig>) | ({
|
|
4837
|
+
provider: 'vercel';
|
|
4838
|
+
} & Partial<AppVercelDeploymentConfig>) | {
|
|
4839
|
+
provider: 'custom';
|
|
4840
|
+
});
|
|
4841
|
+
|
|
4842
|
+
interface AppVercelDeployment {
|
|
4843
|
+
project: {
|
|
4844
|
+
id: string;
|
|
4845
|
+
name: string;
|
|
4846
|
+
url: string;
|
|
4847
|
+
adminUrl: string;
|
|
4848
|
+
};
|
|
4849
|
+
deploy: {
|
|
4850
|
+
id?: string;
|
|
4851
|
+
state?: 'ERROR' | 'READY' | 'BUILDING';
|
|
4852
|
+
};
|
|
4853
|
+
repository: {
|
|
4854
|
+
isAccessible: boolean;
|
|
4855
|
+
installationId?: number | null;
|
|
4856
|
+
};
|
|
4857
|
+
}
|
|
4858
|
+
interface AppNetlifyDeployment {
|
|
4859
|
+
site: {
|
|
4860
|
+
id: string;
|
|
4861
|
+
name: string;
|
|
4862
|
+
state: string;
|
|
4863
|
+
url: string;
|
|
4864
|
+
adminUrl: string;
|
|
4865
|
+
plugins: {
|
|
4866
|
+
package: string;
|
|
4867
|
+
}[];
|
|
4868
|
+
error?: string;
|
|
4869
|
+
};
|
|
4870
|
+
repository: {
|
|
4871
|
+
installationId: string;
|
|
4872
|
+
};
|
|
4873
|
+
deploy: {
|
|
4874
|
+
id: string;
|
|
4875
|
+
state: string;
|
|
4876
|
+
error?: string;
|
|
4877
|
+
pluginRuns?: {
|
|
4878
|
+
title: string;
|
|
4879
|
+
summary: string;
|
|
4880
|
+
state: string;
|
|
4881
|
+
}[];
|
|
4882
|
+
};
|
|
4883
|
+
envs: {
|
|
4884
|
+
key: string;
|
|
4885
|
+
value: string;
|
|
4886
|
+
}[];
|
|
4887
|
+
}
|
|
4888
|
+
type AppDeployment = ({
|
|
4889
|
+
provider: 'netlify';
|
|
4890
|
+
} & AppNetlifyDeployment) | ({
|
|
4891
|
+
provider: 'vercel';
|
|
4892
|
+
} & AppVercelDeployment);
|
|
4893
|
+
|
|
4894
|
+
type LinkAppDeploymentNetlifySiteData = {
|
|
4895
|
+
type: 'new';
|
|
4896
|
+
siteName?: string;
|
|
4897
|
+
} | {
|
|
4898
|
+
type: 'existing';
|
|
4899
|
+
siteId: string;
|
|
4900
|
+
};
|
|
4901
|
+
type LinkAppDeploymentNetlifyData = {
|
|
4902
|
+
installationId?: string;
|
|
4903
|
+
} & LinkAppDeploymentNetlifySiteData;
|
|
4904
|
+
type LinkAppDeploymentVercelProjectData = {
|
|
4905
|
+
type: 'new';
|
|
4906
|
+
projectName?: string;
|
|
4907
|
+
} | {
|
|
4908
|
+
type: 'existing';
|
|
4909
|
+
projectId: string;
|
|
4910
|
+
};
|
|
4911
|
+
type LinkAppDeploymentVercelData = {
|
|
4912
|
+
installationId?: string;
|
|
4913
|
+
} & LinkAppDeploymentVercelProjectData;
|
|
4914
|
+
type LinkAppDeploymentData = (({
|
|
4915
|
+
provider: 'netlify';
|
|
4916
|
+
} & LinkAppDeploymentNetlifyData) | ({
|
|
4917
|
+
provider: 'vercel';
|
|
4918
|
+
} & LinkAppDeploymentVercelData) | {
|
|
4919
|
+
provider: 'custom';
|
|
4920
|
+
url: string;
|
|
4921
|
+
}) & {
|
|
4922
|
+
force?: boolean;
|
|
4923
|
+
};
|
|
4924
|
+
type LinkAppDeploymentPayload = {
|
|
4925
|
+
appId: string;
|
|
4926
|
+
} & LinkAppDeploymentData;
|
|
4927
|
+
interface LinkAppDeploymentResult {
|
|
4928
|
+
url: string;
|
|
4929
|
+
needToBeInstalled: boolean;
|
|
4930
|
+
}
|
|
5039
4931
|
|
|
5040
|
-
interface
|
|
5041
|
-
|
|
4932
|
+
interface UnlinkAppDeploymentData {
|
|
4933
|
+
shouldDelete?: true;
|
|
5042
4934
|
}
|
|
5043
|
-
|
|
5044
|
-
|
|
4935
|
+
type UnlinkAppDeploymentPayload = {
|
|
4936
|
+
appId: string;
|
|
4937
|
+
} & UnlinkAppDeploymentData;
|
|
4938
|
+
|
|
4939
|
+
type UpsertAppDeploymentPayload = {
|
|
4940
|
+
appId: string;
|
|
4941
|
+
} & AppDeploymentData;
|
|
4942
|
+
|
|
4943
|
+
type AppMonetizationData = {
|
|
4944
|
+
price: number;
|
|
4945
|
+
frequency: 'monthly' | 'once';
|
|
4946
|
+
trialDays: number;
|
|
4947
|
+
} & ({
|
|
4948
|
+
charge: 'account';
|
|
4949
|
+
tiers?: {
|
|
4950
|
+
accountsFrom: number;
|
|
4951
|
+
discount: number;
|
|
4952
|
+
}[];
|
|
4953
|
+
} | {
|
|
4954
|
+
charge: 'organization';
|
|
4955
|
+
});
|
|
4956
|
+
|
|
4957
|
+
interface RemoveAppMonetizationPayload {
|
|
4958
|
+
appId: string;
|
|
5045
4959
|
}
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
4960
|
+
|
|
4961
|
+
type UpsertAppMonetizationPayload = {
|
|
4962
|
+
appId: string;
|
|
4963
|
+
} & AppMonetizationData;
|
|
4964
|
+
|
|
4965
|
+
type AppPropertiesData = Record<string, AppPropertyData>;
|
|
4966
|
+
|
|
4967
|
+
interface RemoveAppPropertiesPayload {
|
|
4968
|
+
appId: string;
|
|
5049
4969
|
}
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
4970
|
+
|
|
4971
|
+
type UpsertAppPropertiesPayload = {
|
|
4972
|
+
appId: string;
|
|
4973
|
+
} & AppPropertiesData;
|
|
4974
|
+
|
|
4975
|
+
interface AppPropertyData {
|
|
4976
|
+
type: PropertyDto['type'];
|
|
4977
|
+
description: string;
|
|
4978
|
+
default_value: string;
|
|
4979
|
+
access: PropertyAccessDto;
|
|
5054
4980
|
}
|
|
5055
4981
|
|
|
5056
|
-
interface
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
showInstruction?: true;
|
|
4982
|
+
interface RemoveAppPropertyPayload {
|
|
4983
|
+
appId: string;
|
|
4984
|
+
propertyId: string;
|
|
5060
4985
|
}
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
4986
|
+
|
|
4987
|
+
type UpsertAppPropertyPayload = {
|
|
4988
|
+
appId: string;
|
|
4989
|
+
propertyId: string;
|
|
4990
|
+
} & AppPropertyData;
|
|
4991
|
+
|
|
4992
|
+
type AppRepositoryData = {
|
|
4993
|
+
provider: AppRepositoryProvider;
|
|
4994
|
+
} & AppRepositoryBlockConfig;
|
|
4995
|
+
|
|
4996
|
+
interface AppGitHubRepository {
|
|
4997
|
+
name: string;
|
|
4998
|
+
branch: string;
|
|
4999
|
+
isSeeded: boolean;
|
|
5000
|
+
language: string;
|
|
5001
|
+
description?: string;
|
|
5064
5002
|
}
|
|
5065
|
-
type
|
|
5066
|
-
|
|
5067
|
-
};
|
|
5068
|
-
type GitHubInstallFlowContext = GitHubInstallFlowCustomContext & IntegrationFlowContext;
|
|
5069
|
-
type GitHubInstallFlowResult = GitHubInstallActionResult;
|
|
5003
|
+
type AppRepository = {
|
|
5004
|
+
provider: 'github';
|
|
5005
|
+
} & AppGitHubRepository;
|
|
5070
5006
|
|
|
5071
|
-
type
|
|
5072
|
-
type
|
|
5073
|
-
|
|
5007
|
+
type LinkAppRepositoryGitHubData = {
|
|
5008
|
+
type: 'new';
|
|
5009
|
+
name?: string;
|
|
5010
|
+
template?: string;
|
|
5011
|
+
} | {
|
|
5012
|
+
type: 'existing';
|
|
5013
|
+
fullName: string;
|
|
5014
|
+
branch: string;
|
|
5015
|
+
};
|
|
5016
|
+
type LinkAppRepositoryData = {
|
|
5017
|
+
target: AppRepositoryTarget | undefined;
|
|
5018
|
+
force?: boolean;
|
|
5019
|
+
} & ({
|
|
5020
|
+
provider: 'github';
|
|
5021
|
+
} & LinkAppRepositoryGitHubData);
|
|
5022
|
+
type LinkAppRepositoryPayload = {
|
|
5023
|
+
appId: string;
|
|
5024
|
+
} & LinkAppRepositoryData;
|
|
5025
|
+
interface LinkAppRepositoryResult {
|
|
5026
|
+
name: string;
|
|
5027
|
+
branch: string;
|
|
5028
|
+
needToBeInstalled: boolean;
|
|
5029
|
+
needToBeSeeded: boolean;
|
|
5030
|
+
}
|
|
5074
5031
|
|
|
5075
|
-
interface
|
|
5076
|
-
|
|
5032
|
+
interface SeedAppRepositoryPayload {
|
|
5033
|
+
appId: string;
|
|
5077
5034
|
}
|
|
5078
|
-
interface
|
|
5079
|
-
|
|
5035
|
+
interface SeedAppRepositoryResult {
|
|
5036
|
+
isSeeded: boolean;
|
|
5080
5037
|
}
|
|
5081
|
-
|
|
5082
|
-
interface
|
|
5083
|
-
|
|
5038
|
+
|
|
5039
|
+
interface UnlinkAppRepositoryData {
|
|
5040
|
+
shouldDelete?: true;
|
|
5084
5041
|
}
|
|
5042
|
+
type UnlinkAppRepositoryPayload = {
|
|
5043
|
+
appId: string;
|
|
5044
|
+
} & UnlinkAppRepositoryData;
|
|
5085
5045
|
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5046
|
+
type UpsertAppRepositoryPayload = {
|
|
5047
|
+
appId: string;
|
|
5048
|
+
} & AppRepositoryData;
|
|
5049
|
+
|
|
5050
|
+
type AppStorageData = {
|
|
5051
|
+
provider: AppStorageProvider;
|
|
5052
|
+
} & AppStorageBlockConfig & (({
|
|
5053
|
+
provider: 'planetscale';
|
|
5054
|
+
} & Partial<AppPlanetScaleStorageConfig>) | ({
|
|
5055
|
+
provider: 'neon';
|
|
5056
|
+
} & Partial<AppNeonStorageConfig>));
|
|
5057
|
+
|
|
5058
|
+
interface AppPlanetScaleStorage {
|
|
5059
|
+
database: {
|
|
5060
|
+
id: string;
|
|
5061
|
+
name: string;
|
|
5062
|
+
url: string;
|
|
5063
|
+
};
|
|
5091
5064
|
}
|
|
5092
|
-
interface
|
|
5093
|
-
|
|
5065
|
+
interface AppNeonStorage {
|
|
5066
|
+
projectName: string;
|
|
5067
|
+
projectId: string;
|
|
5068
|
+
branchId: string;
|
|
5069
|
+
databaseName: string;
|
|
5094
5070
|
}
|
|
5095
|
-
type
|
|
5096
|
-
|
|
5097
|
-
}
|
|
5098
|
-
|
|
5099
|
-
|
|
5071
|
+
type AppStorage = ({
|
|
5072
|
+
provider: 'planetscale';
|
|
5073
|
+
} & AppPlanetScaleStorage) | ({
|
|
5074
|
+
provider: 'neon';
|
|
5075
|
+
} & AppNeonStorage);
|
|
5100
5076
|
|
|
5101
|
-
type
|
|
5102
|
-
type
|
|
5103
|
-
|
|
5077
|
+
type LinkAppStoragePlanetScaleDatabaseData = {
|
|
5078
|
+
type: 'new';
|
|
5079
|
+
databaseName?: string;
|
|
5080
|
+
} | {
|
|
5081
|
+
type: 'existing';
|
|
5082
|
+
databaseId: string;
|
|
5083
|
+
};
|
|
5084
|
+
type LinkAppStoragePlanetScaleData = {
|
|
5085
|
+
organization: string;
|
|
5086
|
+
} & LinkAppStoragePlanetScaleDatabaseData;
|
|
5087
|
+
type LinkAppStorageNeonData = {
|
|
5088
|
+
type: 'new';
|
|
5089
|
+
projectName?: string;
|
|
5090
|
+
databaseName?: string;
|
|
5091
|
+
} | ({
|
|
5092
|
+
type: 'existing';
|
|
5093
|
+
projectId: string;
|
|
5094
|
+
branchId: string;
|
|
5095
|
+
} & ({
|
|
5096
|
+
databaseType: 'new';
|
|
5097
|
+
databaseName?: string;
|
|
5098
|
+
} | {
|
|
5099
|
+
databaseType: 'existing';
|
|
5100
|
+
databaseName: string;
|
|
5101
|
+
}));
|
|
5102
|
+
type LinkAppStorageData = {
|
|
5103
|
+
seedRepository: boolean;
|
|
5104
|
+
force?: boolean;
|
|
5105
|
+
} & (({
|
|
5106
|
+
provider: 'planetscale';
|
|
5107
|
+
} & LinkAppStoragePlanetScaleData) | ({
|
|
5108
|
+
provider: 'neon';
|
|
5109
|
+
} & LinkAppStorageNeonData));
|
|
5110
|
+
type LinkAppStoragePayload = {
|
|
5111
|
+
appId: string;
|
|
5112
|
+
} & LinkAppStorageData;
|
|
5104
5113
|
|
|
5105
|
-
interface
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
interface VercelConnectActionResult {
|
|
5109
|
-
isConnected: boolean;
|
|
5114
|
+
interface UnlinkAppStorageData {
|
|
5115
|
+
shouldDelete?: true;
|
|
5116
|
+
shouldDeleteDatabase?: true;
|
|
5110
5117
|
}
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5118
|
+
type UnlinkAppStoragePayload = {
|
|
5119
|
+
appId: string;
|
|
5120
|
+
} & UnlinkAppStorageData;
|
|
5121
|
+
|
|
5122
|
+
type UpsertAppStoragePayload = {
|
|
5123
|
+
appId: string;
|
|
5124
|
+
} & AppStorageData;
|
|
5125
|
+
|
|
5126
|
+
type AppWidgetsData = Record<string, AppWidgetData>;
|
|
5127
|
+
|
|
5128
|
+
interface RemoveAppWidgetsPayload {
|
|
5129
|
+
appId: string;
|
|
5115
5130
|
}
|
|
5116
|
-
|
|
5117
|
-
|
|
5131
|
+
|
|
5132
|
+
type UpsertAppWidgetsPayload = {
|
|
5133
|
+
appId: string;
|
|
5134
|
+
} & AppWidgetsData;
|
|
5135
|
+
|
|
5136
|
+
interface AppWidgetData {
|
|
5137
|
+
placement: string;
|
|
5138
|
+
initialState?: string;
|
|
5139
|
+
url: string;
|
|
5118
5140
|
}
|
|
5119
|
-
|
|
5120
|
-
interface
|
|
5121
|
-
|
|
5122
|
-
|
|
5141
|
+
|
|
5142
|
+
interface RemoveAppWidgetPayload {
|
|
5143
|
+
appId: string;
|
|
5144
|
+
widgetId: string;
|
|
5123
5145
|
}
|
|
5124
5146
|
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5147
|
+
type UpsertAppWidgetPayload = {
|
|
5148
|
+
appId: string;
|
|
5149
|
+
widgetId: string;
|
|
5150
|
+
} & AppWidgetData;
|
|
5151
|
+
|
|
5152
|
+
interface AppDisplayData {
|
|
5153
|
+
shortDescription?: string;
|
|
5154
|
+
longDescription?: string;
|
|
5129
5155
|
}
|
|
5130
|
-
|
|
5131
|
-
|
|
5156
|
+
|
|
5157
|
+
interface AppBaseTemplate {
|
|
5158
|
+
id: string;
|
|
5159
|
+
name: string;
|
|
5160
|
+
description: string;
|
|
5161
|
+
tags: string[];
|
|
5162
|
+
image?: string;
|
|
5163
|
+
icons?: Record<string, string>;
|
|
5132
5164
|
}
|
|
5133
|
-
type
|
|
5134
|
-
|
|
5165
|
+
type AppRepositoryTemplate = AppBaseTemplate & {
|
|
5166
|
+
repository: {
|
|
5167
|
+
name: string;
|
|
5168
|
+
target?: AppRepositoryTarget;
|
|
5169
|
+
};
|
|
5135
5170
|
};
|
|
5136
|
-
type
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5171
|
+
type AppTemplate = AppBaseTemplate & {
|
|
5172
|
+
manifest: AppManifest;
|
|
5173
|
+
icons?: {
|
|
5174
|
+
small: string;
|
|
5175
|
+
};
|
|
5176
|
+
category: {
|
|
5177
|
+
name: string;
|
|
5178
|
+
};
|
|
5179
|
+
template?: boolean;
|
|
5180
|
+
};
|
|
5181
|
+
interface AppRepositoryTemplates {
|
|
5182
|
+
nextjs: AppRepositoryTemplate;
|
|
5183
|
+
vite: AppRepositoryTemplate;
|
|
5184
|
+
saas: AppRepositoryTemplate;
|
|
5185
|
+
}
|
|
5186
|
+
interface AppTemplates {
|
|
5187
|
+
saas: AppTemplate;
|
|
5188
|
+
}
|
|
5142
5189
|
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5190
|
+
type AppVariableType = 'custom' | 'auth' | 'storage';
|
|
5191
|
+
type AppVariableStatus = 'valid' | 'invalid' | 'warning' | 'unknown';
|
|
5192
|
+
type AppVariableLocalProvider = 'console';
|
|
5193
|
+
type AppVariableExternalProvider = 'vercel' | 'netlify';
|
|
5194
|
+
type AppVariableProvider = AppVariableLocalProvider | AppVariableExternalProvider;
|
|
5195
|
+
interface AppVariable {
|
|
5196
|
+
key: string;
|
|
5197
|
+
value: {
|
|
5198
|
+
local?: {
|
|
5199
|
+
type: AppVariableLocalProvider;
|
|
5200
|
+
id: string;
|
|
5201
|
+
value: string;
|
|
5202
|
+
isReadonly: boolean;
|
|
5203
|
+
};
|
|
5204
|
+
external?: {
|
|
5205
|
+
type: AppVariableExternalProvider;
|
|
5206
|
+
id: string;
|
|
5207
|
+
value: string;
|
|
5208
|
+
};
|
|
5162
5209
|
};
|
|
5210
|
+
type?: AppVariableType;
|
|
5211
|
+
status?: AppVariableStatus;
|
|
5212
|
+
isLinked: boolean;
|
|
5213
|
+
isDecrypted: boolean;
|
|
5163
5214
|
}
|
|
5164
5215
|
|
|
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;
|
|
5216
|
+
interface CreateAppVariablePayload {
|
|
5217
|
+
appId: string;
|
|
5218
|
+
key: string;
|
|
5219
|
+
value: string;
|
|
5184
5220
|
}
|
|
5185
5221
|
|
|
5186
|
-
|
|
5222
|
+
interface EditAppVariablePayload {
|
|
5223
|
+
appId: string;
|
|
5224
|
+
key: string;
|
|
5225
|
+
localValue: string;
|
|
5226
|
+
externalValue: string;
|
|
5227
|
+
}
|
|
5187
5228
|
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5229
|
+
interface SyncAppVariablePayload {
|
|
5230
|
+
source: {
|
|
5231
|
+
type: AppVariableProvider;
|
|
5232
|
+
id: string;
|
|
5233
|
+
value: string;
|
|
5234
|
+
};
|
|
5235
|
+
target: {
|
|
5236
|
+
id?: string;
|
|
5237
|
+
};
|
|
5191
5238
|
}
|
|
5192
|
-
declare const billingClientInstance: axios.AxiosInstance;
|
|
5193
|
-
declare function getBillingClientConfig(options?: BillingClientOptions): AxiosRequestConfig;
|
|
5194
|
-
declare function initBillingClient(baseUrl?: string, token?: string): void;
|
|
5195
5239
|
|
|
5196
|
-
interface
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5240
|
+
interface ConsoleClientAuthorization {
|
|
5241
|
+
platform?: GlobalAccountsClientAuthorization;
|
|
5242
|
+
github?: GithubClientAuthorization;
|
|
5243
|
+
netlify?: NetlifyClientAuthorization;
|
|
5244
|
+
vercel?: VercelClientAuthorization;
|
|
5245
|
+
planetscale?: PlanetScaleClientAuthorization;
|
|
5246
|
+
neon?: NeonClientAuthorization;
|
|
5247
|
+
}
|
|
5248
|
+
type ConsoleClientOptions = ConsoleClientAuthorization & {
|
|
5249
|
+
ensureAuthorizationToken?: {
|
|
5250
|
+
platform?: boolean;
|
|
5251
|
+
github?: boolean;
|
|
5252
|
+
netlify?: boolean;
|
|
5253
|
+
vercel?: boolean;
|
|
5254
|
+
planetscale?: boolean;
|
|
5255
|
+
neon?: boolean;
|
|
5256
|
+
};
|
|
5257
|
+
};
|
|
5258
|
+
declare class ConsoleApiError extends ApiErrorBase<{
|
|
5259
|
+
errorCode: string;
|
|
5260
|
+
errorMessage: string;
|
|
5261
|
+
}> {
|
|
5262
|
+
name: "console";
|
|
5263
|
+
static notFound(message?: string): ConsoleApiError;
|
|
5209
5264
|
}
|
|
5265
|
+
declare const consoleClientInstance: axios.AxiosInstance;
|
|
5266
|
+
declare function getConsoleClientConfig(options?: ConsoleClientOptions): AxiosRequestConfig;
|
|
5267
|
+
declare const getConsoleClientDefaultConfig: (authorization?: ConsoleClientAuthorization) => AxiosRequestConfig<any>;
|
|
5268
|
+
declare function initConsoleClient(baseUrl?: string, tokens?: {
|
|
5269
|
+
platform?: GlobalAccountsClientAuthorization;
|
|
5270
|
+
github?: GithubClientAuthorization;
|
|
5271
|
+
netlify?: NetlifyClientAuthorization;
|
|
5272
|
+
vercel?: VercelClientAuthorization;
|
|
5273
|
+
planetscale?: PlanetScaleClientAuthorization;
|
|
5274
|
+
neon?: NeonClientAuthorization;
|
|
5275
|
+
}): void;
|
|
5276
|
+
declare function updateConsoleClient(tokens?: {
|
|
5277
|
+
platform?: GlobalAccountsClientAuthorization;
|
|
5278
|
+
github?: GithubClientAuthorization;
|
|
5279
|
+
netlify?: NetlifyClientAuthorization;
|
|
5280
|
+
vercel?: VercelClientAuthorization;
|
|
5281
|
+
planetscale?: PlanetScaleClientAuthorization;
|
|
5282
|
+
neon?: NeonClientAuthorization;
|
|
5283
|
+
}): void;
|
|
5210
5284
|
|
|
5211
5285
|
interface ApplicationPaymentDto {
|
|
5212
5286
|
creditCardRequired: boolean;
|
|
@@ -6487,81 +6561,6 @@ declare const api: {
|
|
|
6487
6561
|
};
|
|
6488
6562
|
};
|
|
6489
6563
|
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
6564
|
integrations: {
|
|
6566
6565
|
mailchimp: {
|
|
6567
6566
|
events: {
|
|
@@ -6600,11 +6599,88 @@ declare const api: {
|
|
|
6600
6599
|
};
|
|
6601
6600
|
};
|
|
6602
6601
|
};
|
|
6602
|
+
};
|
|
6603
|
+
console: {
|
|
6604
|
+
app: {
|
|
6605
|
+
blocks: {
|
|
6606
|
+
authorization: {
|
|
6607
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppAuthorizationData, any>>;
|
|
6608
|
+
add(payload: AddAppAuthorizationPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AddAppAuthorizationResult, any>>;
|
|
6609
|
+
update(payload: UpdateAppAuthorizationPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6610
|
+
remove(payload: RemoveAppAuthorizationPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6611
|
+
};
|
|
6612
|
+
monetization: {
|
|
6613
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppMonetizationData, any>>;
|
|
6614
|
+
upsert(payload: UpsertAppMonetizationPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6615
|
+
remove(payload: RemoveAppMonetizationPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6616
|
+
};
|
|
6617
|
+
repository: {
|
|
6618
|
+
getAggregate(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<{
|
|
6619
|
+
provider: "github";
|
|
6620
|
+
} & AppGitHubRepository, any>>;
|
|
6621
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppRepositoryData, any>>;
|
|
6622
|
+
link(payload: LinkAppRepositoryPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<LinkAppRepositoryResult, any>>;
|
|
6623
|
+
unlink(payload: UnlinkAppRepositoryPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6624
|
+
upsert(payload: UpsertAppRepositoryPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6625
|
+
seed(payload: SeedAppRepositoryPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<SeedAppRepositoryResult, any>>;
|
|
6626
|
+
};
|
|
6627
|
+
deployment: {
|
|
6628
|
+
getAggregate(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppDeployment, any>>;
|
|
6629
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppDeploymentData, any>>;
|
|
6630
|
+
link(payload: LinkAppDeploymentPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<LinkAppDeploymentResult, any>>;
|
|
6631
|
+
unlink(payload: UnlinkAppDeploymentPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6632
|
+
upsert(payload: UpsertAppDeploymentPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6633
|
+
};
|
|
6634
|
+
storage: {
|
|
6635
|
+
getAggregate(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppStorage, any>>;
|
|
6636
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppStorageData, any>>;
|
|
6637
|
+
link(payload: LinkAppStoragePayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6638
|
+
unlink(payload: UnlinkAppStoragePayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6639
|
+
upsert(payload: UpsertAppStoragePayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6640
|
+
};
|
|
6641
|
+
properties: {
|
|
6642
|
+
property: {
|
|
6643
|
+
get(appId: string, propertyId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppPropertyData, any>>;
|
|
6644
|
+
upsert(payload: UpsertAppPropertyPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6645
|
+
remove(payload: RemoveAppPropertyPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6646
|
+
};
|
|
6647
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppPropertiesData, any>>;
|
|
6648
|
+
upsert(payload: UpsertAppPropertiesPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6649
|
+
remove(payload: RemoveAppPropertiesPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6650
|
+
};
|
|
6651
|
+
widgets: {
|
|
6652
|
+
widget: {
|
|
6653
|
+
get(appId: string, widgetId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppWidgetData, any>>;
|
|
6654
|
+
upsert(payload: UpsertAppWidgetPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6655
|
+
remove(payload: RemoveAppWidgetPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6656
|
+
};
|
|
6657
|
+
get(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppWidgetsData, any>>;
|
|
6658
|
+
upsert(payload: UpsertAppWidgetsPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6659
|
+
remove(payload: RemoveAppWidgetsPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6660
|
+
};
|
|
6661
|
+
};
|
|
6662
|
+
variables: {
|
|
6663
|
+
getVariables(appId: string, decrypted?: boolean, authorization?: ConsoleClientAuthorization): Promise<AppVariable[]>;
|
|
6664
|
+
getVariable(appId: string, key: string, authorization?: ConsoleClientAuthorization): Promise<AppVariable>;
|
|
6665
|
+
syncVariable(appId: string, key: string, payload: SyncAppVariablePayload, authorization?: ConsoleClientAuthorization): Promise<void>;
|
|
6666
|
+
createVariable(appId: string, data: CreateAppVariablePayload, authorization?: ConsoleClientAuthorization): Promise<void>;
|
|
6667
|
+
editVariable(appId: string, data: EditAppVariablePayload, authorization?: ConsoleClientAuthorization): Promise<void>;
|
|
6668
|
+
deleteVariable(appId: string, key: string): Promise<void>;
|
|
6669
|
+
};
|
|
6670
|
+
templates: {
|
|
6671
|
+
getTemplates(authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppTemplates, any>>;
|
|
6672
|
+
getRepositoryTemplates(authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppRepositoryTemplates, any>>;
|
|
6673
|
+
};
|
|
6674
|
+
push(payload: PushAppPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<PushAppResult, any>>;
|
|
6675
|
+
pull(appId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<AppManifest, any>>;
|
|
6676
|
+
verify(payload: VerifyAppPayload, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<VerifyAppResult, any>>;
|
|
6677
|
+
status<TSaga>(sagaId: string, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<SagaOutput<TSaga> | undefined, any>>;
|
|
6678
|
+
};
|
|
6603
6679
|
log(payload: {
|
|
6604
6680
|
userId: string;
|
|
6605
6681
|
name: string;
|
|
6606
6682
|
payload: Record<string, unknown>;
|
|
6607
|
-
}, authorization?:
|
|
6683
|
+
}, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6608
6684
|
};
|
|
6609
6685
|
dps: {
|
|
6610
6686
|
applications: {
|
|
@@ -7256,6 +7332,7 @@ declare const api: {
|
|
|
7256
7332
|
update: (id: string) => string;
|
|
7257
7333
|
delete: (id: string) => string;
|
|
7258
7334
|
connect: (id: string) => string;
|
|
7335
|
+
disconnect: (id: string) => string;
|
|
7259
7336
|
};
|
|
7260
7337
|
};
|
|
7261
7338
|
get(id: string, authorization?: TextClientAuthorization): Promise<axios.AxiosResponse<CredentialDto, any>>;
|
|
@@ -7266,6 +7343,7 @@ declare const api: {
|
|
|
7266
7343
|
connect(id: string, code: string, authorization?: TextClientAuthorization): Promise<axios.AxiosResponse<{
|
|
7267
7344
|
access_token: string;
|
|
7268
7345
|
}, any>>;
|
|
7346
|
+
disconnect(id: string, authorization?: TextClientAuthorization): Promise<axios.AxiosResponse<Record<string, never>, any>>;
|
|
7269
7347
|
};
|
|
7270
7348
|
functions: {
|
|
7271
7349
|
meta: {
|
|
@@ -7382,4 +7460,4 @@ declare function getIntegrationFlowUrl<TFlowContext, TFlowResult, TState>(name:
|
|
|
7382
7460
|
|
|
7383
7461
|
declare const buildUrlFromSegments: (segments: string[], basePath: string, baseUrl?: string) => string;
|
|
7384
7462
|
|
|
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 };
|
|
7463
|
+
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 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, 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 };
|