mailmeteor 0.0.8 → 0.0.9
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +42 -45
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/generated-sdk/sdk.gen.d.ts +29 -30
- package/dist/types/generated-sdk/sdk.gen.d.ts.map +1 -1
- package/dist/types/generated-sdk/types.gen.d.ts +18 -20
- package/dist/types/generated-sdk/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -501,7 +501,6 @@ type ContactListIdBody = {
|
|
|
501
501
|
remove_contacts?: boolean;
|
|
502
502
|
};
|
|
503
503
|
type ContactsBody = {
|
|
504
|
-
owner: string;
|
|
505
504
|
contact_list?: string;
|
|
506
505
|
};
|
|
507
506
|
type ContactsResponse201 = {
|
|
@@ -828,7 +827,7 @@ type UsersGetCurrentOrganizationResponses = {
|
|
|
828
827
|
};
|
|
829
828
|
type UsersGetCurrentOrganizationResponse = UsersGetCurrentOrganizationResponses[keyof UsersGetCurrentOrganizationResponses];
|
|
830
829
|
type UsersSetCurrentOrganizationData = {
|
|
831
|
-
body
|
|
830
|
+
body: {
|
|
832
831
|
organization_id?: string | null;
|
|
833
832
|
};
|
|
834
833
|
path: {
|
|
@@ -854,7 +853,7 @@ type UsersSetCurrentOrganizationResponses = {
|
|
|
854
853
|
};
|
|
855
854
|
type UsersSetCurrentOrganizationResponse = UsersSetCurrentOrganizationResponses[keyof UsersSetCurrentOrganizationResponses];
|
|
856
855
|
type UsersWatchMailboxData = {
|
|
857
|
-
body
|
|
856
|
+
body: {
|
|
858
857
|
provider?: 'gmail' | 'outlook';
|
|
859
858
|
force?: boolean;
|
|
860
859
|
};
|
|
@@ -943,7 +942,7 @@ type OrganizationMemberListResponses = {
|
|
|
943
942
|
};
|
|
944
943
|
type OrganizationMemberListResponse = OrganizationMemberListResponses[keyof OrganizationMemberListResponses];
|
|
945
944
|
type OrganizationMemberCreateData = {
|
|
946
|
-
body
|
|
945
|
+
body: {
|
|
947
946
|
email: string;
|
|
948
947
|
role: 'admin' | 'member';
|
|
949
948
|
};
|
|
@@ -1007,7 +1006,7 @@ type OrganizationMemberDeleteResponses = {
|
|
|
1007
1006
|
};
|
|
1008
1007
|
type OrganizationMemberDeleteResponse = OrganizationMemberDeleteResponses[keyof OrganizationMemberDeleteResponses];
|
|
1009
1008
|
type OrganizationMemberUpdateData = {
|
|
1010
|
-
body
|
|
1009
|
+
body: {
|
|
1011
1010
|
role: 'admin' | 'member';
|
|
1012
1011
|
};
|
|
1013
1012
|
path: {
|
|
@@ -1081,7 +1080,7 @@ type OrganizationsListResponses = {
|
|
|
1081
1080
|
};
|
|
1082
1081
|
type OrganizationsListResponse = OrganizationsListResponses[keyof OrganizationsListResponses];
|
|
1083
1082
|
type OrganizationsCreateData = {
|
|
1084
|
-
body
|
|
1083
|
+
body: {
|
|
1085
1084
|
name: string;
|
|
1086
1085
|
};
|
|
1087
1086
|
path?: never;
|
|
@@ -1173,7 +1172,7 @@ type OrganizationsRetrieveResponses = {
|
|
|
1173
1172
|
};
|
|
1174
1173
|
type OrganizationsRetrieveResponse = OrganizationsRetrieveResponses[keyof OrganizationsRetrieveResponses];
|
|
1175
1174
|
type OrganizationsUpdateData = {
|
|
1176
|
-
body
|
|
1175
|
+
body: {
|
|
1177
1176
|
name?: string;
|
|
1178
1177
|
};
|
|
1179
1178
|
path: {
|
|
@@ -1210,7 +1209,7 @@ type OrganizationsUpdateResponses = {
|
|
|
1210
1209
|
};
|
|
1211
1210
|
type OrganizationsUpdateResponse = OrganizationsUpdateResponses[keyof OrganizationsUpdateResponses];
|
|
1212
1211
|
type ContactListsCreateData = {
|
|
1213
|
-
body
|
|
1212
|
+
body: {
|
|
1214
1213
|
owner: string;
|
|
1215
1214
|
name: string;
|
|
1216
1215
|
metadata?: {
|
|
@@ -1248,7 +1247,7 @@ type ContactListsCreateResponses = {
|
|
|
1248
1247
|
};
|
|
1249
1248
|
type ContactListsCreateResponse = ContactListsCreateResponses[keyof ContactListsCreateResponses];
|
|
1250
1249
|
type ContactListsRemoveData = {
|
|
1251
|
-
body
|
|
1250
|
+
body: {
|
|
1252
1251
|
remove_contacts?: boolean;
|
|
1253
1252
|
};
|
|
1254
1253
|
path: {
|
|
@@ -1318,7 +1317,7 @@ type ContactListsRetrieveResponses = {
|
|
|
1318
1317
|
};
|
|
1319
1318
|
type ContactListsRetrieveResponse = ContactListsRetrieveResponses[keyof ContactListsRetrieveResponses];
|
|
1320
1319
|
type ContactListsUpdateData = {
|
|
1321
|
-
body
|
|
1320
|
+
body: {
|
|
1322
1321
|
name: string;
|
|
1323
1322
|
metadata?: {
|
|
1324
1323
|
[key: string]: string;
|
|
@@ -1357,8 +1356,7 @@ type ContactListsUpdateResponses = {
|
|
|
1357
1356
|
};
|
|
1358
1357
|
type ContactListsUpdateResponse = ContactListsUpdateResponses[keyof ContactListsUpdateResponses];
|
|
1359
1358
|
type ContactsDelAllData = {
|
|
1360
|
-
body
|
|
1361
|
-
owner: string;
|
|
1359
|
+
body: {
|
|
1362
1360
|
contact_list?: string;
|
|
1363
1361
|
};
|
|
1364
1362
|
path?: never;
|
|
@@ -1431,7 +1429,7 @@ type ContactsListResponses = {
|
|
|
1431
1429
|
};
|
|
1432
1430
|
type ContactsListResponse = ContactsListResponses[keyof ContactsListResponses];
|
|
1433
1431
|
type ContactsCreateData = {
|
|
1434
|
-
body
|
|
1432
|
+
body: {
|
|
1435
1433
|
owner: string;
|
|
1436
1434
|
email: string;
|
|
1437
1435
|
blocked?: boolean;
|
|
@@ -1486,7 +1484,7 @@ type ContactsCreateResponses = {
|
|
|
1486
1484
|
};
|
|
1487
1485
|
type ContactsCreateResponse = ContactsCreateResponses[keyof ContactsCreateResponses];
|
|
1488
1486
|
type ContactsBatchCreateData = {
|
|
1489
|
-
body
|
|
1487
|
+
body: {
|
|
1490
1488
|
contacts: Array<{
|
|
1491
1489
|
owner: string;
|
|
1492
1490
|
email: string;
|
|
@@ -1533,7 +1531,7 @@ type ContactsBatchCreateResponses = {
|
|
|
1533
1531
|
};
|
|
1534
1532
|
type ContactsBatchCreateResponse = ContactsBatchCreateResponses[keyof ContactsBatchCreateResponses];
|
|
1535
1533
|
type ContactsBatchCreate2Data = {
|
|
1536
|
-
body
|
|
1534
|
+
body: unknown;
|
|
1537
1535
|
path?: never;
|
|
1538
1536
|
query?: never;
|
|
1539
1537
|
url: '/contacts/batch_legacy';
|
|
@@ -1640,7 +1638,7 @@ type ContactsRetrieveResponses = {
|
|
|
1640
1638
|
};
|
|
1641
1639
|
type ContactsRetrieveResponse = ContactsRetrieveResponses[keyof ContactsRetrieveResponses];
|
|
1642
1640
|
type ContactsUpdateData = {
|
|
1643
|
-
body
|
|
1641
|
+
body: {
|
|
1644
1642
|
blocked?: boolean;
|
|
1645
1643
|
unsubscribed?: boolean;
|
|
1646
1644
|
contact_lists?: Array<string>;
|
|
@@ -1872,7 +1870,7 @@ type BillingAddonsGetAddonsResponses = {
|
|
|
1872
1870
|
};
|
|
1873
1871
|
type BillingAddonsGetAddonsResponse = BillingAddonsGetAddonsResponses[keyof BillingAddonsGetAddonsResponses];
|
|
1874
1872
|
type BillingAddonsPreviewUpdateData = {
|
|
1875
|
-
body
|
|
1873
|
+
body: {
|
|
1876
1874
|
quantity: number;
|
|
1877
1875
|
};
|
|
1878
1876
|
path: {
|
|
@@ -1930,7 +1928,7 @@ type BillingAddonsGetAddonUsagesResponses = {
|
|
|
1930
1928
|
};
|
|
1931
1929
|
type BillingAddonsGetAddonUsagesResponse = BillingAddonsGetAddonUsagesResponses[keyof BillingAddonsGetAddonUsagesResponses];
|
|
1932
1930
|
type BillingAddonsUpdateData = {
|
|
1933
|
-
body
|
|
1931
|
+
body: {
|
|
1934
1932
|
quantity: number;
|
|
1935
1933
|
};
|
|
1936
1934
|
path: {
|
|
@@ -2006,7 +2004,7 @@ type BillingSubscriptionGetResponses = {
|
|
|
2006
2004
|
};
|
|
2007
2005
|
type BillingSubscriptionGetResponse = BillingSubscriptionGetResponses[keyof BillingSubscriptionGetResponses];
|
|
2008
2006
|
type BillingSubscriptionUpdateData = {
|
|
2009
|
-
body
|
|
2007
|
+
body: {
|
|
2010
2008
|
plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
2011
2009
|
billing_period: 'month' | 'year';
|
|
2012
2010
|
};
|
|
@@ -2033,7 +2031,7 @@ type BillingSubscriptionUpdateResponses = {
|
|
|
2033
2031
|
};
|
|
2034
2032
|
type BillingSubscriptionUpdateResponse = BillingSubscriptionUpdateResponses[keyof BillingSubscriptionUpdateResponses];
|
|
2035
2033
|
type BillingSubscriptionPreviewUpdateData = {
|
|
2036
|
-
body
|
|
2034
|
+
body: {
|
|
2037
2035
|
plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
2038
2036
|
billing_period: 'month' | 'year';
|
|
2039
2037
|
};
|
|
@@ -2413,8 +2411,8 @@ declare class Users extends HeyApiClient {
|
|
|
2413
2411
|
}
|
|
2414
2412
|
declare class Organizations extends HeyApiClient {
|
|
2415
2413
|
list<ThrowOnError extends boolean = true>(options?: Options<never, ThrowOnError>): RequestResult<OrganizationsListResponses, OrganizationsListErrors, ThrowOnError, "data">;
|
|
2416
|
-
create<ThrowOnError extends boolean = true>(parameters
|
|
2417
|
-
name
|
|
2414
|
+
create<ThrowOnError extends boolean = true>(parameters: {
|
|
2415
|
+
name: string;
|
|
2418
2416
|
}, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsCreateResponses, OrganizationsCreateErrors, ThrowOnError, "data">;
|
|
2419
2417
|
delete<ThrowOnError extends boolean = true>(organization_id: string, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsDeleteResponses, OrganizationsDeleteErrors, ThrowOnError, "data">;
|
|
2420
2418
|
retrieve<ThrowOnError extends boolean = true>(organization_id: string, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsRetrieveResponses, OrganizationsRetrieveErrors, ThrowOnError, "data">;
|
|
@@ -2423,9 +2421,9 @@ declare class Organizations extends HeyApiClient {
|
|
|
2423
2421
|
}, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsUpdateResponses, OrganizationsUpdateErrors, ThrowOnError, "data">;
|
|
2424
2422
|
}
|
|
2425
2423
|
declare class ContactLists extends HeyApiClient {
|
|
2426
|
-
create<ThrowOnError extends boolean = true>(parameters
|
|
2427
|
-
owner
|
|
2428
|
-
name
|
|
2424
|
+
create<ThrowOnError extends boolean = true>(parameters: {
|
|
2425
|
+
owner: string;
|
|
2426
|
+
name: string;
|
|
2429
2427
|
metadata?: {
|
|
2430
2428
|
[key: string]: string;
|
|
2431
2429
|
};
|
|
@@ -2434,8 +2432,8 @@ declare class ContactLists extends HeyApiClient {
|
|
|
2434
2432
|
remove_contacts?: boolean;
|
|
2435
2433
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactListsRemoveResponses, ContactListsRemoveErrors, ThrowOnError, "data">;
|
|
2436
2434
|
retrieve<ThrowOnError extends boolean = true>(contact_list_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactListsRetrieveResponses, ContactListsRetrieveErrors, ThrowOnError, "data">;
|
|
2437
|
-
update<ThrowOnError extends boolean = true>(contact_list_id: string, parameters
|
|
2438
|
-
name
|
|
2435
|
+
update<ThrowOnError extends boolean = true>(contact_list_id: string, parameters: {
|
|
2436
|
+
name: string;
|
|
2439
2437
|
metadata?: {
|
|
2440
2438
|
[key: string]: string;
|
|
2441
2439
|
};
|
|
@@ -2443,7 +2441,6 @@ declare class ContactLists extends HeyApiClient {
|
|
|
2443
2441
|
}
|
|
2444
2442
|
declare class Contacts extends HeyApiClient {
|
|
2445
2443
|
delAll<ThrowOnError extends boolean = true>(parameters?: {
|
|
2446
|
-
owner?: string;
|
|
2447
2444
|
contact_list?: string;
|
|
2448
2445
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsDelAllResponses, ContactsDelAllErrors, ThrowOnError, "data">;
|
|
2449
2446
|
list<ThrowOnError extends boolean = true>(parameters: {
|
|
@@ -2453,9 +2450,9 @@ declare class Contacts extends HeyApiClient {
|
|
|
2453
2450
|
unsubscribed?: boolean | null;
|
|
2454
2451
|
contact_list?: string;
|
|
2455
2452
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsListResponses, ContactsListErrors, ThrowOnError, "data">;
|
|
2456
|
-
create<ThrowOnError extends boolean = true>(parameters
|
|
2457
|
-
owner
|
|
2458
|
-
email
|
|
2453
|
+
create<ThrowOnError extends boolean = true>(parameters: {
|
|
2454
|
+
owner: string;
|
|
2455
|
+
email: string;
|
|
2459
2456
|
blocked?: boolean;
|
|
2460
2457
|
unsubscribed?: boolean;
|
|
2461
2458
|
contact_lists?: Array<string>;
|
|
@@ -2467,8 +2464,8 @@ declare class Contacts extends HeyApiClient {
|
|
|
2467
2464
|
[key: string]: string;
|
|
2468
2465
|
};
|
|
2469
2466
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsCreateResponses, ContactsCreateErrors, ThrowOnError, "data">;
|
|
2470
|
-
batchCreate<ThrowOnError extends boolean = true>(parameters
|
|
2471
|
-
contacts
|
|
2467
|
+
batchCreate<ThrowOnError extends boolean = true>(parameters: {
|
|
2468
|
+
contacts: Array<{
|
|
2472
2469
|
owner: string;
|
|
2473
2470
|
email: string;
|
|
2474
2471
|
blocked?: boolean;
|
|
@@ -2483,8 +2480,8 @@ declare class Contacts extends HeyApiClient {
|
|
|
2483
2480
|
};
|
|
2484
2481
|
}>;
|
|
2485
2482
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsBatchCreateResponses, ContactsBatchCreateErrors, ThrowOnError, "data">;
|
|
2486
|
-
batchCreate2<ThrowOnError extends boolean = true>(parameters
|
|
2487
|
-
body
|
|
2483
|
+
batchCreate2<ThrowOnError extends boolean = true>(parameters: {
|
|
2484
|
+
body: unknown;
|
|
2488
2485
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsBatchCreate2Responses, ContactsBatchCreate2Errors, ThrowOnError, "data">;
|
|
2489
2486
|
del<ThrowOnError extends boolean = true>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsDelResponses, ContactsDelErrors, ThrowOnError, "data">;
|
|
2490
2487
|
retrieve<ThrowOnError extends boolean = true>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsRetrieveResponses, ContactsRetrieveErrors, ThrowOnError, "data">;
|
|
@@ -2506,23 +2503,23 @@ declare class Contacts extends HeyApiClient {
|
|
|
2506
2503
|
}
|
|
2507
2504
|
declare class BillingAddons extends HeyApiClient {
|
|
2508
2505
|
getAddons<ThrowOnError extends boolean = true>(options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonsResponses, BillingAddonsGetAddonsErrors, ThrowOnError, "data">;
|
|
2509
|
-
previewUpdate<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters
|
|
2510
|
-
quantity
|
|
2506
|
+
previewUpdate<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters: {
|
|
2507
|
+
quantity: number;
|
|
2511
2508
|
}, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsPreviewUpdateResponses, BillingAddonsPreviewUpdateErrors, ThrowOnError, "data">;
|
|
2512
2509
|
getAddonUsages<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonUsagesResponses, BillingAddonsGetAddonUsagesErrors, ThrowOnError, "data">;
|
|
2513
|
-
update<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters
|
|
2514
|
-
quantity
|
|
2510
|
+
update<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters: {
|
|
2511
|
+
quantity: number;
|
|
2515
2512
|
}, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsUpdateResponses, BillingAddonsUpdateErrors, ThrowOnError, "data">;
|
|
2516
2513
|
}
|
|
2517
2514
|
declare class BillingSubscription extends HeyApiClient {
|
|
2518
2515
|
get<ThrowOnError extends boolean = true>(options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionGetResponses, BillingSubscriptionGetErrors, ThrowOnError, "data">;
|
|
2519
|
-
update<ThrowOnError extends boolean = true>(parameters
|
|
2520
|
-
plan
|
|
2521
|
-
billing_period
|
|
2516
|
+
update<ThrowOnError extends boolean = true>(parameters: {
|
|
2517
|
+
plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
2518
|
+
billing_period: 'month' | 'year';
|
|
2522
2519
|
}, options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionUpdateResponses, BillingSubscriptionUpdateErrors, ThrowOnError, "data">;
|
|
2523
|
-
previewUpdate<ThrowOnError extends boolean = true>(parameters
|
|
2524
|
-
plan
|
|
2525
|
-
billing_period
|
|
2520
|
+
previewUpdate<ThrowOnError extends boolean = true>(parameters: {
|
|
2521
|
+
plan: 'free' | 'starter' | 'pro' | 'premium' | 'business';
|
|
2522
|
+
billing_period: 'month' | 'year';
|
|
2526
2523
|
}, options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionPreviewUpdateResponses, BillingSubscriptionPreviewUpdateErrors, ThrowOnError, "data">;
|
|
2527
2524
|
}
|
|
2528
2525
|
declare class Billing extends HeyApiClient {
|
package/dist/index.mjs
CHANGED
|
@@ -1281,7 +1281,7 @@ class ContactLists2 extends HeyApiClient {
|
|
|
1281
1281
|
ContactLists2.__registry = new HeyApiRegistry4();
|
|
1282
1282
|
class Contacts extends HeyApiClient {
|
|
1283
1283
|
delAll(parameters, options) {
|
|
1284
|
-
const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: '
|
|
1284
|
+
const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: 'contact_list' }] }]);
|
|
1285
1285
|
return (options?.client ?? this.client).delete({
|
|
1286
1286
|
responseStyle: 'data',
|
|
1287
1287
|
url: '/contacts',
|