Skip to content

Commit 9d08052

Browse files
chore: regenerate from OpenAPI spec
- Auto-generated SDK updates - Version: v0.0.121
1 parent d655961 commit 9d08052

815 files changed

Lines changed: 2060 additions & 982 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openapi-generator/FILES

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ docs/GetPostTimeline404Response.md
310310
docs/GetPostingFrequency200Response.md
311311
docs/GetPostingFrequency200ResponseFrequencyInner.md
312312
docs/GetProfile200Response.md
313-
docs/GetRedditFeed200Response.md
314313
docs/GetRedditFlairs200Response.md
315314
docs/GetRedditFlairs200ResponseFlairsInner.md
316315
docs/GetRedditSubreddits200Response.md
@@ -541,6 +540,7 @@ docs/QueueUpdateResponse.md
541540
docs/RecyclingConfig.md
542541
docs/RecyclingState.md
543542
docs/RedditPlatformData.md
543+
docs/RedditPost.md
544544
docs/RedditSearchApi.md
545545
docs/RejectWhatsAppGroupJoinRequestsRequest.md
546546
docs/ReleaseWhatsAppPhoneNumber200Response.md
@@ -569,7 +569,6 @@ docs/ScheduleWhatsAppBroadcastRequest.md
569569
docs/SearchAdInterests200Response.md
570570
docs/SearchAdInterests200ResponseInterestsInner.md
571571
docs/SearchReddit200Response.md
572-
docs/SearchReddit200ResponsePostsInner.md
573572
docs/SelectFacebookPage200Response.md
574573
docs/SelectFacebookPage200ResponseAccount.md
575574
docs/SelectFacebookPageRequest.md
@@ -1151,7 +1150,6 @@ src/main/java/dev/zernio/model/GetPostTimeline404Response.java
11511150
src/main/java/dev/zernio/model/GetPostingFrequency200Response.java
11521151
src/main/java/dev/zernio/model/GetPostingFrequency200ResponseFrequencyInner.java
11531152
src/main/java/dev/zernio/model/GetProfile200Response.java
1154-
src/main/java/dev/zernio/model/GetRedditFeed200Response.java
11551153
src/main/java/dev/zernio/model/GetRedditFlairs200Response.java
11561154
src/main/java/dev/zernio/model/GetRedditFlairs200ResponseFlairsInner.java
11571155
src/main/java/dev/zernio/model/GetRedditSubreddits200Response.java
@@ -1368,6 +1366,7 @@ src/main/java/dev/zernio/model/QueueUpdateResponse.java
13681366
src/main/java/dev/zernio/model/RecyclingConfig.java
13691367
src/main/java/dev/zernio/model/RecyclingState.java
13701368
src/main/java/dev/zernio/model/RedditPlatformData.java
1369+
src/main/java/dev/zernio/model/RedditPost.java
13711370
src/main/java/dev/zernio/model/RejectWhatsAppGroupJoinRequestsRequest.java
13721371
src/main/java/dev/zernio/model/ReleaseWhatsAppPhoneNumber200Response.java
13731372
src/main/java/dev/zernio/model/ReleaseWhatsAppPhoneNumber200ResponsePhoneNumber.java
@@ -1394,7 +1393,6 @@ src/main/java/dev/zernio/model/ScheduleWhatsAppBroadcastRequest.java
13941393
src/main/java/dev/zernio/model/SearchAdInterests200Response.java
13951394
src/main/java/dev/zernio/model/SearchAdInterests200ResponseInterestsInner.java
13961395
src/main/java/dev/zernio/model/SearchReddit200Response.java
1397-
src/main/java/dev/zernio/model/SearchReddit200ResponsePostsInner.java
13981396
src/main/java/dev/zernio/model/SelectFacebookPage200Response.java
13991397
src/main/java/dev/zernio/model/SelectFacebookPage200ResponseAccount.java
14001398
src/main/java/dev/zernio/model/SelectFacebookPageRequest.java
@@ -1614,3 +1612,4 @@ src/main/java/dev/zernio/model/YouTubeDemographicsResponseDemographicsValueInner
16141612
src/main/java/dev/zernio/model/YouTubePlatformData.java
16151613
src/main/java/dev/zernio/model/YouTubeScopeMissingResponse.java
16161614
src/main/java/dev/zernio/model/YouTubeScopeMissingResponseScopeStatus.java
1615+
src/test/java/dev/zernio/model/RedditPostTest.java

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Zernio API
44

