@getlatedev/node 0.1.58 → 0.2.4

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.mjs CHANGED
@@ -333,6 +333,18 @@ var getYouTubeDailyViews = (options) => {
333
333
  url: "/v1/analytics/youtube/daily-views"
334
334
  });
335
335
  };
336
+ var getInstagramAccountInsights = (options) => {
337
+ return (options?.client ?? client).get({
338
+ ...options,
339
+ url: "/v1/analytics/instagram/account-insights"
340
+ });
341
+ };
342
+ var getInstagramDemographics = (options) => {
343
+ return (options?.client ?? client).get({
344
+ ...options,
345
+ url: "/v1/analytics/instagram/demographics"
346
+ });
347
+ };
336
348
  var getDailyMetrics = (options) => {
337
349
  return (options?.client ?? client).get({
338
350
  ...options,
@@ -542,6 +554,12 @@ var getAccountHealth = (options) => {
542
554
  url: "/v1/accounts/{accountId}/health"
543
555
  });
544
556
  };
557
+ var getTikTokCreatorInfo = (options) => {
558
+ return (options?.client ?? client).get({
559
+ ...options,
560
+ url: "/v1/accounts/{accountId}/tiktok/creator-info"
561
+ });
562
+ };
545
563
  var listApiKeys = (options) => {
546
564
  return (options?.client ?? client).get({
547
565
  ...options,
@@ -1353,15 +1371,15 @@ var releaseWhatsAppPhoneNumber = (options) => {
1353
1371
  };
1354
1372
 
1355
1373
  // src/errors.ts
1356
- var LateApiError = class _LateApiError extends Error {
1374
+ var ZernioApiError = class _ZernioApiError extends Error {
1357
1375
  constructor(message, statusCode, code, details) {
1358
1376
  super(message);
1359
- this.name = "LateApiError";
1377
+ this.name = "ZernioApiError";
1360
1378
  this.statusCode = statusCode;
1361
1379
  this.code = code;
1362
1380
  this.details = details;
1363
1381
  if (Error.captureStackTrace) {
1364
- Error.captureStackTrace(this, _LateApiError);
1382
+ Error.captureStackTrace(this, _ZernioApiError);
1365
1383
  }
1366
1384
  }
1367
1385
  /**
@@ -1401,7 +1419,8 @@ var LateApiError = class _LateApiError extends Error {
1401
1419
  return this.statusCode === 402;
1402
1420
  }
1403
1421
  };
1404
- var RateLimitError = class extends LateApiError {
1422
+ var LateApiError = ZernioApiError;
1423
+ var RateLimitError = class extends ZernioApiError {
1405
1424
  constructor(message, limit, remaining, resetAt) {
1406
1425
  super(message, 429, "rate_limit_exceeded");
1407
1426
  this.name = "RateLimitError";
@@ -1417,7 +1436,7 @@ var RateLimitError = class extends LateApiError {
1417
1436
  return Math.max(0, Math.ceil((this.resetAt.getTime() - Date.now()) / 1e3));
1418
1437
  }
1419
1438
  };
1420
- var ValidationError = class extends LateApiError {
1439
+ var ValidationError = class extends ZernioApiError {
1421
1440
  constructor(message, fields) {
1422
1441
  super(message, 400, "validation_error", { fields });
1423
1442
  this.name = "ValidationError";
@@ -1442,13 +1461,13 @@ function parseApiError(response, body) {
1442
1461
  if (response.status === 400 && details?.fields) {
1443
1462
  return new ValidationError(message, details.fields);
1444
1463
  }
1445
- return new LateApiError(message, response.status, code, details);
1464
+ return new ZernioApiError(message, response.status, code, details);
1446
1465
  }
1447
1466
 
1448
1467
  // src/client.ts
1449
- var Late = class {
1468
+ var Zernio = class {
1450
1469
  /**
1451
- * Create a new Late API client.
1470
+ * Create a new Zernio API client.
1452
1471
  *
1453
1472
  * @param options - Configuration options for the client
1454
1473
  */
@@ -1482,6 +1501,8 @@ var Late = class {
1482
1501
  this.analytics = {
1483
1502
  getAnalytics,
1484
1503
  getYouTubeDailyViews,
1504
+ getInstagramAccountInsights,
1505
+ getInstagramDemographics,
1485
1506
  getDailyMetrics,
1486
1507
  getBestTimeToPost,
1487
1508
  getContentDecay,
@@ -1559,6 +1580,7 @@ var Late = class {
1559
1580
  deleteAccount,
1560
1581
  getAllAccountsHealth,
1561
1582
  getAccountHealth,
1583
+ getTikTokCreatorInfo,
1562
1584
  getGoogleBusinessReviews,
1563
1585
  getLinkedInMentions
1564
1586
  };
@@ -1795,16 +1817,16 @@ var Late = class {
1795
1817
  getWhatsAppPhoneNumber,
1796
1818
  releaseWhatsAppPhoneNumber
1797
1819
  };
1798
- const apiKey = options.apiKey ?? process.env["LATE_API_KEY"];
1820
+ const apiKey = options.apiKey ?? process.env["ZERNIO_API_KEY"] ?? process.env["LATE_API_KEY"];
1799
1821
  if (!apiKey) {
1800
- throw new LateApiError(
1801
- "The LATE_API_KEY environment variable is missing or empty; either provide it, or instantiate the Late client with an apiKey option, like new Late({ apiKey: 'sk_...' }).",
1822
+ throw new ZernioApiError(
1823
+ "The ZERNIO_API_KEY environment variable is missing or empty; either provide it, or instantiate the Zernio client with an apiKey option, like new Zernio({ apiKey: 'sk_...' }). LATE_API_KEY is also supported for backwards compatibility.",
1802
1824
  401,
1803
1825
  "missing_api_key"
1804
1826
  );
1805
1827
  }
1806
1828
  this.apiKey = apiKey;
1807
- this.baseURL = options.baseURL ?? "https://getlate.dev/api";
1829
+ this.baseURL = options.baseURL ?? "https://zernio.com/api";
1808
1830
  this._options = options;
1809
1831
  client.setConfig({
1810
1832
  baseUrl: this.baseURL
@@ -1831,11 +1853,14 @@ var Late = class {
1831
1853
  });
1832
1854
  }
1833
1855
  };
1856
+ var Late = Zernio;
1834
1857
  export {
1835
1858
  Late,
1836
1859
  LateApiError,
1837
1860
  RateLimitError,
1838
1861
  ValidationError,
1839
- Late as default,
1862
+ Zernio,
1863
+ ZernioApiError,
1864
+ Zernio as default,
1840
1865
  parseApiError
1841
1866
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.1.58",
4
- "description": "The official Node.js library for the Late API",
3
+ "version": "0.2.4",
4
+ "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -37,7 +37,7 @@
37
37
  "fetch-spec": "curl -o openapi.yaml https://zernio.com/openapi.yaml"
38
38
  },
39
39
  "keywords": [
40
- "late",
40
+ "zernio",
41
41
  "social-media",
42
42
  "scheduling",
43
43
  "api",
@@ -55,15 +55,15 @@
55
55
  "snapchat",
56
56
  "telegram"
57
57
  ],
58
- "author": "Late <support@getlate.dev>",
58
+ "author": "Zernio <support@zernio.com>",
59
59
  "license": "Apache-2.0",
60
60
  "repository": {
61
61
  "type": "git",
62
- "url": "git+https://github.com/getlatedev/late-node.git"
62
+ "url": "git+https://github.com/zernio-dev/zernio-node.git"
63
63
  },
64
- "homepage": "https://getlate.dev/docs/api",
64
+ "homepage": "https://zernio.com/docs/api",
65
65
  "bugs": {
66
- "url": "https://github.com/getlatedev/late-node/issues"
66
+ "url": "https://github.com/zernio-dev/zernio-node/issues"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=18"
package/src/client.ts CHANGED
@@ -66,6 +66,8 @@ import {
66
66
  getInboxConversation,
67
67
  getInboxConversationMessages,
68
68
  getInboxPostComments,
69
+ getInstagramAccountInsights,
70
+ getInstagramDemographics,
69
71
  getInstagramIceBreakers,
70
72
  getLinkedInAggregateAnalytics,
71
73
  getLinkedInMentions,
@@ -87,6 +89,7 @@ import {
87
89
  getRedditSubreddits,
88
90
  getTelegramCommands,
89
91
  getTelegramConnectStatus,
92
+ getTikTokCreatorInfo,
90
93
  getUsageStats,
91
94
  getUser,
92
95
  getWebhookLogs,
@@ -185,16 +188,16 @@ import {
185
188
  validateSubreddit,
186
189
  } from './generated/sdk.gen';
187
190
 
188
- import { LateApiError, parseApiError } from './errors';
191
+ import { ZernioApiError, parseApiError } from './errors';
189
192
  export interface ClientOptions {
190
193
  /**
191
- * API key for authentication. Defaults to process.env['LATE_API_KEY'].
194
+ * API key for authentication. Defaults to process.env['ZERNIO_API_KEY'] (falls back to LATE_API_KEY).
192
195
  */
193
196
  apiKey?: string | undefined;
194
197
 
195
198
  /**
196
199
  * Override the default base URL for the API.
197
- * @default "https://getlate.dev/api"
200
+ * @default "https://zernio.com/api"
198
201
  */
199
202
  baseURL?: string | null | undefined;
200
203
 
@@ -210,20 +213,20 @@ export interface ClientOptions {
210
213
  defaultHeaders?: Record<string, string>;
211
214
  }
212
215
  /**
213
- * API Client for the Late API.
216
+ * API Client for the Zernio API.
214
217
  *
215
218
  * @example
216
219
  * ```typescript
217
- * import Late from '@getlatedev/node';
220
+ * import Zernio from '@zernio/node';
218
221
  *
219
- * const late = new Late({
220
- * apiKey: process.env['LATE_API_KEY'], // This is the default and can be omitted
222
+ * const zernio = new Zernio({
223
+ * apiKey: process.env['ZERNIO_API_KEY'], // This is the default and can be omitted
221
224
  * });
222
225
  *
223
226
  * async function main() {
224
- * const post = await late.posts.create({
227
+ * const post = await zernio.posts.create({
225
228
  * body: {
226
- * content: 'Hello from the Late SDK!',
229
+ * content: 'Hello from the Zernio SDK!',
227
230
  * platforms: [{ platform: 'twitter', accountId: 'acc_123' }],
228
231
  * publishNow: true,
229
232
  * },
@@ -234,7 +237,7 @@ export interface ClientOptions {
234
237
  * main();
235
238
  * ```
236
239
  */
237
- export class Late {
240
+ export class Zernio {
238
241
  private _options: ClientOptions;
239
242
 
240
243
  /**
@@ -278,6 +281,8 @@ export class Late {
278
281
  analytics = {
279
282
  getAnalytics: getAnalytics,
280
283
  getYouTubeDailyViews: getYouTubeDailyViews,
284
+ getInstagramAccountInsights: getInstagramAccountInsights,
285
+ getInstagramDemographics: getInstagramDemographics,
281
286
  getDailyMetrics: getDailyMetrics,
282
287
  getBestTimeToPost: getBestTimeToPost,
283
288
  getContentDecay: getContentDecay,
@@ -363,6 +368,7 @@ export class Late {
363
368
  deleteAccount: deleteAccount,
364
369
  getAllAccountsHealth: getAllAccountsHealth,
365
370
  getAccountHealth: getAccountHealth,
371
+ getTikTokCreatorInfo: getTikTokCreatorInfo,
366
372
  getGoogleBusinessReviews: getGoogleBusinessReviews,
367
373
  getLinkedInMentions: getLinkedInMentions,
368
374
  };
@@ -619,23 +625,24 @@ export class Late {
619
625
  };
620
626
 
621
627
  /**
622
- * Create a new Late API client.
628
+ * Create a new Zernio API client.
623
629
  *
624
630
  * @param options - Configuration options for the client
625
631
  */
626
632
  constructor(options: ClientOptions = {}) {
627
- const apiKey = options.apiKey ?? process.env['LATE_API_KEY'];
633
+ // Check ZERNIO_API_KEY first, fall back to LATE_API_KEY for backwards compatibility
634
+ const apiKey = options.apiKey ?? process.env['ZERNIO_API_KEY'] ?? process.env['LATE_API_KEY'];
628
635
 
629
636
  if (!apiKey) {
630
- throw new LateApiError(
631
- "The LATE_API_KEY environment variable is missing or empty; either provide it, or instantiate the Late client with an apiKey option, like new Late({ apiKey: 'sk_...' }).",
637
+ throw new ZernioApiError(
638
+ "The ZERNIO_API_KEY environment variable is missing or empty; either provide it, or instantiate the Zernio client with an apiKey option, like new Zernio({ apiKey: 'sk_...' }). LATE_API_KEY is also supported for backwards compatibility.",
632
639
  401,
633
640
  'missing_api_key'
634
641
  );
635
642
  }
636
643
 
637
644
  this.apiKey = apiKey;
638
- this.baseURL = options.baseURL ?? 'https://getlate.dev/api';
645
+ this.baseURL = options.baseURL ?? 'https://zernio.com/api';
639
646
  this._options = options;
640
647
 
641
648
  // Configure the generated client
@@ -670,5 +677,8 @@ export class Late {
670
677
  }
671
678
  }
672
679
 
680
+ /** @deprecated Use Zernio instead */
681
+ export const Late = Zernio;
682
+
673
683
  // Default export for convenient usage
674
- export default Late;
684
+ export default Zernio;
package/src/errors.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Base error class for Late API errors
2
+ * Base error class for Zernio API errors
3
3
  */
4
- export class LateApiError extends Error {
4
+ export class ZernioApiError extends Error {
5
5
  public readonly statusCode: number;
6
6
  public readonly code?: string;
7
7
  public readonly details?: Record<string, unknown>;
@@ -13,14 +13,14 @@ export class LateApiError extends Error {
13
13
  details?: Record<string, unknown>
14
14
  ) {
15
15
  super(message);
16
- this.name = 'LateApiError';
16
+ this.name = 'ZernioApiError';
17
17
  this.statusCode = statusCode;
18
18
  this.code = code;
19
19
  this.details = details;
20
20
 
21
21
  // Maintains proper stack trace for where error was thrown
22
22
  if (Error.captureStackTrace) {
23
- Error.captureStackTrace(this, LateApiError);
23
+ Error.captureStackTrace(this, ZernioApiError);
24
24
  }
25
25
  }
26
26
 
@@ -67,10 +67,13 @@ export class LateApiError extends Error {
67
67
  }
68
68
  }
69
69
 
70
+ /** @deprecated Use ZernioApiError instead */
71
+ export const LateApiError = ZernioApiError;
72
+
70
73
  /**
71
74
  * Rate limit error with additional rate limit info
72
75
  */
73
- export class RateLimitError extends LateApiError {
76
+ export class RateLimitError extends ZernioApiError {
74
77
  public readonly limit?: number;
75
78
  public readonly remaining?: number;
76
79
  public readonly resetAt?: Date;
@@ -100,7 +103,7 @@ export class RateLimitError extends LateApiError {
100
103
  /**
101
104
  * Validation error with field-specific details
102
105
  */
103
- export class ValidationError extends LateApiError {
106
+ export class ValidationError extends ZernioApiError {
104
107
  public readonly fields?: Record<string, string[]>;
105
108
 
106
109
  constructor(message: string, fields?: Record<string, string[]>) {
@@ -116,7 +119,7 @@ export class ValidationError extends LateApiError {
116
119
  export function parseApiError(
117
120
  response: Response,
118
121
  body?: { error?: string; message?: string; code?: string; details?: Record<string, unknown> }
119
- ): LateApiError {
122
+ ): ZernioApiError {
120
123
  const message = body?.error || body?.message || response.statusText || 'Unknown error';
121
124
  const code = body?.code;
122
125
  const details = body?.details;
@@ -140,5 +143,5 @@ export function parseApiError(
140
143
  return new ValidationError(message, details.fields as Record<string, string[]>);
141
144
  }
142
145
 
143
- return new LateApiError(message, response.status, code, details);
146
+ return new ZernioApiError(message, response.status, code, details);
144
147
  }
@@ -1,7 +1,7 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
3
  import { createClient, createConfig, type OptionsLegacyParser, formDataBodySerializer } from '@hey-api/client-fetch';
4
- import type { DownloadYouTubeVideoData, DownloadYouTubeVideoError, DownloadYouTubeVideoResponse, GetYouTubeTranscriptData, GetYouTubeTranscriptError, GetYouTubeTranscriptResponse, DownloadInstagramMediaData, DownloadInstagramMediaError, DownloadInstagramMediaResponse, CheckInstagramHashtagsData, CheckInstagramHashtagsError, CheckInstagramHashtagsResponse, DownloadTikTokVideoData, DownloadTikTokVideoError, DownloadTikTokVideoResponse, DownloadTwitterMediaData, DownloadTwitterMediaError, DownloadTwitterMediaResponse, DownloadFacebookVideoData, DownloadFacebookVideoError, DownloadFacebookVideoResponse, DownloadLinkedInVideoData, DownloadLinkedInVideoError, DownloadLinkedInVideoResponse, DownloadBlueskyMediaData, DownloadBlueskyMediaError, DownloadBlueskyMediaResponse, ValidatePostLengthData, ValidatePostLengthError, ValidatePostLengthResponse, ValidatePostData, ValidatePostError, ValidatePostResponse, ValidateMediaData, ValidateMediaError, ValidateMediaResponse, ValidateSubredditData, ValidateSubredditError, ValidateSubredditResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetDailyMetricsData, GetDailyMetricsError, GetDailyMetricsResponse, GetBestTimeToPostData, GetBestTimeToPostError, GetBestTimeToPostResponse, GetContentDecayData, GetContentDecayError, GetContentDecayResponse, GetPostingFrequencyData, GetPostingFrequencyError, GetPostingFrequencyResponse, GetPostTimelineData, GetPostTimelineError, GetPostTimelineResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, UnpublishPostData, UnpublishPostError, UnpublishPostResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetGoogleBusinessLocationDetailsData, GetGoogleBusinessLocationDetailsError, GetGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsData, UpdateGoogleBusinessLocationDetailsError, UpdateGoogleBusinessLocationDetailsResponse, ListGoogleBusinessMediaData, ListGoogleBusinessMediaError, ListGoogleBusinessMediaResponse, CreateGoogleBusinessMediaData, CreateGoogleBusinessMediaError, CreateGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaData, DeleteGoogleBusinessMediaError, DeleteGoogleBusinessMediaResponse, GetGoogleBusinessAttributesData, GetGoogleBusinessAttributesError, GetGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesData, UpdateGoogleBusinessAttributesError, UpdateGoogleBusinessAttributesResponse, ListGoogleBusinessPlaceActionsData, ListGoogleBusinessPlaceActionsError, ListGoogleBusinessPlaceActionsResponse, CreateGoogleBusinessPlaceActionData, CreateGoogleBusinessPlaceActionError, CreateGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionData, DeleteGoogleBusinessPlaceActionError, DeleteGoogleBusinessPlaceActionResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, ConnectWhatsAppCredentialsData, ConnectWhatsAppCredentialsError, ConnectWhatsAppCredentialsResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, GetLinkedInPostReactionsData, GetLinkedInPostReactionsError, GetLinkedInPostReactionsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, GetRedditFlairsData, GetRedditFlairsError, GetRedditFlairsResponse, ListQueueSlotsData, ListQueueSlotsError, ListQueueSlotsResponse, CreateQueueSlotData, CreateQueueSlotError, CreateQueueSlotResponse, UpdateQueueSlotData, UpdateQueueSlotError, UpdateQueueSlotResponse, DeleteQueueSlotData, DeleteQueueSlotError, DeleteQueueSlotResponse, PreviewQueueData, PreviewQueueError, PreviewQueueResponse, GetNextQueueSlotData, GetNextQueueSlotError, GetNextQueueSlotResponse, GetWebhookSettingsError, GetWebhookSettingsResponse, CreateWebhookSettingsData, CreateWebhookSettingsError, CreateWebhookSettingsResponse, UpdateWebhookSettingsData, UpdateWebhookSettingsError, UpdateWebhookSettingsResponse, DeleteWebhookSettingsData, DeleteWebhookSettingsError, DeleteWebhookSettingsResponse, TestWebhookData, TestWebhookError, TestWebhookResponse, GetWebhookLogsData, GetWebhookLogsError, GetWebhookLogsResponse, ListPostsLogsData, ListPostsLogsError, ListPostsLogsResponse, ListConnectionLogsData, ListConnectionLogsError, ListConnectionLogsResponse, GetPostLogsData, GetPostLogsError, GetPostLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, EditInboxMessageData, EditInboxMessageError, EditInboxMessageResponse, GetMessengerMenuData, GetMessengerMenuError, GetMessengerMenuResponse, SetMessengerMenuData, SetMessengerMenuError, SetMessengerMenuResponse, DeleteMessengerMenuData, DeleteMessengerMenuError, DeleteMessengerMenuResponse, GetInstagramIceBreakersData, GetInstagramIceBreakersError, GetInstagramIceBreakersResponse, SetInstagramIceBreakersData, SetInstagramIceBreakersError, SetInstagramIceBreakersResponse, DeleteInstagramIceBreakersData, DeleteInstagramIceBreakersError, DeleteInstagramIceBreakersResponse, GetTelegramCommandsData, GetTelegramCommandsError, GetTelegramCommandsResponse, SetTelegramCommandsData, SetTelegramCommandsError, SetTelegramCommandsResponse, DeleteTelegramCommandsData, DeleteTelegramCommandsError, DeleteTelegramCommandsResponse, ListInboxCommentsData, ListInboxCommentsError, ListInboxCommentsResponse, GetInboxPostCommentsData, GetInboxPostCommentsError, GetInboxPostCommentsResponse, ReplyToInboxPostData, ReplyToInboxPostError, ReplyToInboxPostResponse, DeleteInboxCommentData, DeleteInboxCommentError, DeleteInboxCommentResponse, HideInboxCommentData, HideInboxCommentError, HideInboxCommentResponse, UnhideInboxCommentData, UnhideInboxCommentError, UnhideInboxCommentResponse, LikeInboxCommentData, LikeInboxCommentError, LikeInboxCommentResponse, UnlikeInboxCommentData, UnlikeInboxCommentError, UnlikeInboxCommentResponse, SendPrivateReplyToCommentData, SendPrivateReplyToCommentError, SendPrivateReplyToCommentResponse, RetweetPostData, RetweetPostError, RetweetPostResponse, UndoRetweetData, UndoRetweetError, UndoRetweetResponse, BookmarkPostData, BookmarkPostError, BookmarkPostResponse, RemoveBookmarkData, RemoveBookmarkError, RemoveBookmarkResponse, FollowUserData, FollowUserError, FollowUserResponse, UnfollowUserData, UnfollowUserError, UnfollowUserResponse, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse, SendWhatsAppBulkData, SendWhatsAppBulkError, SendWhatsAppBulkResponse, GetWhatsAppContactsData, GetWhatsAppContactsError, GetWhatsAppContactsResponse, CreateWhatsAppContactData, CreateWhatsAppContactError, CreateWhatsAppContactResponse, GetWhatsAppContactData, GetWhatsAppContactError, GetWhatsAppContactResponse, UpdateWhatsAppContactData, UpdateWhatsAppContactError, UpdateWhatsAppContactResponse, DeleteWhatsAppContactData, DeleteWhatsAppContactError, DeleteWhatsAppContactResponse, ImportWhatsAppContactsData, ImportWhatsAppContactsError, ImportWhatsAppContactsResponse, BulkUpdateWhatsAppContactsData, BulkUpdateWhatsAppContactsError, BulkUpdateWhatsAppContactsResponse, BulkDeleteWhatsAppContactsData, BulkDeleteWhatsAppContactsError, BulkDeleteWhatsAppContactsResponse, GetWhatsAppGroupsData, GetWhatsAppGroupsError, GetWhatsAppGroupsResponse, RenameWhatsAppGroupData, RenameWhatsAppGroupError, RenameWhatsAppGroupResponse, DeleteWhatsAppGroupData, DeleteWhatsAppGroupError, DeleteWhatsAppGroupResponse, GetWhatsAppTemplatesData, GetWhatsAppTemplatesError, GetWhatsAppTemplatesResponse, CreateWhatsAppTemplateData, CreateWhatsAppTemplateError, CreateWhatsAppTemplateResponse, GetWhatsAppTemplateData, GetWhatsAppTemplateError, GetWhatsAppTemplateResponse, UpdateWhatsAppTemplateData, UpdateWhatsAppTemplateError, UpdateWhatsAppTemplateResponse, DeleteWhatsAppTemplateData, DeleteWhatsAppTemplateError, DeleteWhatsAppTemplateResponse, GetWhatsAppBroadcastsData, GetWhatsAppBroadcastsError, GetWhatsAppBroadcastsResponse, CreateWhatsAppBroadcastData, CreateWhatsAppBroadcastError, CreateWhatsAppBroadcastResponse, GetWhatsAppBroadcastData, GetWhatsAppBroadcastError, GetWhatsAppBroadcastResponse, DeleteWhatsAppBroadcastData, DeleteWhatsAppBroadcastError, DeleteWhatsAppBroadcastResponse, SendWhatsAppBroadcastData, SendWhatsAppBroadcastError, SendWhatsAppBroadcastResponse, ScheduleWhatsAppBroadcastData, ScheduleWhatsAppBroadcastError, ScheduleWhatsAppBroadcastResponse, CancelWhatsAppBroadcastScheduleData, CancelWhatsAppBroadcastScheduleError, CancelWhatsAppBroadcastScheduleResponse, GetWhatsAppBroadcastRecipientsData, GetWhatsAppBroadcastRecipientsError, GetWhatsAppBroadcastRecipientsResponse, AddWhatsAppBroadcastRecipientsData, AddWhatsAppBroadcastRecipientsError, AddWhatsAppBroadcastRecipientsResponse, RemoveWhatsAppBroadcastRecipientsData, RemoveWhatsAppBroadcastRecipientsError, RemoveWhatsAppBroadcastRecipientsResponse, GetWhatsAppBusinessProfileData, GetWhatsAppBusinessProfileError, GetWhatsAppBusinessProfileResponse, UpdateWhatsAppBusinessProfileData, UpdateWhatsAppBusinessProfileError, UpdateWhatsAppBusinessProfileResponse, UploadWhatsAppProfilePhotoData, UploadWhatsAppProfilePhotoError, UploadWhatsAppProfilePhotoResponse, GetWhatsAppDisplayNameData, GetWhatsAppDisplayNameError, GetWhatsAppDisplayNameResponse, UpdateWhatsAppDisplayNameData, UpdateWhatsAppDisplayNameError, UpdateWhatsAppDisplayNameResponse, GetWhatsAppPhoneNumbersData, GetWhatsAppPhoneNumbersError, GetWhatsAppPhoneNumbersResponse, PurchaseWhatsAppPhoneNumberData, PurchaseWhatsAppPhoneNumberError, PurchaseWhatsAppPhoneNumberResponse, GetWhatsAppPhoneNumberData, GetWhatsAppPhoneNumberError, GetWhatsAppPhoneNumberResponse, ReleaseWhatsAppPhoneNumberData, ReleaseWhatsAppPhoneNumberError, ReleaseWhatsAppPhoneNumberResponse } from './types.gen';
4
+ import type { DownloadYouTubeVideoData, DownloadYouTubeVideoError, DownloadYouTubeVideoResponse, GetYouTubeTranscriptData, GetYouTubeTranscriptError, GetYouTubeTranscriptResponse, DownloadInstagramMediaData, DownloadInstagramMediaError, DownloadInstagramMediaResponse, CheckInstagramHashtagsData, CheckInstagramHashtagsError, CheckInstagramHashtagsResponse, DownloadTikTokVideoData, DownloadTikTokVideoError, DownloadTikTokVideoResponse, DownloadTwitterMediaData, DownloadTwitterMediaError, DownloadTwitterMediaResponse, DownloadFacebookVideoData, DownloadFacebookVideoError, DownloadFacebookVideoResponse, DownloadLinkedInVideoData, DownloadLinkedInVideoError, DownloadLinkedInVideoResponse, DownloadBlueskyMediaData, DownloadBlueskyMediaError, DownloadBlueskyMediaResponse, ValidatePostLengthData, ValidatePostLengthError, ValidatePostLengthResponse, ValidatePostData, ValidatePostError, ValidatePostResponse, ValidateMediaData, ValidateMediaError, ValidateMediaResponse, ValidateSubredditData, ValidateSubredditError, ValidateSubredditResponse, GetAnalyticsData, GetAnalyticsError, GetAnalyticsResponse, GetYouTubeDailyViewsData, GetYouTubeDailyViewsError, GetYouTubeDailyViewsResponse, GetInstagramAccountInsightsData, GetInstagramAccountInsightsError, GetInstagramAccountInsightsResponse, GetInstagramDemographicsData, GetInstagramDemographicsError, GetInstagramDemographicsResponse, GetDailyMetricsData, GetDailyMetricsError, GetDailyMetricsResponse, GetBestTimeToPostData, GetBestTimeToPostError, GetBestTimeToPostResponse, GetContentDecayData, GetContentDecayError, GetContentDecayResponse, GetPostingFrequencyData, GetPostingFrequencyError, GetPostingFrequencyResponse, GetPostTimelineData, GetPostTimelineError, GetPostTimelineResponse, ListAccountGroupsError, ListAccountGroupsResponse, CreateAccountGroupData, CreateAccountGroupError, CreateAccountGroupResponse, UpdateAccountGroupData, UpdateAccountGroupError, UpdateAccountGroupResponse, DeleteAccountGroupData, DeleteAccountGroupError, DeleteAccountGroupResponse, GetMediaPresignedUrlData, GetMediaPresignedUrlError, GetMediaPresignedUrlResponse, SearchRedditData, SearchRedditError, SearchRedditResponse, GetRedditFeedData, GetRedditFeedError, GetRedditFeedResponse, GetUsageStatsError, GetUsageStatsResponse, ListPostsData, ListPostsError, ListPostsResponse, CreatePostData, CreatePostError, CreatePostResponse, GetPostData, GetPostError, GetPostResponse, UpdatePostData, UpdatePostError, UpdatePostResponse, DeletePostData, DeletePostError, DeletePostResponse, BulkUploadPostsData, BulkUploadPostsError, BulkUploadPostsResponse, RetryPostData, RetryPostError, RetryPostResponse, UnpublishPostData, UnpublishPostError, UnpublishPostResponse, ListUsersError, ListUsersResponse, GetUserData, GetUserError, GetUserResponse, ListProfilesData, ListProfilesError, ListProfilesResponse, CreateProfileData, CreateProfileError, CreateProfileResponse, GetProfileData, GetProfileError, GetProfileResponse, UpdateProfileData, UpdateProfileError, UpdateProfileResponse, DeleteProfileData, DeleteProfileError, DeleteProfileResponse, ListAccountsData, ListAccountsError, ListAccountsResponse, GetFollowerStatsData, GetFollowerStatsError, GetFollowerStatsResponse, UpdateAccountData, UpdateAccountError, UpdateAccountResponse, DeleteAccountData, DeleteAccountError, DeleteAccountResponse, GetAllAccountsHealthData, GetAllAccountsHealthError, GetAllAccountsHealthResponse, GetAccountHealthData, GetAccountHealthError, GetAccountHealthResponse, GetTikTokCreatorInfoData, GetTikTokCreatorInfoError, GetTikTokCreatorInfoResponse, ListApiKeysError, ListApiKeysResponse, CreateApiKeyData, CreateApiKeyError, CreateApiKeyResponse, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyResponse, CreateInviteTokenData, CreateInviteTokenError, CreateInviteTokenResponse, GetConnectUrlData, GetConnectUrlError, GetConnectUrlResponse, HandleOAuthCallbackData, HandleOAuthCallbackError, HandleOAuthCallbackResponse, ListFacebookPagesData, ListFacebookPagesError, ListFacebookPagesResponse, SelectFacebookPageData, SelectFacebookPageError, SelectFacebookPageResponse, ListGoogleBusinessLocationsData, ListGoogleBusinessLocationsError, ListGoogleBusinessLocationsResponse, SelectGoogleBusinessLocationData, SelectGoogleBusinessLocationError, SelectGoogleBusinessLocationResponse, GetGoogleBusinessReviewsData, GetGoogleBusinessReviewsError, GetGoogleBusinessReviewsResponse, GetGoogleBusinessFoodMenusData, GetGoogleBusinessFoodMenusError, GetGoogleBusinessFoodMenusResponse, UpdateGoogleBusinessFoodMenusData, UpdateGoogleBusinessFoodMenusError, UpdateGoogleBusinessFoodMenusResponse, GetGoogleBusinessLocationDetailsData, GetGoogleBusinessLocationDetailsError, GetGoogleBusinessLocationDetailsResponse, UpdateGoogleBusinessLocationDetailsData, UpdateGoogleBusinessLocationDetailsError, UpdateGoogleBusinessLocationDetailsResponse, ListGoogleBusinessMediaData, ListGoogleBusinessMediaError, ListGoogleBusinessMediaResponse, CreateGoogleBusinessMediaData, CreateGoogleBusinessMediaError, CreateGoogleBusinessMediaResponse, DeleteGoogleBusinessMediaData, DeleteGoogleBusinessMediaError, DeleteGoogleBusinessMediaResponse, GetGoogleBusinessAttributesData, GetGoogleBusinessAttributesError, GetGoogleBusinessAttributesResponse, UpdateGoogleBusinessAttributesData, UpdateGoogleBusinessAttributesError, UpdateGoogleBusinessAttributesResponse, ListGoogleBusinessPlaceActionsData, ListGoogleBusinessPlaceActionsError, ListGoogleBusinessPlaceActionsResponse, CreateGoogleBusinessPlaceActionData, CreateGoogleBusinessPlaceActionError, CreateGoogleBusinessPlaceActionResponse, DeleteGoogleBusinessPlaceActionData, DeleteGoogleBusinessPlaceActionError, DeleteGoogleBusinessPlaceActionResponse, GetPendingOAuthDataData, GetPendingOAuthDataError, GetPendingOAuthDataResponse, ListLinkedInOrganizationsData, ListLinkedInOrganizationsError, ListLinkedInOrganizationsResponse, SelectLinkedInOrganizationData, SelectLinkedInOrganizationError, SelectLinkedInOrganizationResponse, ListPinterestBoardsForSelectionData, ListPinterestBoardsForSelectionError, ListPinterestBoardsForSelectionResponse, SelectPinterestBoardData, SelectPinterestBoardError, SelectPinterestBoardResponse, ListSnapchatProfilesData, ListSnapchatProfilesError, ListSnapchatProfilesResponse, SelectSnapchatProfileData, SelectSnapchatProfileError, SelectSnapchatProfileResponse, ConnectBlueskyCredentialsData, ConnectBlueskyCredentialsError, ConnectBlueskyCredentialsResponse, ConnectWhatsAppCredentialsData, ConnectWhatsAppCredentialsError, ConnectWhatsAppCredentialsResponse, GetTelegramConnectStatusData, GetTelegramConnectStatusError, GetTelegramConnectStatusResponse, InitiateTelegramConnectData, InitiateTelegramConnectError, InitiateTelegramConnectResponse, CompleteTelegramConnectData, CompleteTelegramConnectError, CompleteTelegramConnectResponse, GetFacebookPagesData, GetFacebookPagesError, GetFacebookPagesResponse, UpdateFacebookPageData, UpdateFacebookPageError, UpdateFacebookPageResponse, GetLinkedInOrganizationsData, GetLinkedInOrganizationsError, GetLinkedInOrganizationsResponse, GetLinkedInAggregateAnalyticsData, GetLinkedInAggregateAnalyticsError, GetLinkedInAggregateAnalyticsResponse, GetLinkedInPostAnalyticsData, GetLinkedInPostAnalyticsError, GetLinkedInPostAnalyticsResponse, GetLinkedInPostReactionsData, GetLinkedInPostReactionsError, GetLinkedInPostReactionsResponse, UpdateLinkedInOrganizationData, UpdateLinkedInOrganizationError, UpdateLinkedInOrganizationResponse, GetLinkedInMentionsData, GetLinkedInMentionsError, GetLinkedInMentionsResponse, GetPinterestBoardsData, GetPinterestBoardsError, GetPinterestBoardsResponse, UpdatePinterestBoardsData, UpdatePinterestBoardsError, UpdatePinterestBoardsResponse, GetGmbLocationsData, GetGmbLocationsError, GetGmbLocationsResponse, UpdateGmbLocationData, UpdateGmbLocationError, UpdateGmbLocationResponse, GetRedditSubredditsData, GetRedditSubredditsError, GetRedditSubredditsResponse, UpdateRedditSubredditsData, UpdateRedditSubredditsError, UpdateRedditSubredditsResponse, GetRedditFlairsData, GetRedditFlairsError, GetRedditFlairsResponse, ListQueueSlotsData, ListQueueSlotsError, ListQueueSlotsResponse, CreateQueueSlotData, CreateQueueSlotError, CreateQueueSlotResponse, UpdateQueueSlotData, UpdateQueueSlotError, UpdateQueueSlotResponse, DeleteQueueSlotData, DeleteQueueSlotError, DeleteQueueSlotResponse, PreviewQueueData, PreviewQueueError, PreviewQueueResponse, GetNextQueueSlotData, GetNextQueueSlotError, GetNextQueueSlotResponse, GetWebhookSettingsError, GetWebhookSettingsResponse, CreateWebhookSettingsData, CreateWebhookSettingsError, CreateWebhookSettingsResponse, UpdateWebhookSettingsData, UpdateWebhookSettingsError, UpdateWebhookSettingsResponse, DeleteWebhookSettingsData, DeleteWebhookSettingsError, DeleteWebhookSettingsResponse, TestWebhookData, TestWebhookError, TestWebhookResponse, GetWebhookLogsData, GetWebhookLogsError, GetWebhookLogsResponse, ListPostsLogsData, ListPostsLogsError, ListPostsLogsResponse, ListConnectionLogsData, ListConnectionLogsError, ListConnectionLogsResponse, GetPostLogsData, GetPostLogsError, GetPostLogsResponse, ListInboxConversationsData, ListInboxConversationsError, ListInboxConversationsResponse, GetInboxConversationData, GetInboxConversationError, GetInboxConversationResponse, UpdateInboxConversationData, UpdateInboxConversationError, UpdateInboxConversationResponse, GetInboxConversationMessagesData, GetInboxConversationMessagesError, GetInboxConversationMessagesResponse, SendInboxMessageData, SendInboxMessageError, SendInboxMessageResponse, EditInboxMessageData, EditInboxMessageError, EditInboxMessageResponse, GetMessengerMenuData, GetMessengerMenuError, GetMessengerMenuResponse, SetMessengerMenuData, SetMessengerMenuError, SetMessengerMenuResponse, DeleteMessengerMenuData, DeleteMessengerMenuError, DeleteMessengerMenuResponse, GetInstagramIceBreakersData, GetInstagramIceBreakersError, GetInstagramIceBreakersResponse, SetInstagramIceBreakersData, SetInstagramIceBreakersError, SetInstagramIceBreakersResponse, DeleteInstagramIceBreakersData, DeleteInstagramIceBreakersError, DeleteInstagramIceBreakersResponse, GetTelegramCommandsData, GetTelegramCommandsError, GetTelegramCommandsResponse, SetTelegramCommandsData, SetTelegramCommandsError, SetTelegramCommandsResponse, DeleteTelegramCommandsData, DeleteTelegramCommandsError, DeleteTelegramCommandsResponse, ListInboxCommentsData, ListInboxCommentsError, ListInboxCommentsResponse, GetInboxPostCommentsData, GetInboxPostCommentsError, GetInboxPostCommentsResponse, ReplyToInboxPostData, ReplyToInboxPostError, ReplyToInboxPostResponse, DeleteInboxCommentData, DeleteInboxCommentError, DeleteInboxCommentResponse, HideInboxCommentData, HideInboxCommentError, HideInboxCommentResponse, UnhideInboxCommentData, UnhideInboxCommentError, UnhideInboxCommentResponse, LikeInboxCommentData, LikeInboxCommentError, LikeInboxCommentResponse, UnlikeInboxCommentData, UnlikeInboxCommentError, UnlikeInboxCommentResponse, SendPrivateReplyToCommentData, SendPrivateReplyToCommentError, SendPrivateReplyToCommentResponse, RetweetPostData, RetweetPostError, RetweetPostResponse, UndoRetweetData, UndoRetweetError, UndoRetweetResponse, BookmarkPostData, BookmarkPostError, BookmarkPostResponse, RemoveBookmarkData, RemoveBookmarkError, RemoveBookmarkResponse, FollowUserData, FollowUserError, FollowUserResponse, UnfollowUserData, UnfollowUserError, UnfollowUserResponse, ListInboxReviewsData, ListInboxReviewsError, ListInboxReviewsResponse, ReplyToInboxReviewData, ReplyToInboxReviewError, ReplyToInboxReviewResponse, DeleteInboxReviewReplyData, DeleteInboxReviewReplyError, DeleteInboxReviewReplyResponse, SendWhatsAppBulkData, SendWhatsAppBulkError, SendWhatsAppBulkResponse, GetWhatsAppContactsData, GetWhatsAppContactsError, GetWhatsAppContactsResponse, CreateWhatsAppContactData, CreateWhatsAppContactError, CreateWhatsAppContactResponse, GetWhatsAppContactData, GetWhatsAppContactError, GetWhatsAppContactResponse, UpdateWhatsAppContactData, UpdateWhatsAppContactError, UpdateWhatsAppContactResponse, DeleteWhatsAppContactData, DeleteWhatsAppContactError, DeleteWhatsAppContactResponse, ImportWhatsAppContactsData, ImportWhatsAppContactsError, ImportWhatsAppContactsResponse, BulkUpdateWhatsAppContactsData, BulkUpdateWhatsAppContactsError, BulkUpdateWhatsAppContactsResponse, BulkDeleteWhatsAppContactsData, BulkDeleteWhatsAppContactsError, BulkDeleteWhatsAppContactsResponse, GetWhatsAppGroupsData, GetWhatsAppGroupsError, GetWhatsAppGroupsResponse, RenameWhatsAppGroupData, RenameWhatsAppGroupError, RenameWhatsAppGroupResponse, DeleteWhatsAppGroupData, DeleteWhatsAppGroupError, DeleteWhatsAppGroupResponse, GetWhatsAppTemplatesData, GetWhatsAppTemplatesError, GetWhatsAppTemplatesResponse, CreateWhatsAppTemplateData, CreateWhatsAppTemplateError, CreateWhatsAppTemplateResponse, GetWhatsAppTemplateData, GetWhatsAppTemplateError, GetWhatsAppTemplateResponse, UpdateWhatsAppTemplateData, UpdateWhatsAppTemplateError, UpdateWhatsAppTemplateResponse, DeleteWhatsAppTemplateData, DeleteWhatsAppTemplateError, DeleteWhatsAppTemplateResponse, GetWhatsAppBroadcastsData, GetWhatsAppBroadcastsError, GetWhatsAppBroadcastsResponse, CreateWhatsAppBroadcastData, CreateWhatsAppBroadcastError, CreateWhatsAppBroadcastResponse, GetWhatsAppBroadcastData, GetWhatsAppBroadcastError, GetWhatsAppBroadcastResponse, DeleteWhatsAppBroadcastData, DeleteWhatsAppBroadcastError, DeleteWhatsAppBroadcastResponse, SendWhatsAppBroadcastData, SendWhatsAppBroadcastError, SendWhatsAppBroadcastResponse, ScheduleWhatsAppBroadcastData, ScheduleWhatsAppBroadcastError, ScheduleWhatsAppBroadcastResponse, CancelWhatsAppBroadcastScheduleData, CancelWhatsAppBroadcastScheduleError, CancelWhatsAppBroadcastScheduleResponse, GetWhatsAppBroadcastRecipientsData, GetWhatsAppBroadcastRecipientsError, GetWhatsAppBroadcastRecipientsResponse, AddWhatsAppBroadcastRecipientsData, AddWhatsAppBroadcastRecipientsError, AddWhatsAppBroadcastRecipientsResponse, RemoveWhatsAppBroadcastRecipientsData, RemoveWhatsAppBroadcastRecipientsError, RemoveWhatsAppBroadcastRecipientsResponse, GetWhatsAppBusinessProfileData, GetWhatsAppBusinessProfileError, GetWhatsAppBusinessProfileResponse, UpdateWhatsAppBusinessProfileData, UpdateWhatsAppBusinessProfileError, UpdateWhatsAppBusinessProfileResponse, UploadWhatsAppProfilePhotoData, UploadWhatsAppProfilePhotoError, UploadWhatsAppProfilePhotoResponse, GetWhatsAppDisplayNameData, GetWhatsAppDisplayNameError, GetWhatsAppDisplayNameResponse, UpdateWhatsAppDisplayNameData, UpdateWhatsAppDisplayNameError, UpdateWhatsAppDisplayNameResponse, GetWhatsAppPhoneNumbersData, GetWhatsAppPhoneNumbersError, GetWhatsAppPhoneNumbersResponse, PurchaseWhatsAppPhoneNumberData, PurchaseWhatsAppPhoneNumberError, PurchaseWhatsAppPhoneNumberResponse, GetWhatsAppPhoneNumberData, GetWhatsAppPhoneNumberError, GetWhatsAppPhoneNumberResponse, ReleaseWhatsAppPhoneNumberData, ReleaseWhatsAppPhoneNumberError, ReleaseWhatsAppPhoneNumberResponse } from './types.gen';
5
5
 
6
6
  export const client = createClient(createConfig());
7
7
 
@@ -220,6 +220,35 @@ export const getYouTubeDailyViews = <ThrowOnError extends boolean = false>(optio
220
220
  });
221
221
  };
222
222
 
223
+ /**
224
+ * Get Instagram account-level insights
225
+ * Returns account-level Instagram insights such as reach, views, accounts engaged, and total interactions.
226
+ * These metrics reflect the entire account's performance across all content surfaces (feed, stories, explore, profile),
227
+ * and are fundamentally different from post-level metrics. Data may be delayed up to 48 hours.
228
+ * Max 90 days, defaults to last 30 days. Requires the Analytics add-on.
229
+ *
230
+ */
231
+ export const getInstagramAccountInsights = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetInstagramAccountInsightsData, ThrowOnError>) => {
232
+ return (options?.client ?? client).get<GetInstagramAccountInsightsResponse, GetInstagramAccountInsightsError, ThrowOnError>({
233
+ ...options,
234
+ url: '/v1/analytics/instagram/account-insights'
235
+ });
236
+ };
237
+
238
+ /**
239
+ * Get Instagram audience demographics
240
+ * Returns audience demographic insights for an Instagram account, broken down by age, city, country, and/or gender.
241
+ * Requires at least 100 followers. Returns top 45 entries per dimension.
242
+ * Data may be delayed up to 48 hours. Requires the Analytics add-on.
243
+ *
244
+ */
245
+ export const getInstagramDemographics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetInstagramDemographicsData, ThrowOnError>) => {
246
+ return (options?.client ?? client).get<GetInstagramDemographicsResponse, GetInstagramDemographicsError, ThrowOnError>({
247
+ ...options,
248
+ url: '/v1/analytics/instagram/demographics'
249
+ });
250
+ };
251
+
223
252
  /**
224
253
  * Get daily aggregated metrics
225
254
  * Returns daily aggregated analytics metrics and a per-platform breakdown.
@@ -625,6 +654,17 @@ export const getAccountHealth = <ThrowOnError extends boolean = false>(options:
625
654
  });
626
655
  };
627
656
 
657
+ /**
658
+ * Get TikTok creator info
659
+ * Returns TikTok creator details, available privacy levels, posting limits, and commercial content options for a specific TikTok account. Only works with TikTok accounts.
660
+ */
661
+ export const getTikTokCreatorInfo = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTikTokCreatorInfoData, ThrowOnError>) => {
662
+ return (options?.client ?? client).get<GetTikTokCreatorInfoResponse, GetTikTokCreatorInfoError, ThrowOnError>({
663
+ ...options,
664
+ url: '/v1/accounts/{accountId}/tiktok/creator-info'
665
+ });
666
+ };
667
+
628
668
  /**
629
669
  * List keys
630
670
  * Returns all API keys for the authenticated user. Keys are returned with a preview only, not the full key value.