mailmeteor 0.0.50 → 0.0.52
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.cjs +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +253 -22
- package/dist/index.mjs +20 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types/generated-sdk/index.d.ts +1 -1
- package/dist/types/generated-sdk/index.d.ts.map +1 -1
- package/dist/types/generated-sdk/sdk.gen.d.ts +43 -6
- package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/types.gen.d.ts +202 -16
- package/dist/types/generated-sdk/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export type ClientOptions = {
|
|
|
4
4
|
export type ErrorResponse = {
|
|
5
5
|
error: {
|
|
6
6
|
status: number;
|
|
7
|
-
code?: 'authentication_required' | 'rate_limit' | 'resource_missing' | 'resource_conflict' | 'resource_exhausted' | 'resource_already_exists' | 'resource_action_required' | 'account_verification_required' | 'account_unauthorized' | 'account_blocked' | 'parameter_missing' | 'parameter_invalid' | 'esp_unsupported' | 'unknown_error' | 'api_error' | 'quota_exceeded' | 'sender_missing_service' | 'sender_insufficient_permission' | 'integration_error' | 'integration_auth_error' | 'TEST_ERROR';
|
|
7
|
+
code?: 'authentication_required' | 'rate_limit' | 'resource_missing' | 'resource_conflict' | 'resource_exhausted' | 'resource_already_exists' | 'resource_action_required' | 'account_verification_required' | 'account_unauthorized' | 'account_blocked' | 'parameter_missing' | 'parameter_invalid' | 'esp_unsupported' | 'not_implemented' | 'unknown_error' | 'api_error' | 'quota_exceeded' | 'sender_missing_service' | 'sender_insufficient_permission' | 'integration_error' | 'integration_auth_error' | 'TEST_ERROR';
|
|
8
8
|
message: string;
|
|
9
9
|
type?: string;
|
|
10
10
|
details?: {
|
|
@@ -12,7 +12,7 @@ export type ErrorResponse = {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
message: string;
|
|
15
|
-
code?: 'authentication_required' | 'rate_limit' | 'resource_missing' | 'resource_conflict' | 'resource_exhausted' | 'resource_already_exists' | 'resource_action_required' | 'account_verification_required' | 'account_unauthorized' | 'account_blocked' | 'parameter_missing' | 'parameter_invalid' | 'esp_unsupported' | 'unknown_error' | 'api_error' | 'quota_exceeded' | 'sender_missing_service' | 'sender_insufficient_permission' | 'integration_error' | 'integration_auth_error' | 'TEST_ERROR';
|
|
15
|
+
code?: 'authentication_required' | 'rate_limit' | 'resource_missing' | 'resource_conflict' | 'resource_exhausted' | 'resource_already_exists' | 'resource_action_required' | 'account_verification_required' | 'account_unauthorized' | 'account_blocked' | 'parameter_missing' | 'parameter_invalid' | 'esp_unsupported' | 'not_implemented' | 'unknown_error' | 'api_error' | 'quota_exceeded' | 'sender_missing_service' | 'sender_insufficient_permission' | 'integration_error' | 'integration_auth_error' | 'TEST_ERROR';
|
|
16
16
|
};
|
|
17
17
|
export type UserIdQuery = {
|
|
18
18
|
expand?: Array<'billing' | 'billing.subscription'>;
|
|
@@ -75,6 +75,7 @@ export type UserIdResponse200 = {
|
|
|
75
75
|
};
|
|
76
76
|
sendgrid?: {
|
|
77
77
|
api_key: string;
|
|
78
|
+
service?: string;
|
|
78
79
|
};
|
|
79
80
|
[key: string]: {
|
|
80
81
|
access_token?: string;
|
|
@@ -88,6 +89,17 @@ export type UserIdResponse200 = {
|
|
|
88
89
|
service?: string;
|
|
89
90
|
} | {
|
|
90
91
|
api_key: string;
|
|
92
|
+
service?: string;
|
|
93
|
+
} | {
|
|
94
|
+
host: string;
|
|
95
|
+
port: number;
|
|
96
|
+
security: 'auto' | 'none' | 'ssl' | 'tls';
|
|
97
|
+
username: string;
|
|
98
|
+
password: string;
|
|
99
|
+
email: string;
|
|
100
|
+
service: 'smtp';
|
|
101
|
+
creation_date?: number;
|
|
102
|
+
update_date?: number;
|
|
91
103
|
} | {
|
|
92
104
|
access_token?: string;
|
|
93
105
|
refresh_token?: string;
|
|
@@ -120,6 +132,7 @@ export type UserIdResponse200 = {
|
|
|
120
132
|
service?: string;
|
|
121
133
|
} | {
|
|
122
134
|
api_key: string;
|
|
135
|
+
service?: string;
|
|
123
136
|
} | undefined;
|
|
124
137
|
};
|
|
125
138
|
billing?: {
|
|
@@ -357,6 +370,9 @@ export type ContactsResponse201 = {
|
|
|
357
370
|
blocked_at?: number;
|
|
358
371
|
unsubscribed?: boolean;
|
|
359
372
|
unsubscribed_at?: number;
|
|
373
|
+
consent?: {
|
|
374
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
375
|
+
};
|
|
360
376
|
contact_lists?: Array<string>;
|
|
361
377
|
properties?: {
|
|
362
378
|
[key: string]: string;
|
|
@@ -411,6 +427,9 @@ export type ContactIdResponse200 = {
|
|
|
411
427
|
blocked_at?: number;
|
|
412
428
|
unsubscribed?: boolean;
|
|
413
429
|
unsubscribed_at?: number;
|
|
430
|
+
consent?: {
|
|
431
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
432
|
+
};
|
|
414
433
|
contact_lists?: Array<string>;
|
|
415
434
|
properties?: {
|
|
416
435
|
[key: string]: string;
|
|
@@ -425,6 +444,9 @@ export type ContactIdResponse200 = {
|
|
|
425
444
|
export type ContactIdBody = {
|
|
426
445
|
blocked?: boolean;
|
|
427
446
|
unsubscribed?: boolean;
|
|
447
|
+
consent?: {
|
|
448
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
449
|
+
};
|
|
428
450
|
contact_lists?: Array<string>;
|
|
429
451
|
properties?: {
|
|
430
452
|
[key: string]: string;
|
|
@@ -449,6 +471,9 @@ export type BlockResponse200 = {
|
|
|
449
471
|
blocked_at?: number;
|
|
450
472
|
unsubscribed?: boolean;
|
|
451
473
|
unsubscribed_at?: number;
|
|
474
|
+
consent?: {
|
|
475
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
476
|
+
};
|
|
452
477
|
contact_lists?: Array<string>;
|
|
453
478
|
properties?: {
|
|
454
479
|
[key: string]: string;
|
|
@@ -475,6 +500,9 @@ export type UnblockResponse200 = {
|
|
|
475
500
|
blocked_at?: number;
|
|
476
501
|
unsubscribed?: boolean;
|
|
477
502
|
unsubscribed_at?: number;
|
|
503
|
+
consent?: {
|
|
504
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
505
|
+
};
|
|
478
506
|
contact_lists?: Array<string>;
|
|
479
507
|
properties?: {
|
|
480
508
|
[key: string]: string;
|
|
@@ -501,6 +529,9 @@ export type ResubscribeResponse200 = {
|
|
|
501
529
|
blocked_at?: number;
|
|
502
530
|
unsubscribed?: boolean;
|
|
503
531
|
unsubscribed_at?: number;
|
|
532
|
+
consent?: {
|
|
533
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
534
|
+
};
|
|
504
535
|
contact_lists?: Array<string>;
|
|
505
536
|
properties?: {
|
|
506
537
|
[key: string]: string;
|
|
@@ -533,6 +564,9 @@ export type ContactsResponse200 = {
|
|
|
533
564
|
blocked_at?: number;
|
|
534
565
|
unsubscribed?: boolean;
|
|
535
566
|
unsubscribed_at?: number;
|
|
567
|
+
consent?: {
|
|
568
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
569
|
+
};
|
|
536
570
|
contact_lists?: Array<string>;
|
|
537
571
|
properties?: {
|
|
538
572
|
[key: string]: string;
|
|
@@ -593,6 +627,9 @@ export type PipelineConversationsQuery = {
|
|
|
593
627
|
thread_id?: string;
|
|
594
628
|
last_activity_after?: number | null;
|
|
595
629
|
last_activity_before?: number | null;
|
|
630
|
+
followups?: {
|
|
631
|
+
exists: boolean;
|
|
632
|
+
};
|
|
596
633
|
limit?: number;
|
|
597
634
|
starting_after?: string;
|
|
598
635
|
ending_before?: string;
|
|
@@ -618,6 +655,7 @@ export type PipelineConversationsResponse200 = {
|
|
|
618
655
|
status_updated_at: number;
|
|
619
656
|
campaign: string | null;
|
|
620
657
|
original_email: string | null;
|
|
658
|
+
followups: Array<string>;
|
|
621
659
|
opens_count: number;
|
|
622
660
|
clicks_count: number;
|
|
623
661
|
unsubscribed: boolean;
|
|
@@ -631,6 +669,10 @@ export type CountQuery = {
|
|
|
631
669
|
campaign?: string;
|
|
632
670
|
last_activity_after?: number | null;
|
|
633
671
|
last_activity_before?: number | null;
|
|
672
|
+
followups?: {
|
|
673
|
+
exists: boolean;
|
|
674
|
+
};
|
|
675
|
+
is_read?: boolean;
|
|
634
676
|
group_by?: 'status';
|
|
635
677
|
};
|
|
636
678
|
export type CountResponse200 = {
|
|
@@ -666,6 +708,7 @@ export type PipelineConversationIdResponse200 = {
|
|
|
666
708
|
status_updated_at: number;
|
|
667
709
|
campaign: string | null;
|
|
668
710
|
original_email: string | null;
|
|
711
|
+
followups: Array<string>;
|
|
669
712
|
opens_count: number;
|
|
670
713
|
clicks_count: number;
|
|
671
714
|
unsubscribed: boolean;
|
|
@@ -886,12 +929,12 @@ export type UpdateResponse200 = {
|
|
|
886
929
|
failure_code?: string;
|
|
887
930
|
};
|
|
888
931
|
export type IntegrationIdParams = {
|
|
889
|
-
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail';
|
|
932
|
+
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
890
933
|
};
|
|
891
934
|
export type IntegrationIdResponse200 = {
|
|
892
935
|
owner: string;
|
|
893
|
-
id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail';
|
|
894
|
-
service: 'google' | 'microsoft' | 'zoho';
|
|
936
|
+
id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
937
|
+
service: 'google' | 'microsoft' | 'zoho' | 'smtp';
|
|
895
938
|
object: 'integration';
|
|
896
939
|
accounts?: Array<{
|
|
897
940
|
id: string;
|
|
@@ -902,23 +945,61 @@ export type IntegrationIdResponse200 = {
|
|
|
902
945
|
status: 'active' | 'action_required';
|
|
903
946
|
}>;
|
|
904
947
|
};
|
|
948
|
+
export type AccountsBody = {
|
|
949
|
+
email?: string;
|
|
950
|
+
credentials: {
|
|
951
|
+
access_token?: string;
|
|
952
|
+
refresh_token?: string;
|
|
953
|
+
expiry_date?: number;
|
|
954
|
+
expires_in?: number;
|
|
955
|
+
update_date?: number;
|
|
956
|
+
scope?: string;
|
|
957
|
+
api_domain?: string;
|
|
958
|
+
email?: string;
|
|
959
|
+
service?: string;
|
|
960
|
+
} | {
|
|
961
|
+
api_key: string;
|
|
962
|
+
service?: string;
|
|
963
|
+
} | {
|
|
964
|
+
host: string;
|
|
965
|
+
port: number;
|
|
966
|
+
security: 'auto' | 'none' | 'ssl' | 'tls';
|
|
967
|
+
username: string;
|
|
968
|
+
password: string;
|
|
969
|
+
email: string;
|
|
970
|
+
service: 'smtp';
|
|
971
|
+
creation_date?: number;
|
|
972
|
+
update_date?: number;
|
|
973
|
+
};
|
|
974
|
+
};
|
|
975
|
+
export type AccountsParams = {
|
|
976
|
+
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
977
|
+
};
|
|
978
|
+
export type AccountsResponse201 = {
|
|
979
|
+
id: string;
|
|
980
|
+
object: 'integration_account';
|
|
981
|
+
email?: string;
|
|
982
|
+
permissions: Array<string>;
|
|
983
|
+
created_at?: number;
|
|
984
|
+
status: 'active' | 'action_required';
|
|
985
|
+
};
|
|
905
986
|
export type AccountIdParams = {
|
|
906
|
-
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail';
|
|
987
|
+
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
907
988
|
account_id: string;
|
|
908
989
|
};
|
|
909
990
|
export type CheckParams = {
|
|
910
|
-
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail';
|
|
991
|
+
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
911
992
|
account_id: string;
|
|
912
993
|
};
|
|
913
994
|
export type CheckResponse200 = {
|
|
914
995
|
status: 'active' | 'action_required';
|
|
915
996
|
};
|
|
916
997
|
export type ConnectParams = {
|
|
917
|
-
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail';
|
|
998
|
+
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
918
999
|
account_id: string;
|
|
919
1000
|
};
|
|
920
1001
|
export type DisconnectParams = {
|
|
921
|
-
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail';
|
|
1002
|
+
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
922
1003
|
account_id: string;
|
|
923
1004
|
};
|
|
924
1005
|
export type OpenapiJsonResponse200 = unknown;
|
|
@@ -998,6 +1079,7 @@ export type UsersRetrieveResponses = {
|
|
|
998
1079
|
};
|
|
999
1080
|
sendgrid?: {
|
|
1000
1081
|
api_key: string;
|
|
1082
|
+
service?: string;
|
|
1001
1083
|
};
|
|
1002
1084
|
[key: string]: {
|
|
1003
1085
|
access_token?: string;
|
|
@@ -1011,6 +1093,17 @@ export type UsersRetrieveResponses = {
|
|
|
1011
1093
|
service?: string;
|
|
1012
1094
|
} | {
|
|
1013
1095
|
api_key: string;
|
|
1096
|
+
service?: string;
|
|
1097
|
+
} | {
|
|
1098
|
+
host: string;
|
|
1099
|
+
port: number;
|
|
1100
|
+
security: 'auto' | 'none' | 'ssl' | 'tls';
|
|
1101
|
+
username: string;
|
|
1102
|
+
password: string;
|
|
1103
|
+
email: string;
|
|
1104
|
+
service: 'smtp';
|
|
1105
|
+
creation_date?: number;
|
|
1106
|
+
update_date?: number;
|
|
1014
1107
|
} | {
|
|
1015
1108
|
access_token?: string;
|
|
1016
1109
|
refresh_token?: string;
|
|
@@ -1043,6 +1136,7 @@ export type UsersRetrieveResponses = {
|
|
|
1043
1136
|
service?: string;
|
|
1044
1137
|
} | {
|
|
1045
1138
|
api_key: string;
|
|
1139
|
+
service?: string;
|
|
1046
1140
|
} | undefined;
|
|
1047
1141
|
};
|
|
1048
1142
|
billing?: {
|
|
@@ -1801,6 +1895,9 @@ export type ContactsListResponses = {
|
|
|
1801
1895
|
blocked_at?: number;
|
|
1802
1896
|
unsubscribed?: boolean;
|
|
1803
1897
|
unsubscribed_at?: number;
|
|
1898
|
+
consent?: {
|
|
1899
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
1900
|
+
};
|
|
1804
1901
|
contact_lists?: Array<string>;
|
|
1805
1902
|
properties?: {
|
|
1806
1903
|
[key: string]: string;
|
|
@@ -1857,6 +1954,9 @@ export type ContactsCreateResponses = {
|
|
|
1857
1954
|
blocked_at?: number;
|
|
1858
1955
|
unsubscribed?: boolean;
|
|
1859
1956
|
unsubscribed_at?: number;
|
|
1957
|
+
consent?: {
|
|
1958
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
1959
|
+
};
|
|
1860
1960
|
contact_lists?: Array<string>;
|
|
1861
1961
|
properties?: {
|
|
1862
1962
|
[key: string]: string;
|
|
@@ -1967,6 +2067,9 @@ export type ContactsDelResponses = {
|
|
|
1967
2067
|
blocked_at?: number;
|
|
1968
2068
|
unsubscribed?: boolean;
|
|
1969
2069
|
unsubscribed_at?: number;
|
|
2070
|
+
consent?: {
|
|
2071
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
2072
|
+
};
|
|
1970
2073
|
contact_lists?: Array<string>;
|
|
1971
2074
|
properties?: {
|
|
1972
2075
|
[key: string]: string;
|
|
@@ -2011,6 +2114,9 @@ export type ContactsRetrieveResponses = {
|
|
|
2011
2114
|
blocked_at?: number;
|
|
2012
2115
|
unsubscribed?: boolean;
|
|
2013
2116
|
unsubscribed_at?: number;
|
|
2117
|
+
consent?: {
|
|
2118
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
2119
|
+
};
|
|
2014
2120
|
contact_lists?: Array<string>;
|
|
2015
2121
|
properties?: {
|
|
2016
2122
|
[key: string]: string;
|
|
@@ -2028,6 +2134,9 @@ export type ContactsUpdateData = {
|
|
|
2028
2134
|
body: {
|
|
2029
2135
|
blocked?: boolean;
|
|
2030
2136
|
unsubscribed?: boolean;
|
|
2137
|
+
consent?: {
|
|
2138
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
2139
|
+
};
|
|
2031
2140
|
contact_lists?: Array<string>;
|
|
2032
2141
|
properties?: {
|
|
2033
2142
|
[key: string]: string;
|
|
@@ -2066,6 +2175,9 @@ export type ContactsUpdateResponses = {
|
|
|
2066
2175
|
blocked_at?: number;
|
|
2067
2176
|
unsubscribed?: boolean;
|
|
2068
2177
|
unsubscribed_at?: number;
|
|
2178
|
+
consent?: {
|
|
2179
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
2180
|
+
};
|
|
2069
2181
|
contact_lists?: Array<string>;
|
|
2070
2182
|
properties?: {
|
|
2071
2183
|
[key: string]: string;
|
|
@@ -2110,6 +2222,9 @@ export type ContactsBlockResponses = {
|
|
|
2110
2222
|
blocked_at?: number;
|
|
2111
2223
|
unsubscribed?: boolean;
|
|
2112
2224
|
unsubscribed_at?: number;
|
|
2225
|
+
consent?: {
|
|
2226
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
2227
|
+
};
|
|
2113
2228
|
contact_lists?: Array<string>;
|
|
2114
2229
|
properties?: {
|
|
2115
2230
|
[key: string]: string;
|
|
@@ -2154,6 +2269,9 @@ export type ContactsUnblockResponses = {
|
|
|
2154
2269
|
blocked_at?: number;
|
|
2155
2270
|
unsubscribed?: boolean;
|
|
2156
2271
|
unsubscribed_at?: number;
|
|
2272
|
+
consent?: {
|
|
2273
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
2274
|
+
};
|
|
2157
2275
|
contact_lists?: Array<string>;
|
|
2158
2276
|
properties?: {
|
|
2159
2277
|
[key: string]: string;
|
|
@@ -2198,6 +2316,9 @@ export type ContactsResubscribeResponses = {
|
|
|
2198
2316
|
blocked_at?: number;
|
|
2199
2317
|
unsubscribed?: boolean;
|
|
2200
2318
|
unsubscribed_at?: number;
|
|
2319
|
+
consent?: {
|
|
2320
|
+
tracking?: 'none' | 'opt-in' | 'opt-out';
|
|
2321
|
+
};
|
|
2201
2322
|
contact_lists?: Array<string>;
|
|
2202
2323
|
properties?: {
|
|
2203
2324
|
[key: string]: string;
|
|
@@ -2353,6 +2474,9 @@ export type PipelineConversationsListData = {
|
|
|
2353
2474
|
thread_id?: string;
|
|
2354
2475
|
last_activity_after?: number | null;
|
|
2355
2476
|
last_activity_before?: number | null;
|
|
2477
|
+
followups?: {
|
|
2478
|
+
exists: boolean;
|
|
2479
|
+
};
|
|
2356
2480
|
limit?: number;
|
|
2357
2481
|
starting_after?: string;
|
|
2358
2482
|
ending_before?: string;
|
|
@@ -2391,6 +2515,7 @@ export type PipelineConversationsListResponses = {
|
|
|
2391
2515
|
status_updated_at: number;
|
|
2392
2516
|
campaign: string | null;
|
|
2393
2517
|
original_email: string | null;
|
|
2518
|
+
followups: Array<string>;
|
|
2394
2519
|
opens_count: number;
|
|
2395
2520
|
clicks_count: number;
|
|
2396
2521
|
unsubscribed: boolean;
|
|
@@ -2409,6 +2534,10 @@ export type PipelineConversationsCountData = {
|
|
|
2409
2534
|
campaign?: string;
|
|
2410
2535
|
last_activity_after?: number | null;
|
|
2411
2536
|
last_activity_before?: number | null;
|
|
2537
|
+
followups?: {
|
|
2538
|
+
exists: boolean;
|
|
2539
|
+
};
|
|
2540
|
+
is_read?: boolean;
|
|
2412
2541
|
group_by?: 'status';
|
|
2413
2542
|
};
|
|
2414
2543
|
url: '/pipeline_conversations/count';
|
|
@@ -2475,6 +2604,7 @@ export type PipelineConversationsRetrieveResponses = {
|
|
|
2475
2604
|
status_updated_at: number;
|
|
2476
2605
|
campaign: string | null;
|
|
2477
2606
|
original_email: string | null;
|
|
2607
|
+
followups: Array<string>;
|
|
2478
2608
|
opens_count: number;
|
|
2479
2609
|
clicks_count: number;
|
|
2480
2610
|
unsubscribed: boolean;
|
|
@@ -2528,6 +2658,7 @@ export type PipelineConversationsUpdateResponses = {
|
|
|
2528
2658
|
status_updated_at: number;
|
|
2529
2659
|
campaign: string | null;
|
|
2530
2660
|
original_email: string | null;
|
|
2661
|
+
followups: Array<string>;
|
|
2531
2662
|
opens_count: number;
|
|
2532
2663
|
clicks_count: number;
|
|
2533
2664
|
unsubscribed: boolean;
|
|
@@ -2834,7 +2965,7 @@ export type BillingProductsUpdateResponse = BillingProductsUpdateResponses[keyof
|
|
|
2834
2965
|
export type IntegrationsRetrieveData = {
|
|
2835
2966
|
body?: never;
|
|
2836
2967
|
path: {
|
|
2837
|
-
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail';
|
|
2968
|
+
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
2838
2969
|
};
|
|
2839
2970
|
query?: never;
|
|
2840
2971
|
url: '/integrations/{integration_id}';
|
|
@@ -2852,8 +2983,8 @@ export type IntegrationsRetrieveResponses = {
|
|
|
2852
2983
|
*/
|
|
2853
2984
|
200: {
|
|
2854
2985
|
owner: string;
|
|
2855
|
-
id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail';
|
|
2856
|
-
service: 'google' | 'microsoft' | 'zoho';
|
|
2986
|
+
id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
2987
|
+
service: 'google' | 'microsoft' | 'zoho' | 'smtp';
|
|
2857
2988
|
object: 'integration';
|
|
2858
2989
|
accounts?: Array<{
|
|
2859
2990
|
id: string;
|
|
@@ -2866,10 +2997,65 @@ export type IntegrationsRetrieveResponses = {
|
|
|
2866
2997
|
};
|
|
2867
2998
|
};
|
|
2868
2999
|
export type IntegrationsRetrieveResponse = IntegrationsRetrieveResponses[keyof IntegrationsRetrieveResponses];
|
|
3000
|
+
export type IntegrationsCreateAccountData = {
|
|
3001
|
+
body: {
|
|
3002
|
+
email?: string;
|
|
3003
|
+
credentials: {
|
|
3004
|
+
access_token?: string;
|
|
3005
|
+
refresh_token?: string;
|
|
3006
|
+
expiry_date?: number;
|
|
3007
|
+
expires_in?: number;
|
|
3008
|
+
update_date?: number;
|
|
3009
|
+
scope?: string;
|
|
3010
|
+
api_domain?: string;
|
|
3011
|
+
email?: string;
|
|
3012
|
+
service?: string;
|
|
3013
|
+
} | {
|
|
3014
|
+
api_key: string;
|
|
3015
|
+
service?: string;
|
|
3016
|
+
} | {
|
|
3017
|
+
host: string;
|
|
3018
|
+
port: number;
|
|
3019
|
+
security: 'auto' | 'none' | 'ssl' | 'tls';
|
|
3020
|
+
username: string;
|
|
3021
|
+
password: string;
|
|
3022
|
+
email: string;
|
|
3023
|
+
service: 'smtp';
|
|
3024
|
+
creation_date?: number;
|
|
3025
|
+
update_date?: number;
|
|
3026
|
+
};
|
|
3027
|
+
};
|
|
3028
|
+
path: {
|
|
3029
|
+
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
3030
|
+
};
|
|
3031
|
+
query?: never;
|
|
3032
|
+
url: '/integrations/{integration_id}/accounts';
|
|
3033
|
+
};
|
|
3034
|
+
export type IntegrationsCreateAccountErrors = {
|
|
3035
|
+
/**
|
|
3036
|
+
* Error response
|
|
3037
|
+
*/
|
|
3038
|
+
default: ErrorResponse;
|
|
3039
|
+
};
|
|
3040
|
+
export type IntegrationsCreateAccountError = IntegrationsCreateAccountErrors[keyof IntegrationsCreateAccountErrors];
|
|
3041
|
+
export type IntegrationsCreateAccountResponses = {
|
|
3042
|
+
/**
|
|
3043
|
+
* Response
|
|
3044
|
+
*/
|
|
3045
|
+
201: {
|
|
3046
|
+
id: string;
|
|
3047
|
+
object: 'integration_account';
|
|
3048
|
+
email?: string;
|
|
3049
|
+
permissions: Array<string>;
|
|
3050
|
+
created_at?: number;
|
|
3051
|
+
status: 'active' | 'action_required';
|
|
3052
|
+
};
|
|
3053
|
+
};
|
|
3054
|
+
export type IntegrationsCreateAccountResponse = IntegrationsCreateAccountResponses[keyof IntegrationsCreateAccountResponses];
|
|
2869
3055
|
export type IntegrationsDeleteAccountData = {
|
|
2870
3056
|
body?: never;
|
|
2871
3057
|
path: {
|
|
2872
|
-
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail';
|
|
3058
|
+
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
2873
3059
|
account_id: string;
|
|
2874
3060
|
};
|
|
2875
3061
|
query?: never;
|
|
@@ -2892,7 +3078,7 @@ export type IntegrationsDeleteAccountResponse = IntegrationsDeleteAccountRespons
|
|
|
2892
3078
|
export type IntegrationsCheckAccountData = {
|
|
2893
3079
|
body?: never;
|
|
2894
3080
|
path: {
|
|
2895
|
-
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail';
|
|
3081
|
+
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
2896
3082
|
account_id: string;
|
|
2897
3083
|
};
|
|
2898
3084
|
query?: never;
|
|
@@ -2917,7 +3103,7 @@ export type IntegrationsCheckAccountResponse = IntegrationsCheckAccountResponses
|
|
|
2917
3103
|
export type IntegrationsConnectAccountData = {
|
|
2918
3104
|
body?: never;
|
|
2919
3105
|
path: {
|
|
2920
|
-
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail';
|
|
3106
|
+
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
2921
3107
|
account_id: string;
|
|
2922
3108
|
};
|
|
2923
3109
|
query?: never;
|
|
@@ -2940,7 +3126,7 @@ export type IntegrationsConnectAccountResponse = IntegrationsConnectAccountRespo
|
|
|
2940
3126
|
export type IntegrationsDisconnectAccountData = {
|
|
2941
3127
|
body?: never;
|
|
2942
3128
|
path: {
|
|
2943
|
-
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail';
|
|
3129
|
+
integration_id: 'gmail' | 'outlook' | 'googlesheets' | 'zohomail' | 'smtp';
|
|
2944
3130
|
account_id: string;
|
|
2945
3131
|
};
|
|
2946
3132
|
query?: never;
|