Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
7466589
feat(api): api update
stainless-app[bot] May 25, 2026
2894f2a
feat(api): api update
stainless-app[bot] May 25, 2026
b7e1534
codegen metadata
stainless-app[bot] May 25, 2026
ae39b45
codegen metadata
stainless-app[bot] May 25, 2026
99f4cae
codegen metadata
stainless-app[bot] May 25, 2026
ce15bea
codegen metadata
stainless-app[bot] May 25, 2026
4b05656
codegen metadata
stainless-app[bot] May 25, 2026
efe94c1
feat(api): api update
stainless-app[bot] May 25, 2026
ff87eb3
feat(api): api update
stainless-app[bot] May 25, 2026
1312108
feat(api): api update
stainless-app[bot] May 25, 2026
2ba0e5f
feat(api): api update
stainless-app[bot] May 25, 2026
4dc96ad
feat(api): api update
stainless-app[bot] May 26, 2026
3974622
feat(api): api update
stainless-app[bot] May 26, 2026
ad300ac
feat(api): api update
stainless-app[bot] May 26, 2026
83acb2e
feat(api): api update
stainless-app[bot] May 26, 2026
a514bd1
feat(api): api update
stainless-app[bot] May 27, 2026
21aaa90
feat(api): api update
stainless-app[bot] May 27, 2026
864ab2a
feat(api): api update
stainless-app[bot] May 27, 2026
c2bc00b
feat(api): api update
stainless-app[bot] May 27, 2026
5ffb97d
feat(api): api update
stainless-app[bot] May 27, 2026
ac2d398
feat(api): api update
stainless-app[bot] May 27, 2026
3d8f2c4
feat(api): api update
stainless-app[bot] May 28, 2026
3df5007
feat(api): api update
stainless-app[bot] May 29, 2026
4eec03f
feat(api): api update
stainless-app[bot] Jun 1, 2026
882ec77
feat(api): api update
stainless-app[bot] Jun 2, 2026
b5ac8cc
feat(api): api update
stainless-app[bot] Jun 2, 2026
1de2a95
feat(api): api update
stainless-app[bot] Jun 3, 2026
ebdc5d4
feat(api): api update
stainless-app[bot] Jun 4, 2026
4019fcb
feat(api): api update
stainless-app[bot] Jun 4, 2026
3dbb7ca
feat(api): api update
stainless-app[bot] Jun 4, 2026
4b821d9
feat(api): api update
stainless-app[bot] Jun 5, 2026
8b449c4
feat(api): api update
stainless-app[bot] Jun 5, 2026
8ebf680
feat(api): api update
stainless-app[bot] Jun 5, 2026
f4d514a
codegen metadata
stainless-app[bot] Jun 5, 2026
870271a
codegen metadata
stainless-app[bot] Jun 5, 2026
a79343d
feat(api): api update
stainless-app[bot] Jun 5, 2026
1f119f5
feat(api): api update
stainless-app[bot] Jun 5, 2026
0017f6f
feat(api): api update
stainless-app[bot] Jun 6, 2026
8d3c93c
feat(api): api update
stainless-app[bot] Jun 8, 2026
0d0c1dc
feat(api): api update
stainless-app[bot] Jun 9, 2026
3bdb33f
feat(api): api update
stainless-app[bot] Jun 9, 2026
710d78e
feat(api): api update
stainless-app[bot] Jun 9, 2026
bc7b763
feat(api): api update
stainless-app[bot] Jun 9, 2026
59cc52a
feat(api): api update
stainless-app[bot] Jun 11, 2026
9ca88c4
feat(api): api update
stainless-app[bot] Jun 11, 2026
66e39a4
feat(api): api update
stainless-app[bot] Jun 11, 2026
aee1709
feat(api): api update
stainless-app[bot] Jun 11, 2026
f9977f2
feat(api): api update
stainless-app[bot] Jun 12, 2026
a48a7e2
feat(api): api update
stainless-app[bot] Jun 12, 2026
057180b
feat(api): api update
stainless-app[bot] Jun 12, 2026
01c6418
feat(api): api update
stainless-app[bot] Jun 12, 2026
ca21354
feat(api): api update
stainless-app[bot] Jun 12, 2026
f0b9fb8
feat(api): api update
stainless-app[bot] Jun 12, 2026
a43dc12
feat(api): api update
stainless-app[bot] Jun 12, 2026
4a111d4
feat(api): api update
stainless-app[bot] Jun 14, 2026
5a77418
feat(api): api update
stainless-app[bot] Jun 14, 2026
b25bee6
feat(api): api update
stainless-app[bot] Jun 14, 2026
980ff36
feat(api): api update
stainless-app[bot] Jun 14, 2026
891a201
feat(api): api update
stainless-app[bot] Jun 14, 2026
14b9f56
feat(api): api update
stainless-app[bot] Jun 15, 2026
07e7142
feat(api): api update
stainless-app[bot] Jun 15, 2026
c4048c4
feat(api): api update
stainless-app[bot] Jun 15, 2026
93b27d8
feat(api): api update
stainless-app[bot] Jun 15, 2026
0073ccc
feat(api): api update
stainless-app[bot] Jun 15, 2026
e4dd2dd
feat(api): api update
stainless-app[bot] Jun 15, 2026
2db03f5
feat(api): api update
stainless-app[bot] Jun 15, 2026
41b02ef
feat(api): api update
stainless-app[bot] Jun 16, 2026
212f078
feat(api): api update
stainless-app[bot] Jun 16, 2026
a2eea78
feat(api): api update
stainless-app[bot] Jun 16, 2026
5f32ddc
feat(api): api update
stainless-app[bot] Jun 16, 2026
0e64ad9
feat(api): api update
stainless-app[bot] Jun 16, 2026
b1d6f19
feat(api): api update
stainless-app[bot] Jun 16, 2026
4f2d93e
fix(client): send content-type header for requests with an omitted op…
stainless-app[bot] Jun 17, 2026
e8f55e4
feat(api): api update
stainless-app[bot] Jun 17, 2026
e928819
feat(api): api update
stainless-app[bot] Jun 17, 2026
8bed78d
feat(api): api update
stainless-app[bot] Jun 17, 2026
85c1517
feat(api): api update
stainless-app[bot] Jun 18, 2026
d5a171e
feat(api): api update
stainless-app[bot] Jun 18, 2026
f3b60cf
feat(api): api update
stainless-app[bot] Jun 18, 2026
9aae0b0
feat(api): api update
stainless-app[bot] Jun 18, 2026
dc7480e
feat(api): api update
stainless-app[bot] Jun 19, 2026
37abea6
feat(api): api update
stainless-app[bot] Jun 19, 2026
c85defa
feat(api): api update
stainless-app[bot] Jun 19, 2026
203522d
feat(api): api update
stainless-app[bot] Jun 19, 2026
9897ca1
feat(api): api update
stainless-app[bot] Jun 19, 2026
880fdc1
feat(api): api update
stainless-app[bot] Jun 19, 2026
bf50100
feat(api): api update
stainless-app[bot] Jun 20, 2026
7e379ae
feat(api): api update
stainless-app[bot] Jun 20, 2026
16bb725
feat(api): api update
stainless-app[bot] Jun 21, 2026
8e3cd6f
feat(api): api update
stainless-app[bot] Jun 21, 2026
20e3d06
feat(api): api update
stainless-app[bot] Jun 22, 2026
f7ee288
feat(api): api update
stainless-app[bot] Jun 22, 2026
38a5647
feat(api): api update
stainless-app[bot] Jun 22, 2026
ea37ee1
feat(api): api update
stainless-app[bot] Jun 22, 2026
d40bc24
feat(api): api update
stainless-app[bot] Jun 22, 2026
e99b7a5
feat(api): api update
stainless-app[bot] Jun 23, 2026
c2716dd
feat(api): api update
stainless-app[bot] Jun 23, 2026
4977171
feat(api): api update
stainless-app[bot] Jun 23, 2026
b7c1073
feat(api): api update
stainless-app[bot] Jun 23, 2026
c4bd5b1
feat(api): api update
stainless-app[bot] Jun 23, 2026
37d10c0
feat(api): api update
stainless-app[bot] Jun 23, 2026
8829b3d
feat(api): api update
stainless-app[bot] Jun 23, 2026
c55e299
feat(api): api update
stainless-app[bot] Jun 24, 2026
58d1f67
feat(api): api update
stainless-app[bot] Jun 25, 2026
316d824
feat(api): api update
stainless-app[bot] Jun 25, 2026
3b4c759
feat(api): api update
stainless-app[bot] Jun 25, 2026
86f8ba8
feat(api): api update
stainless-app[bot] Jun 25, 2026
6b4c186
feat(api): api update
stainless-app[bot] Jun 25, 2026
ee2c0d7
feat(api): api update
stainless-app[bot] Jun 26, 2026
f9a5724
feat(api): api update
stainless-app[bot] Jun 26, 2026
a235e0f
feat(api): api update
stainless-app[bot] Jun 26, 2026
8eb5a2c
feat(api): api update
stainless-app[bot] Jun 27, 2026
778f909
feat(api): api update
stainless-app[bot] Jun 27, 2026
95f1dfb
feat(api): api update
stainless-app[bot] Jun 28, 2026
c4e478e
feat(api): api update
stainless-app[bot] Jun 28, 2026
a613f4c
feat(api): api update
stainless-app[bot] Jun 28, 2026
98972c7
feat(api): api update
stainless-app[bot] Jun 28, 2026
abf8dba
feat(api): api update
stainless-app[bot] Jun 29, 2026
2410b93
feat(api): api update
stainless-app[bot] Jun 29, 2026
8674431
feat(api): api update
stainless-app[bot] Jun 29, 2026
955f228
feat(api): api update
stainless-app[bot] Jun 29, 2026
d9d3274
feat(api): api update
stainless-app[bot] Jun 29, 2026
2644339
feat(api): api update
stainless-app[bot] Jun 29, 2026
23a3de0
feat(api): api update
stainless-app[bot] Jun 30, 2026
3238886
feat(api): api update
stainless-app[bot] Jun 30, 2026
56e0cc3
feat(api): api update
stainless-app[bot] Jun 30, 2026
2afbb35
feat(api): api update
stainless-app[bot] Jun 30, 2026
8b69c42
feat(api): api update
stainless-app[bot] Jun 30, 2026
3038a94
feat(api): api update
stainless-app[bot] Jun 30, 2026
e4b6686
feat(api): api update
stainless-app[bot] Jun 30, 2026
66e3ff6
feat(api): api update
stainless-app[bot] Jun 30, 2026
148c5be
feat(api): api update
stainless-app[bot] Jul 1, 2026
97c4d97
feat(api): api update
stainless-app[bot] Jul 2, 2026
f64165c
feat(api): api update
stainless-app[bot] Jul 2, 2026
97fa1f7
feat(api): api update
stainless-app[bot] Jul 2, 2026
4760ed2
feat(api): api update
stainless-app[bot] Jul 2, 2026
5ddb40a
feat(api): api update
stainless-app[bot] Jul 3, 2026
9fe6eae
feat(api): api update
stainless-app[bot] Jul 3, 2026
6cfc271
feat(api): api update
stainless-app[bot] Jul 3, 2026
78a6086
feat(api): api update
stainless-app[bot] Jul 3, 2026
a933eb6
feat(api): api update
stainless-app[bot] Jul 3, 2026
2e87746
feat(api): api update
stainless-app[bot] Jul 3, 2026
9eb0b72
feat(api): api update
stainless-app[bot] Jul 4, 2026
f219bef
feat(api): api update
stainless-app[bot] Jul 4, 2026
057e021
feat(api): api update
stainless-app[bot] Jul 4, 2026
1860995
feat(api): api update
stainless-app[bot] Jul 4, 2026
de18ad7
feat(api): api update
stainless-app[bot] Jul 4, 2026
b6c0885
feat(api): api update
stainless-app[bot] Jul 5, 2026
838cd76
feat(api): api update
stainless-app[bot] Jul 5, 2026
fbf7e77
feat(api): api update
stainless-app[bot] Jul 5, 2026
683e0b1
feat(api): api update
stainless-app[bot] Jul 5, 2026
ce1a135
feat(api): api update
stainless-app[bot] Jul 5, 2026
f69e7eb
feat(api): api update
stainless-app[bot] Jul 5, 2026
ca3fa7d
feat(api): api update
stainless-app[bot] Jul 6, 2026
c667de1
feat(api): api update
stainless-app[bot] Jul 6, 2026
ccab2a9
feat(api): api update
stainless-app[bot] Jul 6, 2026
6110f07
feat(api): api update
stainless-app[bot] Jul 7, 2026
09a7095
feat(api): api update
stainless-app[bot] Jul 7, 2026
1c8ed61
feat(api): api update
stainless-app[bot] Jul 7, 2026
0729449
feat(api): api update
stainless-app[bot] Jul 9, 2026
1a1c5d2
feat(api): api update
stainless-app[bot] Jul 10, 2026
3547c2a
fix(ci): bump @arethetypeswrong/cli to ^0.18.0 and run CI workflows o…
stainless-app[bot] Jul 11, 2026
c971032
release: 0.3.0
stainless-app[bot] Jul 11, 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 @@ -26,7 +26,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '20'
node-version: '24'

- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '20'
node-version: '24'

- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '20'
node-version: '24'

- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: '20'
node-version: '24'

- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
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.2.0"
".": "0.3.0"
}
8 changes: 4 additions & 4 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-b9b67bf32f2b519e3230760d49e20c30e66107a6991f1a1f1a108f6c578c2fde.yml
openapi_spec_hash: da475361c28b843ddd1b45bbea333762
config_hash: a522aab696c4535f715ae59ddfe8222f
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
166 changes: 166 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

11 changes: 1 addition & 10 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,6 @@ Methods:

# Messages

Types:

- <code><a href="./src/resources/messages.ts">MessageAttachTagsResponse</a></code>

Methods:

- <code title="post /api/{account}/messages/{message_id}/attach-tags">client.messages.<a href="./src/resources/messages.ts">attachTags</a>(messageID, { ...params }) -> MessageAttachTagsResponse</code>

# ClientSessions

Types:
Expand Down Expand Up @@ -431,13 +423,12 @@ Methods:

Types:

- <code><a href="./src/resources/media/media.ts">MediaDownloadResponse</a></code>
- <code><a href="./src/resources/media/media.ts">MediaScrapeResponse</a></code>
- <code><a href="./src/resources/media/media.ts">MediaUploadResponse</a></code>

Methods:

- <code title="get /api/{account}/media/download/{cdnUrl}">client.media.<a href="./src/resources/media/media.ts">download</a>(cdnURL, { ...params }) -> string</code>
- <code title="get /api/{account}/media/download/{cdnUrl}">client.media.<a href="./src/resources/media/media.ts">download</a>(cdnURL, { ...params }) -> void</code>
- <code title="post /api/{account}/media/scrape">client.media.<a href="./src/resources/media/media.ts">scrape</a>(account, { ...params }) -> MediaScrapeResponse</code>
- <code title="post /api/{account}/media/upload">client.media.<a href="./src/resources/media/media.ts">upload</a>(account, { ...params }) -> MediaUploadResponse</code>

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onlyfansapi/onlyfans-sdk",
"version": "0.2.0",
"version": "0.3.0",
"description": "The official TypeScript library for the Only Fans API API",
"author": "Only Fans API <hello@onlyfansapi.com>",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -28,7 +28,7 @@
},
"dependencies": {},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.0",
"@arethetypeswrong/cli": "^0.18.0",
"@swc/core": "^1.3.102",
"@swc/jest": "^0.2.29",
"@types/jest": "^29.4.0",
Expand Down
76 changes: 43 additions & 33 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 12 additions & 10 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ import {
MeGetTopPercentageResponse,
MeRetrieveResponse,
} from './resources/me';
import { MessageAttachTagsParams, MessageAttachTagsResponse, Messages } from './resources/messages';
import { Messages } from './resources/messages';
import {
PayoutListRequestsParams,
PayoutListRequestsResponse,
Expand Down Expand Up @@ -256,7 +256,6 @@ import {
import {
Media,
MediaDownloadParams,
MediaDownloadResponse,
MediaScrapeParams,
MediaScrapeResponse,
MediaUploadParams,
Expand Down Expand Up @@ -1045,11 +1044,19 @@ export class OnlyFansAPI {
return () => controller.abort();
}

private buildBody({ options: { body, headers: rawHeaders } }: { options: FinalRequestOptions }): {
private buildBody({ options }: { options: FinalRequestOptions }): {
bodyHeaders: HeadersLike;
body: BodyInit | undefined;
} {
const { body, headers: rawHeaders } = options;
if (!body) {
// A resource method always passes a `body` key when its operation defines a
// request body, even if the caller omitted an optional body param. Keep the
// content-type for those, and only elide it for operations with no body at
// all (e.g. GET/DELETE).
if (body == null && 'body' in options) {
return this.#encoder({ body, headers: buildHeaders([rawHeaders]) });
}
return { bodyHeaders: undefined, body: undefined };
}
const headers = buildHeaders([rawHeaders]);
Expand Down Expand Up @@ -1147,7 +1154,7 @@ export class OnlyFansAPI {
trialLinks: API.TrialLinks = new API.TrialLinks(this);
giphy: API.Giphy = new API.Giphy(this);
/**
* APIs for managing tags on free trial links and tracking links
* APIs for managing tags on free trial links, tracking links, and Smart Links
*/
linkTags: API.LinkTags = new API.LinkTags(this);
massMessaging: API.MassMessaging = new API.MassMessaging(this);
Expand Down Expand Up @@ -1314,11 +1321,7 @@ export declare namespace OnlyFansAPI {
type ChatUnmuteParams as ChatUnmuteParams,
};

export {
Messages as Messages,
type MessageAttachTagsResponse as MessageAttachTagsResponse,
type MessageAttachTagsParams as MessageAttachTagsParams,
};
export { Messages as Messages };

export {
ClientSessions as ClientSessions,
Expand Down Expand Up @@ -1430,7 +1433,6 @@ export declare namespace OnlyFansAPI {

export {
Media as Media,
type MediaDownloadResponse as MediaDownloadResponse,
type MediaScrapeResponse as MediaScrapeResponse,
type MediaUploadResponse as MediaUploadResponse,
type MediaDownloadParams as MediaDownloadParams,
Expand Down
4 changes: 3 additions & 1 deletion src/resources/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export class Accounts extends APIResource {
*
* @example
* ```ts
* const response = await client.accounts.disconnect('nobis');
* const response = await client.accounts.disconnect(
* 'ratione',
* );
* ```
*/
disconnect(id: string, options?: RequestOptions): APIPromise<AccountDisconnectResponse | null> {
Expand Down
Loading
Loading