Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
4b08bce
feat(api): api update
stainless-app[bot] May 25, 2026
a67bd8b
feat(api): api update
stainless-app[bot] May 25, 2026
d22aec4
feat(api): api update
stainless-app[bot] May 25, 2026
f2f2094
feat(api): api update
stainless-app[bot] May 25, 2026
2b072d1
feat(api): api update
stainless-app[bot] May 26, 2026
0a74e45
feat(api): api update
stainless-app[bot] May 26, 2026
2c2c2d5
feat(api): api update
stainless-app[bot] May 26, 2026
196b012
feat(api): api update
stainless-app[bot] May 26, 2026
0babea3
feat(api): api update
stainless-app[bot] May 27, 2026
015b0d1
feat(api): api update
stainless-app[bot] May 27, 2026
af71d0c
feat(api): api update
stainless-app[bot] May 27, 2026
88c6d42
feat(api): api update
stainless-app[bot] May 27, 2026
0942b23
feat(api): api update
stainless-app[bot] May 27, 2026
9ffc9d3
feat(api): api update
stainless-app[bot] May 27, 2026
43559da
feat(api): api update
stainless-app[bot] May 28, 2026
cb29cb5
feat(api): api update
stainless-app[bot] May 29, 2026
9ce94a8
feat(api): api update
stainless-app[bot] Jun 1, 2026
62090dc
feat(api): api update
stainless-app[bot] Jun 2, 2026
3e7e17b
feat(api): api update
stainless-app[bot] Jun 2, 2026
3525475
feat(api): api update
stainless-app[bot] Jun 3, 2026
c06f3ab
feat(api): api update
stainless-app[bot] Jun 4, 2026
4594ec1
feat(api): api update
stainless-app[bot] Jun 4, 2026
43194d7
feat(api): api update
stainless-app[bot] Jun 4, 2026
9e94503
feat(api): api update
stainless-app[bot] Jun 5, 2026
de81294
feat(api): api update
stainless-app[bot] Jun 5, 2026
2952e4b
feat(api): api update
stainless-app[bot] Jun 5, 2026
f49b174
codegen metadata
stainless-app[bot] Jun 5, 2026
0155b06
codegen metadata
stainless-app[bot] Jun 5, 2026
db0732e
feat(api): api update
stainless-app[bot] Jun 5, 2026
b466abb
feat(api): api update
stainless-app[bot] Jun 5, 2026
fe65d3e
feat(api): api update
stainless-app[bot] Jun 6, 2026
924de03
feat(api): api update
stainless-app[bot] Jun 8, 2026
8ada88c
feat(api): api update
stainless-app[bot] Jun 9, 2026
aa704e0
feat(api): api update
stainless-app[bot] Jun 9, 2026
e64239d
feat(api): api update
stainless-app[bot] Jun 9, 2026
57a911a
feat(api): api update
stainless-app[bot] Jun 9, 2026
3551f5f
feat(api): api update
stainless-app[bot] Jun 11, 2026
8bbc9d6
feat(api): api update
stainless-app[bot] Jun 11, 2026
f0a25cd
feat(api): api update
stainless-app[bot] Jun 11, 2026
98a84e7
feat(api): api update
stainless-app[bot] Jun 11, 2026
6b9ad4e
feat(api): api update
stainless-app[bot] Jun 12, 2026
eb632d4
feat(api): api update
stainless-app[bot] Jun 12, 2026
a96c6d7
feat(api): api update
stainless-app[bot] Jun 12, 2026
06c6eef
feat(api): api update
stainless-app[bot] Jun 12, 2026
bbaa897
feat(api): api update
stainless-app[bot] Jun 12, 2026
afd3835
feat(api): api update
stainless-app[bot] Jun 12, 2026
56d3af6
feat(api): api update
stainless-app[bot] Jun 12, 2026
2d4e1d9
feat(api): api update
stainless-app[bot] Jun 14, 2026
d42b221
feat(api): api update
stainless-app[bot] Jun 14, 2026
1fed67f
feat(api): api update
stainless-app[bot] Jun 14, 2026
5bfca35
feat(api): api update
stainless-app[bot] Jun 14, 2026
71220c9
feat(api): api update
stainless-app[bot] Jun 14, 2026
0b39e31
feat(api): api update
stainless-app[bot] Jun 15, 2026
8f04ca3
feat(api): api update
stainless-app[bot] Jun 15, 2026
3045117
feat(api): api update
stainless-app[bot] Jun 15, 2026
661fcbb
feat(api): api update
stainless-app[bot] Jun 15, 2026
39eabdf
feat(api): api update
stainless-app[bot] Jun 15, 2026
d19b34e
feat(api): api update
stainless-app[bot] Jun 15, 2026
b9bc8ef
feat(api): api update
stainless-app[bot] Jun 15, 2026
22e3621
feat(api): api update
stainless-app[bot] Jun 16, 2026
4a0e815
feat(api): api update
stainless-app[bot] Jun 16, 2026
c3e0de4
feat(api): api update
stainless-app[bot] Jun 16, 2026
e79bbd9
feat(api): api update
stainless-app[bot] Jun 16, 2026
cc58005
feat(api): api update
stainless-app[bot] Jun 16, 2026
8094519
feat(api): api update
stainless-app[bot] Jun 16, 2026
c0e6856
feat(api): api update
stainless-app[bot] Jun 17, 2026
5e54e4d
feat(api): api update
stainless-app[bot] Jun 17, 2026
98cccb2
feat(api): api update
stainless-app[bot] Jun 17, 2026
ab97425
fix(auth): prioritize first auth header
stainless-app[bot] Jun 18, 2026
cd72d9b
feat(api): api update
stainless-app[bot] Jun 18, 2026
c9bffa9
feat(api): api update
stainless-app[bot] Jun 18, 2026
3b888d1
feat(api): api update
stainless-app[bot] Jun 18, 2026
85a1343
feat(api): api update
stainless-app[bot] Jun 18, 2026
cd59ef9
feat(api): api update
stainless-app[bot] Jun 19, 2026
a5bef62
feat(api): api update
stainless-app[bot] Jun 19, 2026
05a7a76
feat(api): api update
stainless-app[bot] Jun 19, 2026
5730eb7
feat(api): api update
stainless-app[bot] Jun 19, 2026
c4cb460
feat(api): api update
stainless-app[bot] Jun 19, 2026
6206d4e
feat(api): api update
stainless-app[bot] Jun 19, 2026
b3e9ad4
feat(api): api update
stainless-app[bot] Jun 20, 2026
8c1fc5b
feat(api): api update
stainless-app[bot] Jun 20, 2026
bc6eecc
feat(api): api update
stainless-app[bot] Jun 21, 2026
34b2ef5
feat(api): api update
stainless-app[bot] Jun 21, 2026
fb91a8a
feat(api): api update
stainless-app[bot] Jun 22, 2026
ad185f2
feat(api): api update
stainless-app[bot] Jun 22, 2026
d37311c
feat(api): api update
stainless-app[bot] Jun 22, 2026
6dac13e
feat(api): api update
stainless-app[bot] Jun 22, 2026
b4de79a
feat(api): api update
stainless-app[bot] Jun 22, 2026
219a4ad
feat(api): api update
stainless-app[bot] Jun 23, 2026
2a9d43d
feat(api): api update
stainless-app[bot] Jun 23, 2026
8e6951a
feat(api): api update
stainless-app[bot] Jun 23, 2026
27d82bd
feat(api): api update
stainless-app[bot] Jun 23, 2026
fcbc734
feat(api): api update
stainless-app[bot] Jun 23, 2026
e6371a9
feat(api): api update
stainless-app[bot] Jun 23, 2026
c065f5e
feat(api): api update
stainless-app[bot] Jun 23, 2026
61824c2
feat(api): api update
stainless-app[bot] Jun 24, 2026
d7f273e
feat(api): api update
stainless-app[bot] Jun 25, 2026
2eede93
feat(api): api update
stainless-app[bot] Jun 25, 2026
7dd3175
feat(api): api update
stainless-app[bot] Jun 25, 2026
86e264e
feat(api): api update
stainless-app[bot] Jun 25, 2026
ff80138
feat(api): api update
stainless-app[bot] Jun 25, 2026
e04b31f
feat(api): api update
stainless-app[bot] Jun 26, 2026
5ecfe50
feat(api): api update
stainless-app[bot] Jun 26, 2026
2623e4f
feat(api): api update
stainless-app[bot] Jun 26, 2026
34b0116
feat(api): api update
stainless-app[bot] Jun 27, 2026
6733605
feat(api): api update
stainless-app[bot] Jun 27, 2026
1a1f70d
feat(api): api update
stainless-app[bot] Jun 28, 2026
d99d328
feat(api): api update
stainless-app[bot] Jun 28, 2026
6f86464
feat(api): api update
stainless-app[bot] Jun 28, 2026
6b0bbf8
feat(api): api update
stainless-app[bot] Jun 28, 2026
1a4584e
feat(api): api update
stainless-app[bot] Jun 29, 2026
65fd101
feat(api): api update
stainless-app[bot] Jun 29, 2026
f07fda7
feat(api): api update
stainless-app[bot] Jun 29, 2026
7d8cf8d
feat(api): api update
stainless-app[bot] Jun 29, 2026
3093ab5
feat(api): api update
stainless-app[bot] Jun 29, 2026
a2f1e64
feat(api): api update
stainless-app[bot] Jun 29, 2026
0e5181b
feat(api): api update
stainless-app[bot] Jun 30, 2026
ece2e64
feat(api): api update
stainless-app[bot] Jun 30, 2026
d4ea3a3
feat(api): api update
stainless-app[bot] Jun 30, 2026
690697f
feat(api): api update
stainless-app[bot] Jun 30, 2026
9ff85c9
feat(api): api update
stainless-app[bot] Jun 30, 2026
14e5452
feat(api): api update
stainless-app[bot] Jun 30, 2026
96068ce
feat(api): api update
stainless-app[bot] Jun 30, 2026
a822c22
feat(api): api update
stainless-app[bot] Jun 30, 2026
84ef257
feat(api): api update
stainless-app[bot] Jul 1, 2026
6fd0c37
feat(api): api update
stainless-app[bot] Jul 2, 2026
c4b4d34
feat(api): api update
stainless-app[bot] Jul 2, 2026
3ef2bad
feat(api): api update
stainless-app[bot] Jul 2, 2026
4830edd
feat(api): api update
stainless-app[bot] Jul 2, 2026
c11f180
feat(api): api update
stainless-app[bot] Jul 3, 2026
7c99e2a
feat(api): api update
stainless-app[bot] Jul 3, 2026
3101371
feat(api): api update
stainless-app[bot] Jul 3, 2026
7d8523a
feat(api): api update
stainless-app[bot] Jul 3, 2026
2e11f3f
feat(api): api update
stainless-app[bot] Jul 3, 2026
f3f6a7d
feat(api): api update
stainless-app[bot] Jul 3, 2026
d69001b
feat(api): api update
stainless-app[bot] Jul 4, 2026
64e0325
feat(api): api update
stainless-app[bot] Jul 4, 2026
c29e6e2
feat(api): api update
stainless-app[bot] Jul 4, 2026
f557b21
feat(api): api update
stainless-app[bot] Jul 4, 2026
0742c6b
feat(api): api update
stainless-app[bot] Jul 4, 2026
9a82aec
feat(api): api update
stainless-app[bot] Jul 5, 2026
293346c
feat(api): api update
stainless-app[bot] Jul 5, 2026
c7f90dd
feat(api): api update
stainless-app[bot] Jul 5, 2026
179a592
feat(api): api update
stainless-app[bot] Jul 5, 2026
02ae244
feat(api): api update
stainless-app[bot] Jul 5, 2026
1e34cdf
feat(api): api update
stainless-app[bot] Jul 5, 2026
d2ff421
feat(api): api update
stainless-app[bot] Jul 6, 2026
6d845ea
feat(api): api update
stainless-app[bot] Jul 6, 2026
bc4ad9c
feat(api): api update
stainless-app[bot] Jul 6, 2026
bf85410
feat(api): api update
stainless-app[bot] Jul 7, 2026
4c8f998
feat(api): api update
stainless-app[bot] Jul 7, 2026
870ce5c
feat(api): api update
stainless-app[bot] Jul 7, 2026
1b7e3b7
feat(api): api update
stainless-app[bot] Jul 9, 2026
53307f5
feat(api): api update
stainless-app[bot] Jul 10, 2026
87a58bc
release: 0.2.0
stainless-app[bot] Jul 10, 2026
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.2"
".": "0.2.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 266
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ba5efdf86108ef077f2db1f8a05b84d58f7f218fe2b7e0eb72e3c371cfa30015.yml
openapi_spec_hash: 6c2d47cd85674ece07dc37e471a36ac9
configured_endpoints: 265
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c7b4dde3eb431e3c636e2b6bc3a7bc40aaee037783648040876793082942a877.yml
openapi_spec_hash: b2059518c78b8c03fcbd4e1773ff4d77
config_hash: 397c91e15c0024f8b5bbed9b82c2348c
163 changes: 163 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

