Skip to content

Commit 0b820bb

Browse files
release: 1.2.0 (#5)
* feat(api): api update * codegen metadata * chore: update github action * release: 1.2.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 06216ec commit 0b820bb

File tree

10 files changed

+61
-6
lines changed

10 files changed

+61
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: ./scripts/lint
3737

3838
build:
39-
if: github.repository == 'stainless-sdks/post-for-me-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
39+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
4040
timeout-minutes: 10
4141
name: build
4242
permissions:
@@ -61,12 +61,14 @@ jobs:
6161
run: rye build
6262

6363
- name: Get GitHub OIDC Token
64+
if: github.repository == 'stainless-sdks/post-for-me-python'
6465
id: github-oidc
6566
uses: actions/github-script@v6
6667
with:
6768
script: core.setOutput('github_token', await core.getIDToken());
6869

6970
- name: Upload tarball
71+
if: github.repository == 'stainless-sdks/post-for-me-python'
7072
env:
7173
URL: https://pkg.stainless.com/s
7274
AUTH: ${{ steps.github-oidc.outputs.github_token }}

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.1.0"
2+
".": "1.2.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/day-moon-development%2Fpost-for-me-bfc8fd89b497f31cf5ce2ef83e0117210df65ea506d910aabb333b41ed927223.yml
3-
openapi_spec_hash: 205517c25fd69023f9a30f307027bc1e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/day-moon-development%2Fpost-for-me-2ce3bbee3c370ac5058020a9b1d02c5d77c00170756b40efc04a1901c55ce03a.yml
3+
openapi_spec_hash: d0a3176ffdc17714a2783d41d66498b7
44
config_hash: e6cf8500516696f14e3acc55a939341f

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 1.2.0 (2025-08-22)
4+
5+
Full Changelog: [v1.1.0...v1.2.0](https://github.com/DayMoonDevelopment/post-for-me-python/compare/v1.1.0...v1.2.0)
6+
7+
### Features
8+
9+
* **api:** api update ([150ee93](https://github.com/DayMoonDevelopment/post-for-me-python/commit/150ee93ecb5e62f045ac04e08aad624c07ae5cf6))
10+
11+
12+
### Chores
13+
14+
* update github action ([ed866c4](https://github.com/DayMoonDevelopment/post-for-me-python/commit/ed866c48e9898609bad238f2d47aa1e4e125a804))
15+
316
## 1.1.0 (2025-08-18)
417

518
Full Changelog: [v1.0.0...v1.1.0](https://github.com/DayMoonDevelopment/post-for-me-python/compare/v1.0.0...v1.1.0)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "post_for_me"
3-
version = "1.1.0"
3+
version = "1.2.0"
44
description = "The official Python library for the post-for-me API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/post_for_me/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "post_for_me"
4-
__version__ = "1.1.0" # x-release-please-version
4+
__version__ = "1.2.0" # x-release-please-version

src/post_for_me/types/social_post_create_params.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ class AccountConfigurationConfiguration(TypedDict, total=False):
7777
disclose_your_brand: Optional[bool]
7878
"""Disclose your brand on TikTok"""
7979

80+
is_ai_generated: Optional[bool]
81+
"""Flag content as AI generated on TikTok"""
82+
83+
is_draft: Optional[bool]
84+
"""
85+
Will create a draft upload to TikTok, posting will need to be completed from
86+
within the app
87+
"""
88+
8089
link: Optional[str]
8190
"""Pinterest post link"""
8291

src/post_for_me/types/social_post_update_params.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ class AccountConfigurationConfiguration(TypedDict, total=False):
7777
disclose_your_brand: Optional[bool]
7878
"""Disclose your brand on TikTok"""
7979

80+
is_ai_generated: Optional[bool]
81+
"""Flag content as AI generated on TikTok"""
82+
83+
is_draft: Optional[bool]
84+
"""
85+
Will create a draft upload to TikTok, posting will need to be completed from
86+
within the app
87+
"""
88+
8089
link: Optional[str]
8190
"""Pinterest post link"""
8291

src/post_for_me/types/tiktok_configuration_param.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ class TiktokConfigurationParam(TypedDict, total=False):
3030
is_ai_generated: Optional[bool]
3131
"""Flag content as AI generated on TikTok"""
3232

33+
is_draft: Optional[bool]
34+
"""
35+
Will create a draft upload to TikTok, posting will need to be completed from
36+
within the app
37+
"""
38+
3339
media: Optional[List[str]]
3440
"""Overrides the `media` from the post"""
3541

tests/api_resources/test_social_posts.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ def test_method_create_with_all_params(self, client: PostForMe) -> None:
4747
"caption": {},
4848
"disclose_branded_content": True,
4949
"disclose_your_brand": True,
50+
"is_ai_generated": True,
51+
"is_draft": True,
5052
"link": "link",
5153
"media": ["string"],
5254
"placement": "reels",
@@ -104,6 +106,7 @@ def test_method_create_with_all_params(self, client: PostForMe) -> None:
104106
"disclose_branded_content": True,
105107
"disclose_your_brand": True,
106108
"is_ai_generated": True,
109+
"is_draft": True,
107110
"media": ["string"],
108111
"privacy_status": "privacy_status",
109112
"title": "title",
@@ -116,6 +119,7 @@ def test_method_create_with_all_params(self, client: PostForMe) -> None:
116119
"disclose_branded_content": True,
117120
"disclose_your_brand": True,
118121
"is_ai_generated": True,
122+
"is_draft": True,
119123
"media": ["string"],
120124
"privacy_status": "privacy_status",
121125
"title": "title",
@@ -231,6 +235,8 @@ def test_method_update_with_all_params(self, client: PostForMe) -> None:
231235
"caption": {},
232236
"disclose_branded_content": True,
233237
"disclose_your_brand": True,
238+
"is_ai_generated": True,
239+
"is_draft": True,
234240
"link": "link",
235241
"media": ["string"],
236242
"placement": "reels",
@@ -288,6 +294,7 @@ def test_method_update_with_all_params(self, client: PostForMe) -> None:
288294
"disclose_branded_content": True,
289295
"disclose_your_brand": True,
290296
"is_ai_generated": True,
297+
"is_draft": True,
291298
"media": ["string"],
292299
"privacy_status": "privacy_status",
293300
"title": "title",
@@ -300,6 +307,7 @@ def test_method_update_with_all_params(self, client: PostForMe) -> None:
300307
"disclose_branded_content": True,
301308
"disclose_your_brand": True,
302309
"is_ai_generated": True,
310+
"is_draft": True,
303311
"media": ["string"],
304312
"privacy_status": "privacy_status",
305313
"title": "title",
@@ -471,6 +479,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncPostForMe)
471479
"caption": {},
472480
"disclose_branded_content": True,
473481
"disclose_your_brand": True,
482+
"is_ai_generated": True,
483+
"is_draft": True,
474484
"link": "link",
475485
"media": ["string"],
476486
"placement": "reels",
@@ -528,6 +538,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncPostForMe)
528538
"disclose_branded_content": True,
529539
"disclose_your_brand": True,
530540
"is_ai_generated": True,
541+
"is_draft": True,
531542
"media": ["string"],
532543
"privacy_status": "privacy_status",
533544
"title": "title",
@@ -540,6 +551,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncPostForMe)
540551
"disclose_branded_content": True,
541552
"disclose_your_brand": True,
542553
"is_ai_generated": True,
554+
"is_draft": True,
543555
"media": ["string"],
544556
"privacy_status": "privacy_status",
545557
"title": "title",
@@ -655,6 +667,8 @@ async def test_method_update_with_all_params(self, async_client: AsyncPostForMe)
655667
"caption": {},
656668
"disclose_branded_content": True,
657669
"disclose_your_brand": True,
670+
"is_ai_generated": True,
671+
"is_draft": True,
658672
"link": "link",
659673
"media": ["string"],
660674
"placement": "reels",
@@ -712,6 +726,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncPostForMe)
712726
"disclose_branded_content": True,
713727
"disclose_your_brand": True,
714728
"is_ai_generated": True,
729+
"is_draft": True,
715730
"media": ["string"],
716731
"privacy_status": "privacy_status",
717732
"title": "title",
@@ -724,6 +739,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncPostForMe)
724739
"disclose_branded_content": True,
725740
"disclose_your_brand": True,
726741
"is_ai_generated": True,
742+
"is_draft": True,
727743
"media": ["string"],
728744
"privacy_status": "privacy_status",
729745
"title": "title",

0 commit comments

Comments
 (0)