@getlatedev/node 0.2.1228 → 0.2.1229

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -97,7 +97,7 @@ declare class Zernio {
97
97
  validatePostLength: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidatePostLengthData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidatePostLengthResponse, ErrorResponse, ThrowOnError>;
98
98
  validatePost: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidatePostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidatePostResponse, ErrorResponse, ThrowOnError>;
99
99
  validateMedia: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidateMediaData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidateMediaResponse, ErrorResponse, ThrowOnError>;
100
- validateSubreddit: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidateSubredditData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidateSubredditResponse, ErrorResponse, ThrowOnError>;
100
+ validateSubreddit: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidateSubredditData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidateSubredditResponse, unknown, ThrowOnError>;
101
101
  };
102
102
  /**
103
103
  * Analytics API - Get performance metrics
@@ -164,9 +164,9 @@ declare class Zernio {
164
164
  * Reddit API - Search and feed
165
165
  */
166
166
  reddit: {
167
- searchReddit: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SearchRedditData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SearchRedditResponse, ErrorResponse, ThrowOnError>;
168
- getRedditFeed: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetRedditFeedData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetRedditFeedResponse, ErrorResponse, ThrowOnError>;
169
- getRedditPostComments: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetRedditPostCommentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetRedditPostCommentsResponse, ErrorResponse, ThrowOnError>;
167
+ searchReddit: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SearchRedditData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SearchRedditResponse, unknown, ThrowOnError>;
168
+ getRedditFeed: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetRedditFeedData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetRedditFeedResponse, unknown, ThrowOnError>;
169
+ getRedditPostComments: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetRedditPostCommentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetRedditPostCommentsResponse, unknown, ThrowOnError>;
170
170
  };
171
171
  /**
172
172
  * Usage API - Get usage statistics
@@ -18512,7 +18512,7 @@ type ValidateSubredditResponse = (({
18512
18512
  exists?: boolean;
18513
18513
  error?: string;
18514
18514
  }));
18515
- type ValidateSubredditError = (ErrorResponse);
18515
+ type ValidateSubredditError = (ErrorResponse | unknown);
18516
18516
  type GetAnalyticsData = {
18517
18517
  query?: {
18518
18518
  /**
@@ -20218,7 +20218,7 @@ type SearchRedditResponse = ({
20218
20218
  after?: (string) | null;
20219
20219
  before?: (string) | null;
20220
20220
  });
20221
- type SearchRedditError = (ErrorResponse);
20221
+ type SearchRedditError = (ErrorResponse | unknown);
20222
20222
  type GetRedditFeedData = {
20223
20223
  query: {
20224
20224
  accountId: string;
@@ -20234,7 +20234,7 @@ type GetRedditFeedResponse = ({
20234
20234
  after?: (string) | null;
20235
20235
  before?: (string) | null;
20236
20236
  });
20237
- type GetRedditFeedError = (ErrorResponse);
20237
+ type GetRedditFeedError = (ErrorResponse | unknown);
20238
20238
  type GetRedditPostCommentsData = {
20239
20239
  path: {
20240
20240
  /**
@@ -20269,7 +20269,7 @@ type GetRedditPostCommentsResponse = ({
20269
20269
  */
20270
20270
  more?: Array<(string)>;
20271
20271
  });
20272
- type GetRedditPostCommentsError = (ErrorResponse);
20272
+ type GetRedditPostCommentsError = (ErrorResponse | unknown);
20273
20273
  type GetBillingResponse = (BillingSnapshot);
