@livechat/developer-studio-api 3.4.23 → 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 +1370 -1246
- package/dist/index.d.ts +1370 -1246
- package/dist/index.js +931 -594
- package/dist/index.mjs +915 -594
- package/package.json +3 -3
package/dist/index.d.ts
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
|
}> {
|
|
@@ -775,6 +793,41 @@ interface SlackClientUserTokenInfo {
|
|
|
775
793
|
declare enum SlackEventTypes {
|
|
776
794
|
MessagePosted = "message"
|
|
777
795
|
}
|
|
796
|
+
declare enum SlackMessageEventSubTypes {
|
|
797
|
+
AssistantAppThread = "assistant_app_thread",
|
|
798
|
+
BotMessage = "bot_message",
|
|
799
|
+
ChannelArchive = "channel_archive",
|
|
800
|
+
ChannelConvertToPrivate = "channel_convert_to_private",
|
|
801
|
+
ChannelConvertToPublic = "channel_convert_to_public",
|
|
802
|
+
ChannelJoin = "channel_join",
|
|
803
|
+
ChannelLeave = "channel_leave",
|
|
804
|
+
ChannelName = "channel_name",
|
|
805
|
+
ChannelPostingPermissions = "channel_posting_permissions",
|
|
806
|
+
ChannelPurpose = "channel_purpose",
|
|
807
|
+
ChannelTopic = "channel_topic",
|
|
808
|
+
ChannelUnarchive = "channel_unarchive",
|
|
809
|
+
DocumentMention = "document_mention",
|
|
810
|
+
EkmAccessDenied = "ekm_access_denied",
|
|
811
|
+
FileComment = "file_comment",
|
|
812
|
+
FileMention = "file_mention",
|
|
813
|
+
FileShare = "file_share",
|
|
814
|
+
GroupArchive = "group_archive",
|
|
815
|
+
GroupJoin = "group_join",
|
|
816
|
+
GroupLeave = "group_leave",
|
|
817
|
+
GroupName = "group_name",
|
|
818
|
+
GroupPurpose = "group_purpose",
|
|
819
|
+
GroupTopic = "group_topic",
|
|
820
|
+
GroupUnarchive = "group_unarchive",
|
|
821
|
+
MessageChanged = "message_changed",
|
|
822
|
+
MessageDeleted = "message_deleted",
|
|
823
|
+
MeMessage = "me_message",
|
|
824
|
+
MessageReplied = "message_replied",
|
|
825
|
+
PinnedItem = "pinned_item",
|
|
826
|
+
ReminderAdd = "reminder_add",
|
|
827
|
+
ReplyBroadcast = "reply_broadcast",
|
|
828
|
+
ThreadBroadcast = "thread_broadcast",
|
|
829
|
+
UnpinnedItem = "unpinned_item"
|
|
830
|
+
}
|
|
778
831
|
|
|
779
832
|
interface SlackEventAuthorizationsData {
|
|
780
833
|
enterprise_id: string | null;
|
|
@@ -801,14 +854,24 @@ type SlackChannelType = 'channel' | 'group' | 'im' | 'mpim';
|
|
|
801
854
|
type SlackEventMessagePostedPayload = SlackEventBasePayload<SlackEventTypes.MessagePosted, {
|
|
802
855
|
type: string;
|
|
803
856
|
user: string;
|
|
804
|
-
text: string;
|
|
805
857
|
ts: string;
|
|
806
858
|
channel: string;
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
859
|
+
text?: string;
|
|
860
|
+
} & ({
|
|
861
|
+
subtype: SlackMessageEventSubTypes.MessageChanged;
|
|
862
|
+
message: {
|
|
863
|
+
text: string;
|
|
864
|
+
};
|
|
865
|
+
} | {
|
|
866
|
+
subtype: SlackMessageEventSubTypes.MessageReplied;
|
|
867
|
+
message: {
|
|
868
|
+
text: string;
|
|
869
|
+
};
|
|
870
|
+
} | {
|
|
871
|
+
subtype: SlackMessageEventSubTypes.MessageDeleted;
|
|
872
|
+
} | {
|
|
873
|
+
subtype: undefined;
|
|
874
|
+
})>;
|
|
812
875
|
type SlackEventMessagePostedData = SlackEventBaseData<SlackEventMessagePostedPayload>;
|
|
813
876
|
type SlackEventPayloadData = SlackEventMessagePostedData;
|
|
814
877
|
|
|
@@ -818,6 +881,9 @@ declare class SlackApiError extends ApiErrorBase<{
|
|
|
818
881
|
} & Record<string, string[]>> {
|
|
819
882
|
name: "slack";
|
|
820
883
|
}
|
|
884
|
+
declare function getSlackClientAuthorization(req: {
|
|
885
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
886
|
+
}, headerPrefix?: string): SlackClientAuthorization;
|
|
821
887
|
declare const slackClientInstance: axios.AxiosInstance;
|
|
822
888
|
declare function getSlackClientConfig(options?: SlackClientInstanceOptions): AxiosRequestConfig;
|
|
823
889
|
declare function updateSlackClient(token?: string): void;
|
|
@@ -892,6 +958,9 @@ type TextClientAuthorization = GlobalAccountsClientAuthorization;
|
|
|
892
958
|
interface TextClientOptions extends TextClientAuthorization {
|
|
893
959
|
ensureAuthorizationToken?: boolean;
|
|
894
960
|
}
|
|
961
|
+
declare function getTextClientAuthorization(req: {
|
|
962
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
963
|
+
}, headerPrefix?: string): TextClientAuthorization;
|
|
895
964
|
declare class TextApiError extends ApiErrorBase<{
|
|
896
965
|
error: {
|
|
897
966
|
type: string;
|
|
@@ -959,7 +1028,7 @@ type Credential = {
|
|
|
959
1028
|
access_token_url: string;
|
|
960
1029
|
client_id: string;
|
|
961
1030
|
client_secret?: string;
|
|
962
|
-
provider_fields?: Record<string, string>;
|
|
1031
|
+
provider_fields?: Record<string, string | undefined>;
|
|
963
1032
|
connected?: boolean;
|
|
964
1033
|
};
|
|
965
1034
|
} | {
|
|
@@ -970,7 +1039,7 @@ type CredentialDto = Credential & {
|
|
|
970
1039
|
created_at: string;
|
|
971
1040
|
updated_at: string;
|
|
972
1041
|
};
|
|
973
|
-
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, {
|
|
974
1043
|
type: 'oauth2';
|
|
975
1044
|
}> & {
|
|
976
1045
|
data: TOptional extends true ? {
|
|
@@ -1003,6 +1072,7 @@ type MailchimpOauthCredential = OAuthCredential<{
|
|
|
1003
1072
|
}, false>;
|
|
1004
1073
|
type ShopifyOauthCredential = OAuthCredential<{
|
|
1005
1074
|
shop: string;
|
|
1075
|
+
source?: 'marketplace';
|
|
1006
1076
|
}, false>;
|
|
1007
1077
|
type BigCommerceOauthCredential = OAuthCredential<{
|
|
1008
1078
|
shop: string;
|
|
@@ -1158,20 +1228,18 @@ interface WorkflowDefinitionTaskBase {
|
|
|
1158
1228
|
label?: string;
|
|
1159
1229
|
}[];
|
|
1160
1230
|
}
|
|
1161
|
-
type
|
|
1162
|
-
type:
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
body?: object;
|
|
1172
|
-
headers?: Record<string, string>;
|
|
1231
|
+
type WorkflowDefinitionHttpTask = WorkflowDefinitionTaskBase & {
|
|
1232
|
+
type: 'HTTP';
|
|
1233
|
+
inputParameters: {
|
|
1234
|
+
asyncComplete: boolean;
|
|
1235
|
+
http_request: {
|
|
1236
|
+
method: string;
|
|
1237
|
+
uri: string;
|
|
1238
|
+
body?: object;
|
|
1239
|
+
headers?: Record<string, string>;
|
|
1240
|
+
};
|
|
1173
1241
|
};
|
|
1174
|
-
}
|
|
1242
|
+
};
|
|
1175
1243
|
type WorkflowDefinitionForkJoinTask = WorkflowDefinitionTaskBase & {
|
|
1176
1244
|
type: 'FORK_JOIN';
|
|
1177
1245
|
forkTasks: WorkflowDefinitionTask[][];
|
|
@@ -1190,10 +1258,13 @@ type WorkflowDefinitionSwitchTask = WorkflowDefinitionTaskBase & {
|
|
|
1190
1258
|
defaultCase?: WorkflowDefinitionTask[];
|
|
1191
1259
|
decisionCases: Record<string, WorkflowDefinitionTask[]>;
|
|
1192
1260
|
};
|
|
1193
|
-
type WorkflowDefinitionTerminateTask =
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1261
|
+
type WorkflowDefinitionTerminateTask = WorkflowDefinitionTaskBase & {
|
|
1262
|
+
type: 'TERMINATE';
|
|
1263
|
+
inputParameters: {
|
|
1264
|
+
terminationStatus: string;
|
|
1265
|
+
terminationReason: string;
|
|
1266
|
+
};
|
|
1267
|
+
};
|
|
1197
1268
|
type WorkflowDefinitionTask = WorkflowDefinitionHttpTask | WorkflowDefinitionForkJoinTask | WorkflowDefinitionSwitchTask | WorkflowDefinitionTerminateTask | WorkflowDefinitionJoinTask;
|
|
1198
1269
|
|
|
1199
1270
|
interface WorkflowDefinitionsQueryParams {
|
|
@@ -1239,6 +1310,9 @@ interface VercelClientAuthorization {
|
|
|
1239
1310
|
interface VercelClientOptions extends VercelClientAuthorization {
|
|
1240
1311
|
ensureAuthorizationToken?: boolean;
|
|
1241
1312
|
}
|
|
1313
|
+
declare function getVercelClientAuthorization(req: {
|
|
1314
|
+
headers: Record<string, string | string[] | undefined> | Headers;
|
|
1315
|
+
}, headerPrefix?: string): VercelClientAuthorization;
|
|
1242
1316
|
declare const vercelClientInstance: axios.AxiosInstance;
|
|
1243
1317
|
declare function getVercelClientConfig(options?: VercelClientOptions): AxiosRequestConfig;
|
|
1244
1318
|
declare function initVercelClient(token?: string): void;
|
|
@@ -1456,1006 +1530,424 @@ interface AuthorizeData {
|
|
|
1456
1530
|
refresh_token: string;
|
|
1457
1531
|
}
|
|
1458
1532
|
|
|
1459
|
-
interface
|
|
1460
|
-
|
|
1461
|
-
|
|
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;
|
|
1462
1546
|
}
|
|
1463
|
-
type
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
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;
|
|
1473
1561
|
};
|
|
1474
|
-
display?: AppDisplayData;
|
|
1475
|
-
stage?: 'labs';
|
|
1476
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;
|
|
1477
1601
|
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
id: string;
|
|
1487
|
-
};
|
|
1488
|
-
}, {
|
|
1489
|
-
id: string;
|
|
1490
|
-
}, {
|
|
1491
|
-
needToBeActivated?: boolean;
|
|
1492
|
-
}>;
|
|
1493
|
-
|
|
1494
|
-
type PushAppSagaAuthorizationStep = SagaStep<{
|
|
1495
|
-
action: 'add' | 'update';
|
|
1496
|
-
data: AppAuthorizationData;
|
|
1497
|
-
} | {
|
|
1498
|
-
action: 'remove';
|
|
1499
|
-
}>;
|
|
1500
|
-
|
|
1501
|
-
type PushAppSagaDeploymentStep = SagaStep<{
|
|
1502
|
-
action: 'link';
|
|
1503
|
-
data: LinkAppDeploymentData;
|
|
1504
|
-
} | {
|
|
1505
|
-
action: 'upsert';
|
|
1506
|
-
data: AppDeploymentData;
|
|
1507
|
-
} | {
|
|
1508
|
-
action: 'remove';
|
|
1509
|
-
}, AppDeploymentData, {
|
|
1510
|
-
needToBeInstalled?: boolean;
|
|
1511
|
-
}>;
|
|
1512
|
-
|
|
1513
|
-
type PushAppSagaDisplayStep = SagaStep<{
|
|
1514
|
-
action: 'add';
|
|
1515
|
-
data: AppDisplayData;
|
|
1602
|
+
declare enum IntegrationModes {
|
|
1603
|
+
Redirect = "redirect",
|
|
1604
|
+
Modal = "modal"
|
|
1605
|
+
}
|
|
1606
|
+
type IntegrationFlowContext = {
|
|
1607
|
+
state: string;
|
|
1608
|
+
} & ({
|
|
1609
|
+
mode: IntegrationModes.Modal;
|
|
1516
1610
|
} | {
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1611
|
+
mode: IntegrationModes.Redirect;
|
|
1612
|
+
redirectUrl: string;
|
|
1613
|
+
});
|
|
1614
|
+
type IntegrationFlowOutput<TFlowResult> = {
|
|
1615
|
+
status: 'success';
|
|
1616
|
+
result: TFlowResult;
|
|
1520
1617
|
} | {
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
type PushAppSagaMonetizationStep = SagaStep<{
|
|
1525
|
-
action: 'upsert';
|
|
1526
|
-
data: AppMonetizationData;
|
|
1618
|
+
status: 'error';
|
|
1619
|
+
message: string;
|
|
1527
1620
|
} | {
|
|
1528
|
-
|
|
1529
|
-
}
|
|
1621
|
+
status: 'cancel';
|
|
1622
|
+
};
|
|
1530
1623
|
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
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"
|
|
1657
|
+
}
|
|
1542
1658
|
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
needToBeSeeded?: boolean;
|
|
1554
|
-
}>;
|
|
1659
|
+
interface SlackAuthorizeActionResult {
|
|
1660
|
+
token: string;
|
|
1661
|
+
}
|
|
1662
|
+
interface SlackAuthorizeFlowCustomContext {
|
|
1663
|
+
credentialId?: string;
|
|
1664
|
+
}
|
|
1665
|
+
type SlackAuthorizeFlowContext = SlackAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
1666
|
+
interface SlackAuthorizeFlowResult {
|
|
1667
|
+
token: string;
|
|
1668
|
+
}
|
|
1555
1669
|
|
|
1556
|
-
type
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
} | {
|
|
1560
|
-
action: 'upsert';
|
|
1561
|
-
data: AppStorageData;
|
|
1562
|
-
} | {
|
|
1563
|
-
action: 'remove';
|
|
1564
|
-
}, AppStorageData>;
|
|
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;
|
|
1565
1673
|
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
} & AppWidgetData)[];
|
|
1570
|
-
update: ({
|
|
1571
|
-
widgetId: string;
|
|
1572
|
-
} & AppWidgetData)[];
|
|
1573
|
-
remove: {
|
|
1574
|
-
widgetId: string;
|
|
1575
|
-
}[];
|
|
1576
|
-
}>;
|
|
1577
|
-
|
|
1578
|
-
type PushAppSaga = Saga<{
|
|
1579
|
-
app?: PushAppSagaBaseStep;
|
|
1580
|
-
authorization?: PushAppSagaAuthorizationStep;
|
|
1581
|
-
monetization?: PushAppSagaMonetizationStep;
|
|
1582
|
-
repository?: PushAppSagaRepositoryStep;
|
|
1583
|
-
deployment?: PushAppSagaDeploymentStep;
|
|
1584
|
-
storage?: PushAppSagaStorageStep;
|
|
1585
|
-
properties?: PushAppSagaPropertiesStep;
|
|
1586
|
-
widgets?: PushAppSagaWidgetsStep;
|
|
1587
|
-
display?: PushAppSagaDisplayStep;
|
|
1588
|
-
}>;
|
|
1589
|
-
|
|
1590
|
-
interface PushAppPayload {
|
|
1591
|
-
manifest: AppManifest;
|
|
1592
|
-
metadata: {
|
|
1593
|
-
sagaId: string;
|
|
1594
|
-
};
|
|
1674
|
+
declare enum SlackEventNames {
|
|
1675
|
+
ChannelNewMessagePosted = "channel_new_message_posted",
|
|
1676
|
+
MemberNewMention = "member_new_mention"
|
|
1595
1677
|
}
|
|
1596
|
-
|
|
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>;
|
|
1597
1874
|
|
|
1598
|
-
interface
|
|
1599
|
-
|
|
1600
|
-
manifest: AppManifest;
|
|
1601
|
-
}
|
|
1602
|
-
interface VerifyAppResult {
|
|
1603
|
-
status: 'ok' | 'nok';
|
|
1875
|
+
interface BigCommerceAuthorizeActionContext {
|
|
1876
|
+
shop: string;
|
|
1604
1877
|
}
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
redirectUri: string;
|
|
1609
|
-
scopes?: {
|
|
1610
|
-
scope: string;
|
|
1611
|
-
required: boolean;
|
|
1612
|
-
}[];
|
|
1613
|
-
clientId?: string;
|
|
1878
|
+
interface BigCommerceAuthorizeActionResult {
|
|
1879
|
+
shop: string;
|
|
1880
|
+
token: string;
|
|
1614
1881
|
}
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
}
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
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;
|
|
1623
1891
|
}
|
|
1624
1892
|
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
type UpdateAppAuthorizationPayload = {
|
|
1630
|
-
appId: string;
|
|
1631
|
-
} & AppAuthorizationData;
|
|
1632
|
-
|
|
1633
|
-
type AppDeploymentData = {
|
|
1634
|
-
provider: AppDeploymentProvider;
|
|
1635
|
-
} & AppDeploymentBlockConfig & (({
|
|
1636
|
-
provider: 'netlify';
|
|
1637
|
-
} & Partial<AppNetlifyDeploymentConfig>) | ({
|
|
1638
|
-
provider: 'vercel';
|
|
1639
|
-
} & Partial<AppVercelDeploymentConfig>) | {
|
|
1640
|
-
provider: 'custom';
|
|
1641
|
-
});
|
|
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;
|
|
1642
1896
|
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
deploy: {
|
|
1651
|
-
id?: string;
|
|
1652
|
-
state?: 'ERROR' | 'READY' | 'BUILDING';
|
|
1653
|
-
};
|
|
1654
|
-
repository: {
|
|
1655
|
-
isAccessible: boolean;
|
|
1656
|
-
installationId?: number | null;
|
|
1657
|
-
};
|
|
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"
|
|
1658
1904
|
}
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
}
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
}
|
|
1705
|
-
type LinkAppDeploymentVercelProjectData = {
|
|
1706
|
-
type: 'new';
|
|
1707
|
-
projectName?: string;
|
|
1708
|
-
} | {
|
|
1709
|
-
type: 'existing';
|
|
1710
|
-
projectId: string;
|
|
1711
|
-
};
|
|
1712
|
-
type LinkAppDeploymentVercelData = {
|
|
1713
|
-
installationId?: string;
|
|
1714
|
-
} & LinkAppDeploymentVercelProjectData;
|
|
1715
|
-
type LinkAppDeploymentData = (({
|
|
1716
|
-
provider: 'netlify';
|
|
1717
|
-
} & LinkAppDeploymentNetlifyData) | ({
|
|
1718
|
-
provider: 'vercel';
|
|
1719
|
-
} & LinkAppDeploymentVercelData) | {
|
|
1720
|
-
provider: 'custom';
|
|
1721
|
-
url: string;
|
|
1722
|
-
}) & {
|
|
1723
|
-
force?: boolean;
|
|
1724
|
-
};
|
|
1725
|
-
type LinkAppDeploymentPayload = {
|
|
1726
|
-
appId: string;
|
|
1727
|
-
} & LinkAppDeploymentData;
|
|
1728
|
-
interface LinkAppDeploymentResult {
|
|
1729
|
-
url: string;
|
|
1730
|
-
needToBeInstalled: boolean;
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1733
|
-
interface UnlinkAppDeploymentData {
|
|
1734
|
-
shouldDelete?: true;
|
|
1735
|
-
}
|
|
1736
|
-
type UnlinkAppDeploymentPayload = {
|
|
1737
|
-
appId: string;
|
|
1738
|
-
} & UnlinkAppDeploymentData;
|
|
1739
|
-
|
|
1740
|
-
type UpsertAppDeploymentPayload = {
|
|
1741
|
-
appId: string;
|
|
1742
|
-
} & AppDeploymentData;
|
|
1743
|
-
|
|
1744
|
-
type AppMonetizationData = {
|
|
1745
|
-
price: number;
|
|
1746
|
-
frequency: 'monthly' | 'once';
|
|
1747
|
-
trialDays: number;
|
|
1748
|
-
} & ({
|
|
1749
|
-
charge: 'account';
|
|
1750
|
-
tiers?: {
|
|
1751
|
-
accountsFrom: number;
|
|
1752
|
-
discount: number;
|
|
1753
|
-
}[];
|
|
1754
|
-
} | {
|
|
1755
|
-
charge: 'organization';
|
|
1756
|
-
});
|
|
1757
|
-
|
|
1758
|
-
interface RemoveAppMonetizationPayload {
|
|
1759
|
-
appId: string;
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1762
|
-
type UpsertAppMonetizationPayload = {
|
|
1763
|
-
appId: string;
|
|
1764
|
-
} & AppMonetizationData;
|
|
1765
|
-
|
|
1766
|
-
type AppPropertiesData = Record<string, AppPropertyData>;
|
|
1767
|
-
|
|
1768
|
-
interface RemoveAppPropertiesPayload {
|
|
1769
|
-
appId: string;
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
type UpsertAppPropertiesPayload = {
|
|
1773
|
-
appId: string;
|
|
1774
|
-
} & AppPropertiesData;
|
|
1775
|
-
|
|
1776
|
-
interface AppPropertyData {
|
|
1777
|
-
type: PropertyDto['type'];
|
|
1778
|
-
description: string;
|
|
1779
|
-
default_value: string;
|
|
1780
|
-
access: PropertyAccessDto;
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1783
|
-
interface RemoveAppPropertyPayload {
|
|
1784
|
-
appId: string;
|
|
1785
|
-
propertyId: string;
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
type UpsertAppPropertyPayload = {
|
|
1789
|
-
appId: string;
|
|
1790
|
-
propertyId: string;
|
|
1791
|
-
} & AppPropertyData;
|
|
1792
|
-
|
|
1793
|
-
type AppRepositoryData = {
|
|
1794
|
-
provider: AppRepositoryProvider;
|
|
1795
|
-
} & AppRepositoryBlockConfig;
|
|
1796
|
-
|
|
1797
|
-
interface AppGitHubRepository {
|
|
1798
|
-
name: string;
|
|
1799
|
-
branch: string;
|
|
1800
|
-
isSeeded: boolean;
|
|
1801
|
-
language: string;
|
|
1802
|
-
description?: string;
|
|
1803
|
-
}
|
|
1804
|
-
type AppRepository = {
|
|
1805
|
-
provider: 'github';
|
|
1806
|
-
} & AppGitHubRepository;
|
|
1807
|
-
|
|
1808
|
-
type LinkAppRepositoryGitHubData = {
|
|
1809
|
-
type: 'new';
|
|
1810
|
-
name?: string;
|
|
1811
|
-
template?: string;
|
|
1812
|
-
} | {
|
|
1813
|
-
type: 'existing';
|
|
1814
|
-
fullName: string;
|
|
1815
|
-
branch: string;
|
|
1816
|
-
};
|
|
1817
|
-
type LinkAppRepositoryData = {
|
|
1818
|
-
target: AppRepositoryTarget | undefined;
|
|
1819
|
-
force?: boolean;
|
|
1820
|
-
} & ({
|
|
1821
|
-
provider: 'github';
|
|
1822
|
-
} & LinkAppRepositoryGitHubData);
|
|
1823
|
-
type LinkAppRepositoryPayload = {
|
|
1824
|
-
appId: string;
|
|
1825
|
-
} & LinkAppRepositoryData;
|
|
1826
|
-
interface LinkAppRepositoryResult {
|
|
1827
|
-
name: string;
|
|
1828
|
-
branch: string;
|
|
1829
|
-
needToBeInstalled: boolean;
|
|
1830
|
-
needToBeSeeded: boolean;
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
interface SeedAppRepositoryPayload {
|
|
1834
|
-
appId: string;
|
|
1835
|
-
}
|
|
1836
|
-
interface SeedAppRepositoryResult {
|
|
1837
|
-
isSeeded: boolean;
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
interface UnlinkAppRepositoryData {
|
|
1841
|
-
shouldDelete?: true;
|
|
1842
|
-
}
|
|
1843
|
-
type UnlinkAppRepositoryPayload = {
|
|
1844
|
-
appId: string;
|
|
1845
|
-
} & UnlinkAppRepositoryData;
|
|
1846
|
-
|
|
1847
|
-
type UpsertAppRepositoryPayload = {
|
|
1848
|
-
appId: string;
|
|
1849
|
-
} & AppRepositoryData;
|
|
1850
|
-
|
|
1851
|
-
type AppStorageData = {
|
|
1852
|
-
provider: AppStorageProvider;
|
|
1853
|
-
} & AppStorageBlockConfig & (({
|
|
1854
|
-
provider: 'planetscale';
|
|
1855
|
-
} & Partial<AppPlanetScaleStorageConfig>) | ({
|
|
1856
|
-
provider: 'neon';
|
|
1857
|
-
} & Partial<AppNeonStorageConfig>));
|
|
1858
|
-
|
|
1859
|
-
interface AppPlanetScaleStorage {
|
|
1860
|
-
database: {
|
|
1861
|
-
id: string;
|
|
1862
|
-
name: string;
|
|
1863
|
-
url: string;
|
|
1864
|
-
};
|
|
1865
|
-
}
|
|
1866
|
-
interface AppNeonStorage {
|
|
1867
|
-
projectName: string;
|
|
1868
|
-
projectId: string;
|
|
1869
|
-
branchId: string;
|
|
1870
|
-
databaseName: string;
|
|
1871
|
-
}
|
|
1872
|
-
type AppStorage = ({
|
|
1873
|
-
provider: 'planetscale';
|
|
1874
|
-
} & AppPlanetScaleStorage) | ({
|
|
1875
|
-
provider: 'neon';
|
|
1876
|
-
} & AppNeonStorage);
|
|
1877
|
-
|
|
1878
|
-
type LinkAppStoragePlanetScaleDatabaseData = {
|
|
1879
|
-
type: 'new';
|
|
1880
|
-
databaseName?: string;
|
|
1881
|
-
} | {
|
|
1882
|
-
type: 'existing';
|
|
1883
|
-
databaseId: string;
|
|
1884
|
-
};
|
|
1885
|
-
type LinkAppStoragePlanetScaleData = {
|
|
1886
|
-
organization: string;
|
|
1887
|
-
} & LinkAppStoragePlanetScaleDatabaseData;
|
|
1888
|
-
type LinkAppStorageNeonData = {
|
|
1889
|
-
type: 'new';
|
|
1890
|
-
projectName?: string;
|
|
1891
|
-
databaseName?: string;
|
|
1892
|
-
} | ({
|
|
1893
|
-
type: 'existing';
|
|
1894
|
-
projectId: string;
|
|
1895
|
-
branchId: string;
|
|
1896
|
-
} & ({
|
|
1897
|
-
databaseType: 'new';
|
|
1898
|
-
databaseName?: string;
|
|
1899
|
-
} | {
|
|
1900
|
-
databaseType: 'existing';
|
|
1901
|
-
databaseName: string;
|
|
1902
|
-
}));
|
|
1903
|
-
type LinkAppStorageData = {
|
|
1904
|
-
seedRepository: boolean;
|
|
1905
|
-
force?: boolean;
|
|
1906
|
-
} & (({
|
|
1907
|
-
provider: 'planetscale';
|
|
1908
|
-
} & LinkAppStoragePlanetScaleData) | ({
|
|
1909
|
-
provider: 'neon';
|
|
1910
|
-
} & LinkAppStorageNeonData));
|
|
1911
|
-
type LinkAppStoragePayload = {
|
|
1912
|
-
appId: string;
|
|
1913
|
-
} & LinkAppStorageData;
|
|
1914
|
-
|
|
1915
|
-
interface UnlinkAppStorageData {
|
|
1916
|
-
shouldDelete?: true;
|
|
1917
|
-
shouldDeleteDatabase?: true;
|
|
1918
|
-
}
|
|
1919
|
-
type UnlinkAppStoragePayload = {
|
|
1920
|
-
appId: string;
|
|
1921
|
-
} & UnlinkAppStorageData;
|
|
1922
|
-
|
|
1923
|
-
type UpsertAppStoragePayload = {
|
|
1924
|
-
appId: string;
|
|
1925
|
-
} & AppStorageData;
|
|
1926
|
-
|
|
1927
|
-
type AppWidgetsData = Record<string, AppWidgetData>;
|
|
1928
|
-
|
|
1929
|
-
interface RemoveAppWidgetsPayload {
|
|
1930
|
-
appId: string;
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
type UpsertAppWidgetsPayload = {
|
|
1934
|
-
appId: string;
|
|
1935
|
-
} & AppWidgetsData;
|
|
1936
|
-
|
|
1937
|
-
interface AppWidgetData {
|
|
1938
|
-
placement: string;
|
|
1939
|
-
initialState?: string;
|
|
1940
|
-
url: string;
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1943
|
-
interface RemoveAppWidgetPayload {
|
|
1944
|
-
appId: string;
|
|
1945
|
-
widgetId: string;
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
type UpsertAppWidgetPayload = {
|
|
1949
|
-
appId: string;
|
|
1950
|
-
widgetId: string;
|
|
1951
|
-
} & AppWidgetData;
|
|
1952
|
-
|
|
1953
|
-
interface AppDisplayData {
|
|
1954
|
-
shortDescription?: string;
|
|
1955
|
-
longDescription?: string;
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
|
-
interface AppBaseTemplate {
|
|
1959
|
-
id: string;
|
|
1960
|
-
name: string;
|
|
1961
|
-
description: string;
|
|
1962
|
-
tags: string[];
|
|
1963
|
-
image?: string;
|
|
1964
|
-
icons?: Record<string, string>;
|
|
1965
|
-
}
|
|
1966
|
-
type AppRepositoryTemplate = AppBaseTemplate & {
|
|
1967
|
-
repository: {
|
|
1968
|
-
name: string;
|
|
1969
|
-
target?: AppRepositoryTarget;
|
|
1970
|
-
};
|
|
1971
|
-
};
|
|
1972
|
-
type AppTemplate = AppBaseTemplate & {
|
|
1973
|
-
manifest: AppManifest;
|
|
1974
|
-
icons?: {
|
|
1975
|
-
small: string;
|
|
1976
|
-
};
|
|
1977
|
-
category: {
|
|
1978
|
-
name: string;
|
|
1979
|
-
};
|
|
1980
|
-
template?: boolean;
|
|
1981
|
-
};
|
|
1982
|
-
interface AppRepositoryTemplates {
|
|
1983
|
-
nextjs: AppRepositoryTemplate;
|
|
1984
|
-
vite: AppRepositoryTemplate;
|
|
1985
|
-
saas: AppRepositoryTemplate;
|
|
1986
|
-
}
|
|
1987
|
-
interface AppTemplates {
|
|
1988
|
-
saas: AppTemplate;
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
|
-
type AppVariableType = 'custom' | 'auth' | 'storage';
|
|
1992
|
-
type AppVariableStatus = 'valid' | 'invalid' | 'warning' | 'unknown';
|
|
1993
|
-
type AppVariableLocalProvider = 'console';
|
|
1994
|
-
type AppVariableExternalProvider = 'vercel' | 'netlify';
|
|
1995
|
-
type AppVariableProvider = AppVariableLocalProvider | AppVariableExternalProvider;
|
|
1996
|
-
interface AppVariable {
|
|
1997
|
-
key: string;
|
|
1998
|
-
value: {
|
|
1999
|
-
local?: {
|
|
2000
|
-
type: AppVariableLocalProvider;
|
|
2001
|
-
id: string;
|
|
2002
|
-
value: string;
|
|
2003
|
-
isReadonly: boolean;
|
|
2004
|
-
};
|
|
2005
|
-
external?: {
|
|
2006
|
-
type: AppVariableExternalProvider;
|
|
2007
|
-
id: string;
|
|
2008
|
-
value: string;
|
|
2009
|
-
};
|
|
2010
|
-
};
|
|
2011
|
-
type?: AppVariableType;
|
|
2012
|
-
status?: AppVariableStatus;
|
|
2013
|
-
isLinked: boolean;
|
|
2014
|
-
isDecrypted: boolean;
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
interface CreateAppVariablePayload {
|
|
2018
|
-
appId: string;
|
|
2019
|
-
key: string;
|
|
2020
|
-
value: string;
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
|
-
interface EditAppVariablePayload {
|
|
2024
|
-
appId: string;
|
|
2025
|
-
key: string;
|
|
2026
|
-
localValue: string;
|
|
2027
|
-
externalValue: string;
|
|
2028
|
-
}
|
|
2029
|
-
|
|
2030
|
-
interface SyncAppVariablePayload {
|
|
2031
|
-
source: {
|
|
2032
|
-
type: AppVariableProvider;
|
|
2033
|
-
id: string;
|
|
2034
|
-
value: string;
|
|
2035
|
-
};
|
|
2036
|
-
target: {
|
|
2037
|
-
id?: string;
|
|
2038
|
-
};
|
|
2039
|
-
}
|
|
2040
|
-
|
|
2041
|
-
interface AdapterClientAuthorization {
|
|
2042
|
-
platform?: GlobalAccountsClientAuthorization;
|
|
2043
|
-
github?: GithubClientAuthorization;
|
|
2044
|
-
netlify?: NetlifyClientAuthorization;
|
|
2045
|
-
vercel?: VercelClientAuthorization;
|
|
2046
|
-
planetscale?: PlanetScaleClientAuthorization;
|
|
2047
|
-
neon?: NeonClientAuthorization;
|
|
2048
|
-
mailchimp?: MailchimpClientAuthorization;
|
|
2049
|
-
shopify?: ShopifyClientAuthorization;
|
|
2050
|
-
hubspot?: HubspotClientAuthorization;
|
|
2051
|
-
bigcommerce?: BigCommerceClientAuthorization;
|
|
2052
|
-
text?: TextClientAuthorization;
|
|
2053
|
-
slack?: SlackClientAuthorization;
|
|
2054
|
-
}
|
|
2055
|
-
type AdapterClientOptions = AdapterClientAuthorization & {
|
|
2056
|
-
ensureAuthorizationToken?: {
|
|
2057
|
-
platform?: boolean;
|
|
2058
|
-
github?: boolean;
|
|
2059
|
-
netlify?: boolean;
|
|
2060
|
-
vercel?: boolean;
|
|
2061
|
-
planetscale?: boolean;
|
|
2062
|
-
neon?: boolean;
|
|
2063
|
-
mailchimp?: boolean;
|
|
2064
|
-
shopify?: boolean;
|
|
2065
|
-
hubspot?: boolean;
|
|
2066
|
-
bigcommerce?: boolean;
|
|
2067
|
-
text?: boolean;
|
|
2068
|
-
slack?: boolean;
|
|
2069
|
-
};
|
|
2070
|
-
};
|
|
2071
|
-
declare class AdapterApiError extends ApiErrorBase<{
|
|
2072
|
-
errorCode: string;
|
|
2073
|
-
errorMessage: string;
|
|
2074
|
-
}> {
|
|
2075
|
-
name: "adapter";
|
|
2076
|
-
static notFound(message?: string): AdapterApiError;
|
|
2077
|
-
}
|
|
2078
|
-
declare const adapterClientInstance: axios.AxiosInstance;
|
|
2079
|
-
declare function getAdapterClientConfig(options?: AdapterClientOptions): AxiosRequestConfig;
|
|
2080
|
-
declare const getAdapterClientDefaultConfig: (authorization?: AdapterClientAuthorization) => AxiosRequestConfig<any>;
|
|
2081
|
-
declare function initAdapterClient(baseUrl?: string, tokens?: {
|
|
2082
|
-
platform?: GlobalAccountsClientAuthorization;
|
|
2083
|
-
github?: GithubClientAuthorization;
|
|
2084
|
-
netlify?: NetlifyClientAuthorization;
|
|
2085
|
-
vercel?: VercelClientAuthorization;
|
|
2086
|
-
planetscale?: PlanetScaleClientAuthorization;
|
|
2087
|
-
neon?: NeonClientAuthorization;
|
|
2088
|
-
mailchimp?: MailchimpClientAuthorization;
|
|
2089
|
-
shopify?: ShopifyClientAuthorization;
|
|
2090
|
-
hubspot?: HubspotClientAuthorization;
|
|
2091
|
-
slack?: SlackClientAuthorization;
|
|
2092
|
-
bigcommerce?: BigCommerceClientAuthorization;
|
|
2093
|
-
text?: TextClientAuthorization;
|
|
2094
|
-
}): void;
|
|
2095
|
-
declare function updateAdapterClient(tokens?: {
|
|
2096
|
-
platform?: GlobalAccountsClientAuthorization;
|
|
2097
|
-
github?: GithubClientAuthorization;
|
|
2098
|
-
netlify?: NetlifyClientAuthorization;
|
|
2099
|
-
vercel?: VercelClientAuthorization;
|
|
2100
|
-
planetscale?: PlanetScaleClientAuthorization;
|
|
2101
|
-
neon?: NeonClientAuthorization;
|
|
2102
|
-
mailchimp?: MailchimpClientAuthorization;
|
|
2103
|
-
shopify?: ShopifyClientAuthorization;
|
|
2104
|
-
hubspot?: HubspotClientAuthorization;
|
|
2105
|
-
slack?: SlackClientAuthorization;
|
|
2106
|
-
bigcommerce?: BigCommerceClientAuthorization;
|
|
2107
|
-
text?: TextClientAuthorization;
|
|
2108
|
-
}): void;
|
|
2109
|
-
|
|
2110
|
-
declare enum IntegrationModes {
|
|
2111
|
-
Redirect = "redirect",
|
|
2112
|
-
Modal = "modal"
|
|
2113
|
-
}
|
|
2114
|
-
type IntegrationFlowContext = {
|
|
2115
|
-
state: string;
|
|
2116
|
-
} & ({
|
|
2117
|
-
mode: IntegrationModes.Modal;
|
|
2118
|
-
} | {
|
|
2119
|
-
mode: IntegrationModes.Redirect;
|
|
2120
|
-
redirectUrl: string;
|
|
2121
|
-
});
|
|
2122
|
-
type IntegrationFlowOutput<TFlowResult> = {
|
|
2123
|
-
status: 'success';
|
|
2124
|
-
result: TFlowResult;
|
|
2125
|
-
} | {
|
|
2126
|
-
status: 'error';
|
|
2127
|
-
message: string;
|
|
2128
|
-
} | {
|
|
2129
|
-
status: 'cancel';
|
|
2130
|
-
};
|
|
2131
|
-
|
|
2132
|
-
declare enum IntegrationNames {
|
|
2133
|
-
Accounts = "accounts",
|
|
2134
|
-
GitHub = "github",
|
|
2135
|
-
Netlify = "netlify",
|
|
2136
|
-
Vercel = "vercel",
|
|
2137
|
-
PlanetScale = "planetscale",
|
|
2138
|
-
Neon = "neon",
|
|
2139
|
-
Mailchimp = "mailchimp",
|
|
2140
|
-
Shopify = "shopify",
|
|
2141
|
-
HubSpot = "hubspot",
|
|
2142
|
-
BigCommerce = "bigcommerce",
|
|
2143
|
-
OpenAI = "openai",
|
|
2144
|
-
Text = "text",
|
|
2145
|
-
LiveChat = "text-livechat",
|
|
2146
|
-
HelpDesk = "text-helpdesk",
|
|
2147
|
-
Slack = "slack"
|
|
2148
|
-
}
|
|
2149
|
-
declare enum IntegrationDisplayNames {
|
|
2150
|
-
Accounts = "Accounts",
|
|
2151
|
-
GitHub = "Github",
|
|
2152
|
-
Netlify = "Netlify",
|
|
2153
|
-
Vercel = "Vercel",
|
|
2154
|
-
PlanetScale = "Planetscale",
|
|
2155
|
-
Neon = "Neon",
|
|
2156
|
-
Mailchimp = "Mailchimp",
|
|
2157
|
-
Shopify = "Shopify",
|
|
2158
|
-
HubSpot = "Hubspot",
|
|
2159
|
-
BigCommerce = "BigCommerce",
|
|
2160
|
-
OpenAI = "OpenAI",
|
|
2161
|
-
Text = "Text",
|
|
2162
|
-
LiveChat = "LiveChat",
|
|
2163
|
-
HelpDesk = "HelpDesk",
|
|
2164
|
-
Slack = "Slack"
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
interface SlackAuthorizeActionResult {
|
|
2168
|
-
token: string;
|
|
2169
|
-
}
|
|
2170
|
-
interface SlackAuthorizeFlowCustomContext {
|
|
2171
|
-
credentialId?: string;
|
|
2172
|
-
}
|
|
2173
|
-
type SlackAuthorizeFlowContext = SlackAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
2174
|
-
interface SlackAuthorizeFlowResult {
|
|
2175
|
-
token: string;
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
|
-
type SlackFlows = 'authorize';
|
|
2179
|
-
type SlackFlowContext<TAction extends SlackFlows> = TAction extends 'authorize' ? SlackAuthorizeFlowCustomContext : never;
|
|
2180
|
-
type SlackFlowResult<TAction extends SlackFlows> = TAction extends 'authorize' ? SlackAuthorizeFlowResult : never;
|
|
2181
|
-
|
|
2182
|
-
declare enum SlackEventNames {
|
|
2183
|
-
ChannelNewMessagePosted = "channel_new_message_posted",
|
|
2184
|
-
MemberNewMention = "member_new_mention"
|
|
2185
|
-
}
|
|
2186
|
-
declare const slackEventsZods: {
|
|
2187
|
-
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
2188
|
-
eventName: z.ZodNativeEnum<typeof SlackEventNames>;
|
|
2189
|
-
events: {
|
|
2190
|
-
channelNewMessagePosted: z.ZodObject<{
|
|
2191
|
-
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
2192
|
-
channelId: z.ZodString;
|
|
2193
|
-
}, "strip", z.ZodTypeAny, {
|
|
2194
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2195
|
-
channelId: string;
|
|
2196
|
-
}, {
|
|
2197
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2198
|
-
channelId: string;
|
|
2199
|
-
}>;
|
|
2200
|
-
memberNewMention: z.ZodObject<{
|
|
2201
|
-
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
2202
|
-
userId: z.ZodString;
|
|
2203
|
-
}, "strip", z.ZodTypeAny, {
|
|
2204
|
-
name: SlackEventNames.MemberNewMention;
|
|
2205
|
-
userId: string;
|
|
2206
|
-
}, {
|
|
2207
|
-
name: SlackEventNames.MemberNewMention;
|
|
2208
|
-
userId: string;
|
|
2209
|
-
}>;
|
|
2210
|
-
};
|
|
2211
|
-
readonly event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2212
|
-
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
2213
|
-
channelId: z.ZodString;
|
|
2214
|
-
}, "strip", z.ZodTypeAny, {
|
|
2215
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2216
|
-
channelId: string;
|
|
2217
|
-
}, {
|
|
2218
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2219
|
-
channelId: string;
|
|
2220
|
-
}>, z.ZodObject<{
|
|
2221
|
-
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
2222
|
-
userId: z.ZodString;
|
|
2223
|
-
}, "strip", z.ZodTypeAny, {
|
|
2224
|
-
name: SlackEventNames.MemberNewMention;
|
|
2225
|
-
userId: string;
|
|
2226
|
-
}, {
|
|
2227
|
-
name: SlackEventNames.MemberNewMention;
|
|
2228
|
-
userId: string;
|
|
2229
|
-
}>]>;
|
|
2230
|
-
readonly source: z.ZodObject<{
|
|
2231
|
-
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
2232
|
-
sourceKey: z.ZodString;
|
|
2233
|
-
}, "strip", z.ZodTypeAny, {
|
|
2234
|
-
sourceName: "apps" | "workflows";
|
|
2235
|
-
sourceKey: string;
|
|
2236
|
-
}, {
|
|
2237
|
-
sourceName: "apps" | "workflows";
|
|
2238
|
-
sourceKey: string;
|
|
2239
|
-
}>;
|
|
2240
|
-
readonly subscribe: z.ZodIntersection<z.ZodObject<{
|
|
2241
|
-
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
2242
|
-
sourceKey: z.ZodString;
|
|
2243
|
-
}, "strip", z.ZodTypeAny, {
|
|
2244
|
-
sourceName: "apps" | "workflows";
|
|
2245
|
-
sourceKey: string;
|
|
2246
|
-
}, {
|
|
2247
|
-
sourceName: "apps" | "workflows";
|
|
2248
|
-
sourceKey: string;
|
|
2249
|
-
}>, z.ZodObject<{
|
|
2250
|
-
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2251
|
-
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
2252
|
-
channelId: z.ZodString;
|
|
2253
|
-
}, "strip", z.ZodTypeAny, {
|
|
2254
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2255
|
-
channelId: string;
|
|
2256
|
-
}, {
|
|
2257
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2258
|
-
channelId: string;
|
|
2259
|
-
}>, z.ZodObject<{
|
|
2260
|
-
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
2261
|
-
userId: z.ZodString;
|
|
2262
|
-
}, "strip", z.ZodTypeAny, {
|
|
2263
|
-
name: SlackEventNames.MemberNewMention;
|
|
2264
|
-
userId: string;
|
|
2265
|
-
}, {
|
|
2266
|
-
name: SlackEventNames.MemberNewMention;
|
|
2267
|
-
userId: string;
|
|
2268
|
-
}>]>;
|
|
2269
|
-
callback: z.ZodString;
|
|
2270
|
-
}, "strip", z.ZodTypeAny, {
|
|
2271
|
-
event: {
|
|
2272
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2273
|
-
channelId: string;
|
|
2274
|
-
} | {
|
|
2275
|
-
name: SlackEventNames.MemberNewMention;
|
|
2276
|
-
userId: string;
|
|
2277
|
-
};
|
|
2278
|
-
callback: string;
|
|
2279
|
-
}, {
|
|
2280
|
-
event: {
|
|
2281
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2282
|
-
channelId: string;
|
|
2283
|
-
} | {
|
|
2284
|
-
name: SlackEventNames.MemberNewMention;
|
|
2285
|
-
userId: string;
|
|
2286
|
-
};
|
|
2287
|
-
callback: string;
|
|
2288
|
-
}>>;
|
|
2289
|
-
readonly subscribeContent: z.ZodObject<{
|
|
2290
|
-
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
2291
|
-
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2292
|
-
name: z.ZodLiteral<SlackEventNames.ChannelNewMessagePosted>;
|
|
2293
|
-
channelId: z.ZodString;
|
|
2294
|
-
}, "strip", z.ZodTypeAny, {
|
|
2295
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2296
|
-
channelId: string;
|
|
2297
|
-
}, {
|
|
2298
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2299
|
-
channelId: string;
|
|
2300
|
-
}>, z.ZodObject<{
|
|
2301
|
-
name: z.ZodLiteral<SlackEventNames.MemberNewMention>;
|
|
2302
|
-
userId: z.ZodString;
|
|
2303
|
-
}, "strip", z.ZodTypeAny, {
|
|
2304
|
-
name: SlackEventNames.MemberNewMention;
|
|
2305
|
-
userId: string;
|
|
2306
|
-
}, {
|
|
2307
|
-
name: SlackEventNames.MemberNewMention;
|
|
2308
|
-
userId: string;
|
|
2309
|
-
}>]>;
|
|
2310
|
-
callback: z.ZodString;
|
|
2311
|
-
}, "strip", z.ZodTypeAny, {
|
|
2312
|
-
event: {
|
|
2313
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2314
|
-
channelId: string;
|
|
2315
|
-
} | {
|
|
2316
|
-
name: SlackEventNames.MemberNewMention;
|
|
2317
|
-
userId: string;
|
|
2318
|
-
};
|
|
2319
|
-
callback: string;
|
|
2320
|
-
provider: IntegrationNames.Slack;
|
|
2321
|
-
}, {
|
|
2322
|
-
event: {
|
|
2323
|
-
name: SlackEventNames.ChannelNewMessagePosted;
|
|
2324
|
-
channelId: string;
|
|
2325
|
-
} | {
|
|
2326
|
-
name: SlackEventNames.MemberNewMention;
|
|
2327
|
-
userId: string;
|
|
2328
|
-
};
|
|
2329
|
-
callback: string;
|
|
2330
|
-
provider: IntegrationNames.Slack;
|
|
2331
|
-
}>;
|
|
2332
|
-
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
2333
|
-
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
2334
|
-
sourceKey: z.ZodString;
|
|
2335
|
-
}, "strip", z.ZodTypeAny, {
|
|
2336
|
-
sourceName: "apps" | "workflows";
|
|
2337
|
-
sourceKey: string;
|
|
2338
|
-
}, {
|
|
2339
|
-
sourceName: "apps" | "workflows";
|
|
2340
|
-
sourceKey: string;
|
|
2341
|
-
}>, z.ZodObject<{
|
|
2342
|
-
event: z.ZodObject<{
|
|
2343
|
-
name: z.ZodNativeEnum<typeof SlackEventNames>;
|
|
2344
|
-
}, "strip", z.ZodTypeAny, {
|
|
2345
|
-
name: SlackEventNames;
|
|
2346
|
-
}, {
|
|
2347
|
-
name: SlackEventNames;
|
|
2348
|
-
}>;
|
|
2349
|
-
}, "strip", z.ZodTypeAny, {
|
|
2350
|
-
event: {
|
|
2351
|
-
name: SlackEventNames;
|
|
2352
|
-
};
|
|
2353
|
-
}, {
|
|
2354
|
-
event: {
|
|
2355
|
-
name: SlackEventNames;
|
|
2356
|
-
};
|
|
2357
|
-
}>>;
|
|
2358
|
-
readonly unsubscribeContent: z.ZodObject<{
|
|
2359
|
-
provider: z.ZodLiteral<IntegrationNames.Slack>;
|
|
2360
|
-
event: z.ZodObject<{
|
|
2361
|
-
name: z.ZodNativeEnum<typeof SlackEventNames>;
|
|
2362
|
-
}, "strip", z.ZodTypeAny, {
|
|
2363
|
-
name: SlackEventNames;
|
|
2364
|
-
}, {
|
|
2365
|
-
name: SlackEventNames;
|
|
2366
|
-
}>;
|
|
2367
|
-
}, "strip", z.ZodTypeAny, {
|
|
2368
|
-
event: {
|
|
2369
|
-
name: SlackEventNames;
|
|
2370
|
-
};
|
|
2371
|
-
provider: IntegrationNames.Slack;
|
|
2372
|
-
}, {
|
|
2373
|
-
event: {
|
|
2374
|
-
name: SlackEventNames;
|
|
2375
|
-
};
|
|
2376
|
-
provider: IntegrationNames.Slack;
|
|
2377
|
-
}>;
|
|
2378
|
-
};
|
|
2379
|
-
type SlackEvent = z.infer<typeof slackEventsZods.event>;
|
|
2380
|
-
type SubscribeToSlackEventPayload = z.infer<typeof slackEventsZods.subscribe>;
|
|
2381
|
-
type UnsubscribeFromSlackEventPayload = z.infer<typeof slackEventsZods.unsubscribe>;
|
|
2382
|
-
|
|
2383
|
-
interface BigCommerceAuthorizeActionContext {
|
|
2384
|
-
shop: string;
|
|
2385
|
-
}
|
|
2386
|
-
interface BigCommerceAuthorizeActionResult {
|
|
2387
|
-
shop: string;
|
|
2388
|
-
token: string;
|
|
2389
|
-
}
|
|
2390
|
-
type BigCommerceAuthorizeFlowCustomContext = ({
|
|
2391
|
-
credentialId: undefined;
|
|
2392
|
-
} & BigCommerceAuthorizeActionContext) | {
|
|
2393
|
-
credentialId: string;
|
|
2394
|
-
};
|
|
2395
|
-
type BigCommerceAuthorizeFlowContext = BigCommerceAuthorizeFlowCustomContext & IntegrationFlowContext;
|
|
2396
|
-
interface BigCommerceAuthorizeFlowResult {
|
|
2397
|
-
shop: string;
|
|
2398
|
-
token: string;
|
|
2399
|
-
}
|
|
2400
|
-
|
|
2401
|
-
type BigCommerceFlows = 'authorize';
|
|
2402
|
-
type BigCommerceFlowContext<TAction extends BigCommerceFlows> = TAction extends 'authorize' ? BigCommerceAuthorizeFlowCustomContext : never;
|
|
2403
|
-
type BigCommerceFlowResult<TAction extends BigCommerceFlows> = TAction extends 'authorize' ? BigCommerceAuthorizeFlowResult : never;
|
|
2404
|
-
|
|
2405
|
-
declare enum BigCommerceEventNames {
|
|
2406
|
-
CartCreated = "cart_created",
|
|
2407
|
-
CartUpdated = "cart_updated",
|
|
2408
|
-
OrderCreated = "order_created",
|
|
2409
|
-
OrderUpdated = "order_updated",
|
|
2410
|
-
ProductCreated = "product_created",
|
|
2411
|
-
ProductUpdated = "product_updated"
|
|
2412
|
-
}
|
|
2413
|
-
declare const bigcommerceEventsZods: {
|
|
2414
|
-
provider: z.ZodLiteral<IntegrationNames.BigCommerce>;
|
|
2415
|
-
eventName: z.ZodNativeEnum<typeof BigCommerceEventNames>;
|
|
2416
|
-
events: {
|
|
2417
|
-
cartCreated: z.ZodObject<{
|
|
2418
|
-
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
2419
|
-
}, "strip", z.ZodTypeAny, {
|
|
2420
|
-
name: BigCommerceEventNames.CartCreated;
|
|
2421
|
-
}, {
|
|
2422
|
-
name: BigCommerceEventNames.CartCreated;
|
|
2423
|
-
}>;
|
|
2424
|
-
cartUpdated: z.ZodObject<{
|
|
2425
|
-
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
2426
|
-
}, "strip", z.ZodTypeAny, {
|
|
2427
|
-
name: BigCommerceEventNames.CartUpdated;
|
|
2428
|
-
}, {
|
|
2429
|
-
name: BigCommerceEventNames.CartUpdated;
|
|
2430
|
-
}>;
|
|
2431
|
-
orderCreated: z.ZodObject<{
|
|
2432
|
-
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
2433
|
-
}, "strip", z.ZodTypeAny, {
|
|
2434
|
-
name: BigCommerceEventNames.OrderCreated;
|
|
2435
|
-
}, {
|
|
2436
|
-
name: BigCommerceEventNames.OrderCreated;
|
|
2437
|
-
}>;
|
|
2438
|
-
orderUpdated: z.ZodObject<{
|
|
2439
|
-
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
2440
|
-
}, "strip", z.ZodTypeAny, {
|
|
2441
|
-
name: BigCommerceEventNames.OrderUpdated;
|
|
2442
|
-
}, {
|
|
2443
|
-
name: BigCommerceEventNames.OrderUpdated;
|
|
2444
|
-
}>;
|
|
2445
|
-
productCreated: z.ZodObject<{
|
|
2446
|
-
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
2447
|
-
}, "strip", z.ZodTypeAny, {
|
|
2448
|
-
name: BigCommerceEventNames.ProductCreated;
|
|
2449
|
-
}, {
|
|
2450
|
-
name: BigCommerceEventNames.ProductCreated;
|
|
2451
|
-
}>;
|
|
2452
|
-
productUpdated: z.ZodObject<{
|
|
2453
|
-
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
2454
|
-
}, "strip", z.ZodTypeAny, {
|
|
2455
|
-
name: BigCommerceEventNames.ProductUpdated;
|
|
2456
|
-
}, {
|
|
2457
|
-
name: BigCommerceEventNames.ProductUpdated;
|
|
2458
|
-
}>;
|
|
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
|
+
}>;
|
|
2459
1951
|
};
|
|
2460
1952
|
readonly event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2461
1953
|
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
@@ -3121,6 +2613,7 @@ type UnsubscribeFromMailchimpEventPayload = z.infer<typeof mailchimpEventsZods.u
|
|
|
3121
2613
|
|
|
3122
2614
|
interface ShopifyAuthorizeActionContext {
|
|
3123
2615
|
shop: string;
|
|
2616
|
+
source?: 'marketplace';
|
|
3124
2617
|
}
|
|
3125
2618
|
interface ShopifyAuthorizeActionResult {
|
|
3126
2619
|
shop: string;
|
|
@@ -4984,183 +4477,810 @@ declare const integrationEventsZods: {
|
|
|
4984
4477
|
provider: IntegrationNames.BigCommerce;
|
|
4985
4478
|
}>]>>;
|
|
4986
4479
|
};
|
|
4987
|
-
type IntegrationEventSourceName = z.infer<typeof integrationEventsZods.sourceName>;
|
|
4988
|
-
type IntegrationEventSource = z.infer<typeof integrationEventsZods.source>;
|
|
4989
|
-
type IntegrationEventProviderName = z.infer<typeof integrationEventsZods.providerName>;
|
|
4990
|
-
type IntegrationEvent = z.infer<typeof integrationEventsZods.event>;
|
|
4991
|
-
type SubscribeToIntegrationEventPayload = z.infer<typeof integrationEventsZods.subscribe>;
|
|
4992
|
-
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
|
+
}
|
|
4993
4931
|
|
|
4994
|
-
interface
|
|
4995
|
-
|
|
4932
|
+
interface UnlinkAppDeploymentData {
|
|
4933
|
+
shouldDelete?: true;
|
|
4996
4934
|
}
|
|
4997
|
-
|
|
4998
|
-
|
|
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;
|
|
4999
4959
|
}
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
4960
|
+
|
|
4961
|
+
type UpsertAppMonetizationPayload = {
|
|
4962
|
+
appId: string;
|
|
4963
|
+
} & AppMonetizationData;
|
|
4964
|
+
|
|
4965
|
+
type AppPropertiesData = Record<string, AppPropertyData>;
|
|
4966
|
+
|
|
4967
|
+
interface RemoveAppPropertiesPayload {
|
|
4968
|
+
appId: string;
|
|
5003
4969
|
}
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
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;
|
|
5008
4980
|
}
|
|
5009
4981
|
|
|
5010
|
-
interface
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
showInstruction?: true;
|
|
4982
|
+
interface RemoveAppPropertyPayload {
|
|
4983
|
+
appId: string;
|
|
4984
|
+
propertyId: string;
|
|
5014
4985
|
}
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
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;
|
|
5018
5002
|
}
|
|
5019
|
-
type
|
|
5020
|
-
|
|
5021
|
-
};
|
|
5022
|
-
type GitHubInstallFlowContext = GitHubInstallFlowCustomContext & IntegrationFlowContext;
|
|
5023
|
-
type GitHubInstallFlowResult = GitHubInstallActionResult;
|
|
5003
|
+
type AppRepository = {
|
|
5004
|
+
provider: 'github';
|
|
5005
|
+
} & AppGitHubRepository;
|
|
5024
5006
|
|
|
5025
|
-
type
|
|
5026
|
-
type
|
|
5027
|
-
|
|
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
|
+
}
|
|
5028
5031
|
|
|
5029
|
-
interface
|
|
5030
|
-
|
|
5032
|
+
interface SeedAppRepositoryPayload {
|
|
5033
|
+
appId: string;
|
|
5031
5034
|
}
|
|
5032
|
-
interface
|
|
5033
|
-
|
|
5035
|
+
interface SeedAppRepositoryResult {
|
|
5036
|
+
isSeeded: boolean;
|
|
5034
5037
|
}
|
|
5035
|
-
|
|
5036
|
-
interface
|
|
5037
|
-
|
|
5038
|
+
|
|
5039
|
+
interface UnlinkAppRepositoryData {
|
|
5040
|
+
shouldDelete?: true;
|
|
5038
5041
|
}
|
|
5042
|
+
type UnlinkAppRepositoryPayload = {
|
|
5043
|
+
appId: string;
|
|
5044
|
+
} & UnlinkAppRepositoryData;
|
|
5039
5045
|
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
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
|
+
};
|
|
5045
5064
|
}
|
|
5046
|
-
interface
|
|
5047
|
-
|
|
5065
|
+
interface AppNeonStorage {
|
|
5066
|
+
projectName: string;
|
|
5067
|
+
projectId: string;
|
|
5068
|
+
branchId: string;
|
|
5069
|
+
databaseName: string;
|
|
5048
5070
|
}
|
|
5049
|
-
type
|
|
5050
|
-
|
|
5051
|
-
}
|
|
5052
|
-
|
|
5053
|
-
|
|
5071
|
+
type AppStorage = ({
|
|
5072
|
+
provider: 'planetscale';
|
|
5073
|
+
} & AppPlanetScaleStorage) | ({
|
|
5074
|
+
provider: 'neon';
|
|
5075
|
+
} & AppNeonStorage);
|
|
5054
5076
|
|
|
5055
|
-
type
|
|
5056
|
-
type
|
|
5057
|
-
|
|
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;
|
|
5058
5113
|
|
|
5059
|
-
interface
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
interface VercelConnectActionResult {
|
|
5063
|
-
isConnected: boolean;
|
|
5114
|
+
interface UnlinkAppStorageData {
|
|
5115
|
+
shouldDelete?: true;
|
|
5116
|
+
shouldDeleteDatabase?: true;
|
|
5064
5117
|
}
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
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;
|
|
5069
5130
|
}
|
|
5070
|
-
|
|
5071
|
-
|
|
5131
|
+
|
|
5132
|
+
type UpsertAppWidgetsPayload = {
|
|
5133
|
+
appId: string;
|
|
5134
|
+
} & AppWidgetsData;
|
|
5135
|
+
|
|
5136
|
+
interface AppWidgetData {
|
|
5137
|
+
placement: string;
|
|
5138
|
+
initialState?: string;
|
|
5139
|
+
url: string;
|
|
5072
5140
|
}
|
|
5073
|
-
|
|
5074
|
-
interface
|
|
5075
|
-
|
|
5076
|
-
|
|
5141
|
+
|
|
5142
|
+
interface RemoveAppWidgetPayload {
|
|
5143
|
+
appId: string;
|
|
5144
|
+
widgetId: string;
|
|
5077
5145
|
}
|
|
5078
5146
|
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5147
|
+
type UpsertAppWidgetPayload = {
|
|
5148
|
+
appId: string;
|
|
5149
|
+
widgetId: string;
|
|
5150
|
+
} & AppWidgetData;
|
|
5151
|
+
|
|
5152
|
+
interface AppDisplayData {
|
|
5153
|
+
shortDescription?: string;
|
|
5154
|
+
longDescription?: string;
|
|
5083
5155
|
}
|
|
5084
|
-
|
|
5085
|
-
|
|
5156
|
+
|
|
5157
|
+
interface AppBaseTemplate {
|
|
5158
|
+
id: string;
|
|
5159
|
+
name: string;
|
|
5160
|
+
description: string;
|
|
5161
|
+
tags: string[];
|
|
5162
|
+
image?: string;
|
|
5163
|
+
icons?: Record<string, string>;
|
|
5086
5164
|
}
|
|
5087
|
-
type
|
|
5088
|
-
|
|
5165
|
+
type AppRepositoryTemplate = AppBaseTemplate & {
|
|
5166
|
+
repository: {
|
|
5167
|
+
name: string;
|
|
5168
|
+
target?: AppRepositoryTarget;
|
|
5169
|
+
};
|
|
5089
5170
|
};
|
|
5090
|
-
type
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
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
|
+
}
|
|
5096
5189
|
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
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
|
+
};
|
|
5116
5209
|
};
|
|
5210
|
+
type?: AppVariableType;
|
|
5211
|
+
status?: AppVariableStatus;
|
|
5212
|
+
isLinked: boolean;
|
|
5213
|
+
isDecrypted: boolean;
|
|
5117
5214
|
}
|
|
5118
5215
|
|
|
5119
|
-
interface
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
address1: string;
|
|
5124
|
-
address2: string;
|
|
5125
|
-
city: string;
|
|
5126
|
-
state: string;
|
|
5127
|
-
zip: string;
|
|
5128
|
-
country: string;
|
|
5129
|
-
phone: string;
|
|
5130
|
-
vat_number: string;
|
|
5131
|
-
ip_address: string;
|
|
5132
|
-
ip_address_country: string;
|
|
5133
|
-
card_type: string;
|
|
5134
|
-
year: number;
|
|
5135
|
-
month: number;
|
|
5136
|
-
first_six: string;
|
|
5137
|
-
last_four: string;
|
|
5216
|
+
interface CreateAppVariablePayload {
|
|
5217
|
+
appId: string;
|
|
5218
|
+
key: string;
|
|
5219
|
+
value: string;
|
|
5138
5220
|
}
|
|
5139
5221
|
|
|
5140
|
-
|
|
5222
|
+
interface EditAppVariablePayload {
|
|
5223
|
+
appId: string;
|
|
5224
|
+
key: string;
|
|
5225
|
+
localValue: string;
|
|
5226
|
+
externalValue: string;
|
|
5227
|
+
}
|
|
5141
5228
|
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5229
|
+
interface SyncAppVariablePayload {
|
|
5230
|
+
source: {
|
|
5231
|
+
type: AppVariableProvider;
|
|
5232
|
+
id: string;
|
|
5233
|
+
value: string;
|
|
5234
|
+
};
|
|
5235
|
+
target: {
|
|
5236
|
+
id?: string;
|
|
5237
|
+
};
|
|
5145
5238
|
}
|
|
5146
|
-
declare const billingClientInstance: axios.AxiosInstance;
|
|
5147
|
-
declare function getBillingClientConfig(options?: BillingClientOptions): AxiosRequestConfig;
|
|
5148
|
-
declare function initBillingClient(baseUrl?: string, token?: string): void;
|
|
5149
5239
|
|
|
5150
|
-
interface
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
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;
|
|
5163
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;
|
|
5164
5284
|
|
|
5165
5285
|
interface ApplicationPaymentDto {
|
|
5166
5286
|
creditCardRequired: boolean;
|
|
@@ -5656,15 +5776,11 @@ interface CreateApplicationSubmissionPayload {
|
|
|
5656
5776
|
}
|
|
5657
5777
|
|
|
5658
5778
|
interface AppStatsDto {
|
|
5659
|
-
entitiesAuthorized: number;
|
|
5660
5779
|
lastInteraction: string;
|
|
5661
5780
|
licenseInstallations: number;
|
|
5662
|
-
licensesAuthorized: number;
|
|
5663
|
-
licensesCurrentlyUsing: number;
|
|
5664
5781
|
numberOfChanges: number;
|
|
5665
5782
|
organizationsInterested: number;
|
|
5666
5783
|
organizationsNotInterested: string;
|
|
5667
|
-
peopleCurrentlyUsing: number;
|
|
5668
5784
|
publicVisits: number;
|
|
5669
5785
|
}
|
|
5670
5786
|
|
|
@@ -6445,81 +6561,6 @@ declare const api: {
|
|
|
6445
6561
|
};
|
|
6446
6562
|
};
|
|
6447
6563
|
adapter: {
|
|
6448
|
-
app: {
|
|
6449
|
-
blocks: {
|
|
6450
|
-
authorization: {
|
|
6451
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppAuthorizationData, any>>;
|
|
6452
|
-
add(payload: AddAppAuthorizationPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AddAppAuthorizationResult, any>>;
|
|
6453
|
-
update(payload: UpdateAppAuthorizationPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6454
|
-
remove(payload: RemoveAppAuthorizationPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6455
|
-
};
|
|
6456
|
-
monetization: {
|
|
6457
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppMonetizationData, any>>;
|
|
6458
|
-
upsert(payload: UpsertAppMonetizationPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6459
|
-
remove(payload: RemoveAppMonetizationPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6460
|
-
};
|
|
6461
|
-
repository: {
|
|
6462
|
-
getAggregate(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<{
|
|
6463
|
-
provider: "github";
|
|
6464
|
-
} & AppGitHubRepository, any>>;
|
|
6465
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppRepositoryData, any>>;
|
|
6466
|
-
link(payload: LinkAppRepositoryPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<LinkAppRepositoryResult, any>>;
|
|
6467
|
-
unlink(payload: UnlinkAppRepositoryPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6468
|
-
upsert(payload: UpsertAppRepositoryPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6469
|
-
seed(payload: SeedAppRepositoryPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<SeedAppRepositoryResult, any>>;
|
|
6470
|
-
};
|
|
6471
|
-
deployment: {
|
|
6472
|
-
getAggregate(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppDeployment, any>>;
|
|
6473
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppDeploymentData, any>>;
|
|
6474
|
-
link(payload: LinkAppDeploymentPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<LinkAppDeploymentResult, any>>;
|
|
6475
|
-
unlink(payload: UnlinkAppDeploymentPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6476
|
-
upsert(payload: UpsertAppDeploymentPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6477
|
-
};
|
|
6478
|
-
storage: {
|
|
6479
|
-
getAggregate(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppStorage, any>>;
|
|
6480
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppStorageData, any>>;
|
|
6481
|
-
link(payload: LinkAppStoragePayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6482
|
-
unlink(payload: UnlinkAppStoragePayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6483
|
-
upsert(payload: UpsertAppStoragePayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6484
|
-
};
|
|
6485
|
-
properties: {
|
|
6486
|
-
property: {
|
|
6487
|
-
get(appId: string, propertyId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppPropertyData, any>>;
|
|
6488
|
-
upsert(payload: UpsertAppPropertyPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6489
|
-
remove(payload: RemoveAppPropertyPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6490
|
-
};
|
|
6491
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppPropertiesData, any>>;
|
|
6492
|
-
upsert(payload: UpsertAppPropertiesPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6493
|
-
remove(payload: RemoveAppPropertiesPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6494
|
-
};
|
|
6495
|
-
widgets: {
|
|
6496
|
-
widget: {
|
|
6497
|
-
get(appId: string, widgetId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppWidgetData, any>>;
|
|
6498
|
-
upsert(payload: UpsertAppWidgetPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6499
|
-
remove(payload: RemoveAppWidgetPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6500
|
-
};
|
|
6501
|
-
get(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppWidgetsData, any>>;
|
|
6502
|
-
upsert(payload: UpsertAppWidgetsPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6503
|
-
remove(payload: RemoveAppWidgetsPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6504
|
-
};
|
|
6505
|
-
};
|
|
6506
|
-
variables: {
|
|
6507
|
-
getVariables(appId: string, decrypted?: boolean, authorization?: AdapterClientAuthorization): Promise<AppVariable[]>;
|
|
6508
|
-
getVariable(appId: string, key: string, authorization?: AdapterClientAuthorization): Promise<AppVariable>;
|
|
6509
|
-
syncVariable(appId: string, key: string, payload: SyncAppVariablePayload, authorization?: AdapterClientAuthorization): Promise<void>;
|
|
6510
|
-
createVariable(appId: string, data: CreateAppVariablePayload, authorization?: AdapterClientAuthorization): Promise<void>;
|
|
6511
|
-
editVariable(appId: string, data: EditAppVariablePayload, authorization?: AdapterClientAuthorization): Promise<void>;
|
|
6512
|
-
deleteVariable(appId: string, key: string): Promise<void>;
|
|
6513
|
-
};
|
|
6514
|
-
templates: {
|
|
6515
|
-
getTemplates(authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppTemplates, any>>;
|
|
6516
|
-
getRepositoryTemplates(authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppRepositoryTemplates, any>>;
|
|
6517
|
-
};
|
|
6518
|
-
push(payload: PushAppPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<PushAppResult, any>>;
|
|
6519
|
-
pull(appId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<AppManifest, any>>;
|
|
6520
|
-
verify(payload: VerifyAppPayload, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<VerifyAppResult, any>>;
|
|
6521
|
-
status<TSaga>(sagaId: string, authorization?: AdapterClientAuthorization): Promise<axios.AxiosResponse<SagaOutput<TSaga> | undefined, any>>;
|
|
6522
|
-
};
|
|
6523
6564
|
integrations: {
|
|
6524
6565
|
mailchimp: {
|
|
6525
6566
|
events: {
|
|
@@ -6558,11 +6599,88 @@ declare const api: {
|
|
|
6558
6599
|
};
|
|
6559
6600
|
};
|
|
6560
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
|
+
};
|
|
6561
6679
|
log(payload: {
|
|
6562
6680
|
userId: string;
|
|
6563
6681
|
name: string;
|
|
6564
6682
|
payload: Record<string, unknown>;
|
|
6565
|
-
}, authorization?:
|
|
6683
|
+
}, authorization?: ConsoleClientAuthorization): Promise<axios.AxiosResponse<void, any>>;
|
|
6566
6684
|
};
|
|
6567
6685
|
dps: {
|
|
6568
6686
|
applications: {
|
|
@@ -7214,6 +7332,7 @@ declare const api: {
|
|
|
7214
7332
|
update: (id: string) => string;
|
|
7215
7333
|
delete: (id: string) => string;
|
|
7216
7334
|
connect: (id: string) => string;
|
|
7335
|
+
disconnect: (id: string) => string;
|
|
7217
7336
|
};
|
|
7218
7337
|
};
|
|
7219
7338
|
get(id: string, authorization?: TextClientAuthorization): Promise<axios.AxiosResponse<CredentialDto, any>>;
|
|
@@ -7224,6 +7343,7 @@ declare const api: {
|
|
|
7224
7343
|
connect(id: string, code: string, authorization?: TextClientAuthorization): Promise<axios.AxiosResponse<{
|
|
7225
7344
|
access_token: string;
|
|
7226
7345
|
}, any>>;
|
|
7346
|
+
disconnect(id: string, authorization?: TextClientAuthorization): Promise<axios.AxiosResponse<Record<string, never>, any>>;
|
|
7227
7347
|
};
|
|
7228
7348
|
functions: {
|
|
7229
7349
|
meta: {
|
|
@@ -7253,23 +7373,24 @@ declare const api: {
|
|
|
7253
7373
|
};
|
|
7254
7374
|
isInitialized: boolean;
|
|
7255
7375
|
};
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7376
|
+
interface ApiUrls {
|
|
7377
|
+
platform?: {
|
|
7378
|
+
accounts?: string;
|
|
7379
|
+
billing?: string;
|
|
7380
|
+
dps?: string;
|
|
7381
|
+
adapter?: string;
|
|
7382
|
+
console?: string;
|
|
7383
|
+
workflows?: string;
|
|
7384
|
+
};
|
|
7385
|
+
products?: {
|
|
7386
|
+
livechat?: string;
|
|
7387
|
+
helpdesk?: string;
|
|
7388
|
+
};
|
|
7389
|
+
integrations?: {
|
|
7390
|
+
text?: string;
|
|
7271
7391
|
};
|
|
7272
|
-
}
|
|
7392
|
+
}
|
|
7393
|
+
interface ApiTokens {
|
|
7273
7394
|
platform?: GlobalAccountsClientAuthorization;
|
|
7274
7395
|
github?: GithubClientAuthorization;
|
|
7275
7396
|
netlify?: NetlifyClientAuthorization;
|
|
@@ -7281,7 +7402,10 @@ declare function initApi(config: {
|
|
|
7281
7402
|
bigcommerce?: BigCommerceClientAuthorization;
|
|
7282
7403
|
hubspot?: HubspotClientAuthorization;
|
|
7283
7404
|
slack?: SlackClientAuthorization;
|
|
7284
|
-
}
|
|
7405
|
+
}
|
|
7406
|
+
declare function initApi(config: {
|
|
7407
|
+
urls: ApiUrls;
|
|
7408
|
+
}, tokens?: ApiTokens): void;
|
|
7285
7409
|
|
|
7286
7410
|
declare const appTemplatesMap: {
|
|
7287
7411
|
readonly 'livechat/developer-app-template-saas': "saas";
|
|
@@ -7336,4 +7460,4 @@ declare function getIntegrationFlowUrl<TFlowContext, TFlowResult, TState>(name:
|
|
|
7336
7460
|
|
|
7337
7461
|
declare const buildUrlFromSegments: (segments: string[], basePath: string, baseUrl?: string) => string;
|
|
7338
7462
|
|
|
7339
|
-
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 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, 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, type WorkflowDefinitionTaskCore, 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 };
|