Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: ./scripts/lint

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

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

- name: Upload tarball
if: github.repository == 'stainless-sdks/post-for-me-python'
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.1.0"
".": "1.2.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 13
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/day-moon-development%2Fpost-for-me-bfc8fd89b497f31cf5ce2ef83e0117210df65ea506d910aabb333b41ed927223.yml
openapi_spec_hash: 205517c25fd69023f9a30f307027bc1e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/day-moon-development%2Fpost-for-me-2ce3bbee3c370ac5058020a9b1d02c5d77c00170756b40efc04a1901c55ce03a.yml
openapi_spec_hash: d0a3176ffdc17714a2783d41d66498b7
config_hash: e6cf8500516696f14e3acc55a939341f
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 1.2.0 (2025-08-22)

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

### Features

* **api:** api update ([150ee93](https://github.com/DayMoonDevelopment/post-for-me-python/commit/150ee93ecb5e62f045ac04e08aad624c07ae5cf6))


### Chores

* update github action ([ed866c4](https://github.com/DayMoonDevelopment/post-for-me-python/commit/ed866c48e9898609bad238f2d47aa1e4e125a804))

## 1.1.0 (2025-08-18)

Full Changelog: [v1.0.0...v1.1.0](https://github.com/DayMoonDevelopment/post-for-me-python/compare/v1.0.0...v1.1.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "post_for_me"
version = "1.1.0"
version = "1.2.0"
description = "The official Python library for the post-for-me API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/post_for_me/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "post_for_me"
__version__ = "1.1.0" # x-release-please-version
__version__ = "1.2.0" # x-release-please-version
9 changes: 9 additions & 0 deletions src/post_for_me/types/social_post_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ class AccountConfigurationConfiguration(TypedDict, total=False):
disclose_your_brand: Optional[bool]
"""Disclose your brand on TikTok"""

is_ai_generated: Optional[bool]
"""Flag content as AI generated on TikTok"""

is_draft: Optional[bool]
"""
Will create a draft upload to TikTok, posting will need to be completed from
within the app
"""

link: Optional[str]
"""Pinterest post link"""

Expand Down
9 changes: 9 additions & 0 deletions src/post_for_me/types/social_post_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ class AccountConfigurationConfiguration(TypedDict, total=False):
disclose_your_brand: Optional[bool]
"""Disclose your brand on TikTok"""

is_ai_generated: Optional[bool]
"""Flag content as AI generated on TikTok"""

is_draft: Optional[bool]
"""
Will create a draft upload to TikTok, posting will need to be completed from
within the app
"""

link: Optional[str]
"""Pinterest post link"""

Expand Down
6 changes: 6 additions & 0 deletions src/post_for_me/types/tiktok_configuration_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ class TiktokConfigurationParam(TypedDict, total=False):
is_ai_generated: Optional[bool]
"""Flag content as AI generated on TikTok"""

is_draft: Optional[bool]
"""
Will create a draft upload to TikTok, posting will need to be completed from
within the app
"""

media: Optional[List[str]]
"""Overrides the `media` from the post"""

Expand Down
16 changes: 16 additions & 0 deletions tests/api_resources/test_social_posts.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def test_method_create_with_all_params(self, client: PostForMe) -> None:
"caption": {},
"disclose_branded_content": True,
"disclose_your_brand": True,
"is_ai_generated": True,
"is_draft": True,
"link": "link",
"media": ["string"],
"placement": "reels",
Expand Down Expand Up @@ -104,6 +106,7 @@ def test_method_create_with_all_params(self, client: PostForMe) -> None:
"disclose_branded_content": True,
"disclose_your_brand": True,
"is_ai_generated": True,
"is_draft": True,
"media": ["string"],
"privacy_status": "privacy_status",
"title": "title",
Expand All @@ -116,6 +119,7 @@ def test_method_create_with_all_params(self, client: PostForMe) -> None:
"disclose_branded_content": True,
"disclose_your_brand": True,
"is_ai_generated": True,
"is_draft": True,
"media": ["string"],
"privacy_status": "privacy_status",
"title": "title",
Expand Down Expand Up @@ -231,6 +235,8 @@ def test_method_update_with_all_params(self, client: PostForMe) -> None:
"caption": {},
"disclose_branded_content": True,
"disclose_your_brand": True,
"is_ai_generated": True,
"is_draft": True,
"link": "link",
"media": ["string"],
"placement": "reels",
Expand Down Expand Up @@ -288,6 +294,7 @@ def test_method_update_with_all_params(self, client: PostForMe) -> None:
"disclose_branded_content": True,
"disclose_your_brand": True,
"is_ai_generated": True,
"is_draft": True,
"media": ["string"],
"privacy_status": "privacy_status",
"title": "title",
Expand All @@ -300,6 +307,7 @@ def test_method_update_with_all_params(self, client: PostForMe) -> None:
"disclose_branded_content": True,
"disclose_your_brand": True,
"is_ai_generated": True,
"is_draft": True,
"media": ["string"],
"privacy_status": "privacy_status",
"title": "title",
Expand Down Expand Up @@ -471,6 +479,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncPostForMe)
"caption": {},
"disclose_branded_content": True,
"disclose_your_brand": True,
"is_ai_generated": True,
"is_draft": True,
"link": "link",
"media": ["string"],
"placement": "reels",
Expand Down Expand Up @@ -528,6 +538,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncPostForMe)
"disclose_branded_content": True,
"disclose_your_brand": True,
"is_ai_generated": True,
"is_draft": True,
"media": ["string"],
"privacy_status": "privacy_status",
"title": "title",
Expand All @@ -540,6 +551,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncPostForMe)
"disclose_branded_content": True,
"disclose_your_brand": True,
"is_ai_generated": True,
"is_draft": True,
"media": ["string"],
"privacy_status": "privacy_status",
"title": "title",
Expand Down Expand Up @@ -655,6 +667,8 @@ async def test_method_update_with_all_params(self, async_client: AsyncPostForMe)
"caption": {},
"disclose_branded_content": True,
"disclose_your_brand": True,
"is_ai_generated": True,
"is_draft": True,
"link": "link",
"media": ["string"],
"placement": "reels",
Expand Down Expand Up @@ -712,6 +726,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncPostForMe)
"disclose_branded_content": True,
"disclose_your_brand": True,
"is_ai_generated": True,
"is_draft": True,
"media": ["string"],
"privacy_status": "privacy_status",
"title": "title",
Expand All @@ -724,6 +739,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncPostForMe)
"disclose_branded_content": True,
"disclose_your_brand": True,
"is_ai_generated": True,
"is_draft": True,
"media": ["string"],
"privacy_status": "privacy_status",
"title": "title",
Expand Down
Loading