18 changes: 3 additions & 15 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,18 +233,6 @@ Methods:

- <code title="post /api/{account}/chats/mark-as-read">client.chats.mark_all_as_read.<a href="./src/onlyfansapi/resources/chats/mark_all_as_read.py">all</a>(account) -> <a href="./src/onlyfansapi/types/chats/mark_all_as_read_all_response.py">MarkAllAsReadAllResponse</a></code>

# Messages

Types:

```python
from onlyfansapi.types import MessageAttachTagsResponse
```

Methods:

- <code title="post /api/{account}/messages/{message_id}/attach-tags">client.messages.<a href="./src/onlyfansapi/resources/messages.py">attach_tags</a>(message_id, \*, account, \*\*<a href="src/onlyfansapi/types/message_attach_tags_params.py">params</a>) -> <a href="./src/onlyfansapi/types/message_attach_tags_response.py">MessageAttachTagsResponse</a></code>

# ClientSessions

Types:
Expand Down Expand Up @@ -520,12 +508,12 @@ Methods:
Types:

```python
from onlyfansapi.types import MediaDownloadResponse, MediaScrapeResponse, MediaUploadResponse
from onlyfansapi.types import MediaScrapeResponse, MediaUploadResponse
```

Methods:

- <code title="get /api/{account}/media/download/{cdnUrl}">client.media.<a href="./src/onlyfansapi/resources/media/media.py">download</a>(cdn_url, \*, account) -> str</code>
- <code title="get /api/{account}/media/download/{cdnUrl}">client.media.<a href="./src/onlyfansapi/resources/media/media.py">download</a>(cdn_url, \*, account) -> None</code>
- <code title="post /api/{account}/media/scrape">client.media.<a href="./src/onlyfansapi/resources/media/media.py">scrape</a>(account, \*\*<a href="src/onlyfansapi/types/media_scrape_params.py">params</a>) -> <a href="./src/onlyfansapi/types/media_scrape_response.py">MediaScrapeResponse</a></code>
- <code title="post /api/{account}/media/upload">client.media.<a href="./src/onlyfansapi/resources/media/media.py">upload</a>(account, \*\*<a href="src/onlyfansapi/types/media_upload_params.py">params</a>) -> <a href="./src/onlyfansapi/types/media_upload_response.py">MediaUploadResponse</a></code>