20274
20274
  type GetBillingError = (ErrorResponse | {
20275
20275
  error?: string;
package/dist/index.d.ts CHANGED
@@ -97,7 +97,7 @@ declare class Zernio {
97
97
  validatePostLength: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidatePostLengthData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidatePostLengthResponse, ErrorResponse, ThrowOnError>;
98
98
  validatePost: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidatePostData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidatePostResponse, ErrorResponse, ThrowOnError>;
99
99
  validateMedia: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidateMediaData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidateMediaResponse, ErrorResponse, ThrowOnError>;
100
- validateSubreddit: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidateSubredditData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidateSubredditResponse, ErrorResponse, ThrowOnError>;
100
+ validateSubreddit: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ValidateSubredditData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ValidateSubredditResponse, unknown, ThrowOnError>;
101
101
  };
102
102
  /**
103
103
  * Analytics API - Get performance metrics
@@ -164,9 +164,9 @@ declare class Zernio {
164
164
  * Reddit API - Search and feed
165
165
  */
166
166
  reddit: {
167
- searchReddit: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SearchRedditData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SearchRedditResponse, ErrorResponse, ThrowOnError>;
168
- getRedditFeed: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetRedditFeedData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetRedditFeedResponse, ErrorResponse, ThrowOnError>;
169
- getRedditPostComments: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetRedditPostCommentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetRedditPostCommentsResponse, ErrorResponse, ThrowOnError>;
167
+ searchReddit: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SearchRedditData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SearchRedditResponse, unknown, ThrowOnError>;
168
+ getRedditFeed: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetRedditFeedData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetRedditFeedResponse, unknown, ThrowOnError>;
169
+ getRedditPostComments: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetRedditPostCommentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetRedditPostCommentsResponse, unknown, ThrowOnError>;
170
170
  };
171
171
  /**
172
172
  * Usage API - Get usage statistics
@@ -18512,7 +18512,7 @@ type ValidateSubredditResponse = (({
18512
18512
  exists?: boolean;
18513
18513
  error?: string;
18514
18514
  }));
18515
- type ValidateSubredditError = (ErrorResponse);
18515
+ type ValidateSubredditError = (ErrorResponse | unknown);
18516
18516
  type GetAnalyticsData = {
18517
18517
  query?: {
18518
18518
  /**
@@ -20218,7 +20218,7 @@ type SearchRedditResponse = ({
20218
20218
  after?: (string) | null;
20219
20219
  before?: (string) | null;
20220
20220
  });
20221
- type SearchRedditError = (ErrorResponse);
20221
+ type SearchRedditError = (ErrorResponse | unknown);
20222
20222
  type GetRedditFeedData = {
20223
20223
  query: {
20224
20224
  accountId: string;
@@ -20234,7 +20234,7 @@ type GetRedditFeedResponse = ({
20234
20234
  after?: (string) | null;
20235
20235
  before?: (string) | null;
20236
20236
  });
20237
- type GetRedditFeedError = (ErrorResponse);
20237
+ type GetRedditFeedError = (ErrorResponse | unknown);
20238
20238
  type GetRedditPostCommentsData = {
20239
20239
  path: {
20240
20240
  /**
@@ -20269,7 +20269,7 @@ type GetRedditPostCommentsResponse = ({
20269
20269
  */
20270
20270
  more?: Array<(string)>;
20271
20271
  });
20272
- type GetRedditPostCommentsError = (ErrorResponse);
20272
+ type GetRedditPostCommentsError = (ErrorResponse | unknown);
20273
20273
  type GetBillingResponse = (BillingSnapshot);