55
- API version: 1.0.1
66

7-
- Build date: 2026-04-05T21:28:11.574282819Z[Etc/UTC]
7+
- Build date: 2026-04-06T07:02:22.007854824Z[Etc/UTC]
88

99
- Generator version: 7.19.0
1010

@@ -945,7 +945,6 @@ Class | Method | HTTP request | Description
945945
- [GetPostingFrequency200Response](docs/GetPostingFrequency200Response.md)
946946
- [GetPostingFrequency200ResponseFrequencyInner](docs/GetPostingFrequency200ResponseFrequencyInner.md)
947947
- [GetProfile200Response](docs/GetProfile200Response.md)
948-
- [GetRedditFeed200Response](docs/GetRedditFeed200Response.md)
949948
- [GetRedditFlairs200Response](docs/GetRedditFlairs200Response.md)
950949
- [GetRedditFlairs200ResponseFlairsInner](docs/GetRedditFlairs200ResponseFlairsInner.md)
951950
- [GetRedditSubreddits200Response](docs/GetRedditSubreddits200Response.md)
@@ -1162,6 +1161,7 @@ Class | Method | HTTP request | Description
11621161
- [RecyclingConfig](docs/RecyclingConfig.md)
11631162
- [RecyclingState](docs/RecyclingState.md)
11641163
- [RedditPlatformData](docs/RedditPlatformData.md)
1164+
- [RedditPost](docs/RedditPost.md)
11651165
- [RejectWhatsAppGroupJoinRequestsRequest](docs/RejectWhatsAppGroupJoinRequestsRequest.md)
11661166
- [ReleaseWhatsAppPhoneNumber200Response](docs/ReleaseWhatsAppPhoneNumber200Response.md)
11671167
- [ReleaseWhatsAppPhoneNumber200ResponsePhoneNumber](docs/ReleaseWhatsAppPhoneNumber200ResponsePhoneNumber.md)
@@ -1188,7 +1188,6 @@ Class | Method | HTTP request | Description
11881188
- [SearchAdInterests200Response](docs/SearchAdInterests200Response.md)
11891189
- [SearchAdInterests200ResponseInterestsInner](docs/SearchAdInterests200ResponseInterestsInner.md)
11901190
- [SearchReddit200Response](docs/SearchReddit200Response.md)
1191-
- [SearchReddit200ResponsePostsInner](docs/SearchReddit200ResponsePostsInner.md)
11921191
- [SelectFacebookPage200Response](docs/SelectFacebookPage200Response.md)
11931192
- [SelectFacebookPage200ResponseAccount](docs/SelectFacebookPage200ResponseAccount.md)
11941193
- [SelectFacebookPageRequest](docs/SelectFacebookPageRequest.md)

api/openapi.yaml

Lines changed: 153 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ paths:
265265
description: |
266266
Check if a subreddit exists and return basic info (title, subscriber count, NSFW status, post types allowed).
267267