Expand Down Expand Up @@ -579,7 +567,7 @@ Methods:

- <code title="post /api/{account}/media/vault/lists">client.media.vault.lists.<a href="./src/onlyfansapi/resources/media/vault/lists/lists.py">create</a>(account, \*\*<a href="src/onlyfansapi/types/media/vault/list_create_params.py">params</a>) -> <a href="./src/onlyfansapi/types/media/vault/list_create_response.py">ListCreateResponse</a></code>
- <code title="get /api/{account}/media/vault/lists/{list_id}">client.media.vault.lists.<a href="./src/onlyfansapi/resources/media/vault/lists/lists.py">retrieve</a>(list_id, \*, account) -> <a href="./src/onlyfansapi/types/media/vault/list_retrieve_response.py">ListRetrieveResponse</a></code>
- <code title="put /api/{account}/media/vault/lists/{list_id}">client.media.vault.lists.<a href="./src/onlyfansapi/resources/media/vault/lists/lists.py">update</a>(list_id, \*, account) -> <a href="./src/onlyfansapi/types/media/vault/list_update_response.py">ListUpdateResponse</a></code>
- <code title="put /api/{account}/media/vault/lists/{list_id}">client.media.vault.lists.<a href="./src/onlyfansapi/resources/media/vault/lists/lists.py">update</a>(list_id, \*, account, \*\*<a href="src/onlyfansapi/types/media/vault/list_update_params.py">params</a>) -> <a href="./src/onlyfansapi/types/media/vault/list_update_response.py">ListUpdateResponse</a></code>
- <code title="get /api/{account}/media/vault/lists">client.media.vault.lists.<a href="./src/onlyfansapi/resources/media/vault/lists/lists.py">list</a>(account, \*\*<a href="src/onlyfansapi/types/media/vault/list_list_params.py">params</a>) -> <a href="./src/onlyfansapi/types/media/vault/list_list_response.py">ListListResponse</a></code>
- <code title="delete /api/{account}/media/vault/lists/{list_id}">client.media.vault.lists.<a href="./src/onlyfansapi/resources/media/vault/lists/lists.py">delete</a>(list_id, \*, account) -> <a href="./src/onlyfansapi/types/media/vault/list_delete_response.py">ListDeleteResponse</a></code>

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 = "onlyfans"
version = "0.1.2"
version = "0.2.0"
description = "The official Python library for the OnlyFansAPI API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
66 changes: 16 additions & 50 deletions src/onlyfansapi/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
payouts,
stories,
accounts,
messages,
profiles,
settings,
webhooks,
Expand Down Expand Up @@ -90,7 +89,6 @@
from .resources.bundles import BundlesResource, AsyncBundlesResource
from .resources.payouts import PayoutsResource, AsyncPayoutsResource
from .resources.accounts import AccountsResource, AsyncAccountsResource
from .resources.messages import MessagesResource, AsyncMessagesResource
from .resources.profiles import ProfilesResource, AsyncProfilesResource
from .resources.webhooks import WebhooksResource, AsyncWebhooksResource
from .resources.fans.fans import FansResource, AsyncFansResource
Expand Down Expand Up @@ -251,12 +249,6 @@ def chats(self) -> ChatsResource:

return ChatsResource(self)

@cached_property
def messages(self) -> MessagesResource:
from .resources.messages import MessagesResource

return MessagesResource(self)

@cached_property
def client_sessions(self) -> ClientSessionsResource:
from .resources.client_sessions import ClientSessionsResource
Expand Down Expand Up @@ -311,7 +303,7 @@ def giphy(self) -> GiphyResource:

@cached_property
def link_tags(self) -> LinkTagsResource:
"""APIs for managing tags on free trial links and tracking links"""
"""APIs for managing tags on free trial links, tracking links, and Smart Links"""
from .resources.link_tags import LinkTagsResource

return LinkTagsResource(self)
Expand Down Expand Up @@ -505,9 +497,11 @@ def qs(self) -> Querystring:

@override
def _auth_headers(self, security: SecurityOptions) -> dict[str, str]:
return {
**(self._default if security.get("default", False) else {}),
}
headers: dict[str, str] = {}
if security.get("default", False):
for key, value in self._default.items():
headers.setdefault(key, value)
return headers

@property
def _default(self) -> dict[str, str]:
Expand Down Expand Up @@ -719,12 +713,6 @@ def chats(self) -> AsyncChatsResource:

return AsyncChatsResource(self)

@cached_property
def messages(self) -> AsyncMessagesResource:
from .resources.messages import AsyncMessagesResource

