Skip to content

Commit f4cad52

Browse files
Merge pull request #3 from onlyfansapi/release-please--branches--main--changes--next--components--onlyfansapi
release: 0.1.0
2 parents ec094c6 + 9770212 commit f4cad52

236 files changed

Lines changed: 38250 additions & 9712 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"features": {
77
"ghcr.io/devcontainers/features/node:1": {}
88
},
9-
"postCreateCommand": "yarn install",
9+
"postCreateCommand": "pnpm install",
1010
"customizations": {
1111
"vscode": {
1212
"extensions": ["esbenp.prettier-vscode"]

.github/workflows/ci.yml

Lines changed: 38 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: CI
22
on:
33
push:
4-
branches-ignore:
5-
- 'generated'
6-
- 'codegen/**'
7-
- 'integrated/**'
8-
- 'stl-preview-head/**'
9-
- 'stl-preview-base/**'
4+
branches:
5+
- '**'
6+
- '!integrated/**'
7+
- '!stl-preview-head/**'
8+
- '!stl-preview-base/**'
9+
- '!generated'
10+
- '!codegen/**'
11+
- 'codegen/stl/**'
1012
pull_request:
1113
branches-ignore:
1214
- 'stl-preview-head/**'
@@ -17,15 +19,20 @@ jobs:
1719
timeout-minutes: 10
1820
name: lint
1921
runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
22+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2123
steps:
22-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2325

2426
- name: Set up Node
25-
uses: actions/setup-node@v4
27+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2628
with:
2729
node-version: '20'
2830

31+
- name: Set up pnpm
32+
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
33+
with:
34+
version: '10.30.1'
35+
2936
- name: Bootstrap
3037
run: ./scripts/bootstrap
3138

@@ -36,33 +43,42 @@ jobs:
3643
timeout-minutes: 5
3744
name: build
3845
runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
39-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
46+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
4047
permissions:
4148
contents: read
4249
id-token: write
4350
steps:
44-
- uses: actions/checkout@v4
51+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4552

4653
- name: Set up Node
47-
uses: actions/setup-node@v4
54+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
4855
with:
4956
node-version: '20'
5057

58+
- name: Set up pnpm
59+
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
60+
with:
61+
version: '10.30.1'
62+
5163
- name: Bootstrap
5264
run: ./scripts/bootstrap
5365

5466
- name: Check build
5567
run: ./scripts/build
5668

5769
- name: Get GitHub OIDC Token
58-
if: github.repository == 'stainless-sdks/onlyfansapi-typescript'
70+
if: |-
71+
github.repository == 'stainless-sdks/onlyfansapi-typescript' &&
72+
!startsWith(github.ref, 'refs/heads/stl/')
5973
id: github-oidc
60-
uses: actions/github-script@v6
74+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
6175
with:
6276
script: core.setOutput('github_token', await core.getIDToken());
6377

6478
- name: Upload tarball
65-
if: github.repository == 'stainless-sdks/onlyfansapi-typescript'
79+
if: |-
80+
github.repository == 'stainless-sdks/onlyfansapi-typescript' &&
81+
!startsWith(github.ref, 'refs/heads/stl/')
6682
env:
6783
URL: https://pkg.stainless.com/s
6884
AUTH: ${{ steps.github-oidc.outputs.github_token }}
@@ -74,13 +90,18 @@ jobs:
7490
runs-on: ${{ github.repository == 'stainless-sdks/onlyfansapi-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
7591
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
7692
steps:
77-
- uses: actions/checkout@v4
93+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7894

7995
- name: Set up Node
80-
uses: actions/setup-node@v4
96+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
8197
with:
8298
node-version: '20'
8399

100+
- name: Set up pnpm
101+
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
102+
with:
103+
version: '10.30.1'
104+
84105
- name: Bootstrap
85106
run: ./scripts/bootstrap
86107

.github/workflows/publish-npm.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow is triggered when a GitHub release is created.
2+
# It can also be run manually to re-publish to NPM in case it failed for some reason.
3+
# You can run this workflow by navigating to https://www.github.com/onlyfansapi/onlyfansapi-typescript-sdk/actions/workflows/publish-npm.yml
4+
name: Publish NPM
5+
on:
6+
workflow_dispatch:
7+
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
publish:
13+
name: publish
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
19+
- name: Set up Node
20+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
21+
with:
22+
node-version: '20'
23+
24+
- name: Set up pnpm
25+
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
26+
27+
- name: Install dependencies
28+
run: |
29+
pnpm install
30+
31+
- name: Publish to NPM
32+
run: |
33+
bash ./bin/publish-npm
34+
env:
35+
NPM_TOKEN: ${{ secrets.ONLY_FANS_API_NPM_TOKEN || secrets.NPM_TOKEN }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release Doctor
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
release_doctor:
10+
name: release doctor
11+
runs-on: ubuntu-latest
12+
if: github.repository == 'onlyfansapi/onlyfansapi-typescript-sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
13+
14+
steps:
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
16+
17+
- name: Check release environment
18+
run: |
19+
bash ./bin/check-release-environment
20+
env:
21+
NPM_TOKEN: ${{ secrets.ONLY_FANS_API_NPM_TOKEN || secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.prism.log
2+
.stdy.log
23
node_modules
34
yarn-error.log
45
codegen.log
@@ -7,4 +8,5 @@ dist
78
dist-deno
89
/*.tgz
910
.idea/
11+
.eslintcache
1012

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.0"
3+
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 120
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi%2Fonlyfansapi-03f828c1cf0d698c34cc9df440652b17e1c7d437456b43ebf9a88977c3353a17.yml
3-
openapi_spec_hash: 974a8d10cfdb25411394e21b33bf24a8
4-
config_hash: d64ec65447528e42f7b3a11a0a697c44
1+
configured_endpoints: 266
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-cc42862618de8e0abc6b83208c91ad3c3cc549e1442a086220a6dab57972914c.yml
3+
openapi_spec_hash: df45bde0a256fd87ddf78b3775a0e050
4+
config_hash: 32ff6fd848b8715672ba1a202af08917

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Changelog
2+
3+
## 0.1.0 (2026-05-24)
4+
5+
Full Changelog: [v0.0.1...v0.1.0](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/compare/v0.0.1...v0.1.0)
6+
7+
### Features
8+
9+
* **api:** api update ([ab0d694](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ab0d694afae86638cde0f214cd2cb5f47856d5fc))
10+
* **api:** api update ([f8a7afd](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f8a7afd256806820e233e60a7894be4bdbb89ccc))
11+
* **api:** manual updates ([c16dbcf](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c16dbcf1b4b4d98bfeae2268c716e79ea30f9a90))
12+
* **api:** manual updates ([a8450d5](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a8450d53b9a3ce40fdcdc7115ca498a39a877236))
13+
* **api:** update npm package name ([e745af3](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/e745af3fb0724e24ae0bc6e68d1b50575cf9c88b))
14+
15+
16+
### Performance Improvements
17+
18+
* faster formatting ([3117745](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/311774522a985121f9e397a698b34f216aab4512))
19+
20+
21+
### Chores
22+
23+
* configure new SDK language ([776453f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/776453fcb11bf422ce72e1c63cb01dc82eda0bd2))
24+
* **internal:** codegen related update ([ee4fec3](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ee4fec36024c123531218c3d47bed4270499f8a6))
25+
* **internal:** fix incremental formatting in some cases ([655eb1b](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/655eb1b2e9d21a31cd180975c640e6d3e10ea7f4))
26+
* **internal:** ignore .eslintcache ([9ed730f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/9ed730fc0f2a21a59db8ded51ed098d0a68b1d3d))
27+
* **internal:** remove .eslintcache ([9f3a301](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/9f3a301a2f6170368bfc3ca77ff49ac9f70d0ccc))
28+
* **internal:** remove deprecated `compilerOptions.baseUrl` from tsconfig.json ([8a97508](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8a9750853f75069c95085b5e3fc7fae9676f78a8))
29+
* **internal:** use npm pack for build uploads ([7542ea1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/7542ea13018e82049edbedb40a54900284e1202a))
30+
* **jsdoc:** fix [@link](https://github.com/link) annotations to refer only to parts of the package‘s public interface ([6106f8a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/6106f8ac50a22193c005a878cf1d88cafb04a233))
31+
* update SDK settings ([c8989a3](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c8989a3a47cd40bac56a50f24453139a3433f138))
32+
* update SDK settings ([fc3e9b3](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/fc3e9b393bc4753d14fee63434bc821bc8b443ea))
33+
* update SDK settings ([47e294f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/47e294f6bbfb8cb7a92bb3f282b782026c0708f2))

CONTRIBUTING.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
## Setting up the environment
22

3-
This repository uses [`yarn@v1`](https://classic.yarnpkg.com/lang/en/docs/install).
3+
This repository uses [`pnpm`](https://pnpm.io/).
44
Other package managers may work but are not officially supported for development.
55

66
To set up the repository, run:
77

88
```sh
9-
$ yarn
10-
$ yarn build
9+
$ pnpm install
10+
$ pnpm build
1111
```
1212

1313
This will install all the required dependencies and build output files to `dist/`.
@@ -32,7 +32,7 @@ All files in the `examples/` directory are not modified by the generator and can
3232
```sh
3333
$ chmod +x examples/<your-example>.ts
3434
# run the example against your api
35-
$ yarn tsn -T examples/<your-example>.ts
35+
$ pnpm tsn -T examples/<your-example>.ts
3636
```
3737

3838
## Using the repository from source
@@ -42,15 +42,15 @@ If you’d like to use the repository from source, you can either install from g
4242
To install via git:
4343

4444
```sh
45-
$ npm install git+ssh://git@github.com:stainless-sdks/onlyfansapi-typescript.git
45+
$ npm install git+ssh://git@github.com:onlyfansapi/onlyfansapi-typescript-sdk.git
4646
```
4747

4848
Alternatively, to link a local copy of the repo:
4949

5050
```sh
5151
# Clone
52-
$ git clone https://www.github.com/stainless-sdks/onlyfansapi-typescript
53-
$ cd onlyfansapi-typescript
52+
$ git clone https://www.github.com/onlyfansapi/onlyfansapi-typescript-sdk
53+
$ cd onlyfansapi-typescript-sdk
5454

5555
# With yarn
5656
$ yarn link
@@ -60,19 +60,13 @@ $ yarn link onlyfansapi
6060
# With pnpm
6161
$ pnpm link --global
6262
$ cd ../my-package
63-
$ pnpm link -global onlyfansapi
63+
$ pnpm link --global onlyfansapi
6464
```
6565

6666
## Running tests
6767

68-
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
69-
7068
```sh
71-
$ npx prism mock path/to/your/openapi.yml
72-
```
73-
74-
```sh
75-
$ yarn run test
69+
$ pnpm run test
7670
```
7771

7872
## Linting and formatting
@@ -83,11 +77,25 @@ This repository uses [prettier](https://www.npmjs.com/package/prettier) and
8377
To lint:
8478

8579
```sh
86-
$ yarn lint
80+
$ pnpm lint
8781
```
8882

8983
To format and fix all lint issues automatically:
9084

9185
```sh
92-
$ yarn fix
86+
$ pnpm fix
9387
```
88+
89+
## Publishing and releases
90+
91+
Changes made to this repository via the automated release PR pipeline should publish to npm automatically. If
92+
the changes aren't made through the automated pipeline, you may want to make releases manually.
93+
94+
### Publish with a GitHub workflow
95+
96+
You can release to package managers by using [the `Publish NPM` GitHub action](https://www.github.com/onlyfansapi/onlyfansapi-typescript-sdk/actions/workflows/publish-npm.yml). This requires a setup organization or repository secret to be set up.
97+
98+
### Publish manually
99+
100+
If you need to manually release a package, you can run the `bin/publish-npm` script with an `NPM_TOKEN` set on
101+
the environment.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2025 Onlyfansapi
189+
Copyright 2026 Only Fans API
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)