268-
Uses Reddit's public JSON API (no Reddit auth needed). Returns `exists: false` for private, banned, or nonexistent subreddits.
268+
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.
269269
operationId: validateSubreddit
270270
parameters:
271271
- description: Subreddit name (with or without "r/" prefix)
@@ -277,6 +277,15 @@ paths:
277277
example: programming
278278
type: string
279279
style: form
280+
- description: Reddit social account ID for authenticated lookup (recommended
281+
for reliable results)
282+
explode: true
283+
in: query
284+
name: accountId
285+
required: false
286+
schema:
287+
type: string
288+
style: form
280289
responses:
281290
"200":
282291
content:
@@ -2098,17 +2107,24 @@ paths:
20982107
content:
20992108
application/json:
21002109
example:
2101-
posts:
2110+
items:
21022111
- id: 1abc234
2112+
fullname: t3_1abc234
21032113
title: How to grow on social media in 2025
21042114
selftext: Here are my tips...
21052115
author: marketingpro
21062116
subreddit: socialmedia
2117+
url: https://www.reddit.com/r/socialmedia/comments/1abc234/
2118+
permalink: https://www.reddit.com/r/socialmedia/comments/1abc234/how_to_grow/
21072119
score: 156
2108-
num_comments: 42
2109-
created_utc: 1730000000
2110-
permalink: /r/socialmedia/comments/1abc234/how_to_grow/
2120+
numComments: 42
2121+
createdUtc: 1730000000
2122+
over18: false
2123+
stickied: false
2124+
flairText: null
2125+
isGallery: false
21112126
after: t3_1abc234
2127+
before: null
21122128
schema:
21132129
$ref: "#/components/schemas/searchReddit_200_response"
21142130
description: Search results
@@ -2191,26 +2207,42 @@ paths:
21912207
content:
21922208
application/json:
21932209
example:
2194-
posts:
2210+
items:
21952211
- id: 1xyz789
2212+
fullname: t3_1xyz789
21962213
title: Top marketing trends this week
21972214
author: trendwatcher
21982215
subreddit: marketing
2216+
url: https://www.reddit.com/r/marketing/comments/1xyz789/
2217+
permalink: https://www.reddit.com/r/marketing/comments/1xyz789/top_marketing_trends/
21992218
score: 892
2200-
num_comments: 134
2201-
created_utc: 1730100000
2202-
permalink: /r/marketing/comments/1xyz789/top_marketing_trends/
2219+
numComments: 134
2220+
createdUtc: 1730100000
2221+
over18: false
2222+
stickied: false
2223+
flairText: null
2224+
isGallery: false
22032225
- id: 1def456
2204-
title: My social media strategy that worked
2226+
fullname: t3_1def456
2227+
title: Check out my grow setup
22052228
author: growthexpert
2206-
subreddit: marketing
2229+
subreddit: gardening
2230+
url: https://www.reddit.com/gallery/1def456
2231+
permalink: https://www.reddit.com/r/gardening/comments/1def456/check_out_my_grow_setup/
22072232
score: 567
2208-
num_comments: 89
2209-
created_utc: 1730050000
2210-
permalink: /r/marketing/comments/1def456/my_social_media_strategy/
2233+
numComments: 89
2234+
createdUtc: 1730050000
2235+
over18: false
2236+
stickied: false
2237+
flairText: null
2238+
isGallery: true
2239+
galleryImages:
2240+
- https://i.redd.it/abc123.jpg
2241+
- https://i.redd.it/def456.jpg
22112242
after: t3_1def456
2243+
before: null
22122244
schema:
2213-
$ref: "#/components/schemas/getRedditFeed_200_response"
2245+
$ref: "#/components/schemas/searchReddit_200_response"
22142246
description: Feed items
22152247
"400":
22162248
description: Missing params
@@ -14927,6 +14959,75 @@ components:
1492714959
$ref: "#/components/schemas/inline_object_1"
1492814960
description: Resource not found
1492914961
schemas:
14962+
RedditPost:
14963+
description: A normalized Reddit post returned by the feed and search endpoints
14964+
example:
14965+
selftext: selftext
14966+
over18: true
14967+
author: author
14968+
flairText: flairText
14969+
title: title
14970+
subreddit: subreddit
14971+
url: url
14972+
score: 6
14973+
numComments: 1
14974+
stickied: true
14975+
isGallery: true
14976+
id: id
14977+
fullname: fullname
14978+
permalink: permalink
14979+
createdUtc: 0.8008281904610115
14980+
galleryImages:
14981+
- https://openapi-generator.tech
14982+
- https://openapi-generator.tech
14983+
properties:
14984+
id:
14985+
description: Reddit post ID (without type prefix)
14986+
type: string
14987+
fullname:
14988+
description: Reddit fullname (e.g. t3_abc123)
14989+
type: string
14990+
title:
14991+
type: string
14992+
author:
14993+
type: string
14994+
subreddit:
14995+
type: string
14996+
url:
14997+
description: Post URL (may be a gallery URL
14998+
type: string
14999+
permalink:
15000+
description: Full permalink to the Reddit post
15001+
type: string
15002+
selftext:
15003+
description: Self-post body text (empty string for link posts)
15004+
type: string
15005+
createdUtc:
15006+
description: Unix timestamp of post creation
15007+
type: number
15008+
score:
15009+
type: integer
15010+
numComments:
15011+
type: integer
15012+
over18:
15013+
description: Whether the post is marked NSFW
15014+
type: boolean
15015+
stickied:
15016+
type: boolean
15017+
flairText:
15018+
description: Link flair text if set
15019+
type: string
15020+
nullable: true
15021+
isGallery:
15022+
description: Whether the post is a gallery with multiple images
15023+
type: boolean
15024+
galleryImages:
15025+
description: Individual image URLs for gallery posts (only present when
15026+
isGallery is true)
15027+
items:
15028+
format: uri
15029+
type: string
15030+
type: array
1493015031
ErrorResponse:
1493115032
example:
1493215033
details:
@@ -21581,78 +21682,58 @@ components:
2158121682
- video
2158221683
- document
2158321684
type: string
21584-
searchReddit_200_response_posts_inner:
21585-
example:
21586-
score: 0
21587-
num_comments: 6
21588-
selftext: selftext
21589-
author: author
21590-
id: id
21591-
title: title
21592-
created_utc: 1.4658129805029452
21593-
permalink: permalink
21594-
subreddit: subreddit
21595-
properties:
21596-
id:
21597-
type: string
21598-
title:
21599-
type: string
21600-
selftext:
21601-
type: string
21602-
author:
21603-
type: string
21604-
subreddit:
21605-
type: string
21606-
score:
21607-
type: integer
21608-
num_comments:
21609-
type: integer
21610-
created_utc:
21611-
type: number
21612-
permalink:
21613-
type: string
2161421685
searchReddit_200_response:
2161521686
example:
21687+
before: before
2161621688
after: after
21617-
posts:
21618-
- score: 0
21619-
num_comments: 6
21620-
selftext: selftext
21689+
items:
21690+
- selftext: selftext
21691+
over18: true
2162121692
author: author
21622-
id: id
21693+
flairText: flairText
2162321694
title: title
21624-
created_utc: 1.4658129805029452
21625-
permalink: permalink
2162621695
subreddit: subreddit
21627-
- score: 0
21628-
num_comments: 6
21629-
selftext: selftext
21630-
author: author
21696+
url: url
21697+
score: 6
21698+
numComments: 1
21699+
stickied: true
21700+
isGallery: true
2163121701
id: id
21632-
title: title
21633-
created_utc: 1.4658129805029452
21702+
fullname: fullname
2163421703
permalink: permalink
21704+
createdUtc: 0.8008281904610115
21705+
galleryImages:
21706+
- https://openapi-generator.tech
21707+
- https://openapi-generator.tech
21708+
- selftext: selftext
21709+
over18: true
21710+
author: author
21711+
flairText: flairText
21712+
title: title
2163521713
subreddit: subreddit
21714+
url: url
21715+
score: 6
21716+
numComments: 1
21717+
stickied: true
21718+
isGallery: true
21719+
id: id
21720+
fullname: fullname
21721+
permalink: permalink
21722+
createdUtc: 0.8008281904610115
21723+
galleryImages:
21724+
- https://openapi-generator.tech
21725+
- https://openapi-generator.tech
2163621726
properties:
21637-
posts:
21727+
items:
2163821728
items:
21639-
$ref: "#/components/schemas/searchReddit_200_response_posts_inner"
21729+
$ref: "#/components/schemas/RedditPost"
2164021730
type: array
2164121731
after:
2164221732
type: string
21643-
getRedditFeed_200_response:
21644-
example:
21645-
after: after
21646-
posts:
21647-
- "{}"
21648-
- "{}"
21649-
properties:
21650-
posts:
21651-
items:
21652-
type: object
21653-
type: array
21654-
after:
21733+
nullable: true
21734+
before:
2165521735
type: string
21736+
nullable: true
2165621737
createPost_request_mediaItems_inner:
2165721738
properties:
2165821739
type:

0 commit comments

Comments
 (0)