return AsyncMessagesResource(self)

@cached_property
def client_sessions(self) -> AsyncClientSessionsResource:
from .resources.client_sessions import AsyncClientSessionsResource
Expand Down Expand Up @@ -779,7 +767,7 @@ def giphy(self) -> AsyncGiphyResource:

@cached_property
def link_tags(self) -> AsyncLinkTagsResource:
"""APIs for managing tags on free trial links and tracking links"""
"""APIs for managing tags on free trial links, tracking links, and Smart Links"""
from .resources.link_tags import AsyncLinkTagsResource

return AsyncLinkTagsResource(self)
Expand Down Expand Up @@ -973,9 +961,11 @@ def qs(self) -> Querystring:

@override
def _auth_headers(self, security: SecurityOptions) -> dict[str, str]:
return {
**(self._default if security.get("default", False) else {}),
}
headers: dict[str, str] = {}
if security.get("default", False):
for key, value in self._default.items():
headers.setdefault(key, value)
return headers

@property
def _default(self) -> dict[str, str]:
Expand Down Expand Up @@ -1129,12 +1119,6 @@ def chats(self) -> chats.ChatsResourceWithRawResponse:

return ChatsResourceWithRawResponse(self._client.chats)

@cached_property
def messages(self) -> messages.MessagesResourceWithRawResponse:
from .resources.messages import MessagesResourceWithRawResponse

