mailmeteor 0.0.64 → 0.0.66

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.ts CHANGED
@@ -311,7 +311,7 @@ type ClientOptions = {
311
311
  type ErrorResponse = {
312
312
  error: {
313
313
  status: number;
314
- 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';
314
+ code?: 'authentication_required' | 'rate_limit' | 'resource_missing' | 'resource_conflict' | 'idempotency_key_in_use' | 'idempotency_parameters_mismatch' | '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';
315
315
  message: string;
316
316
  type?: string;
317
317
  details?: {
@@ -319,7 +319,7 @@ type ErrorResponse = {
319
319
  };
320
320
  };
321
321
  message: string;
322
- 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';
322
+ code?: 'authentication_required' | 'rate_limit' | 'resource_missing' | 'resource_conflict' | 'idempotency_key_in_use' | 'idempotency_parameters_mismatch' | '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';
323
323
  };
324
324
  type UserIdQuery = {
325
325
  expand?: Array<'billing' | 'billing.subscription'>;
@@ -628,6 +628,46 @@ type PreviewResponse200 = {
628
628
  consumed_balance: number;
629
629
  credited_to_balance: number;
630
630
  };
631
+ type AddonsResponse200 = {
632
+ senders?: {
633
+ included_per_seat: number;
634
+ included_total: number;
635
+ used: number;
636
+ extra: {
637
+ price_amount: number;
638
+ currency: string;
639
+ quantity_per_addon: number;
640
+ interval: 'day' | 'week' | 'month' | 'year';
641
+ subscribed: number;
642
+ } | null;
643
+ };
644
+ email_warmups?: {
645
+ included_per_seat: number;
646
+ included_total: number;
647
+ used: number;
648
+ extra: {
649
+ price_amount: number;
650
+ currency: string;
651
+ quantity_per_addon: number;
652
+ interval: 'day' | 'week' | 'month' | 'year';
653
+ subscribed: number;
654
+ } | null;
655
+ };
656
+ };
657
+ type PreviewParams = {
658
+ addon: 'senders' | 'email_warmups';
659
+ };
660
+ type AddonBody = {
661
+ quantity: number;
662
+ };
663
+ type AddonParams = {
664
+ addon: 'senders' | 'email_warmups';
665
+ };
666
+ type AddonResponse200 = Array<{
667
+ id: string;
668
+ email: string;
669
+ usage: number;
670
+ }>;
631
671
  type ContactListsBody = {
632
672
  owner: string;
633
673
  name: string;
@@ -891,46 +931,6 @@ type ContactsResponse200 = {
891
931
  object: 'contact';
892
932
  }>;
893
933
  };
894
- type AddonsResponse200 = {
895
- senders?: {
896
- included_per_seat: number;
897
- included_total: number;
898
- used: number;
899
- extra: {
900
- price_amount: number;
901
- currency: string;
902
- quantity_per_addon: number;
903
- interval: 'day' | 'week' | 'month' | 'year';
904
- subscribed: number;
905
- } | null;
906
- };
907
- email_warmups?: {
908
- included_per_seat: number;
909
- included_total: number;
910
- used: number;
911
- extra: {
912
- price_amount: number;
913
- currency: string;
914
- quantity_per_addon: number;
915
- interval: 'day' | 'week' | 'month' | 'year';
916
- subscribed: number;
917
- } | null;
918
- };
919
- };
920
- type PreviewParams = {
921
- addon: 'senders' | 'email_warmups';
922
- };
923
- type AddonBody = {
924
- quantity: number;
925
- };
926
- type AddonParams = {
927
- addon: 'senders' | 'email_warmups';
928
- };
929
- type AddonResponse200 = Array<{
930
- id: string;
931
- email: string;
932
- usage: number;
933
- }>;
934
934
  type PipelineConversationsQuery = {
935
935
  status?: Array<'to_reply' | 'to_follow_up' | 'waiting' | 'archived'>;
936
936
  campaign?: string;
@@ -1373,14 +1373,14 @@ type DisconnectParams = {
1373
1373
  };
1374
1374
  type JobsBody = {
1375
1375
  owner?: string;
1376
- action: string;
1377
- data: {
1376
+ action: 'pipelines_set_status' | 'pipelines_mark_as_read' | 'pipelines_create_recipient_list_csv' | 'pipelines_followup' | 'pipelines_reply_email' | 'pipelines_sync';
1377
+ data?: {
1378
1378
  [key: string]: unknown;
1379
1379
  };
1380
1380
  };
1381
1381
  type JobsResponse202 = {
1382
1382
  owner: string;
1383
- action: string;
1383
+ action: 'pipelines_set_status' | 'pipelines_mark_as_read' | 'pipelines_create_recipient_list_csv' | 'pipelines_followup' | 'pipelines_reply_email' | 'pipelines_sync';
1384
1384
  data: {
1385
1385
  [key: string]: unknown;
1386
1386
  };
@@ -1406,7 +1406,7 @@ type JobIdParams = {
1406
1406
  };
1407
1407
  type JobIdResponse200 = {
1408
1408
  owner: string;
1409
- action: string;
1409
+ action: 'pipelines_set_status' | 'pipelines_mark_as_read' | 'pipelines_create_recipient_list_csv' | 'pipelines_followup' | 'pipelines_reply_email' | 'pipelines_sync';
1410
1410
  data: {
1411
1411
  [key: string]: unknown;
1412
1412
  };
@@ -2116,6 +2116,137 @@ type BillingSubscriptionPreviewUpdateResponses = {
2116
2116
  };
2117
2117
  };
2118
2118
  type BillingSubscriptionPreviewUpdateResponse = BillingSubscriptionPreviewUpdateResponses[keyof BillingSubscriptionPreviewUpdateResponses];
2119
+ type BillingAddonsGetAddonsData = {
2120
+ body?: never;
2121
+ path?: never;
2122
+ query?: never;
2123
+ url: '/billing/addons';
2124
+ };
2125
+ type BillingAddonsGetAddonsErrors = {
2126
+ /**
2127
+ * Error response
2128
+ */
2129
+ default: ErrorResponse;
2130
+ };
2131
+ type BillingAddonsGetAddonsError = BillingAddonsGetAddonsErrors[keyof BillingAddonsGetAddonsErrors];
2132
+ type BillingAddonsGetAddonsResponses = {
2133
+ /**
2134
+ * Response
2135
+ */
2136
+ 200: {
2137
+ senders?: {
2138
+ included_per_seat: number;
2139
+ included_total: number;
2140
+ used: number;
2141
+ extra: {
2142
+ price_amount: number;
2143
+ currency: string;
2144
+ quantity_per_addon: number;
2145
+ interval: 'day' | 'week' | 'month' | 'year';
2146
+ subscribed: number;
2147
+ } | null;
2148
+ };
2149
+ email_warmups?: {
2150
+ included_per_seat: number;
2151
+ included_total: number;
2152
+ used: number;
2153
+ extra: {
2154
+ price_amount: number;
2155
+ currency: string;
2156
+ quantity_per_addon: number;
2157
+ interval: 'day' | 'week' | 'month' | 'year';
2158
+ subscribed: number;
2159
+ } | null;
2160
+ };
2161
+ };
2162
+ };
2163
+ type BillingAddonsGetAddonsResponse = BillingAddonsGetAddonsResponses[keyof BillingAddonsGetAddonsResponses];
2164
+ type BillingAddonsPreviewUpdateData = {
2165
+ body: {
2166
+ quantity: number;
2167
+ };
2168
+ path: {
2169
+ addon: 'senders' | 'email_warmups';
2170
+ };
2171
+ query?: never;
2172
+ url: '/billing/addons/{addon}/preview';
2173
+ };
2174
+ type BillingAddonsPreviewUpdateErrors = {
2175
+ /**
2176
+ * Error response
2177
+ */
2178
+ default: ErrorResponse;
2179
+ };
2180
+ type BillingAddonsPreviewUpdateError = BillingAddonsPreviewUpdateErrors[keyof BillingAddonsPreviewUpdateErrors];
2181
+ type BillingAddonsPreviewUpdateResponses = {
2182
+ /**
2183
+ * Response
2184
+ */
2185
+ 200: {
2186
+ discount_percents: Array<number>;
2187
+ total_excluding_tax: number;
2188
+ total: number;
2189
+ amount_due: number;
2190
+ added_from_balance: number;
2191
+ consumed_balance: number;
2192
+ credited_to_balance: number;
2193
+ };
2194
+ };
2195
+ type BillingAddonsPreviewUpdateResponse = BillingAddonsPreviewUpdateResponses[keyof BillingAddonsPreviewUpdateResponses];
2196
+ type BillingAddonsGetAddonUsagesData = {
2197
+ body?: never;
2198
+ path: {
2199
+ addon: 'senders' | 'email_warmups';
2200
+ };
2201
+ query?: never;
2202
+ url: '/billing/addons/{addon}';
2203
+ };
2204
+ type BillingAddonsGetAddonUsagesErrors = {
2205
+ /**
2206
+ * Error response
2207
+ */
2208
+ default: ErrorResponse;
2209
+ };
2210
+ type BillingAddonsGetAddonUsagesError = BillingAddonsGetAddonUsagesErrors[keyof BillingAddonsGetAddonUsagesErrors];
2211
+ type BillingAddonsGetAddonUsagesResponses = {
2212
+ /**
2213
+ * Response
2214
+ */
2215
+ 200: Array<{
2216
+ id: string;
2217
+ email: string;
2218
+ usage: number;
2219
+ }>;
2220
+ };
2221
+ type BillingAddonsGetAddonUsagesResponse = BillingAddonsGetAddonUsagesResponses[keyof BillingAddonsGetAddonUsagesResponses];
2222
+ type BillingAddonsUpdateData = {
2223
+ body: {
2224
+ quantity: number;
2225
+ };
2226
+ path: {
2227
+ addon: 'senders' | 'email_warmups';
2228
+ };
2229
+ query?: never;
2230
+ url: '/billing/addons/{addon}';
2231
+ };
2232
+ type BillingAddonsUpdateErrors = {
2233
+ /**
2234
+ * Error response
2235
+ */
2236
+ default: ErrorResponse;
2237
+ };
2238
+ type BillingAddonsUpdateError = BillingAddonsUpdateErrors[keyof BillingAddonsUpdateErrors];
2239
+ type BillingAddonsUpdateResponses = {
2240
+ /**
2241
+ * Response
2242
+ */
2243
+ 200: {
2244
+ status: 'confirmation_required' | 'success' | 'payment_failed';
2245
+ client_secret?: string;
2246
+ failure_code?: string;
2247
+ };
2248
+ };
2249
+ type BillingAddonsUpdateResponse = BillingAddonsUpdateResponses[keyof BillingAddonsUpdateResponses];
2119
2250
  type ContactListsCreateData = {
2120
2251
  body: {
2121
2252
  owner: string;
@@ -2759,137 +2890,6 @@ type ContactsResubscribeResponses = {
2759
2890
  };
2760
2891
  };
2761
2892
  type ContactsResubscribeResponse = ContactsResubscribeResponses[keyof ContactsResubscribeResponses];
2762
- type BillingAddonsGetAddonsData = {
2763
- body?: never;
2764
- path?: never;
2765
- query?: never;
2766
- url: '/billing/addons';
2767
- };
2768
- type BillingAddonsGetAddonsErrors = {
2769
- /**
2770
- * Error response
2771
- */
2772
- default: ErrorResponse;
2773
- };
2774
- type BillingAddonsGetAddonsError = BillingAddonsGetAddonsErrors[keyof BillingAddonsGetAddonsErrors];
2775
- type BillingAddonsGetAddonsResponses = {
2776
- /**
2777
- * Response
2778
- */
2779
- 200: {
2780
- senders?: {
2781
- included_per_seat: number;
2782
- included_total: number;
2783
- used: number;
2784
- extra: {
2785
- price_amount: number;
2786
- currency: string;
2787
- quantity_per_addon: number;
2788
- interval: 'day' | 'week' | 'month' | 'year';
2789
- subscribed: number;
2790
- } | null;
2791
- };
2792
- email_warmups?: {
2793
- included_per_seat: number;
2794
- included_total: number;
2795
- used: number;
2796
- extra: {
2797
- price_amount: number;
2798
- currency: string;
2799
- quantity_per_addon: number;
2800
- interval: 'day' | 'week' | 'month' | 'year';
2801
- subscribed: number;
2802
- } | null;
2803
- };
2804
- };
2805
- };
2806
- type BillingAddonsGetAddonsResponse = BillingAddonsGetAddonsResponses[keyof BillingAddonsGetAddonsResponses];
2807
- type BillingAddonsPreviewUpdateData = {
2808
- body: {
2809
- quantity: number;
2810
- };
2811
- path: {
2812
- addon: 'senders' | 'email_warmups';
2813
- };
2814
- query?: never;
2815
- url: '/billing/addons/{addon}/preview';
2816
- };
2817
- type BillingAddonsPreviewUpdateErrors = {
2818
- /**
2819
- * Error response
2820
- */
2821
- default: ErrorResponse;
2822
- };
2823
- type BillingAddonsPreviewUpdateError = BillingAddonsPreviewUpdateErrors[keyof BillingAddonsPreviewUpdateErrors];
2824
- type BillingAddonsPreviewUpdateResponses = {
2825
- /**
2826
- * Response
2827
- */
2828
- 200: {
2829
- discount_percents: Array<number>;
2830
- total_excluding_tax: number;
2831
- total: number;
2832
- amount_due: number;
2833
- added_from_balance: number;
2834
- consumed_balance: number;
2835
- credited_to_balance: number;
2836
- };
2837
- };
2838
- type BillingAddonsPreviewUpdateResponse = BillingAddonsPreviewUpdateResponses[keyof BillingAddonsPreviewUpdateResponses];
2839
- type BillingAddonsGetAddonUsagesData = {
2840
- body?: never;
2841
- path: {
2842
- addon: 'senders' | 'email_warmups';
2843
- };
2844
- query?: never;
2845
- url: '/billing/addons/{addon}';
2846
- };
2847
- type BillingAddonsGetAddonUsagesErrors = {
2848
- /**
2849
- * Error response
2850
- */
2851
- default: ErrorResponse;
2852
- };
2853
- type BillingAddonsGetAddonUsagesError = BillingAddonsGetAddonUsagesErrors[keyof BillingAddonsGetAddonUsagesErrors];
2854
- type BillingAddonsGetAddonUsagesResponses = {
2855
- /**
2856
- * Response
2857
- */
2858
- 200: Array<{
2859
- id: string;
2860
- email: string;
2861
- usage: number;
2862
- }>;
2863
- };
2864
- type BillingAddonsGetAddonUsagesResponse = BillingAddonsGetAddonUsagesResponses[keyof BillingAddonsGetAddonUsagesResponses];
2865
- type BillingAddonsUpdateData = {
2866
- body: {
2867
- quantity: number;
2868
- };
2869
- path: {
2870
- addon: 'senders' | 'email_warmups';
2871
- };
2872
- query?: never;
2873
- url: '/billing/addons/{addon}';
2874
- };
2875
- type BillingAddonsUpdateErrors = {
2876
- /**
2877
- * Error response
2878
- */
2879
- default: ErrorResponse;
2880
- };
2881
- type BillingAddonsUpdateError = BillingAddonsUpdateErrors[keyof BillingAddonsUpdateErrors];
2882
- type BillingAddonsUpdateResponses = {
2883
- /**
2884
- * Response
2885
- */
2886
- 200: {
2887
- status: 'confirmation_required' | 'success' | 'payment_failed';
2888
- client_secret?: string;
2889
- failure_code?: string;
2890
- };
2891
- };
2892
- type BillingAddonsUpdateResponse = BillingAddonsUpdateResponses[keyof BillingAddonsUpdateResponses];
2893
2893
  type PipelineConversationsListData = {
2894
2894
  body?: never;
2895
2895
  path?: never;
@@ -3693,8 +3693,8 @@ type IntegrationsDisconnectAccountResponse = IntegrationsDisconnectAccountRespon
3693
3693
  type JobsCreateData = {
3694
3694
  body: {
3695
3695
  owner?: string;
3696
- action: string;
3697
- data: {
3696
+ action: 'pipelines_set_status' | 'pipelines_mark_as_read' | 'pipelines_create_recipient_list_csv' | 'pipelines_followup' | 'pipelines_reply_email' | 'pipelines_sync';
3697
+ data?: {
3698
3698
  [key: string]: unknown;
3699
3699
  };
3700
3700
  };
@@ -3715,7 +3715,7 @@ type JobsCreateResponses = {
3715
3715
  */
3716
3716
  202: {
3717
3717
  owner: string;
3718
- action: string;
3718
+ action: 'pipelines_set_status' | 'pipelines_mark_as_read' | 'pipelines_create_recipient_list_csv' | 'pipelines_followup' | 'pipelines_reply_email' | 'pipelines_sync';
3719
3719
  data: {
3720
3720
  [key: string]: unknown;
3721
3721
  };
@@ -3758,7 +3758,7 @@ type JobsRetrieveResponses = {
3758
3758
  */
3759
3759
  200: {
3760
3760
  owner: string;
3761
- action: string;
3761
+ action: 'pipelines_set_status' | 'pipelines_mark_as_read' | 'pipelines_create_recipient_list_csv' | 'pipelines_followup' | 'pipelines_reply_email' | 'pipelines_sync';
3762
3762
  data: {
3763
3763
  [key: string]: unknown;
3764
3764
  };
@@ -4252,6 +4252,16 @@ declare class BillingSubscription extends HeyApiClient {
4252
4252
  billing_period: 'month' | 'year';
4253
4253
  }, options?: Options<never, ThrowOnError>): RequestResult<BillingSubscriptionPreviewUpdateResponses, BillingSubscriptionPreviewUpdateErrors, ThrowOnError, "data">;
4254
4254
  }
4255
+ declare class BillingAddons extends HeyApiClient {
4256
+ getAddons<ThrowOnError extends boolean = true>(options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonsResponses, BillingAddonsGetAddonsErrors, ThrowOnError, "data">;
4257
+ previewUpdate<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters: {
4258
+ quantity: number;
4259
+ }, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsPreviewUpdateResponses, BillingAddonsPreviewUpdateErrors, ThrowOnError, "data">;
4260
+ getAddonUsages<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonUsagesResponses, BillingAddonsGetAddonUsagesErrors, ThrowOnError, "data">;
4261
+ update<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters: {
4262
+ quantity: number;
4263
+ }, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsUpdateResponses, BillingAddonsUpdateErrors, ThrowOnError, "data">;
4264
+ }
4255
4265
  declare class ContactLists extends HeyApiClient {
4256
4266
  create<ThrowOnError extends boolean = true>(parameters: {
4257
4267
  owner: string;
@@ -4336,16 +4346,6 @@ declare class Contacts extends HeyApiClient {
4336
4346
  unblock<ThrowOnError extends boolean = true>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsUnblockResponses, ContactsUnblockErrors, ThrowOnError, "data">;
4337
4347
  resubscribe<ThrowOnError extends boolean = true>(contact_id: string, options?: Options<never, ThrowOnError>): RequestResult<ContactsResubscribeResponses, ContactsResubscribeErrors, ThrowOnError, "data">;
4338
4348
  }
4339
- declare class BillingAddons extends HeyApiClient {
4340
- getAddons<ThrowOnError extends boolean = true>(options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonsResponses, BillingAddonsGetAddonsErrors, ThrowOnError, "data">;
4341
- previewUpdate<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters: {
4342
- quantity: number;
4343
- }, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsPreviewUpdateResponses, BillingAddonsPreviewUpdateErrors, ThrowOnError, "data">;
4344
- getAddonUsages<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsGetAddonUsagesResponses, BillingAddonsGetAddonUsagesErrors, ThrowOnError, "data">;
4345
- update<ThrowOnError extends boolean = true>(addon: 'senders' | 'email_warmups', parameters: {
4346
- quantity: number;
4347
- }, options?: Options<never, ThrowOnError>): RequestResult<BillingAddonsUpdateResponses, BillingAddonsUpdateErrors, ThrowOnError, "data">;
4348
- }
4349
4349
  declare class PipelineConversations extends HeyApiClient {
4350
4350
  list<ThrowOnError extends boolean = true>(parameters?: {
4351
4351
  status?: Array<'to_reply' | 'to_follow_up' | 'waiting' | 'archived'>;
@@ -4464,8 +4464,8 @@ declare class Integrations extends HeyApiClient {
4464
4464
  declare class Jobs extends HeyApiClient {
4465
4465
  create<ThrowOnError extends boolean = true>(parameters: {
4466
4466
  owner?: string;
4467
- action: string;
4468
- data: {
4467
+ action: 'pipelines_set_status' | 'pipelines_mark_as_read' | 'pipelines_create_recipient_list_csv' | 'pipelines_followup' | 'pipelines_reply_email' | 'pipelines_sync';
4468
+ data?: {
4469
4469
  [key: string]: unknown;
4470
4470
  };
4471
4471
  }, options?: Options<never, ThrowOnError>): RequestResult<JobsCreateResponses, JobsCreateErrors, ThrowOnError, "data">;
package/dist/index.mjs CHANGED
@@ -951,7 +951,7 @@ class HeyApiRegistry5 {
951
951
  get(key) {
952
952
  const instance = this.instances.get(key ?? this.defaultKey);
953
953
  if (!instance) {
954
- throw new Error(`No SDK client found. Create one with "new ContactLists2()" to fix this error.`);
954
+ throw new Error(`No SDK client found. Create one with "new BillingAddons2()" to fix this error.`);
955
955
  }
956
956
  return instance;
957
957
  }
@@ -967,7 +967,7 @@ class HeyApiRegistry6 {
967
967
  get(key) {
968
968
  const instance = this.instances.get(key ?? this.defaultKey);
969
969
  if (!instance) {
970
- throw new Error(`No SDK client found. Create one with "new Contacts2()" to fix this error.`);
970
+ throw new Error(`No SDK client found. Create one with "new ContactLists2()" to fix this error.`);
971
971
  }
972
972
  return instance;
973
973
  }
@@ -983,7 +983,7 @@ class HeyApiRegistry7 {
983
983
  get(key) {
984
984
  const instance = this.instances.get(key ?? this.defaultKey);
985
985
  if (!instance) {
986
- throw new Error(`No SDK client found. Create one with "new BillingAddons2()" to fix this error.`);
986
+ throw new Error(`No SDK client found. Create one with "new Contacts2()" to fix this error.`);
987
987
  }
988
988
  return instance;
989
989
  }
@@ -1320,6 +1320,62 @@ class BillingSubscription2 extends HeyApiClient {
1320
1320
  }
1321
1321
  }
1322
1322
  BillingSubscription2.__registry = new HeyApiRegistry4();
1323
+ class BillingAddons extends HeyApiClient {
1324
+ getAddons(options) {
1325
+ return (options?.client ?? this.client).get({
1326
+ responseStyle: 'data',
1327
+ url: '/billing/addons',
1328
+ ...options
1329
+ });
1330
+ }
1331
+ previewUpdate(addon, parameters, options) {
1332
+ const params = buildClientParams([addon, parameters], [{ in: 'path', key: 'addon' }, { args: [{ in: 'body', key: 'quantity' }] }]);
1333
+ return (options?.client ?? this.client).post({
1334
+ responseStyle: 'data',
1335
+ url: '/billing/addons/{addon}/preview',
1336
+ ...options,
1337
+ ...params,
1338
+ headers: {
1339
+ 'Content-Type': 'application/json',
1340
+ ...options?.headers,
1341
+ ...params.headers
1342
+ }
1343
+ });
1344
+ }
1345
+ getAddonUsages(addon, options) {
1346
+ const params = buildClientParams([addon], [{ in: 'path', key: 'addon' }]);
1347
+ return (options?.client ?? this.client).get({
1348
+ responseStyle: 'data',
1349
+ url: '/billing/addons/{addon}',
1350
+ ...options,
1351
+ ...params
1352
+ });
1353
+ }
1354
+ update(addon, parameters, options) {
1355
+ const params = buildClientParams([addon, parameters], [{ in: 'path', key: 'addon' }, { args: [{ in: 'body', key: 'quantity' }] }]);
1356
+ return (options?.client ?? this.client).post({
1357
+ responseStyle: 'data',
1358
+ url: '/billing/addons/{addon}',
1359
+ ...options,
1360
+ ...params,
1361
+ headers: {
1362
+ 'Content-Type': 'application/json',
1363
+ ...options?.headers,
1364
+ ...params.headers
1365
+ }
1366
+ });
1367
+ }
1368
+ }
1369
+ class BillingAddons2 extends HeyApiClient {
1370
+ constructor(args) {
1371
+ super(args);
1372
+ BillingAddons2.__registry.set(this, args?.key);
1373
+ }
1374
+ get billingAddons() {
1375
+ return this._billingAddons ?? (this._billingAddons = new BillingAddons({ client: this.client }));
1376
+ }
1377
+ }
1378
+ BillingAddons2.__registry = new HeyApiRegistry5();
1323
1379
  class ContactLists extends HeyApiClient {
1324
1380
  create(parameters, options) {
1325
1381
  const params = buildClientParams([parameters], [{ args: [
@@ -1386,7 +1442,7 @@ class ContactLists2 extends HeyApiClient {
1386
1442
  return this._contactLists ?? (this._contactLists = new ContactLists({ client: this.client }));
1387
1443
  }
1388
1444
  }
1389
- ContactLists2.__registry = new HeyApiRegistry5();
1445
+ ContactLists2.__registry = new HeyApiRegistry6();
1390
1446
  class Contacts extends HeyApiClient {
1391
1447
  delAll(parameters, options) {
1392
1448
  const params = buildClientParams([parameters], [{ args: [{ in: 'body', key: 'contact_list' }] }]);
@@ -1545,63 +1601,7 @@ class Contacts2 extends HeyApiClient {
1545
1601
  return this._contacts ?? (this._contacts = new Contacts({ client: this.client }));
1546
1602
  }
1547
1603
  }
1548
- Contacts2.__registry = new HeyApiRegistry6();
1549
- class BillingAddons extends HeyApiClient {
1550
- getAddons(options) {
1551
- return (options?.client ?? this.client).get({
1552
- responseStyle: 'data',
1553
- url: '/billing/addons',
1554
- ...options
1555
- });
1556
- }
1557
- previewUpdate(addon, parameters, options) {
1558
- const params = buildClientParams([addon, parameters], [{ in: 'path', key: 'addon' }, { args: [{ in: 'body', key: 'quantity' }] }]);
1559
- return (options?.client ?? this.client).post({
1560
- responseStyle: 'data',
1561
- url: '/billing/addons/{addon}/preview',
1562
- ...options,
1563
- ...params,
1564
- headers: {
1565
- 'Content-Type': 'application/json',
1566
- ...options?.headers,
1567
- ...params.headers
1568
- }
1569
- });
1570
- }
1571
- getAddonUsages(addon, options) {
1572
- const params = buildClientParams([addon], [{ in: 'path', key: 'addon' }]);
1573
- return (options?.client ?? this.client).get({
1574
- responseStyle: 'data',
1575
- url: '/billing/addons/{addon}',
1576
- ...options,
1577
- ...params
1578
- });
1579
- }
1580
- update(addon, parameters, options) {
1581
- const params = buildClientParams([addon, parameters], [{ in: 'path', key: 'addon' }, { args: [{ in: 'body', key: 'quantity' }] }]);
1582
- return (options?.client ?? this.client).post({
1583
- responseStyle: 'data',
1584
- url: '/billing/addons/{addon}',
1585
- ...options,
1586
- ...params,
1587
- headers: {
1588
- 'Content-Type': 'application/json',
1589
- ...options?.headers,
1590
- ...params.headers
1591
- }
1592
- });
1593
- }
1594
- }
1595
- class BillingAddons2 extends HeyApiClient {
1596
- constructor(args) {
1597
- super(args);
1598
- BillingAddons2.__registry.set(this, args?.key);
1599
- }
1600
- get billingAddons() {
1601
- return this._billingAddons ?? (this._billingAddons = new BillingAddons({ client: this.client }));
1602
- }
1603
- }
1604
- BillingAddons2.__registry = new HeyApiRegistry7();
1604
+ Contacts2.__registry = new HeyApiRegistry7();
1605
1605
  class PipelineConversations extends HeyApiClient {
1606
1606
  list(parameters, options) {
1607
1607
  const params = buildClientParams([parameters], [{ args: [