@getlatedev/node 0.2.1227 → 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 +13 -9
- package/dist/index.d.ts +13 -9
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +32 -0
- package/src/generated/types.gen.ts +9 -5
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,
|
|
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,
|
|
168
|
-
getRedditFeed: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetRedditFeedData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetRedditFeedResponse,
|
|
169
|
-
getRedditPostComments: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetRedditPostCommentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetRedditPostCommentsResponse,
|
|
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;
|
|
@@ -46927,7 +46927,7 @@ type ListAdAccountsData = {
|
|
|
46927
46927
|
*/
|
|
46928
46928
|
adAccountId?: string;
|
|
46929
46929
|
/**
|
|
46930
|
-
* Google Ads only. `true` returns only the customers this connection accepts as `adAccountId` (or `customerId`) on the other /v1/ads endpoints, i.e. those inside its ad-account selection. Without it every customer the Google login can reach is listed, including ones selected on another connection of the same login, which those endpoints answer with a 400. Ignored on other platforms.
|
|
46930
|
+
* Google Ads only. `true` returns only the customers this connection accepts as `adAccountId` (or `customerId`) on the other /v1/ads endpoints, i.e. those inside its ad-account selection. Without it every customer the Google login can reach is listed, including ones selected on another connection of the same login, which those endpoints answer with a 400. Ignored on other platforms. On every platform, each item's `selected` flags selection membership without narrowing the list.
|
|
46931
46931
|
*/
|
|
46932
46932
|
inScopeOnly?: boolean;
|
|
46933
46933
|
/**
|
|
@@ -47069,6 +47069,10 @@ type ListAdAccountsResponse = ({
|
|
|
47069
47069
|
* Meta and X only. Always present on every Meta and X account. Human-readable reason when selectable is false; null when selectable.
|
|
47070
47070
|
*/
|
|
47071
47071
|
unusableReason?: (string) | null;
|
|
47072
|
+
/**
|
|
47073
|
+
* Always present. True when the ad account is in this connection's ad-account selection, or when the connection has no selection (then every ad account is usable). For a posting account (e.g. facebook, twitter) the selection of its ads connection applies. Unrelated to `selectable`, which is the platform's own status. Writes to an ad account with `selected: false` will answer 403 `ad_account_not_selected`.
|
|
47074
|
+
*/
|
|
47075
|
+
selected?: boolean;
|
|
47072
47076
|
}>;
|
|
47073
47077
|
/**
|
|
47074
47078
|
* Google only. When this list was fetched from Google. Null when it was never served from cache. Absent on other platforms.
|
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,
|
|
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,
|
|
168
|
-
getRedditFeed: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetRedditFeedData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetRedditFeedResponse,
|
|
169
|
-
getRedditPostComments: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetRedditPostCommentsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetRedditPostCommentsResponse,
|
|
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;
|
|
@@ -46927,7 +46927,7 @@ type ListAdAccountsData = {
|
|
|
46927
46927
|
*/
|
|
46928
46928
|
adAccountId?: string;
|
|
46929
46929
|
/**
|
|
46930
|
-
* Google Ads only. `true` returns only the customers this connection accepts as `adAccountId` (or `customerId`) on the other /v1/ads endpoints, i.e. those inside its ad-account selection. Without it every customer the Google login can reach is listed, including ones selected on another connection of the same login, which those endpoints answer with a 400. Ignored on other platforms.
|
|
46930
|
+
* Google Ads only. `true` returns only the customers this connection accepts as `adAccountId` (or `customerId`) on the other /v1/ads endpoints, i.e. those inside its ad-account selection. Without it every customer the Google login can reach is listed, including ones selected on another connection of the same login, which those endpoints answer with a 400. Ignored on other platforms. On every platform, each item's `selected` flags selection membership without narrowing the list.
|
|
46931
46931
|
*/
|
|
46932
46932
|
inScopeOnly?: boolean;
|
|
46933
46933
|
/**
|
|
@@ -47069,6 +47069,10 @@ type ListAdAccountsResponse = ({
|
|
|
47069
47069
|
* Meta and X only. Always present on every Meta and X account. Human-readable reason when selectable is false; null when selectable.
|
|
47070
47070
|
*/
|
|
47071
47071
|
unusableReason?: (string) | null;
|
|
47072
|
+
/**
|
|
47073
|
+
* Always present. True when the ad account is in this connection's ad-account selection, or when the connection has no selection (then every ad account is usable). For a posting account (e.g. facebook, twitter) the selection of its ads connection applies. Unrelated to `selectable`, which is the platform's own status. Writes to an ad account with `selected: false` will answer 403 `ad_account_not_selected`.
|
|
47074
|
+
*/
|
|
47075
|
+
selected?: boolean;
|
|
47072
47076
|
}>;
|
|
47073
47077
|
/**
|
|
47074
47078
|
* Google only. When this list was fetched from Google. Null when it was never served from cache. Absent on other platforms.
|
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.
|
|
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.
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -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
|
*
|
|
@@ -12602,6 +12627,13 @@ export const createAdAccount = <ThrowOnError extends boolean = false>(options: O
|
|
|
12602
12627
|
* For Reddit Ads (`redditads`): every Reddit ad account the connected Reddit user can reach,
|
|
12603
12628
|
* with `businessId`, `approvalStatus` (Reddit's `admin_approval`), `timezone` and `type`.
|
|
12604
12629
|
*
|
|
12630
|
+
* Every listed ad account carries `selected`: whether it is in the connection's ad-account
|
|
12631
|
+
* selection (the ad accounts picked at connect time or in the dashboard picker, the ones
|
|
12632
|
+
* Zernio syncs). On a connection without a selection every ad account is `selected: true`.
|
|
12633
|
+
* Writes through /v1/ads endpoints to an ad account with `selected: false` are being
|
|
12634
|
+
* restricted and will answer `403 ad_account_not_selected`; add it to the selection first
|
|
12635
|
+
* (dashboard picker, or `GET /v1/connect/{platform}/ads` with `adAccountIds`).
|
|
12636
|
+
*
|
|
12605
12637
|
*/
|
|
12606
12638
|
export const listAdAccounts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListAdAccountsData, ThrowOnError>) => {
|
|
12607
12639
|
return (options?.client ?? client).get<ListAdAccountsResponse, ListAdAccountsError, ThrowOnError>({
|
|
@@ -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
|
|
|
@@ -47720,7 +47720,7 @@ export type ListAdAccountsData = {
|
|
|
47720
47720
|
*/
|
|
47721
47721
|
adAccountId?: string;
|
|
47722
47722
|
/**
|
|
47723
|
-
* Google Ads only. `true` returns only the customers this connection accepts as `adAccountId` (or `customerId`) on the other /v1/ads endpoints, i.e. those inside its ad-account selection. Without it every customer the Google login can reach is listed, including ones selected on another connection of the same login, which those endpoints answer with a 400. Ignored on other platforms.
|
|
47723
|
+
* Google Ads only. `true` returns only the customers this connection accepts as `adAccountId` (or `customerId`) on the other /v1/ads endpoints, i.e. those inside its ad-account selection. Without it every customer the Google login can reach is listed, including ones selected on another connection of the same login, which those endpoints answer with a 400. Ignored on other platforms. On every platform, each item's `selected` flags selection membership without narrowing the list.
|
|
47724
47724
|
*/
|
|
47725
47725
|
inScopeOnly?: boolean;
|
|
47726
47726
|
/**
|
|
@@ -47863,6 +47863,10 @@ export type ListAdAccountsResponse = ({
|
|
|
47863
47863
|
* Meta and X only. Always present on every Meta and X account. Human-readable reason when selectable is false; null when selectable.
|
|
47864
47864
|
*/
|
|
47865
47865
|
unusableReason?: (string) | null;
|
|
47866
|
+
/**
|
|
47867
|
+
* Always present. True when the ad account is in this connection's ad-account selection, or when the connection has no selection (then every ad account is usable). For a posting account (e.g. facebook, twitter) the selection of its ads connection applies. Unrelated to `selectable`, which is the platform's own status. Writes to an ad account with `selected: false` will answer 403 `ad_account_not_selected`.
|
|
47868
|
+
*/
|
|
47869
|
+
selected?: boolean;
|
|
47866
47870
|
}>;
|
|
47867
47871
|
/**
|
|
47868
47872
|
* Google only. When this list was fetched from Google. Null when it was never served from cache. Absent on other platforms.
|