return MessagesResourceWithRawResponse(self._client.messages)

@cached_property
def client_sessions(self) -> client_sessions.ClientSessionsResourceWithRawResponse:
from .resources.client_sessions import ClientSessionsResourceWithRawResponse
Expand Down Expand Up @@ -1189,7 +1173,7 @@ def giphy(self) -> giphy.GiphyResourceWithRawResponse:

@cached_property
def link_tags(self) -> link_tags.LinkTagsResourceWithRawResponse:
"""APIs for managing tags on free trial links and tracking links"""
"""APIs for managing tags on free trial links, tracking links, and Smart Links"""
from .resources.link_tags import LinkTagsResourceWithRawResponse

return LinkTagsResourceWithRawResponse(self._client.link_tags)
Expand Down Expand Up @@ -1422,12 +1406,6 @@ def chats(self) -> chats.AsyncChatsResourceWithRawResponse:

return AsyncChatsResourceWithRawResponse(self._client.chats)

@cached_property
def messages(self) -> messages.AsyncMessagesResourceWithRawResponse:
from .resources.messages import AsyncMessagesResourceWithRawResponse

return AsyncMessagesResourceWithRawResponse(self._client.messages)

@cached_property
def client_sessions(self) -> client_sessions.AsyncClientSessionsResourceWithRawResponse:
from .resources.client_sessions import AsyncClientSessionsResourceWithRawResponse
Expand Down Expand Up @@ -1482,7 +1460,7 @@ def giphy(self) -> giphy.AsyncGiphyResourceWithRawResponse:

@cached_property
def link_tags(self) -> link_tags.AsyncLinkTagsResourceWithRawResponse:
"""APIs for managing tags on free trial links and tracking links"""
"""APIs for managing tags on free trial links, tracking links, and Smart Links"""
from .resources.link_tags import AsyncLinkTagsResourceWithRawResponse