20274
20274
  type GetBillingError = (ErrorResponse | {
20275
20275
  error?: string;
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1228",
39
+ version: "0.2.1229",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1228",
8
+ version: "0.2.1229",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1228",
3
+ "version": "0.2.1229",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -59,6 +59,8 @@ export const validateMedia = <ThrowOnError extends boolean = false>(options: Opt
59
59
 
60
60
  /**
61
61
  * Check subreddit existence
62
+ * Temporarily unavailable: Reddit has blocked third-party apps from its API, so this endpoint returns 503 `PLATFORM_DISABLED` until Reddit restores access. Reddit Ads is not affected.
63
+ *
62
64
  * Check if a subreddit exists and return basic info (title, subscriber count, NSFW status, post types allowed).
63
65
  *
64
66
  * When accountId is provided, uses authenticated Reddit OAuth API with automatic token refresh (recommended). Falls back to Reddit's public JSON API, which may be unreliable from server IPs. Returns exists: false for private, banned, or nonexistent subreddits.
@@ -755,7 +757,10 @@ export const getMediaPresignedUrl = <ThrowOnError extends boolean = false>(optio
755
757
 
756
758
  /**
757
759
  * Search posts
760
+ * Temporarily unavailable: Reddit has blocked third-party apps from its API, so this endpoint returns 503 `PLATFORM_DISABLED` until Reddit restores access. Reddit Ads is not affected.
761
+ *
758
762
  * Search Reddit posts using a connected account. Optionally scope to a specific subreddit.
763
+ *
759
764
  */
760
765
  export const searchReddit = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SearchRedditData, ThrowOnError>) => {
761
766
  return (options?.client ?? client).get<SearchRedditResponse, SearchRedditError, ThrowOnError>({
@@ -766,7 +771,10 @@ export const searchReddit = <ThrowOnError extends boolean = false>(options: Opti
766
771
 
767
772
  /**
768
773
  * Get subreddit feed
774
+ * Temporarily unavailable: Reddit has blocked third-party apps from its API, so this endpoint returns 503 `PLATFORM_DISABLED` until Reddit restores access. Reddit Ads is not affected.
775
+ *
769
776
  * Fetch posts from a subreddit feed. Supports sorting, time filtering, and cursor-based pagination.
777
+ *
770
778
  */
771
779
  export const getRedditFeed = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRedditFeedData, ThrowOnError>) => {
772
780
  return (options?.client ?? client).get<GetRedditFeedResponse, GetRedditFeedError, ThrowOnError>({
@@ -777,6 +785,8 @@ export const getRedditFeed = <ThrowOnError extends boolean = false>(options: Opt
777
785
 
778
786
  /**
779
787
  * Get the comments of a Reddit post
788
+ * Temporarily unavailable: Reddit has blocked third-party apps from its API, so this endpoint returns 503 `PLATFORM_DISABLED` until Reddit restores access. Reddit Ads is not affected.
789
+ *
780
790
  * Reads the comments of any Reddit post the connected account can see, for example one found
781
791
  * through `/v1/reddit/feed` or `/v1/reddit/search`, straight from Reddit on every call. The tree
782
792
  * comes flattened in thread order (a reply follows its parent); rebuild it from `parentId`, which
@@ -3215,7 +3225,10 @@ export const getFacebookPostReactions = <ThrowOnError extends boolean = false>(o
3215
3225
 
3216
3226
  /**
3217
3227
  * List Reddit subreddits
3228
+ * Temporarily unavailable: Reddit has blocked third-party apps from its API, so this endpoint returns 503 `PLATFORM_DISABLED` until Reddit restores access. Reddit Ads is not affected.
3229
+ *
3218
3230
  * Returns the subreddits the connected Reddit account can post to. Use this to get a subreddit name when creating a Reddit post.
3231
+ *
3219
3232
  */
3220
3233
  export const getRedditSubreddits = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRedditSubredditsData, ThrowOnError>) => {
3221
3234
  return (options?.client ?? client).get<GetRedditSubredditsResponse, GetRedditSubredditsError, ThrowOnError>({
@@ -3226,7 +3239,10 @@ export const getRedditSubreddits = <ThrowOnError extends boolean = false>(option
3226
3239
 
3227
3240
  /**
3228
3241
  * Set default subreddit
3242
+ * Temporarily unavailable: Reddit has blocked third-party apps from its API, so this endpoint returns 503 `PLATFORM_DISABLED` until Reddit restores access. Reddit Ads is not affected.
3243
+ *
3229
3244
  * Sets the default subreddit used when publishing posts for this Reddit account.
3245
+ *
3230
3246
  */
3231
3247
  export const updateRedditSubreddits = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateRedditSubredditsData, ThrowOnError>) => {
3232
3248
  return (options?.client ?? client).put<UpdateRedditSubredditsResponse, UpdateRedditSubredditsError, ThrowOnError>({
@@ -3237,6 +3253,8 @@ export const updateRedditSubreddits = <ThrowOnError extends boolean = false>(opt
3237
3253
 
3238
3254
  /**
3239
3255
  * Get subreddit rules
3256
+ * Temporarily unavailable: Reddit has blocked third-party apps from its API, so this endpoint returns 503 `PLATFORM_DISABLED` until Reddit restores access. Reddit Ads is not affected.
3257
+ *
3240
3258
  * Returns a subreddit's posting rules plus Reddit's site-wide rules, so you can check
3241
3259
  * them before submitting and avoid a removal.
3242
3260
  *
@@ -3253,6 +3271,8 @@ export const getSubredditRules = <ThrowOnError extends boolean = false>(options:
3253
3271
 
3254
3272
  /**
3255
3273
  * Vote on a Reddit post or comment
3274
+ * Temporarily unavailable: Reddit has blocked third-party apps from its API, so this endpoint returns 503 `PLATFORM_DISABLED` until Reddit restores access. Reddit Ads is not affected.
3275
+ *
3256
3276
  * Cast, change, or clear the connected account's vote on a Reddit post or comment.
3257
3277
  *
3258
3278
  * **Reddit requires that votes be cast by humans.** Reddit's API terms permit a client
@@ -3271,7 +3291,10 @@ export const voteRedditThing = <ThrowOnError extends boolean = false>(options: O
3271
3291
 
3272
3292
  /**
3273
3293
  * List subreddit flairs
3294
+ * Temporarily unavailable: Reddit has blocked third-party apps from its API, so this endpoint returns 503 `PLATFORM_DISABLED` until Reddit restores access. Reddit Ads is not affected.
3295
+ *
3274
3296
  * Returns available post flairs for a subreddit. Some subreddits require a flair when posting.
3297
+ *
3275
3298
  */
3276
3299
  export const getRedditFlairs = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetRedditFlairsData, ThrowOnError>) => {
3277
3300
  return (options?.client ?? client).get<GetRedditFlairsResponse, GetRedditFlairsError, ThrowOnError>({
@@ -3282,6 +3305,8 @@ export const getRedditFlairs = <ThrowOnError extends boolean = false>(options: O
3282
3305
 
3283
3306
  /**
3284
3307
  * Set Reddit post flair
3308
+ * Temporarily unavailable: Reddit has blocked third-party apps from its API, so this endpoint returns 503 `PLATFORM_DISABLED` until Reddit restores access. Reddit Ads is not affected.
3309
+ *
3285
3310
  * Applies a flair to a post the connected account already published. Use the GET on this
3286
3311
  * path to list the available `flairTemplateId` values for the subreddit.
3287
3312
  *
@@ -17219,7 +17219,7 @@ export type ValidateSubredditResponse = (({
17219
17219
  error?: string;
17220
17220
  }));
17221
17221
 
17222
- export type ValidateSubredditError = (ErrorResponse);
17222
+ export type ValidateSubredditError = (ErrorResponse | unknown);
17223
17223
 
17224
17224
  export type GetAnalyticsData = {
17225
17225
  query?: {
@@ -19035,7 +19035,7 @@ export type SearchRedditResponse = ({
19035
19035
  before?: (string) | null;
19036
19036
  });
19037
19037
 
19038
- export type SearchRedditError = (ErrorResponse);
19038
+ export type SearchRedditError = (ErrorResponse | unknown);
19039
19039
 
19040
19040
  export type GetRedditFeedData = {
19041
19041
  query: {
@@ -19054,7 +19054,7 @@ export type GetRedditFeedResponse = ({
19054
19054
  before?: (string) | null;
19055
19055
  });
19056
19056
 
19057
- export type GetRedditFeedError = (ErrorResponse);
19057
+ export type GetRedditFeedError = (ErrorResponse | unknown);
19058
19058
 
19059
19059
  export type GetRedditPostCommentsData = {
19060
19060
  path: {
@@ -19092,7 +19092,7 @@ export type GetRedditPostCommentsResponse = ({
19092
19092
  more?: Array<(string)>;
19093
19093
  });
19094
19094
 
19095
- export type GetRedditPostCommentsError = (ErrorResponse);
19095
+ export type GetRedditPostCommentsError = (ErrorResponse | unknown);
19096
19096
 
19097
19097
  export type GetBillingResponse = (BillingSnapshot);
19098
19098