Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
302 commits
Select commit Hold shift + click to select a range
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
ff35699
feat(api): api update
stainless-app[bot] Jul 12, 2026
5f83d8e
feat(api): api update
stainless-app[bot] Jul 13, 2026
4c4fbee
feat(api): api update
stainless-app[bot] Jul 13, 2026
4edd93f
feat(api): api update
stainless-app[bot] Jul 13, 2026
71db779
feat(api): api update
stainless-app[bot] Jul 13, 2026
02527aa
feat(api): api update
stainless-app[bot] Jul 13, 2026
bbcf21d
feat(api): api update
stainless-app[bot] Jul 13, 2026
2465884
feat(api): api update
stainless-app[bot] Jul 13, 2026
0b55736
fix(internal): resolve build failures
stainless-app[bot] Jul 14, 2026
4c4cfa1
feat(api): api update
stainless-app[bot] Jul 14, 2026
b68745a
feat(api): api update
stainless-app[bot] Jul 15, 2026
4f519c6
feat(api): api update
stainless-app[bot] Jul 15, 2026
6ce0c66
feat(api): api update
stainless-app[bot] Jul 16, 2026
b30430b
feat(api): api update
stainless-app[bot] Jul 16, 2026
3b05be2
feat(api): api update
stainless-app[bot] Jul 16, 2026
80626d6
feat(api): api update
stainless-app[bot] Jul 16, 2026
de02374
feat(api): api update
stainless-app[bot] Jul 16, 2026
7a37525
feat(api): api update
stainless-app[bot] Jul 16, 2026
b67d110
feat(api): api update
stainless-app[bot] Jul 16, 2026
a2e9fba
feat(api): api update
stainless-app[bot] Jul 17, 2026
cb6a8a3
feat(api): api update
stainless-app[bot] Jul 17, 2026
2028874
feat(api): api update
stainless-app[bot] Jul 17, 2026
727b77d
feat(api): api update
stainless-app[bot] Jul 17, 2026
f3bde0a
feat(stlc): configurable CI runner and private-production-repo suppor…
stainless-app[bot] Jul 18, 2026
977d8f3
feat(api): api update
stainless-app[bot] Jul 19, 2026
1c39ee2
feat(api): api update
stainless-app[bot] Jul 19, 2026
1f4ac02
feat(api): api update
stainless-app[bot] Jul 20, 2026
f0d6930
feat(api): api update
stainless-app[bot] Jul 20, 2026
3697190
feat(api): api update
stainless-app[bot] Jul 20, 2026
8bd5d84
feat(api): api update
stainless-app[bot] Jul 20, 2026
39faabe
feat(api): api update
stainless-app[bot] Jul 20, 2026
3dbd253
feat(api): api update
stainless-app[bot] Jul 20, 2026
a3f3602
feat(api): api update
stainless-app[bot] Jul 21, 2026
c4b4cbc
feat(api): api update
stainless-app[bot] Jul 21, 2026
59e47be
feat(api): api update
stainless-app[bot] Jul 21, 2026
2f12252
feat(api): api update
stainless-app[bot] Jul 21, 2026
8017401
feat(api): api update
stainless-app[bot] Jul 21, 2026
98d06fa
feat(api): api update
stainless-app[bot] Jul 22, 2026
81f42ff
feat(api): api update
stainless-app[bot] Jul 22, 2026
8137610
feat(api): api update
stainless-app[bot] Jul 22, 2026
4ecc6fe
feat(api): api update
stainless-app[bot] Jul 23, 2026
91252ee
feat(api): api update
stainless-app[bot] Jul 23, 2026
bc13cfa
feat(api): api update
stainless-app[bot] Jul 23, 2026
ee28e92
feat(api): api update
stainless-app[bot] Jul 23, 2026
3d4e82a
feat(api): api update
stainless-app[bot] Jul 23, 2026
9b58972
feat(api): api update
stainless-app[bot] Jul 24, 2026
60d3eac
feat(api): api update
stainless-app[bot] Jul 24, 2026
5a1cd93
feat(api): api update
stainless-app[bot] Jul 27, 2026
5fea6cc
feat(api): api update
stainless-app[bot] Jul 27, 2026
3d3c32a
feat(api): api update
stainless-app[bot] Jul 28, 2026
58a4812
feat(api): api update
stainless-app[bot] Jul 31, 2026
9193673
feat(api): api update
stainless-app[bot] Aug 1, 2026
ed4c419
feat(api): api update
stainless-app[bot] Aug 1, 2026
95218c9
feat(api): api update
stainless-app[bot] Aug 2, 2026
32c6f88
feat(api): api update
stainless-app[bot] Aug 2, 2026
5827381
feat(api): api update
stainless-app[bot] Aug 3, 2026
fa0b6cb
feat(api): api update
stainless-app[bot] Aug 3, 2026
023b1fc
feat(api): api update
stainless-app[bot] Aug 4, 2026
e6ea88d
feat(api): api update
stainless-app[bot] Aug 4, 2026
9889722
feat(api): api update
stainless-app[bot] Aug 5, 2026
727a00c
feat(api): api update
stainless-app[bot] Aug 6, 2026
ec9c9b7
feat(api): api update
stainless-app[bot] Aug 6, 2026
cfcce74
feat(api): api update
stainless-app[bot] Aug 7, 2026
6109204
feat(api): api update
stainless-app[bot] Aug 8, 2026
3ed6a88
feat(api): api update
stainless-app[bot] Aug 10, 2026
28864ee
feat(api): api update
stainless-app[bot] Aug 10, 2026
5f775d7
feat(api): api update
stainless-app[bot] Aug 11, 2026
1a8acd1
feat(api): api update
stainless-app[bot] Aug 11, 2026
a0e30d7
feat(api): api update
stainless-app[bot] Aug 11, 2026
db2c99c
feat(api): api update
stainless-app[bot] Aug 12, 2026
04e8626
feat(api): api update
stainless-app[bot] Aug 12, 2026
2ad0d5f
feat(api): api update
stainless-app[bot] Aug 13, 2026
4bbfdd1
feat(api): api update
stainless-app[bot] Aug 13, 2026
a2ac1bd
feat(api): api update
stainless-app[bot] Aug 15, 2026
6df6e2a
feat(api): api update
stainless-app[bot] Aug 15, 2026
e222ff8
feat(api): api update
stainless-app[bot] Aug 15, 2026
b073e8f
feat(api): api update
stainless-app[bot] Aug 16, 2026
96bef37
feat(api): api update
stainless-app[bot] Aug 17, 2026
8d7342b
feat(api): api update
stainless-app[bot] Aug 17, 2026
ed392bf
feat(api): api update
stainless-app[bot] Aug 18, 2026
5eaf7b8
feat(api): api update
stainless-app[bot] Aug 18, 2026
930eecf
feat(api): api update
stainless-app[bot] Aug 19, 2026
d41110b
feat(api): api update
stainless-app[bot] Aug 20, 2026
c7bed45
feat(api): api update
stainless-app[bot] Aug 20, 2026
0cc4697
feat(api): api update
stainless-app[bot] Aug 21, 2026
d0e5322
feat(api): api update
stainless-app[bot] Aug 23, 2026
89c4de4
feat(api): api update
stainless-app[bot] Aug 24, 2026
a8ad518
feat(api): api update
stainless-app[bot] Aug 24, 2026
253811c
feat(api): api update
stainless-app[bot] Aug 25, 2026
78fc5ee
feat(api): api update
stainless-app[bot] Aug 26, 2026
b8ee283
feat(api): api update
stainless-app[bot] Aug 26, 2026
f0ae816
feat(api): api update
stainless-app[bot] Aug 26, 2026
6ce56b0
feat(api): api update
stainless-app[bot] Aug 26, 2026
7473071
feat(api): api update
stainless-app[bot] Aug 26, 2026
2d884ab
feat(api): api update
stainless-app[bot] Aug 27, 2026
cc85335
feat(api): api update
stainless-app[bot] Aug 28, 2026
3204d4b
feat(api): api update
stainless-app[bot] Aug 28, 2026
18be114
feat(api): api update
stainless-app[bot] Aug 28, 2026
b2c26de
feat(api): api update
stainless-app[bot] Aug 28, 2026
515b232
feat(api): api update
stainless-app[bot] Aug 31, 2026
39a1147
feat(api): api update
stainless-app[bot] Aug 31, 2026
f9630fd
feat(api): api update
stainless-app[bot] Aug 31, 2026
a2ffb97
feat(api): api update
stainless-app[bot] Aug 31, 2026
125bb45
feat(api): api update
stainless-app[bot] Aug 31, 2026
e95f70f
feat(api): api update
stainless-app[bot] Sep 1, 2026
460e2fb
feat(api): api update
stainless-app[bot] Sep 1, 2026
1990d89
feat(api): api update
stainless-app[bot] Sep 1, 2026
98ceba8
feat(api): api update
stainless-app[bot] Sep 1, 2026
ab0c419
feat(api): api update
stainless-app[bot] Sep 1, 2026
69f7c36
feat(api): api update
stainless-app[bot] Sep 1, 2026
4a6dce3
feat(api): api update
stainless-app[bot] Sep 2, 2026
6629a3c
feat(api): api update
stainless-app[bot] Sep 2, 2026
1f90f9c
feat(api): api update
stainless-app[bot] Sep 2, 2026
cce34dd
feat(api): api update
stainless-app[bot] Sep 2, 2026
dcdfa8d
feat(api): api update
stainless-app[bot] Sep 2, 2026
9f09e65
feat(api): api update
stainless-app[bot] Sep 2, 2026
db6076b
feat(api): api update
stainless-app[bot] Sep 2, 2026
053624e
feat(api): api update
stainless-app[bot] Sep 2, 2026
de595e4
feat(api): api update
stainless-app[bot] Sep 2, 2026
096dd04
feat(api): api update
stainless-app[bot] Sep 2, 2026
8540ba5
feat(api): api update
stainless-app[bot] Sep 2, 2026
c6bfe83
feat(api): api update
stainless-app[bot] Sep 3, 2026
a104013
feat(api): api update
stainless-app[bot] Sep 3, 2026
b652874
feat(api): api update
stainless-app[bot] Sep 3, 2026
14da198
feat(api): api update
stainless-app[bot] Sep 3, 2026
927bb64
feat(api): api update
stainless-app[bot] Sep 3, 2026
bdc7b36
feat(api): api update
stainless-app[bot] Sep 4, 2026
6500b12
feat(api): api update
stainless-app[bot] Sep 4, 2026
2a274df
feat(api): api update
stainless-app[bot] Sep 4, 2026
e410f57
feat(api): api update
stainless-app[bot] Sep 4, 2026
990a9af
feat(api): api update
stainless-app[bot] Sep 4, 2026
5a2c79e
feat(api): api update
stainless-app[bot] Sep 4, 2026
16b4a6f
feat(api): api update
stainless-app[bot] Sep 4, 2026
b4e8900
feat(api): api update
stainless-app[bot] Sep 4, 2026
cff29c6
feat(api): api update
stainless-app[bot] Sep 4, 2026
6bb9458
feat(api): api update
stainless-app[bot] Sep 5, 2026
c88184a
feat(api): api update
stainless-app[bot] Sep 5, 2026
2c1d942
feat(api): api update
stainless-app[bot] Sep 5, 2026
85deda0
feat(api): api update
stainless-app[bot] Sep 6, 2026
e23f189
feat(api): api update
stainless-app[bot] Sep 6, 2026
41801f9
feat(api): api update
stainless-app[bot] Sep 6, 2026
0838928
feat(api): api update
stainless-app[bot] Sep 6, 2026
cff298f
feat(api): api update
stainless-app[bot] Sep 6, 2026
73d91c6
feat(api): api update
stainless-app[bot] Sep 7, 2026
b784aa6
feat(api): api update
stainless-app[bot] Sep 7, 2026
1713018
feat(api): api update
stainless-app[bot] Sep 8, 2026
854cddd
feat(api): api update
stainless-app[bot] Sep 8, 2026
d02a32e
release: 0.2.0
stainless-app[bot] Sep 8, 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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand All @@ -41,7 +41,7 @@ jobs:
permissions:
contents: read
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
test:
timeout-minutes: 10
name: test
runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
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 @@
{
".": "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-136aa659b2d54ff3c25f6b35164a84db20dba3a7b513bf2c72544bbdb13ce6c1.yml
openapi_spec_hash: 94a889e758a4baf8e3b699a6cbe17d01
config_hash: 397c91e15c0024f8b5bbed9b82c2348c
309 changes: 309 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
2 changes: 1 addition & 1 deletion scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ else
fi

echo "==> Running pyright"
uv run pyright
uv run pyright -p .

echo "==> Running mypy"
uv run mypy .
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
20 changes: 12 additions & 8 deletions src/onlyfansapi/resources/chats/chats.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ def list(

query: Search query to filter chats

skip_users: Whether to skip user details in response (all or none). Default = all
skip_users: Whether to skip user details in the response (`all` or `none`). Defaults to
`all`.

extra_headers: Send extra headers

Expand Down Expand Up @@ -239,7 +240,8 @@ def list_media(

offset: Number of medias to skip for pagination

skip_users: Whether to skip user details in response (all or none). Default = all
skip_users: Whether to skip user details in the response (`all` or `none`). Defaults to
`all`.

type: Filter by specific media types. Keep empty to return all.

Expand Down Expand Up @@ -399,8 +401,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 @@ -519,7 +521,8 @@ async def list(

query: Search query to filter chats

skip_users: Whether to skip user details in response (all or none). Default = all
skip_users: Whether to skip user details in the response (`all` or `none`). Defaults to
`all`.

extra_headers: Send extra headers

Expand Down Expand Up @@ -651,7 +654,8 @@ async def list_media(

offset: Number of medias to skip for pagination

skip_users: Whether to skip user details in response (all or none). Default = all
skip_users: Whether to skip user details in the response (`all` or `none`). Defaults to
`all`.

type: Filter by specific media types. Keep empty to return all.

Expand Down Expand Up @@ -811,8 +815,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
Loading
Loading