return AsyncLinkTagsResourceWithRawResponse(self._client.link_tags)
Expand Down Expand Up @@ -1715,12 +1693,6 @@ def chats(self) -> chats.ChatsResourceWithStreamingResponse:

return ChatsResourceWithStreamingResponse(self._client.chats)

@cached_property
def messages(self) -> messages.MessagesResourceWithStreamingResponse:
from .resources.messages import MessagesResourceWithStreamingResponse

return MessagesResourceWithStreamingResponse(self._client.messages)

@cached_property
def client_sessions(self) -> client_sessions.ClientSessionsResourceWithStreamingResponse:
from .resources.client_sessions import ClientSessionsResourceWithStreamingResponse
Expand Down Expand Up @@ -1775,7 +1747,7 @@ def giphy(self) -> giphy.GiphyResourceWithStreamingResponse:

@cached_property
def link_tags(self) -> link_tags.LinkTagsResourceWithStreamingResponse:
"""APIs for managing tags on free trial links and tracking links"""
"""APIs for managing tags on free trial links, tracking links, and Smart Links"""
from .resources.link_tags import LinkTagsResourceWithStreamingResponse

return LinkTagsResourceWithStreamingResponse(self._client.link_tags)
Expand Down Expand Up @@ -2008,12 +1980,6 @@ def chats(self) -> chats.AsyncChatsResourceWithStreamingResponse:

return AsyncChatsResourceWithStreamingResponse(self._client.chats)

@cached_property
def messages(self) -> messages.AsyncMessagesResourceWithStreamingResponse:
from .resources.messages import AsyncMessagesResourceWithStreamingResponse

return AsyncMessagesResourceWithStreamingResponse(self._client.messages)

@cached_property
def client_sessions(self) -> client_sessions.AsyncClientSessionsResourceWithStreamingResponse:
from .resources.client_sessions import AsyncClientSessionsResourceWithStreamingResponse
Expand Down Expand Up @@ -2068,7 +2034,7 @@ def giphy(self) -> giphy.AsyncGiphyResourceWithStreamingResponse:

@cached_property
def link_tags(self) -> link_tags.AsyncLinkTagsResourceWithStreamingResponse:
"""APIs for managing tags on free trial links and tracking links"""
"""APIs for managing tags on free trial links, tracking links, and Smart Links"""
from .resources.link_tags import AsyncLinkTagsResourceWithStreamingResponse

return AsyncLinkTagsResourceWithStreamingResponse(self._client.link_tags)
Expand Down
2 changes: 1 addition & 1 deletion src/onlyfansapi/_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__ = "onlyfansapi"
__version__ = "0.1.2" # x-release-please-version
__version__ = "0.2.0" # x-release-please-version
14 changes: 0 additions & 14 deletions src/onlyfansapi/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,6 @@
AccountsResourceWithStreamingResponse,
AsyncAccountsResourceWithStreamingResponse,
)
from .messages import (
MessagesResource,
AsyncMessagesResource,
MessagesResourceWithRawResponse,
AsyncMessagesResourceWithRawResponse,
MessagesResourceWithStreamingResponse,
AsyncMessagesResourceWithStreamingResponse,
)
from .profiles import (
ProfilesResource,
AsyncProfilesResource,
Expand Down Expand Up @@ -388,12 +380,6 @@
"AsyncChatsResourceWithRawResponse",
"ChatsResourceWithStreamingResponse",
"AsyncChatsResourceWithStreamingResponse",
"MessagesResource",
"AsyncMessagesResource",
"MessagesResourceWithRawResponse",
"AsyncMessagesResourceWithRawResponse",
"MessagesResourceWithStreamingResponse",
"AsyncMessagesResourceWithStreamingResponse",
"ClientSessionsResource",
"AsyncClientSessionsResource",
"ClientSessionsResourceWithRawResponse",
Expand Down
4 changes: 2 additions & 2 deletions src/onlyfansapi/resources/authenticate.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def start(
force_connect: bool | Omit = omit,
name: str | Omit = omit,
password: str | Omit = omit,
proxy_country: Literal["us", "uk"] | Omit = omit,
proxy_country: Literal["us", "uk", "gb"] | Omit = omit,
user_agent: str | Omit = omit,
xbc: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -440,7 +440,7 @@ async def start(
force_connect: bool | Omit = omit,
name: str | Omit = omit,
password: str | Omit = omit,
proxy_country: Literal["us", "uk"] | Omit = omit,
proxy_country: Literal["us", "uk", "gb"] | Omit = omit,
user_agent: str | Omit = omit,
xbc: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down
8 changes: 4 additions & 4 deletions src/onlyfansapi/resources/chats/chats.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ def start_typing(
) -> ChatStartTypingResponse:
"""
Calling this endpoint will show the target fan a "Model is typing..." note in
the chat for ~4 seconds. If you want to continue showing the indicator call this
endpoint multiple times. Free - no credits charged.
the chat for ~4 seconds. Duplicate calls for the same account and chat are
coalesced during that window.

Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -811,8 +811,8 @@ async def start_typing(
) -> ChatStartTypingResponse:
"""
Calling this endpoint will show the target fan a "Model is typing..." note in
the chat for ~4 seconds. If you want to continue showing the indicator call this
endpoint multiple times. Free - no credits charged.
the chat for ~4 seconds. Duplicate calls for the same account and chat are
coalesced during that window.

Args:
extra_headers: Send extra headers
Expand Down
4 changes: 2 additions & 2 deletions src/onlyfansapi/resources/client_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def create(
*,
display_name: str,
client_reference_id: str | Omit = omit,
proxy_country: Optional[Literal["us", "uk"]] | Omit = omit,
proxy_country: Optional[Literal["us", "uk", "gb"]] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -117,7 +117,7 @@ async def create(
*,
display_name: str,
client_reference_id: str | Omit = omit,
proxy_country: Optional[Literal["us", "uk"]] | Omit = omit,
proxy_country: Optional[Literal["us", "uk", "gb"]] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down
22 changes: 12 additions & 10 deletions src/onlyfansapi/resources/data_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,12 @@ def create(
(optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional),
`minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum
photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount`
(optional, minimum subscribers), `minJoinDate` (optional, ISO 8601 date),
`minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601
date, profile added to DB after), `createdAtTo` (optional, ISO 8601 date,
profile added to DB before), `instagram` (optional), `twitter` (optional),
`tiktok` (optional), `maxResults` (optional, limit results).
(optional, minimum subscribers), `maxSubscribersCount` (optional, maximum
subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt`
(optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile
added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB
before), `instagram` (optional), `twitter` (optional), `tiktok` (optional),
`maxResults` (optional, limit results).

extra_headers: Send extra headers

Expand Down Expand Up @@ -466,11 +467,12 @@ async def create(
(optional, USD), `maxSubscribePrice` (optional, USD), `location` (optional),
`minPostsCount` (optional, minimum posts), `minPhotosCount` (optional, minimum
photos), `minVideosCount` (optional, minimum videos), `minSubscribersCount`
(optional, minimum subscribers), `minJoinDate` (optional, ISO 8601 date),
`minLastSeenAt` (optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601
date, profile added to DB after), `createdAtTo` (optional, ISO 8601 date,
profile added to DB before), `instagram` (optional), `twitter` (optional),
`tiktok` (optional), `maxResults` (optional, limit results).
(optional, minimum subscribers), `maxSubscribersCount` (optional, maximum
subscribers), `minJoinDate` (optional, ISO 8601 date), `minLastSeenAt`
(optional, ISO 8601 date), `createdAtFrom` (optional, ISO 8601 date, profile
added to DB after), `createdAtTo` (optional, ISO 8601 date, profile added to DB
before), `instagram` (optional), `twitter` (optional), `tiktok` (optional),
`maxResults` (optional, limit results).

extra_headers: Send extra headers

Expand Down
Loading
Loading