From 74665892091c8009dc04edf23fea6acb36eda70d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 13:12:30 +0000 Subject: [PATCH 01/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 ++++--- .../saved-for-later/messages/settings.ts | 2 +- src/resources/smart-links.ts | 12 +++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 20 +++++++--------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 18 +++++++------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 24 +++++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 26 files changed, 109 insertions(+), 105 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4625270..5fab5c4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-63b68e8d6940d2559684d79f5df7d23dd8a06bbe2aca25cdf89cca87b1c560c1.yml +openapi_spec_hash: ac6c176ffe7dbca140c063f207c33422 config_hash: a522aab696c4535f715ae59ddfe8222f diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e8b821f..d601dc7 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('nobis'); + * const response = await client.accounts.disconnect('vel'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7e83f2a..9ee6852 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,9 +31,10 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'iusto', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 6f8aff5..09646b7 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'nihil', + * 'reprehenderit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'nihil', + * 'reprehenderit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1da3469..0cd35ac 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'impedit', + * 'saepe', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,10 +37,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'impedit', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('saepe', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a952..a976781 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 5d729c2..76af8b1 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'rerum', + * 'repellat', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'facilis', + * 'fuga', * ); * ``` */ @@ -114,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'ducimus', + * 'voluptas', * ); * ``` */ @@ -132,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'nam', + * 'voluptas', * ); * ``` */ @@ -149,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('eaque'); + * await client.smartLinks.retrieveCohortArps('accusamus'); * ``` */ retrieveCohortArps( @@ -171,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'impedit', + * 'amet', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a61cc3b..771de93 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'maxime', + * 'maiores', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('maxime', { + * await client.stories.highlights.removeStory('maiores', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index d9224e6..3a6ac2c 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'et', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('et', { + * await client.trackingLinks.getCohortArps('voluptatem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'voluptatem', + * 'explicabo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index a13402e..7065953 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,10 +50,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve( - * 'officia', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('illo', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'officia', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('illo', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'eum', + * 'suscipit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eius', { + * await client.trialLinks.retrieveCohortArps('repellat', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aut', + * 'voluptatum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index f96c64b..26978bc 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'sdqtzwslsvoxbkxj' }, + * { name: 'lryowwrqdolyyw' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 1e3be33..21fceee 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('nobis'); + const responsePromise = client.accounts.disconnect('vel'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index a62f86a..4ce87da 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'accusamus', + auth_id: 'dolor', auth_type: 'email_password', - cookies: 'unde', + cookies: 'iusto', customProxy: { host: 'proxy.example.com', - password: '}b2XD-AinlA~Cg9=', + password: 'BACLh3hV0kkLDZlX:5^', port: 8080, username: 'et', }, - email: 'ismael91@example.com', + email: 'murray.isabel@example.net', force_connect: false, - name: 'molestiae', - password: 'iRPp(K"M[C1Qv,f', - proxyCountry: 'us', - user_agent: 'velit', - xbc: 'suscipit', + name: 'quo', + password: '~uxTMO{#', + proxyCountry: 'uk', + user_agent: 'tempora', + xbc: 'sequi', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de46..c17a81d 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 32dab22..5185477 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('et', { + const responsePromise = client.engagement.messages.getMessageBuyers('iusto', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('et', { + const response = await client.engagement.messages.getMessageBuyers('iusto', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 0195dda..6ed14db 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('nihil', { + const responsePromise = client.media.vault.lists.media.add('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('nihil', { + const response = await client.media.vault.lists.media.add('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('nihil', { + const responsePromise = client.media.vault.lists.media.remove('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('nihil', { + const response = await client.media.vault.lists.media.remove('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b04294..70f616c 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'comments', + type: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index bf70968..7dc0f06 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('impedit', { + const responsePromise = client.posts.comments.create('saepe', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('impedit', { + const response = await client.posts.comments.create('saepe', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('impedit', { + const response = await client.posts.comments.list('saepe', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 8e5b056..4ec8acc 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 5f67b78..67705df 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('rerum'); + const responsePromise = client.smartLinks.listClicks('repellat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'rerum', + 'repellat', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('facilis'); + const responsePromise = client.smartLinks.listConversions('fuga'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'facilis', + 'fuga', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('ducimus'); + const responsePromise = client.smartLinks.listFans('voluptas'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'ducimus', + 'voluptas', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('nam'); + const responsePromise = client.smartLinks.listSpenders('voluptas'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'nam', + 'voluptas', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('eaque'); + const responsePromise = client.smartLinks.retrieveCohortArps('accusamus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'eaque', + 'accusamus', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('impedit'); + const responsePromise = client.smartLinks.retrieveStats('amet'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'impedit', + 'amet', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 801e916..b536b60 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'wjdlvaxlyadlqrwqppqxf', tags: ['eoekj'] }, + filter: { search: 'rgocmkvfiwcmzwewjrzi', tags: ['ass'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'zeynkehufhzqvcaqjxnwtpibh', tags: ['vyjau'] }, + filter: { search: 'qgutmfm', tags: ['wxoqnaczmkegvpjqyhjdk'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ycluqgbgiibws', - tags: ['eisqsclddcipdx'], + search: 'u', + tags: ['zk'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'dharcxleeeimxrrewpni', - tags: ['kwqzrpj'], + search: 'pctucc', + tags: ['ksnxyspjlyxgoqmdtdpwx'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 8602598..2ff3abe 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('maxime', { + const responsePromise = client.stories.highlights.addStory('maiores', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('maxime', { + const response = await client.stories.highlights.addStory('maiores', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('maxime', { + const responsePromise = client.stories.highlights.removeStory('maiores', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('maxime', { + const response = await client.stories.highlights.removeStory('maiores', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 3ad1ecc..f9280c4 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('voluptatem', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('et', { + const response = await client.trackingLinks.getCohortArps('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('explicabo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('voluptatem', { + const response = await client.trackingLinks.getStats('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index e273b87..d1708a1 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('officia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('officia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('officia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('officia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('eum', { + const responsePromise = client.trialLinks.listSubscribers('suscipit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('eum', { + const response = await client.trialLinks.listSubscribers('suscipit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('repellat', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('eius', { + const response = await client.trialLinks.retrieveCohortArps('repellat', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +167,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('voluptatum', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +181,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('aut', { + const response = await client.trialLinks.retrieveStats('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index c1e9d27..2110b18 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sdqtzwslsvoxbkxj' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'lryowwrqdolyyw' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sdqtzwslsvoxbkxj' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'lryowwrqdolyyw' }); }); // Mock server tests are disabled From 2894f2a7ecb37a33faf9f9e7b128c14e9bb0c518 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 16:12:31 +0000 Subject: [PATCH 02/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 4 ++-- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 +++++------ src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 20 +++++++++------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 16 ++++++------- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 22 ++++++++--------- .../user-lists/user-lists.test.ts | 4 ++-- 28 files changed, 106 insertions(+), 108 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5fab5c4..4d7ed96 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-63b68e8d6940d2559684d79f5df7d23dd8a06bbe2aca25cdf89cca87b1c560c1.yml -openapi_spec_hash: ac6c176ffe7dbca140c063f207c33422 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-24c34b45781c52033802d46acb3025a7df5a97bbf1090ad66aebcfb2a2cfb930.yml +openapi_spec_hash: 6c2d47cd85674ece07dc37e471a36ac9 config_hash: a522aab696c4535f715ae59ddfe8222f diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d601dc7..9d0ee72 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('vel'); + * const response = await client.accounts.disconnect('sed'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 9ee6852..7b03ce1 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'iusto', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 09646b7..934c6c3 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'reprehenderit', + * 'hic', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'reprehenderit', + * 'hic', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0cd35ac..05489a5 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'saepe', + * 'dicta', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,7 +37,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('saepe', { + * const comments = await client.posts.comments.list('dicta', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a976781..e20f70d 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb..41feb4c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 76af8b1..b38e5b2 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'repellat', + * 'illum', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'fuga', + * 'fugiat', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'voluptas', - * ); + * const response = await client.smartLinks.listFans('autem'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'voluptas', + * 'cum', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('accusamus'); + * await client.smartLinks.retrieveCohortArps('consequatur'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'amet', + * 'et', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 771de93..c4aa088 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'maiores', + * 'autem', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('maiores', { + * await client.stories.highlights.removeStory('autem', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 3a6ac2c..ac14242 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'quis', + * 'consectetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quis', + * 'consectetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('voluptatem', { + * await client.trackingLinks.getCohortArps('ratione', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'explicabo', + * 'reiciendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 7065953..b37765e 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,9 +50,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('illo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'quisquam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('illo', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'quisquam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'suscipit', + * 'ut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('repellat', { + * await client.trialLinks.retrieveCohortArps('sapiente', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptatum', + * 'esse', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 26978bc..b7ada8a 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'lryowwrqdolyyw' }, + * { name: 'qrruxylgb' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 21fceee..37a21a6 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('vel'); + const responsePromise = client.accounts.disconnect('sed'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 4ce87da..eb274e6 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'dolor', - auth_type: 'email_password', - cookies: 'iusto', + auth_id: 'aut', + auth_type: 'raw_data', + cookies: 'nihil', customProxy: { host: 'proxy.example.com', - password: 'BACLh3hV0kkLDZlX:5^', + password: ']%<>fO { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 5185477..086a44a 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('iusto', { + const responsePromise = client.engagement.messages.getMessageBuyers('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('iusto', { + const response = await client.engagement.messages.getMessageBuyers('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 6ed14db..9cf5279 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('reprehenderit', { + const responsePromise = client.media.vault.lists.media.add('hic', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('reprehenderit', { + const response = await client.media.vault.lists.media.add('hic', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('reprehenderit', { + const responsePromise = client.media.vault.lists.media.remove('hic', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('reprehenderit', { + const response = await client.media.vault.lists.media.remove('hic', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616c..7b04294 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'promotions', + type: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 7dc0f06..933738e 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('saepe', { + const responsePromise = client.posts.comments.create('dicta', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('saepe', { + const response = await client.posts.comments.create('dicta', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('saepe', { + const response = await client.posts.comments.list('dicta', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 4ec8acc..fd74b68 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399d..c151062 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 67705df..71eec1c 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('repellat'); + const responsePromise = client.smartLinks.listClicks('illum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'repellat', + 'illum', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('fuga'); + const responsePromise = client.smartLinks.listConversions('fugiat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'fuga', + 'fugiat', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('voluptas'); + const responsePromise = client.smartLinks.listFans('autem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'voluptas', + 'autem', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('voluptas'); + const responsePromise = client.smartLinks.listSpenders('cum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'voluptas', + 'cum', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('accusamus'); + const responsePromise = client.smartLinks.retrieveCohortArps('consequatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'accusamus', + 'consequatur', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('amet'); + const responsePromise = client.smartLinks.retrieveStats('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'amet', + 'et', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index b536b60..ec1c16b 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rgocmkvfiwcmzwewjrzi', tags: ['ass'] }, + filter: { search: 'wawukmfhpsfhwlhgdjcyu', tags: ['iizfurnvqqubrcpiuiou'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qgutmfm', tags: ['wxoqnaczmkegvpjqyhjdk'] }, + filter: { search: 'wqhvnrc', tags: ['uul'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'u', - tags: ['zk'], + include_smart_links: false, + search: 'pbtzgckzvatqptslffi', + tags: ['retewknszoajldmmjdmbfwi'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'pctucc', - tags: ['ksnxyspjlyxgoqmdtdpwx'], + include_smart_links: false, + search: 'aazxbzoyffqvxas', + tags: ['mbztc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2ff3abe..bdf3e67 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('maiores', { + const responsePromise = client.stories.highlights.addStory('autem', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('maiores', { + const response = await client.stories.highlights.addStory('autem', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('maiores', { + const responsePromise = client.stories.highlights.removeStory('autem', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('maiores', { + const response = await client.stories.highlights.removeStory('autem', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index f9280c4..1c25056 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('quis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('voluptatem', { + const responsePromise = client.trackingLinks.getCohortArps('ratione', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -111,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('voluptatem', { + const response = await client.trackingLinks.getCohortArps('ratione', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('explicabo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('explicabo', { + const response = await client.trackingLinks.getStats('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index d1708a1..a480591 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('quisquam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('quisquam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('quisquam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('illo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('quisquam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('suscipit', { + const responsePromise = client.trialLinks.listSubscribers('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('suscipit', { + const response = await client.trialLinks.listSubscribers('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('repellat', { + const responsePromise = client.trialLinks.retrieveCohortArps('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('repellat', { + const response = await client.trialLinks.retrieveCohortArps('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,9 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('voluptatum', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -181,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('voluptatum', { + const response = await client.trialLinks.retrieveStats('esse', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 2110b18..3de8d2f 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'lryowwrqdolyyw' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qrruxylgb' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'lryowwrqdolyyw' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qrruxylgb' }); }); // Mock server tests are disabled From b7e1534dcd7f7d12612b779d2b4ff85bb34c0eb8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 17:35:31 +0000 Subject: [PATCH 03/59] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4d7ed96..ad4b95d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-24c34b45781c52033802d46acb3025a7df5a97bbf1090ad66aebcfb2a2cfb930.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-72633437c337ec4d9d333f5e895b2b7a1ef13b1c5d4273906d4a6861e24c99dd.yml openapi_spec_hash: 6c2d47cd85674ece07dc37e471a36ac9 -config_hash: a522aab696c4535f715ae59ddfe8222f +config_hash: 6299d85babc83b296c506e0e64fe2c0a From ae39b452f45da5f3affa3335d78a1246e64b528e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 17:52:57 +0000 Subject: [PATCH 04/59] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ad4b95d..ad09e23 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-72633437c337ec4d9d333f5e895b2b7a1ef13b1c5d4273906d4a6861e24c99dd.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-db07c6b53db2576d9205de576b179c9aaf9929c8342d14ebd5aebd7fe9079caf.yml openapi_spec_hash: 6c2d47cd85674ece07dc37e471a36ac9 -config_hash: 6299d85babc83b296c506e0e64fe2c0a +config_hash: daf28359a88850c2eaa3b208a6161584 From 99f4cae9811feae5c1539326f07f54ce4f2b567d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 17:58:06 +0000 Subject: [PATCH 05/59] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ad09e23..6127ab4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-db07c6b53db2576d9205de576b179c9aaf9929c8342d14ebd5aebd7fe9079caf.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ba5efdf86108ef077f2db1f8a05b84d58f7f218fe2b7e0eb72e3c371cfa30015.yml openapi_spec_hash: 6c2d47cd85674ece07dc37e471a36ac9 -config_hash: daf28359a88850c2eaa3b208a6161584 +config_hash: 397c91e15c0024f8b5bbed9b82c2348c From ce15bea0b19697b18b4db02f2dbf964b18c5f09a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 17:59:38 +0000 Subject: [PATCH 06/59] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6127ab4..ad09e23 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ba5efdf86108ef077f2db1f8a05b84d58f7f218fe2b7e0eb72e3c371cfa30015.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-db07c6b53db2576d9205de576b179c9aaf9929c8342d14ebd5aebd7fe9079caf.yml openapi_spec_hash: 6c2d47cd85674ece07dc37e471a36ac9 -config_hash: 397c91e15c0024f8b5bbed9b82c2348c +config_hash: daf28359a88850c2eaa3b208a6161584 From 4b0565661ca1c8ef348a4bcfdf2519639405f718 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 18:00:47 +0000 Subject: [PATCH 07/59] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ad09e23..6127ab4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-db07c6b53db2576d9205de576b179c9aaf9929c8342d14ebd5aebd7fe9079caf.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ba5efdf86108ef077f2db1f8a05b84d58f7f218fe2b7e0eb72e3c371cfa30015.yml openapi_spec_hash: 6c2d47cd85674ece07dc37e471a36ac9 -config_hash: daf28359a88850c2eaa3b208a6161584 +config_hash: 397c91e15c0024f8b5bbed9b82c2348c From efe94c163c71dbf361316438c01dff00fb2d87d8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 18:12:31 +0000 Subject: [PATCH 08/59] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 4 ++- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 +-- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 16 ++++++------ src/resources/stories/highlights.ts | 4 +-- .../tracking-links/tracking-links.ts | 8 +++--- src/resources/trial-links/trial-links.ts | 25 +++++++++---------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 18 ++++++------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 +-- .../media/vault/lists/media.test.ts | 8 +++--- .../notifications/notifications.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- tests/api-resources/smart-links.test.ts | 24 +++++++++--------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++--- .../tracking-links/tracking-links.test.ts | 16 ++++++------ .../trial-links/trial-links.test.ts | 22 ++++++++-------- .../user-lists/user-lists.test.ts | 4 +-- 25 files changed, 106 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6127ab4..451539e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bb6c9c76d967f92637fe23928eed8e2b72857607f7d633cd313edac2159251da.yml +openapi_spec_hash: 6ebbddf9d4240bc9dd02c40ba29fdbbc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 9d0ee72..681759c 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,9 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('sed'); + * const response = await client.accounts.disconnect( + * 'molestiae', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7b03ce1..7e83f2a 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,10 +31,9 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers( - * 'voluptatem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 934c6c3..7ebe5ad 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'hic', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'hic', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d..09d6973 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c..c9a094c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index b38e5b2..4738968 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'illum', + * 'aperiam', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'fugiat', + * 'sint', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('autem'); + * const response = await client.smartLinks.listFans( + * 'dolores', + * ); * ``` */ listFans( @@ -129,9 +131,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'cum', - * ); + * const response = await client.smartLinks.listSpenders('et'); * ``` */ listSpenders( @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('consequatur'); + * await client.smartLinks.retrieveCohortArps('laborum'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'et', + * 'minus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c4aa088..d635fdc 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'autem', + * 'dolorum', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('autem', { + * await client.stories.highlights.removeStory('dolorum', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index ac14242..3050211 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'consectetur', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'consectetur', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ratione', { + * await client.trackingLinks.getCohortArps('aspernatur', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'reiciendis', + * 'sapiente', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b37765e..e6749c1 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,10 +50,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve( - * 'quisquam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('non', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'quisquam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('non', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ut', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,9 +154,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('sapiente', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.trialLinks.retrieveCohortArps( + * 'necessitatibus', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieveCohortArps( @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'esse', + * 'accusantium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index b7ada8a..eedbb71 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'qrruxylgb' }, + * { name: 'xiu' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 37a21a6..065535d 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('sed'); + const responsePromise = client.accounts.disconnect('molestiae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index eb274e6..056ac2e 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'aut', + auth_id: 'ut', auth_type: 'raw_data', - cookies: 'nihil', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: ']%<>fO { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 086a44a..32dab22 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('voluptatem', { + const responsePromise = client.engagement.messages.getMessageBuyers('et', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('voluptatem', { + const response = await client.engagement.messages.getMessageBuyers('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 9cf5279..80e35cb 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('hic', { + const responsePromise = client.media.vault.lists.media.add('quo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('hic', { + const response = await client.media.vault.lists.media.add('quo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('hic', { + const responsePromise = client.media.vault.lists.media.remove('quo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('hic', { + const response = await client.media.vault.lists.media.remove('quo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b04294..42643a6 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'comments', + type: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index fd74b68..e2edc67 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index c151062..b643af6 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 71eec1c..c71cfda 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('illum'); + const responsePromise = client.smartLinks.listClicks('aperiam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'illum', + 'aperiam', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('fugiat'); + const responsePromise = client.smartLinks.listConversions('sint'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'fugiat', + 'sint', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('autem'); + const responsePromise = client.smartLinks.listFans('dolores'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'autem', + 'dolores', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('cum'); + const responsePromise = client.smartLinks.listSpenders('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'cum', + 'et', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('consequatur'); + const responsePromise = client.smartLinks.retrieveCohortArps('laborum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'consequatur', + 'laborum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('et'); + const responsePromise = client.smartLinks.retrieveStats('minus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'et', + 'minus', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index ec1c16b..2e16edf 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'wawukmfhpsfhwlhgdjcyu', tags: ['iizfurnvqqubrcpiuiou'] }, + filter: { search: 'n', tags: ['robrlkenzuuyilwiriapl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'wqhvnrc', tags: ['uul'] }, + filter: { search: 'cxfmxgnuvmgzz', tags: ['webuszxulfanyyotwochcilr'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'pbtzgckzvatqptslffi', - tags: ['retewknszoajldmmjdmbfwi'], + include_smart_links: true, + search: 'btwcokorojwzaoqxizeakzns', + tags: ['gkxa'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'aazxbzoyffqvxas', - tags: ['mbztc'], + search: 'laebvxpqmkkixmcsarii', + tags: ['gtevfdxormnpvpkt'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index bdf3e67..8b0babb 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('autem', { + const responsePromise = client.stories.highlights.addStory('dolorum', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('autem', { + const response = await client.stories.highlights.addStory('dolorum', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('autem', { + const responsePromise = client.stories.highlights.removeStory('dolorum', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('autem', { + const response = await client.stories.highlights.removeStory('dolorum', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 1c25056..d61cbaf 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('consectetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('ratione', { + const responsePromise = client.trackingLinks.getCohortArps('aspernatur', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -111,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('ratione', { + const response = await client.trackingLinks.getCohortArps('aspernatur', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('reiciendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('sapiente', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('reiciendis', { + const response = await client.trackingLinks.getStats('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index a480591..36961ab 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('quisquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('quisquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('quisquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('quisquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('non', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('ut', { + const responsePromise = client.trialLinks.listSubscribers('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('ut', { + const response = await client.trialLinks.listSubscribers('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('sapiente', { + const responsePromise = client.trialLinks.retrieveCohortArps('necessitatibus', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('sapiente', { + const response = await client.trialLinks.retrieveCohortArps('necessitatibus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +167,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('accusantium', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +181,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('esse', { + const response = await client.trialLinks.retrieveStats('accusantium', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 3de8d2f..df6572b 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qrruxylgb' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xiu' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'qrruxylgb' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xiu' }); }); // Mock server tests are disabled From ff87eb31769d1fa7de42185fd8089f543809a6b5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 21:12:31 +0000 Subject: [PATCH 09/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 +++---- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 18 +++++++------- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 20 ++++++++-------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 24 +++++++++---------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 22 ++++++++--------- .../user-lists/user-lists.test.ts | 4 ++-- 28 files changed, 115 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index 451539e..83653c0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bb6c9c76d967f92637fe23928eed8e2b72857607f7d633cd313edac2159251da.yml -openapi_spec_hash: 6ebbddf9d4240bc9dd02c40ba29fdbbc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a141a23e1d1a4c59fa2127c4504251e3605fe9a38aeee763f8611011acb605da.yml +openapi_spec_hash: 6101f498e1ca4c1ee4c2e8549805ae03 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 681759c..bc01c97 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -30,7 +30,7 @@ export class Accounts extends APIResource { * @example * ```ts * const response = await client.accounts.disconnect( - * 'molestiae', + * 'molestias', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7e83f2a..ce0d8c0 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,9 +31,10 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'neque', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 7ebe5ad..7d85706 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'quo', + * 'tempora', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'quo', + * 'tempora', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 05489a5..5d34563 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'dicta', + * 'quibusdam', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('dicta', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'quibusdam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973..a976781 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094c..a84ff07 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 4738968..d8a81a3 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,9 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks( - * 'aperiam', - * ); + * const response = await client.smartLinks.listClicks('ut'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sint', + * 'sit', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'dolores', - * ); + * const response = await client.smartLinks.listFans('fuga'); * ``` */ listFans( @@ -131,7 +127,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('et'); + * const response = await client.smartLinks.listSpenders( + * 'sint', + * ); * ``` */ listSpenders( @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('laborum'); + * await client.smartLinks.retrieveCohortArps('esse'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'minus', + * 'provident', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index d635fdc..a9c614a 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'dolorum', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('dolorum', { + * await client.stories.highlights.removeStory('et', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 3050211..b33cfaf 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'magnam', + * 'consequuntur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'magnam', + * 'consequuntur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('aspernatur', { + * await client.trackingLinks.getCohortArps('temporibus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'sapiente', + * 'optio', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index e6749c1..4b6d2c8 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,9 +50,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('non', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'dicta', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('non', { + * const trialLink = await client.trialLinks.delete('dicta', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'labore', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,10 +155,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps( - * 'necessitatibus', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.trialLinks.retrieveCohortArps('perferendis', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieveCohortArps( @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'accusantium', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index eedbb71..1ae1ec6 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'xiu' }, + * { name: 'sbnkuvjffglby' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 065535d..2ac108c 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('molestiae'); + const responsePromise = client.accounts.disconnect('molestias'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 056ac2e..d32d44d 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'ut', - auth_type: 'raw_data', - cookies: 'et', + auth_id: 'ipsum', + auth_type: 'email_password', + cookies: 'magni', customProxy: { host: 'proxy.example.com', - password: 'PD_]{TC`Vc', + password: 'K|dJh:q{\\L', port: 8080, - username: 'ex', + username: 'et', }, - email: 'oturcotte@example.org', - force_connect: false, - name: 'et', - password: 's!pWrryhs*-_$s', - proxyCountry: 'uk', - user_agent: 'ipsa', - xbc: 'totam', + email: 'rowland.mckenzie@example.com', + force_connect: true, + name: 'soluta', + password: ')H$BE+t3mGdm', + proxyCountry: 'us', + user_agent: 'et', + xbc: 'omnis', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d..229de46 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 32dab22..956a8a3 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('et', { + const responsePromise = client.engagement.messages.getMessageBuyers('neque', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('et', { + const response = await client.engagement.messages.getMessageBuyers('neque', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 80e35cb..9e76f3b 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('quo', { + const responsePromise = client.media.vault.lists.media.add('tempora', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('quo', { + const response = await client.media.vault.lists.media.add('tempora', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('quo', { + const responsePromise = client.media.vault.lists.media.remove('tempora', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('quo', { + const response = await client.media.vault.lists.media.remove('tempora', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 933738e..c47f77e 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('dicta', { + const responsePromise = client.posts.comments.create('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('dicta', { + const response = await client.posts.comments.create('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('dicta', { + const response = await client.posts.comments.list('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index e2edc67..4ec8acc 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index b643af6..02883e1 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1c..6b1dc2f 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: true, + isForward: false, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index c71cfda..43bfb32 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('aperiam'); + const responsePromise = client.smartLinks.listClicks('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'aperiam', + 'ut', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('sint'); + const responsePromise = client.smartLinks.listConversions('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'sint', + 'sit', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('dolores'); + const responsePromise = client.smartLinks.listFans('fuga'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'dolores', + 'fuga', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('et'); + const responsePromise = client.smartLinks.listSpenders('sint'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'et', + 'sint', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('laborum'); + const responsePromise = client.smartLinks.retrieveCohortArps('esse'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'laborum', + 'esse', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('minus'); + const responsePromise = client.smartLinks.retrieveStats('provident'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'minus', + 'provident', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 2e16edf..2a11444 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'n', tags: ['robrlkenzuuyilwiriapl'] }, + filter: { search: 'wgokmzkx', tags: ['upnmn'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'cxfmxgnuvmgzz', tags: ['webuszxulfanyyotwochcilr'] }, + filter: { search: 'mxkqworbsdo', tags: ['loywfzxobliicgv'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'btwcokorojwzaoqxizeakzns', - tags: ['gkxa'], + search: 'zvulqsycivflpntg', + tags: ['mhoa'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'laebvxpqmkkixmcsarii', - tags: ['gtevfdxormnpvpkt'], + search: 'bckyfto', + tags: ['lksqgydptkqtnwudqd'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 8b0babb..fca45b0 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('dolorum', { + const responsePromise = client.stories.highlights.addStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('dolorum', { + const response = await client.stories.highlights.addStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('dolorum', { + const responsePromise = client.stories.highlights.removeStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('dolorum', { + const response = await client.stories.highlights.removeStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index d61cbaf..dfae196 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,9 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('consequuntur', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +44,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +82,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +94,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('magnam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('aspernatur', { + const responsePromise = client.trackingLinks.getCohortArps('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -111,7 +113,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('aspernatur', { + const response = await client.trackingLinks.getCohortArps('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +123,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('sapiente', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +135,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('sapiente', { + const response = await client.trackingLinks.getStats('optio', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 36961ab..77cc31d 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('et', { + const responsePromise = client.trialLinks.listSubscribers('labore', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('et', { + const response = await client.trialLinks.listSubscribers('labore', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('necessitatibus', { + const responsePromise = client.trialLinks.retrieveCohortArps('perferendis', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('necessitatibus', { + const response = await client.trialLinks.retrieveCohortArps('perferendis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,9 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('accusantium', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -181,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('accusantium', { + const response = await client.trialLinks.retrieveStats('dolorem', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index df6572b..60d9129 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xiu' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sbnkuvjffglby' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xiu' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sbnkuvjffglby' }); }); // Mock server tests are disabled From 131210835bbd489c99ed6056302e0e1c30b0de12 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 22:12:30 +0000 Subject: [PATCH 10/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +--- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 18 ++++++-------- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 ++++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 15 ++++++------ src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++--------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 16 ++++++------- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 20 +++++++--------- .../trial-links/trial-links.test.ts | 22 ++++++++--------- .../user-lists/user-lists.test.ts | 4 ++-- 27 files changed, 109 insertions(+), 120 deletions(-) diff --git a/.stats.yml b/.stats.yml index 83653c0..8dfea49 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a141a23e1d1a4c59fa2127c4504251e3605fe9a38aeee763f8611011acb605da.yml -openapi_spec_hash: 6101f498e1ca4c1ee4c2e8549805ae03 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b1b67389b2df8ca06af07c65230cc567230a17ff873b2d7ced3200a0ad273c6f.yml +openapi_spec_hash: 94a721ac564ca20530c4a60d4ddde14a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index bc01c97..ab94d0d 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,9 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect( - * 'molestias', - * ); + * const response = await client.accounts.disconnect('rerum'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index ce0d8c0..2009929 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'neque', + * 'temporibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 7d85706..04c550e 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'tempora', + * 'maxime', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'tempora', + * 'maxime', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 5d34563..6b557a8 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,13 +11,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create( - * 'quibusdam', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }); * ``` */ create( @@ -37,10 +34,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'quibusdam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('qui', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a976781..e20f70d 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff07..2b04cbb 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index d8a81a3..b0ec1fd 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('ut'); + * const response = await client.smartLinks.listClicks('et'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sit', + * 'quis', * ); * ``` */ @@ -111,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('fuga'); + * const response = await client.smartLinks.listFans( + * 'architecto', + * ); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sint', + * 'sunt', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('esse'); + * await client.smartLinks.retrieveCohortArps('ut'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'provident', + * 'vel', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a..e9eae13 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'et', + * 'totam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('et', { + * await client.stories.highlights.removeStory('totam', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index b33cfaf..d6862ab 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'consequuntur', + * 'praesentium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'consequuntur', + * 'praesentium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('temporibus', { + * await client.trackingLinks.getCohortArps('quod', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'optio', + * 'maiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 4b6d2c8..ea53372 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,10 +50,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve( - * 'dicta', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('eius', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('dicta', { + * const trialLink = await client.trialLinks.delete('eius', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'labore', + * 'similique', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('perferendis', { + * await client.trialLinks.retrieveCohortArps('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dolorem', + * 'impedit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 1ae1ec6..80006d8 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'sbnkuvjffglby' }, + * { name: 'j' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 2ac108c..da0a05c 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('molestias'); + const responsePromise = client.accounts.disconnect('rerum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index d32d44d..4b91d5e 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'ipsum', + auth_id: 'ut', auth_type: 'email_password', - cookies: 'magni', + cookies: 'eos', customProxy: { host: 'proxy.example.com', - password: 'K|dJh:q{\\L', + password: '\\wQJm2_k!', port: 8080, - username: 'et', + username: 'molestiae', }, - email: 'rowland.mckenzie@example.com', - force_connect: true, - name: 'soluta', - password: ')H$BE+t3mGdm', - proxyCountry: 'us', - user_agent: 'et', - xbc: 'omnis', + email: 'goodwin.emelie@example.net', + force_connect: false, + name: 'blanditiis', + password: '=>vw@`', + proxyCountry: 'uk', + user_agent: 'beatae', + xbc: 'aut', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 956a8a3..b8ae3e8 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('neque', { + const responsePromise = client.engagement.messages.getMessageBuyers('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('neque', { + const response = await client.engagement.messages.getMessageBuyers('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 9e76f3b..8d959ad 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('tempora', { + const responsePromise = client.media.vault.lists.media.add('maxime', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('tempora', { + const response = await client.media.vault.lists.media.add('maxime', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('tempora', { + const responsePromise = client.media.vault.lists.media.remove('maxime', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('tempora', { + const response = await client.media.vault.lists.media.remove('maxime', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a6..7b04294 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'mentions', + type: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index c47f77e..427da94 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('quibusdam', { + const responsePromise = client.posts.comments.create('qui', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('quibusdam', { + const response = await client.posts.comments.create('qui', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('quibusdam', { + const response = await client.posts.comments.list('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 4ec8acc..fd74b68 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e1..96d399d 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2f..d13ad1c 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: false, + isForward: true, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 43bfb32..d35490d 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('ut'); + const responsePromise = client.smartLinks.listClicks('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'ut', + 'et', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('sit'); + const responsePromise = client.smartLinks.listConversions('quis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'sit', + 'quis', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('fuga'); + const responsePromise = client.smartLinks.listFans('architecto'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'fuga', + 'architecto', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sint'); + const responsePromise = client.smartLinks.listSpenders('sunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'sint', + 'sunt', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('esse'); + const responsePromise = client.smartLinks.retrieveCohortArps('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'esse', + 'ut', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('provident'); + const responsePromise = client.smartLinks.retrieveStats('vel'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'provident', + 'vel', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 2a11444..524c471 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'wgokmzkx', tags: ['upnmn'] }, + filter: { search: 'lwpcenswpzaxiqbb', tags: ['lnkq'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'mxkqworbsdo', tags: ['loywfzxobliicgv'] }, + filter: { search: 'hbxfq', tags: ['kgtbtuhxf'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'zvulqsycivflpntg', - tags: ['mhoa'], + include_smart_links: false, + search: 'ychtqaqt', + tags: ['wjbgftojjektuegjzvet'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'bckyfto', - tags: ['lksqgydptkqtnwudqd'], + include_smart_links: true, + search: 'ybpunrmnmcjnh', + tags: ['txrtu'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0..b1a1862 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('et', { + const responsePromise = client.stories.highlights.addStory('totam', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('et', { + const response = await client.stories.highlights.addStory('totam', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('et', { + const responsePromise = client.stories.highlights.removeStory('totam', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('et', { + const response = await client.stories.highlights.removeStory('totam', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index dfae196..86640d5 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,9 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('consequuntur', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.retrieve('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -44,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -82,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -94,14 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('temporibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -113,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('temporibus', { + const response = await client.trackingLinks.getCohortArps('quod', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -123,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('maiores', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('optio', { + const response = await client.trackingLinks.getStats('maiores', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 77cc31d..7f73f25 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('labore', { + const responsePromise = client.trialLinks.listSubscribers('similique', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('labore', { + const response = await client.trialLinks.listSubscribers('similique', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,9 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('perferendis', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -157,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('perferendis', { + const response = await client.trialLinks.retrieveCohortArps('ut', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('dolorem', { + const response = await client.trialLinks.retrieveStats('impedit', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 60d9129..5c90dd6 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sbnkuvjffglby' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'j' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'sbnkuvjffglby' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'j' }); }); // Mock server tests are disabled From 2ba0e5f5ee52365b833d6904268201f398aaa001 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 23:12:35 +0000 Subject: [PATCH 11/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 13 ++++++---- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 ++++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 20 +++++++++------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++--------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 26 files changed, 113 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8dfea49..8b97f93 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b1b67389b2df8ca06af07c65230cc567230a17ff873b2d7ced3200a0ad273c6f.yml -openapi_spec_hash: 94a721ac564ca20530c4a60d4ddde14a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1694e31822508757f6dec4837f9442d42a1eafdf796b6f4ff368c80452050acf.yml +openapi_spec_hash: 19fc90cabcac5a299d832b80e7518648 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ab94d0d..e179118 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('rerum'); + * const response = await client.accounts.disconnect('omnis'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 2009929..0fd1f5d 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'temporibus', + * 'cupiditate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 04c550e..685b16a 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'maxime', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'maxime', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 6b557a8..59dc36a 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,10 +11,13 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create('qui', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'alias', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }, + * ); * ``` */ create( @@ -34,7 +37,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('qui', { + * const comments = await client.posts.comments.list('alias', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb..c9a094c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index b0ec1fd..d29a398 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('et'); + * const response = await client.smartLinks.listClicks( + * 'similique', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quis', + * 'eius', * ); * ``` */ @@ -112,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'architecto', + * 'delectus', * ); * ``` */ @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sunt', + * 'ullam', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('ut'); + * await client.smartLinks.retrieveCohortArps('nulla'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'vel', + * 'ut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index e9eae13..952fd38 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'totam', + * 'debitis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('totam', { + * await client.stories.highlights.removeStory('debitis', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index d6862ab..83a6d73 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'praesentium', + * 'minima', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'praesentium', + * 'minima', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quod', { + * await client.trackingLinks.getCohortArps('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'maiores', + * 'sed', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index ea53372..5115569 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,9 +50,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('eius', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'mollitia', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('eius', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'mollitia', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'similique', + * 'molestiae', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ut', { + * await client.trialLinks.retrieveCohortArps('velit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'impedit', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 80006d8..d420d70 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'j' }, + * { name: 'mmryoeohbatuj' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index da0a05c..c1cb751 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('rerum'); + const responsePromise = client.accounts.disconnect('omnis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 4b91d5e..3dab799 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'ut', - auth_type: 'email_password', - cookies: 'eos', + auth_id: 'dolor', + auth_type: 'raw_data', + cookies: 'illum', customProxy: { host: 'proxy.example.com', - password: '\\wQJm2_k!', + password: 'QpR[^*m8dYw`fV>pDzM_', port: 8080, - username: 'molestiae', + username: 'autem', }, - email: 'goodwin.emelie@example.net', - force_connect: false, - name: 'blanditiis', - password: '=>vw@`', + email: 'verna30@example.com', + force_connect: true, + name: 'dolor', + password: '2!GY_AJ/#V,.u.zBK*', proxyCountry: 'uk', - user_agent: 'beatae', - xbc: 'aut', + user_agent: 'temporibus', + xbc: 'consequuntur', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de46..c17a81d 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index b8ae3e8..9b363f6 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('temporibus', { + const responsePromise = client.engagement.messages.getMessageBuyers('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('temporibus', { + const response = await client.engagement.messages.getMessageBuyers('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 8d959ad..1697eb4 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('maxime', { + const responsePromise = client.media.vault.lists.media.add('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('maxime', { + const response = await client.media.vault.lists.media.add('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('maxime', { + const responsePromise = client.media.vault.lists.media.remove('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('maxime', { + const response = await client.media.vault.lists.media.remove('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b04294..694c42e 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'comments', + type: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 427da94..ea577e0 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('qui', { + const responsePromise = client.posts.comments.create('alias', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('qui', { + const response = await client.posts.comments.create('alias', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('qui', { + const response = await client.posts.comments.list('alias', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399d..b643af6 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index d35490d..34f068c 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('et'); + const responsePromise = client.smartLinks.listClicks('similique'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'et', + 'similique', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('quis'); + const responsePromise = client.smartLinks.listConversions('eius'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'quis', + 'eius', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('architecto'); + const responsePromise = client.smartLinks.listFans('delectus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'architecto', + 'delectus', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sunt'); + const responsePromise = client.smartLinks.listSpenders('ullam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'sunt', + 'ullam', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('ut'); + const responsePromise = client.smartLinks.retrieveCohortArps('nulla'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'ut', + 'nulla', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('vel'); + const responsePromise = client.smartLinks.retrieveStats('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'vel', + 'ut', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 524c471..c79d33c 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'lwpcenswpzaxiqbb', tags: ['lnkq'] }, + filter: { search: 'dzyhrdiys', tags: ['stufjrdubhtm'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'hbxfq', tags: ['kgtbtuhxf'] }, + filter: { search: 'wcelcquoagyytiuqihigy', tags: ['rbkozjjhfhlitkmzlqyqlx'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'ychtqaqt', - tags: ['wjbgftojjektuegjzvet'], + search: 'bkfibbf', + tags: ['dzjukcw'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ybpunrmnmcjnh', - tags: ['txrtu'], + include_smart_links: false, + search: 'colpleimdkebqvya', + tags: ['fzp'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index b1a1862..3d6602a 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('totam', { + const responsePromise = client.stories.highlights.addStory('debitis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('totam', { + const response = await client.stories.highlights.addStory('debitis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('totam', { + const responsePromise = client.stories.highlights.removeStory('debitis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('totam', { + const response = await client.stories.highlights.removeStory('debitis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 86640d5..d0afae0 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('praesentium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('quod', { + const response = await client.trackingLinks.getCohortArps('est', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('maiores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('maiores', { + const response = await client.trackingLinks.getStats('sed', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 7f73f25..8bb27fa 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('similique', { + const responsePromise = client.trialLinks.listSubscribers('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('similique', { + const response = await client.trialLinks.listSubscribers('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('velit', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('ut', { + const response = await client.trialLinks.retrieveCohortArps('velit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('impedit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('impedit', { + const response = await client.trialLinks.retrieveStats('est', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 5c90dd6..71b10c5 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'j' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mmryoeohbatuj' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'j' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mmryoeohbatuj' }); }); // Mock server tests are disabled From 4dc96addfdd7e241dcfcb967cd4c237ad417b85a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 00:12:32 +0000 Subject: [PATCH 12/59] feat(api): api update --- .stats.yml | 4 ++-- api.md | 3 +-- src/client.ts | 2 -- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/index.ts | 1 - src/resources/media/index.ts | 1 - src/resources/media/media.ts | 14 +++++------ src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 +++---- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 +++++------ src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 10 ++++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 20 ++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 31 files changed, 107 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8b97f93..e403fe0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1694e31822508757f6dec4837f9442d42a1eafdf796b6f4ff368c80452050acf.yml -openapi_spec_hash: 19fc90cabcac5a299d832b80e7518648 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-66432b705e73f5f3a80162c5a91d4f4f3216319c075d1e6491b80e0ec7c3a0bc.yml +openapi_spec_hash: ae75154ff3e4cad180cd49f21f7c3edf config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/api.md b/api.md index 3164dc4..6fa68cf 100644 --- a/api.md +++ b/api.md @@ -431,13 +431,12 @@ Methods: Types: -- MediaDownloadResponse - MediaScrapeResponse - MediaUploadResponse Methods: -- client.media.download(cdnURL, { ...params }) -> string +- client.media.download(cdnURL, { ...params }) -> void - client.media.scrape(account, { ...params }) -> MediaScrapeResponse - client.media.upload(account, { ...params }) -> MediaUploadResponse diff --git a/src/client.ts b/src/client.ts index 249b1c3..035a499 100644 --- a/src/client.ts +++ b/src/client.ts @@ -256,7 +256,6 @@ import { import { Media, MediaDownloadParams, - MediaDownloadResponse, MediaScrapeParams, MediaScrapeResponse, MediaUploadParams, @@ -1430,7 +1429,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, diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e179118..c9346c8 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('omnis'); + * const response = await client.accounts.disconnect('ut'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 0fd1f5d..6048bce 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'cupiditate', + * 'modi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/index.ts b/src/resources/index.ts index 0500976..4e7239b 100644 --- a/src/resources/index.ts +++ b/src/resources/index.ts @@ -134,7 +134,6 @@ export { } from './me'; export { Media, - type MediaDownloadResponse, type MediaScrapeResponse, type MediaUploadResponse, type MediaDownloadParams, diff --git a/src/resources/media/index.ts b/src/resources/media/index.ts index da4dede..a471989 100644 --- a/src/resources/media/index.ts +++ b/src/resources/media/index.ts @@ -2,7 +2,6 @@ export { Media, - type MediaDownloadResponse, type MediaScrapeResponse, type MediaUploadResponse, type MediaDownloadParams, diff --git a/src/resources/media/media.ts b/src/resources/media/media.ts index 08cee5e..6debd80 100644 --- a/src/resources/media/media.ts +++ b/src/resources/media/media.ts @@ -30,21 +30,22 @@ export class Media extends APIResource { * Downloads a file directly from a `https://cdn*.onlyfans.com/*` URL. When the * file is already cached on our CDN, this endpoint returns a `302` redirect to a * `https://cdn.fansapi.com/*` URL. Most HTTP clients follow redirects - * automatically (`curl` requires `-L`). Otherwise, the file is streamed through - * our proxies and queued for caching. + * automatically (`curl` requires `-L`). Otherwise, the file is redirected to + * `dl.fansapi.com`, which streams it through the account proxy and reports billing + * back to the API. * * @example * ```ts - * const response = await client.media.download('cdnUrl', { + * await client.media.download('cdnUrl', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` */ - download(cdnURL: string, params: MediaDownloadParams, options?: RequestOptions): APIPromise { + download(cdnURL: string, params: MediaDownloadParams, options?: RequestOptions): APIPromise { const { account } = params; return this._client.get(path`/api/${account}/media/download/${cdnURL}`, { ...options, - headers: buildHeaders([{ Accept: 'text/plain' }, options?.headers]), + headers: buildHeaders([{ Accept: '*/*' }, options?.headers]), }); } @@ -93,8 +94,6 @@ export class Media extends APIResource { } } -export type MediaDownloadResponse = string; - export interface MediaScrapeResponse { expiration_date?: string; @@ -201,7 +200,6 @@ Media.Vault = Vault; export declare namespace Media { export { - type MediaDownloadResponse as MediaDownloadResponse, type MediaScrapeResponse as MediaScrapeResponse, type MediaUploadResponse as MediaUploadResponse, type MediaDownloadParams as MediaDownloadParams, diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 685b16a..daa37b5 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'molestiae', + * 'autem', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'molestiae', + * 'autem', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 59dc36a..4e608a4 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'alias', + * 'assumenda', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('alias', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'assumenda', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d..599a952 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094c..a84ff07 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index d29a398..31a1c8f 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'similique', + * 'quidem', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'eius', + * 'facilis', * ); * ``` */ @@ -114,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'delectus', + * 'officia', * ); * ``` */ @@ -131,9 +131,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'ullam', - * ); + * const response = await client.smartLinks.listSpenders('ut'); * ``` */ listSpenders( @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('nulla'); + * await client.smartLinks.retrieveCohortArps('aut'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ut', + * 'ea', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 952fd38..3e1c746 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'debitis', + * 'quidem', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('debitis', { + * await client.stories.highlights.removeStory('quidem', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 83a6d73..afec8a8 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'minima', + * 'non', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'minima', + * 'non', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('est', { + * await client.trackingLinks.getCohortArps('error', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'sed', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 5115569..f00781e 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'mollitia', + * 'assumenda', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'mollitia', + * 'assumenda', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'molestiae', + * 'consequatur', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('velit', { + * await client.trialLinks.retrieveCohortArps('nihil', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'est', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d420d70..e148359 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'mmryoeohbatuj' }, + * { name: 'hrthqjfqgmvb' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index c1cb751..7f7f936 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('omnis'); + const responsePromise = client.accounts.disconnect('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 3dab799..1e08156 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'dolor', - auth_type: 'raw_data', - cookies: 'illum', + auth_id: 'voluptas', + auth_type: 'mobile_app', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: 'QpR[^*m8dYw`fV>pDzM_', + password: 'qS*N*uL_', port: 8080, - username: 'autem', + username: 'voluptatibus', }, - email: 'verna30@example.com', + email: 'triston96@example.org', force_connect: true, - name: 'dolor', - password: '2!GY_AJ/#V,.u.zBK*', + name: 'laborum', + password: 'z|4Hba!J*[1tY', proxyCountry: 'uk', - user_agent: 'temporibus', - xbc: 'consequuntur', + user_agent: 'ut', + xbc: 'exercitationem', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 9b363f6..261763a 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('cupiditate', { + const responsePromise = client.engagement.messages.getMessageBuyers('modi', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('cupiditate', { + const response = await client.engagement.messages.getMessageBuyers('modi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 1697eb4..6989253 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('molestiae', { + const responsePromise = client.media.vault.lists.media.add('autem', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('molestiae', { + const response = await client.media.vault.lists.media.add('autem', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('molestiae', { + const responsePromise = client.media.vault.lists.media.remove('autem', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('molestiae', { + const response = await client.media.vault.lists.media.remove('autem', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e..e769f5c 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'tips', + type: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index ea577e0..4643686 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('alias', { + const responsePromise = client.posts.comments.create('assumenda', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('alias', { + const response = await client.posts.comments.create('assumenda', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('alias', { + const response = await client.posts.comments.list('assumenda', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index fd74b68..8e5b056 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index b643af6..02883e1 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 34f068c..9f78698 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('similique'); + const responsePromise = client.smartLinks.listClicks('quidem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'similique', + 'quidem', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('eius'); + const responsePromise = client.smartLinks.listConversions('facilis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'eius', + 'facilis', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('delectus'); + const responsePromise = client.smartLinks.listFans('officia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'delectus', + 'officia', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ullam'); + const responsePromise = client.smartLinks.listSpenders('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'ullam', + 'ut', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('nulla'); + const responsePromise = client.smartLinks.retrieveCohortArps('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'nulla', + 'aut', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ut'); + const responsePromise = client.smartLinks.retrieveStats('ea'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'ut', + 'ea', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index c79d33c..a33944b 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'dzyhrdiys', tags: ['stufjrdubhtm'] }, + filter: { search: 'lw', tags: ['hbmsfbiiqpohllcshysjbodco'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'wcelcquoagyytiuqihigy', tags: ['rbkozjjhfhlitkmzlqyqlx'] }, + filter: { search: 'va', tags: ['uhyqd'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'bkfibbf', - tags: ['dzjukcw'], + search: 'wpgkmzjjxf', + tags: ['bst'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'colpleimdkebqvya', - tags: ['fzp'], + include_smart_links: true, + search: 'xrrhmdkfvdhufa', + tags: ['owogdbrrtuvvuhpjqdyblwy'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 3d6602a..c8688ed 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('debitis', { + const responsePromise = client.stories.highlights.addStory('quidem', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('debitis', { + const response = await client.stories.highlights.addStory('quidem', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('debitis', { + const responsePromise = client.stories.highlights.removeStory('quidem', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('debitis', { + const response = await client.stories.highlights.removeStory('quidem', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index d0afae0..fda4f3c 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('non', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('error', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('est', { + const response = await client.trackingLinks.getCohortArps('error', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('sed', { + const response = await client.trackingLinks.getStats('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 8bb27fa..aea046c 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('mollitia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('molestiae', { + const responsePromise = client.trialLinks.listSubscribers('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('molestiae', { + const response = await client.trialLinks.listSubscribers('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('velit', { + const responsePromise = client.trialLinks.retrieveCohortArps('nihil', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('velit', { + const response = await client.trialLinks.retrieveCohortArps('nihil', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('est', { + const response = await client.trialLinks.retrieveStats('et', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 71b10c5..ef4f5d0 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mmryoeohbatuj' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hrthqjfqgmvb' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mmryoeohbatuj' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hrthqjfqgmvb' }); }); // Mock server tests are disabled From 39746225a5043e7b0861eda2ef1f491f6407da3a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 12:12:31 +0000 Subject: [PATCH 13/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +++- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 18 ++++++-------- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 16 ++++++------- src/resources/stories/highlights.ts | 13 ++++++---- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 20 +++++++--------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 18 +++++++------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 20 ++++++++-------- .../user-lists/user-lists.test.ts | 8 +++++-- 27 files changed, 122 insertions(+), 120 deletions(-) diff --git a/.stats.yml b/.stats.yml index e403fe0..1ab2730 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-66432b705e73f5f3a80162c5a91d4f4f3216319c075d1e6491b80e0ec7c3a0bc.yml -openapi_spec_hash: ae75154ff3e4cad180cd49f21f7c3edf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-934dfcbcc28cc77e65463c2aec3a558e29e86c13ba73e6ba9a1d75474f954c40.yml +openapi_spec_hash: 1eee160806b94ae8bcddd1114c0f5c66 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index c9346c8..0218bfb 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,9 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('ut'); + * const response = await client.accounts.disconnect( + * 'similique', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 6048bce..050a2af 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,10 +31,9 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers( - * 'modi', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('vel', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index daa37b5..af9ad35 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'autem', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'autem', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 4e608a4..b0f843b 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,13 +11,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create( - * 'assumenda', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('eos', { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }); * ``` */ create( @@ -37,10 +34,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'assumenda', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('eos', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a952..a976781 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff07..2b04cbb 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 31a1c8f..0dcc7dd 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,9 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks( - * 'quidem', - * ); + * const response = await client.smartLinks.listClicks('a'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'facilis', + * 'dolorum', * ); * ``` */ @@ -114,7 +112,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'officia', + * 'blanditiis', * ); * ``` */ @@ -131,7 +129,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('ut'); + * const response = await client.smartLinks.listSpenders( + * 'doloribus', + * ); * ``` */ listSpenders( @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('aut'); + * await client.smartLinks.retrieveCohortArps('assumenda'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'ea', + * 'molestias', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e1c746..c7cb254 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'quidem', + * 'asperiores', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quidem', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'asperiores', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }, + * ); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index afec8a8..24d3016 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'non', + * 'ducimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'non', + * 'ducimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('error', { + * await client.trackingLinks.getCohortArps('non', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'consequatur', + * 'sed', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f00781e..3a23ef0 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,10 +50,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve( - * 'assumenda', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('at', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'assumenda', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('at', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'consequatur', + * 'nostrum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nihil', { + * await client.trialLinks.retrieveCohortArps('excepturi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'et', + * 'nesciunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e148359..e86957b 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'hrthqjfqgmvb' }, + * { name: 'brtolusozohwsysuvsajvlcxw' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 7f7f936..eca4ab4 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('ut'); + const responsePromise = client.accounts.disconnect('similique'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 1e08156..3f786f6 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'voluptas', + auth_id: 'est', auth_type: 'mobile_app', - cookies: 'et', + cookies: 'accusamus', customProxy: { host: 'proxy.example.com', - password: 'qS*N*uL_', + password: "^'K5~T;", port: 8080, - username: 'voluptatibus', + username: 'ex', }, - email: 'triston96@example.org', + email: 'madison.sanford@example.com', force_connect: true, - name: 'laborum', - password: 'z|4Hba!J*[1tY', + name: 'eum', + password: 'p.CmQSFK,m&M6Ih7O', proxyCountry: 'uk', - user_agent: 'ut', - xbc: 'exercitationem', + user_agent: 'earum', + xbc: 'aliquam', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 261763a..afbb8eb 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('modi', { + const responsePromise = client.engagement.messages.getMessageBuyers('vel', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('modi', { + const response = await client.engagement.messages.getMessageBuyers('vel', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 6989253..e6c1db3 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('autem', { + const responsePromise = client.media.vault.lists.media.add('et', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('autem', { + const response = await client.media.vault.lists.media.add('et', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('autem', { + const responsePromise = client.media.vault.lists.media.remove('et', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('autem', { + const response = await client.media.vault.lists.media.remove('et', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e769f5c..2533389 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'purchases', + type: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 4643686..e17361c 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('assumenda', { + const responsePromise = client.posts.comments.create('eos', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('assumenda', { + const response = await client.posts.comments.create('eos', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('assumenda', { + const response = await client.posts.comments.list('eos', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 8e5b056..4ec8acc 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e1..96d399d 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 9f78698..fd04687 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quidem'); + const responsePromise = client.smartLinks.listClicks('a'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'quidem', + 'a', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('facilis'); + const responsePromise = client.smartLinks.listConversions('dolorum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'facilis', + 'dolorum', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('officia'); + const responsePromise = client.smartLinks.listFans('blanditiis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'officia', + 'blanditiis', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ut'); + const responsePromise = client.smartLinks.listSpenders('doloribus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'ut', + 'doloribus', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('aut'); + const responsePromise = client.smartLinks.retrieveCohortArps('assumenda'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'aut', + 'assumenda', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('ea'); + const responsePromise = client.smartLinks.retrieveStats('molestias'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'ea', + 'molestias', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index a33944b..bfe94b5 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'lw', tags: ['hbmsfbiiqpohllcshysjbodco'] }, + filter: { search: 'nmk', tags: ['hlmcnvv'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'va', tags: ['uhyqd'] }, + filter: { search: 'gktdilvtqglvciejdiunakdh', tags: ['rmuqsz'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'wpgkmzjjxf', - tags: ['bst'], + search: 'bdqvdamsdyyq', + tags: ['jqiqpym'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'xrrhmdkfvdhufa', - tags: ['owogdbrrtuvvuhpjqdyblwy'], + include_smart_links: false, + search: 'qmyxpgedvxeejmrcnoibqel', + tags: ['f'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index c8688ed..a95e5a5 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('quidem', { + const responsePromise = client.stories.highlights.addStory('asperiores', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('quidem', { + const response = await client.stories.highlights.addStory('asperiores', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('quidem', { + const responsePromise = client.stories.highlights.removeStory('asperiores', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('quidem', { + const response = await client.stories.highlights.removeStory('asperiores', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index fda4f3c..327b0cd 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('error', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('error', { + const response = await client.trackingLinks.getCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('consequatur', { + const response = await client.trackingLinks.getStats('sed', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index aea046c..8bc7bcc 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('at', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('at', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('at', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('at', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('consequatur', { + const responsePromise = client.trialLinks.listSubscribers('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('consequatur', { + const response = await client.trialLinks.listSubscribers('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('nihil', { + const responsePromise = client.trialLinks.retrieveCohortArps('excepturi', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('nihil', { + const response = await client.trialLinks.retrieveCohortArps('excepturi', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('et', { + const response = await client.trialLinks.retrieveStats('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index ef4f5d0..2fb0286 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,9 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hrthqjfqgmvb' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'brtolusozohwsysuvsajvlcxw', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,9 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hrthqjfqgmvb' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'brtolusozohwsysuvsajvlcxw', + }); }); // Mock server tests are disabled From ad300ac3fb405cebd716bdd0e28d40b419ca6012 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 16:12:34 +0000 Subject: [PATCH 14/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 18 ++++++++------ .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 16 ++++++------- src/resources/stories/highlights.ts | 13 ++++------ .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 20 +++++++++------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++--------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 20 ++++++++-------- .../user-lists/user-lists.test.ts | 8 ++----- 25 files changed, 120 insertions(+), 121 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1ab2730..0cc982e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-934dfcbcc28cc77e65463c2aec3a558e29e86c13ba73e6ba9a1d75474f954c40.yml -openapi_spec_hash: 1eee160806b94ae8bcddd1114c0f5c66 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e55a50c2c81f5391740f555c303206c2b2630a1209919d72b8a6a6e69db1f4f4.yml +openapi_spec_hash: 5a60d7cd395c23807527f20ade0c9b27 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 0218bfb..67f7393 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -30,7 +30,7 @@ export class Accounts extends APIResource { * @example * ```ts * const response = await client.accounts.disconnect( - * 'similique', + * 'consequatur', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 050a2af..a7ba108 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,9 +31,10 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('vel', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'repellat', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index af9ad35..77850ab 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'et', + * 'sed', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'et', + * 'sed', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b0f843b..b7182b6 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,10 +11,13 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create('eos', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'commodi', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }, + * ); * ``` */ create( @@ -34,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('eos', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'commodi', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb..a84ff07 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 0dcc7dd..2f91a36 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('a'); + * const response = await client.smartLinks.listClicks( + * 'delectus', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'dolorum', + * 'in', * ); * ``` */ @@ -112,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'blanditiis', + * 'voluptates', * ); * ``` */ @@ -129,9 +131,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'doloribus', - * ); + * const response = await client.smartLinks.listSpenders('et'); * ``` */ listSpenders( @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('assumenda'); + * await client.smartLinks.retrieveCohortArps('et'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'molestias', + * 'consequatur', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index c7cb254..3e3e1c8 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'asperiores', + * 'dolor', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'asperiores', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('dolor', { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 24d3016..cd5dc39 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'ducimus', + * 'quod', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ducimus', + * 'quod', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('non', { + * await client.trackingLinks.getCohortArps('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'sed', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3a23ef0..ac5c7b2 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,9 +50,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('at', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'numquam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('at', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'numquam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'nostrum', + * 'fugiat', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('excepturi', { + * await client.trialLinks.retrieveCohortArps('ullam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nesciunt', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e86957b..87d86ce 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'brtolusozohwsysuvsajvlcxw' }, + * { name: 'dvekkxgdrjbkgolizpqu' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index eca4ab4..33d4dda 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('similique'); + const responsePromise = client.accounts.disconnect('consequatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 3f786f6..13b302c 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'est', - auth_type: 'mobile_app', - cookies: 'accusamus', + auth_id: 'cupiditate', + auth_type: 'raw_data', + cookies: 'numquam', customProxy: { host: 'proxy.example.com', - password: "^'K5~T;", + password: 'pze7.j%$,~', port: 8080, - username: 'ex', + username: 'temporibus', }, - email: 'madison.sanford@example.com', + email: 'conroy.fabian@example.org', force_connect: true, - name: 'eum', - password: 'p.CmQSFK,m&M6Ih7O', - proxyCountry: 'uk', - user_agent: 'earum', - xbc: 'aliquam', + name: 'quos', + password: ',q0>ov`>$35k4IB', + proxyCountry: 'us', + user_agent: 'porro', + xbc: 'eum', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index afbb8eb..fbbfdb0 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('vel', { + const responsePromise = client.engagement.messages.getMessageBuyers('repellat', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('vel', { + const response = await client.engagement.messages.getMessageBuyers('repellat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index e6c1db3..e74ef6c 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('et', { + const responsePromise = client.media.vault.lists.media.add('sed', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('et', { + const response = await client.media.vault.lists.media.add('sed', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('et', { + const responsePromise = client.media.vault.lists.media.remove('sed', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('et', { + const response = await client.media.vault.lists.media.remove('sed', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 2533389..7b04294 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'subscriptions', + type: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index e17361c..225529d 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('eos', { + const responsePromise = client.posts.comments.create('commodi', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('eos', { + const response = await client.posts.comments.create('commodi', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('commodi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('eos', { + const response = await client.posts.comments.list('commodi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399d..02883e1 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1c..6b1dc2f 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: true, + isForward: false, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index fd04687..0d9804a 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('a'); + const responsePromise = client.smartLinks.listClicks('delectus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'a', + 'delectus', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('dolorum'); + const responsePromise = client.smartLinks.listConversions('in'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'dolorum', + 'in', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('blanditiis'); + const responsePromise = client.smartLinks.listFans('voluptates'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'blanditiis', + 'voluptates', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('doloribus'); + const responsePromise = client.smartLinks.listSpenders('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'doloribus', + 'et', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('assumenda'); + const responsePromise = client.smartLinks.retrieveCohortArps('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'assumenda', + 'et', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('molestias'); + const responsePromise = client.smartLinks.retrieveStats('consequatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'molestias', + 'consequatur', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index bfe94b5..bea5c59 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'nmk', tags: ['hlmcnvv'] }, + filter: { search: 'grlbialoorw', tags: ['vcn'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'gktdilvtqglvciejdiunakdh', tags: ['rmuqsz'] }, + filter: { search: 'mjgzvnmmyaeyxclgydhu', tags: ['mmfjbmrjxyedmmahshzxsfljs'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'bdqvdamsdyyq', - tags: ['jqiqpym'], + search: 'x', + tags: ['quoucmjujvnjn'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'qmyxpgedvxeejmrcnoibqel', - tags: ['f'], + search: 'qpblklloxxetckcohzfuqbool', + tags: ['ctwhama'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index a95e5a5..d2929fa 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('asperiores', { + const responsePromise = client.stories.highlights.addStory('dolor', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('asperiores', { + const response = await client.stories.highlights.addStory('dolor', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('asperiores', { + const responsePromise = client.stories.highlights.removeStory('dolor', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('asperiores', { + const response = await client.stories.highlights.removeStory('dolor', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 327b0cd..2f1304c 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('ducimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('non', { + const response = await client.trackingLinks.getCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('sed', { + const response = await client.trackingLinks.getStats('et', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 8bc7bcc..300c4ef 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('at', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('at', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('at', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('at', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('nostrum', { + const responsePromise = client.trialLinks.listSubscribers('fugiat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('nostrum', { + const response = await client.trialLinks.listSubscribers('fugiat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('excepturi', { + const responsePromise = client.trialLinks.retrieveCohortArps('ullam', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('excepturi', { + const response = await client.trialLinks.retrieveCohortArps('ullam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('nesciunt', { + const response = await client.trialLinks.retrieveStats('nihil', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 2fb0286..68c6e8c 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,9 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'brtolusozohwsysuvsajvlcxw', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dvekkxgdrjbkgolizpqu' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,9 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'brtolusozohwsysuvsajvlcxw', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dvekkxgdrjbkgolizpqu' }); }); // Mock server tests are disabled From 83acb2edc04277e8494e469cd596cec1faa4ed81 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 18:12:31 +0000 Subject: [PATCH 15/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +--- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 4 ++-- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 18 +++++++------- src/resources/stories/highlights.ts | 13 ++++++---- .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 15 ++++++------ src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 24 +++++++++---------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 20 ++++++++-------- .../user-lists/user-lists.test.ts | 8 +++++-- 29 files changed, 119 insertions(+), 116 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0cc982e..74e305f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e55a50c2c81f5391740f555c303206c2b2630a1209919d72b8a6a6e69db1f4f4.yml -openapi_spec_hash: 5a60d7cd395c23807527f20ade0c9b27 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1d0fb906843e55b3d7588949981f47bd5e396d7b7f3fafd5d1a654e771560d0a.yml +openapi_spec_hash: 603da045db41673bca4f25cf1dccc873 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 67f7393..ca6cda0 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,9 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect( - * 'consequatur', - * ); + * const response = await client.accounts.disconnect('id'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a7ba108..64266b1 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'repellat', + * 'sunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 77850ab..2f38ae6 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'sed', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'sed', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b7182b6..1e5e4ad 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'commodi', + * 'voluptatem', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -38,7 +38,7 @@ export class Comments extends APIResource { * @example * ```ts * const comments = await client.posts.comments.list( - * 'commodi', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a976781..09d6973 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff07..2b04cbb 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 2f91a36..42d1188 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,9 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks( - * 'delectus', - * ); + * const response = await client.smartLinks.listClicks('et'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'in', + * 'animi', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'voluptates', - * ); + * const response = await client.smartLinks.listFans('nisi'); * ``` */ listFans( @@ -131,7 +127,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('et'); + * const response = await client.smartLinks.listSpenders( + * 'aut', + * ); * ``` */ listSpenders( @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('et'); + * await client.smartLinks.retrieveCohortArps('eum'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'consequatur', + * 'perferendis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e3e1c8..391f277 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'dolor', + * 'distinctio', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('dolor', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'distinctio', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }, + * ); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index cd5dc39..b00b11d 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'quod', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quod', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('qui', { + * await client.trackingLinks.getCohortArps('vero', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'similique', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index ac5c7b2..76032fd 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'numquam', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'numquam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('omnis', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'fugiat', + * 'quaerat', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ullam', { + * await client.trialLinks.retrieveCohortArps('quibusdam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nihil', + * 'expedita', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 87d86ce..4ca22c6 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'dvekkxgdrjbkgolizpqu' }, + * { name: 'jgjdgkvafywrsyrcyizljf' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 33d4dda..8da98ca 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('consequatur'); + const responsePromise = client.accounts.disconnect('id'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 13b302c..b09e33b 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'cupiditate', - auth_type: 'raw_data', - cookies: 'numquam', + auth_id: 'placeat', + auth_type: 'mobile_app', + cookies: 'beatae', customProxy: { host: 'proxy.example.com', - password: 'pze7.j%$,~', + password: '=U5JYZj.a&F(s', port: 8080, - username: 'temporibus', + username: 'est', }, - email: 'conroy.fabian@example.org', - force_connect: true, - name: 'quos', - password: ',q0>ov`>$35k4IB', - proxyCountry: 'us', - user_agent: 'porro', - xbc: 'eum', + email: 'otilia.gorczany@example.net', + force_connect: false, + name: 'natus', + password: '=xgmp+', + proxyCountry: 'uk', + user_agent: 'facere', + xbc: 'qui', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d..229de46 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index fbbfdb0..94248f8 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('repellat', { + const responsePromise = client.engagement.messages.getMessageBuyers('sunt', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('repellat', { + const response = await client.engagement.messages.getMessageBuyers('sunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index e74ef6c..19155ed 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('sed', { + const responsePromise = client.media.vault.lists.media.add('ut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('sed', { + const response = await client.media.vault.lists.media.add('ut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('sed', { + const responsePromise = client.media.vault.lists.media.remove('ut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('sed', { + const response = await client.media.vault.lists.media.remove('ut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b04294..42643a6 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'comments', + type: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 225529d..8aee5ef 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('commodi', { + const responsePromise = client.posts.comments.create('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('commodi', { + const response = await client.posts.comments.create('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('commodi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('commodi', { + const response = await client.posts.comments.list('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 4ec8acc..e2edc67 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e1..96d399d 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2f..d13ad1c 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: false, + isForward: true, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 0d9804a..940e135 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('delectus'); + const responsePromise = client.smartLinks.listClicks('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'delectus', + 'et', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('in'); + const responsePromise = client.smartLinks.listConversions('animi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'in', + 'animi', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('voluptates'); + const responsePromise = client.smartLinks.listFans('nisi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'voluptates', + 'nisi', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('et'); + const responsePromise = client.smartLinks.listSpenders('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'et', + 'aut', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('et'); + const responsePromise = client.smartLinks.retrieveCohortArps('eum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'et', + 'eum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('consequatur'); + const responsePromise = client.smartLinks.retrieveStats('perferendis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'consequatur', + 'perferendis', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index bea5c59..74a79a1 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'grlbialoorw', tags: ['vcn'] }, + filter: { search: 'bhpkxlqwrxldvrfxdn', tags: ['fpcnqpamdczuehgsrlc'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'mjgzvnmmyaeyxclgydhu', tags: ['mmfjbmrjxyedmmahshzxsfljs'] }, + filter: { search: 'rcyqrptav', tags: ['xivtltezkgtfhxjms'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'x', - tags: ['quoucmjujvnjn'], + include_smart_links: true, + search: 'qwxdalidkkhgqxmlhmuscujvo', + tags: ['xivjgvkwjsdluksqx'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'qpblklloxxetckcohzfuqbool', - tags: ['ctwhama'], + search: 'zsfjcdivfhppxcbksl', + tags: ['kddjoaciuyxvbncr'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index d2929fa..7167a16 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('dolor', { + const responsePromise = client.stories.highlights.addStory('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('dolor', { + const response = await client.stories.highlights.addStory('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('dolor', { + const responsePromise = client.stories.highlights.removeStory('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('dolor', { + const response = await client.stories.highlights.removeStory('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 2f1304c..eacb9e7 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('quod', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('qui', { + const response = await client.trackingLinks.getCohortArps('vero', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('et', { + const response = await client.trackingLinks.getStats('similique', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 300c4ef..682a35b 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('numquam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('fugiat', { + const responsePromise = client.trialLinks.listSubscribers('quaerat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('fugiat', { + const response = await client.trialLinks.listSubscribers('quaerat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('ullam', { + const responsePromise = client.trialLinks.retrieveCohortArps('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('ullam', { + const response = await client.trialLinks.retrieveCohortArps('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('expedita', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('nihil', { + const response = await client.trialLinks.retrieveStats('expedita', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 68c6e8c..c650362 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,9 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dvekkxgdrjbkgolizpqu' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'jgjdgkvafywrsyrcyizljf', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,9 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dvekkxgdrjbkgolizpqu' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'jgjdgkvafywrsyrcyizljf', + }); }); // Mock server tests are disabled From a514bd1af8d12749bf37af858f70087126d6efbf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 00:12:30 +0000 Subject: [PATCH 16/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +++- src/resources/engagement/messages/messages.ts | 2 +- src/resources/posts/comments.ts | 4 ++-- .../saved-for-later/messages/settings.ts | 2 +- src/resources/smart-links.ts | 12 +++++----- src/resources/stories/highlights.ts | 13 ++++------ .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 15 ++++++------ src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 22 ++++++++--------- .../user-lists/user-lists.test.ts | 8 ++----- 24 files changed, 98 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index 74e305f..f02fa89 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1d0fb906843e55b3d7588949981f47bd5e396d7b7f3fafd5d1a654e771560d0a.yml -openapi_spec_hash: 603da045db41673bca4f25cf1dccc873 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3cb873d908d3b4b81941e932344db46ecf629f68ec79a5edd0751edc3d245470.yml +openapi_spec_hash: a0b2473d40f23a530c4586a513838305 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ca6cda0..5366ae9 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,9 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('id'); + * const response = await client.accounts.disconnect( + * 'laudantium', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 64266b1..07bc710 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'sunt', + * 'numquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1e5e4ad..1d67b61 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'voluptatem', + * 'beatae', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -38,7 +38,7 @@ export class Comments extends APIResource { * @example * ```ts * const comments = await client.posts.comments.list( - * 'voluptatem', + * 'beatae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973..e20f70d 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 42d1188..dc6a514 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('et'); + * const response = await client.smartLinks.listClicks('id'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'animi', + * 'ex', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('nisi'); + * const response = await client.smartLinks.listFans('quae'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'aut', + * 'odit', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('eum'); + * await client.smartLinks.retrieveCohortArps('rem'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'perferendis', + * 'aliquam', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 391f277..fdc3bd6 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'distinctio', + * 'officia', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'distinctio', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('officia', { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index b00b11d..fd2edbf 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'omnis', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'omnis', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('vero', { + * await client.trackingLinks.getCohortArps('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'similique', + * 'rem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 76032fd..fadf6e3 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'omnis', + * 'blanditiis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('omnis', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'blanditiis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quaerat', + * 'deserunt', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quibusdam', { + * await client.trialLinks.retrieveCohortArps('id', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'expedita', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 4ca22c6..ec3af09 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'jgjdgkvafywrsyrcyizljf' }, + * { name: 'zdftzflzq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 8da98ca..f253054 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('id'); + const responsePromise = client.accounts.disconnect('laudantium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index b09e33b..f119b2a 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'placeat', + auth_id: 'sed', auth_type: 'mobile_app', - cookies: 'beatae', + cookies: 'aut', customProxy: { host: 'proxy.example.com', - password: '=U5JYZj.a&F(s', + password: 'wkI.Lb+', port: 8080, - username: 'est', + username: 'quam', }, - email: 'otilia.gorczany@example.net', - force_connect: false, - name: 'natus', - password: '=xgmp+', + email: 'eveline18@example.com', + force_connect: true, + name: 'quos', + password: '_E&9kHe}w', proxyCountry: 'uk', - user_agent: 'facere', - xbc: 'qui', + user_agent: 'perferendis', + xbc: 'quia', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de46..c17a81d 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 94248f8..b018e79 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('sunt', { + const responsePromise = client.engagement.messages.getMessageBuyers('numquam', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('sunt', { + const response = await client.engagement.messages.getMessageBuyers('numquam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a6..2533389 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'mentions', + type: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 8aee5ef..715b94d 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('voluptatem', { + const responsePromise = client.posts.comments.create('beatae', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('voluptatem', { + const response = await client.posts.comments.create('beatae', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('voluptatem', { + const response = await client.posts.comments.list('beatae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index e2edc67..fd74b68 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 940e135..43744a7 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('et'); + const responsePromise = client.smartLinks.listClicks('id'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'et', + 'id', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('animi'); + const responsePromise = client.smartLinks.listConversions('ex'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'animi', + 'ex', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('nisi'); + const responsePromise = client.smartLinks.listFans('quae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'nisi', + 'quae', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('aut'); + const responsePromise = client.smartLinks.listSpenders('odit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'aut', + 'odit', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('eum'); + const responsePromise = client.smartLinks.retrieveCohortArps('rem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'eum', + 'rem', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('perferendis'); + const responsePromise = client.smartLinks.retrieveStats('aliquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'perferendis', + 'aliquam', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 74a79a1..af57c3e 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'bhpkxlqwrxldvrfxdn', tags: ['fpcnqpamdczuehgsrlc'] }, + filter: { search: 'qswr', tags: ['yvvtvwhtxd'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rcyqrptav', tags: ['xivtltezkgtfhxjms'] }, + filter: { search: 'evyrhcwqtntpvhns', tags: ['zonosukkipcxdknogktm'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'qwxdalidkkhgqxmlhmuscujvo', - tags: ['xivjgvkwjsdluksqx'], + search: 'pm', + tags: ['wtlwuhazlp'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'zsfjcdivfhppxcbksl', - tags: ['kddjoaciuyxvbncr'], + include_smart_links: true, + search: 'snplardxcadjuirmn', + tags: ['rmpbcssofxoxwazesrkjgzxha'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7167a16..7f74ac5 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('distinctio', { + const responsePromise = client.stories.highlights.addStory('officia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('distinctio', { + const response = await client.stories.highlights.addStory('officia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('distinctio', { + const responsePromise = client.stories.highlights.removeStory('officia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('distinctio', { + const response = await client.stories.highlights.removeStory('officia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index eacb9e7..730cc30 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('vero', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('vero', { + const response = await client.trackingLinks.getCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('similique', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('rem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('similique', { + const response = await client.trackingLinks.getStats('rem', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 682a35b..20d8a90 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('quaerat', { + const responsePromise = client.trialLinks.listSubscribers('deserunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('quaerat', { + const response = await client.trialLinks.listSubscribers('deserunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,9 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('quibusdam', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('id', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -157,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('quibusdam', { + const response = await client.trialLinks.retrieveCohortArps('id', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('expedita', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('expedita', { + const response = await client.trialLinks.retrieveStats('omnis', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index c650362..3c4df77 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,9 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'jgjdgkvafywrsyrcyizljf', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zdftzflzq' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,9 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'jgjdgkvafywrsyrcyizljf', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zdftzflzq' }); }); // Mock server tests are disabled From 21aaa9051c98389cd43e3ed577b1a55dc90c1cdd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 10:12:34 +0000 Subject: [PATCH 17/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 18 ++++++-------- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 ++++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 10 ++++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 20 ++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 28 files changed, 108 insertions(+), 111 deletions(-) diff --git a/.stats.yml b/.stats.yml index f02fa89..de968c8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3cb873d908d3b4b81941e932344db46ecf629f68ec79a5edd0751edc3d245470.yml -openapi_spec_hash: a0b2473d40f23a530c4586a513838305 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b7d9b62b07992b1915071ab795f6636a508caba021b53c6e5a2a710a4b5241d2.yml +openapi_spec_hash: 06d16ab25f3ea370fd1f98a00f47f0a0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 5366ae9..ee756aa 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -30,7 +30,7 @@ export class Accounts extends APIResource { * @example * ```ts * const response = await client.accounts.disconnect( - * 'laudantium', + * 'voluptas', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 07bc710..a5c5e92 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,10 +31,9 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers( - * 'numquam', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('ut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2f38ae6..a9b53c1 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'ut', + * 'eligendi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'ut', + * 'eligendi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1d67b61..0b5fb77 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,13 +11,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create( - * 'beatae', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('est', { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }); * ``` */ create( @@ -37,10 +34,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'beatae', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('est', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d..09d6973 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb..a84ff07 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index dc6a514..e0156ed 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('id'); + * const response = await client.smartLinks.listClicks('fuga'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ex', + * 'ipsum', * ); * ``` */ @@ -111,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quae'); + * const response = await client.smartLinks.listFans( + * 'deleniti', + * ); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'odit', + * 'dolorum', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('rem'); + * await client.smartLinks.retrieveCohortArps('non'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'aliquam', + * 'libero', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index fdc3bd6..a9c614a 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'officia', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('officia', { + * await client.stories.highlights.removeStory('et', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index fd2edbf..01621fc 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'doloremque', + * 'asperiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'doloremque', + * 'asperiores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('qui', { + * await client.trackingLinks.getCohortArps('nam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'rem', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index fadf6e3..693cc87 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'blanditiis', + * 'repellat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'blanditiis', + * 'repellat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'deserunt', + * 'vitae', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('id', { + * await client.trialLinks.retrieveCohortArps('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'omnis', + * 'quibusdam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index ec3af09..a3e613d 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'zdftzflzq' }, + * { name: 'gwdimjpdnyjxck' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index f253054..44c2278 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('laudantium'); + const responsePromise = client.accounts.disconnect('voluptas'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index f119b2a..a51fb52 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'sed', + auth_id: 'quidem', auth_type: 'mobile_app', - cookies: 'aut', + cookies: 'accusantium', customProxy: { host: 'proxy.example.com', - password: 'wkI.Lb+', + password: '04|.3`LFYSu-jn?l', port: 8080, - username: 'quam', + username: 'repellendus', }, - email: 'eveline18@example.com', - force_connect: true, - name: 'quos', - password: '_E&9kHe}w', + email: 'berry52@example.net', + force_connect: false, + name: 'libero', + password: 'qn-QD[{', proxyCountry: 'uk', - user_agent: 'perferendis', - xbc: 'quia', + user_agent: 'quam', + xbc: 'culpa', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index b018e79..5d39f0e 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('numquam', { + const responsePromise = client.engagement.messages.getMessageBuyers('ut', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('numquam', { + const response = await client.engagement.messages.getMessageBuyers('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 19155ed..130dc74 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('ut', { + const responsePromise = client.media.vault.lists.media.add('eligendi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('ut', { + const response = await client.media.vault.lists.media.add('eligendi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('ut', { + const responsePromise = client.media.vault.lists.media.remove('eligendi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('ut', { + const response = await client.media.vault.lists.media.remove('eligendi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 2533389..7b04294 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'subscriptions', + type: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 715b94d..1f347b4 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('beatae', { + const responsePromise = client.posts.comments.create('est', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('beatae', { + const response = await client.posts.comments.create('est', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('beatae', { + const response = await client.posts.comments.list('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index fd74b68..e2edc67 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399d..02883e1 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1c..6b1dc2f 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: true, + isForward: false, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 43744a7..dc4044d 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('id'); + const responsePromise = client.smartLinks.listClicks('fuga'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'id', + 'fuga', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('ex'); + const responsePromise = client.smartLinks.listConversions('ipsum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'ex', + 'ipsum', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('quae'); + const responsePromise = client.smartLinks.listFans('deleniti'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'quae', + 'deleniti', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('odit'); + const responsePromise = client.smartLinks.listSpenders('dolorum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'odit', + 'dolorum', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('rem'); + const responsePromise = client.smartLinks.retrieveCohortArps('non'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'rem', + 'non', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('aliquam'); + const responsePromise = client.smartLinks.retrieveStats('libero'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'aliquam', + 'libero', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index af57c3e..d6a5981 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qswr', tags: ['yvvtvwhtxd'] }, + filter: { search: 'kkweaxpjjxbwu', tags: ['tyukz'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'evyrhcwqtntpvhns', tags: ['zonosukkipcxdknogktm'] }, + filter: { search: 'cqdilcnrjajeh', tags: ['sedvirmvtqlvvc'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'pm', - tags: ['wtlwuhazlp'], + search: 'cvfwddjacuao', + tags: ['uppuicvrofiyqafdibxqxezw'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'snplardxcadjuirmn', - tags: ['rmpbcssofxoxwazesrkjgzxha'], + include_smart_links: false, + search: 'egoriglrhzcdqkyjukzalpjv', + tags: ['sapdalqkwrk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7f74ac5..fca45b0 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('officia', { + const responsePromise = client.stories.highlights.addStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('officia', { + const response = await client.stories.highlights.addStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('officia', { + const responsePromise = client.stories.highlights.removeStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('officia', { + const response = await client.stories.highlights.removeStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 730cc30..b207a9a 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('qui', { + const response = await client.trackingLinks.getCohortArps('nam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('rem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('rem', { + const response = await client.trackingLinks.getStats('quia', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 20d8a90..ab5e4fc 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('deserunt', { + const responsePromise = client.trialLinks.listSubscribers('vitae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('deserunt', { + const response = await client.trialLinks.listSubscribers('vitae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('id', { + const response = await client.trialLinks.retrieveCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('omnis', { + const response = await client.trialLinks.retrieveStats('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 3c4df77..e983f5f 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zdftzflzq' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gwdimjpdnyjxck' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zdftzflzq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gwdimjpdnyjxck' }); }); // Mock server tests are disabled From 864ab2a56a9233228eb3053c0126794e1ae58182 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 13:12:33 +0000 Subject: [PATCH 18/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 13 ++++++---- .../saved-for-later/messages/settings.ts | 2 +- src/resources/smart-links.ts | 14 +++++------ src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 15 ++++++------ src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 25 files changed, 110 insertions(+), 105 deletions(-) diff --git a/.stats.yml b/.stats.yml index de968c8..62663e5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b7d9b62b07992b1915071ab795f6636a508caba021b53c6e5a2a710a4b5241d2.yml -openapi_spec_hash: 06d16ab25f3ea370fd1f98a00f47f0a0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9eac1756e78aa7ebb44a52251e6cc7e9b71453f4b83621038502db7001fe2e81.yml +openapi_spec_hash: 5e1e13e08b9151eec63c62350b75a542 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ee756aa..192bbb1 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -30,7 +30,7 @@ export class Accounts extends APIResource { * @example * ```ts * const response = await client.accounts.disconnect( - * 'voluptas', + * 'consectetur', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a5c5e92..a9b996e 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,9 +31,10 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'esse', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a9b53c1..415b53f 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'eligendi', + * 'illo', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'eligendi', + * 'illo', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0b5fb77..f36b1c5 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,10 +11,13 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create('est', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'sequi', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }, + * ); * ``` */ create( @@ -34,7 +37,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('est', { + * const comments = await client.posts.comments.list('sequi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973..a976781 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index e0156ed..d3f4273 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('fuga'); + * const response = await client.smartLinks.listClicks('sed'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ipsum', + * 'pariatur', * ); * ``` */ @@ -111,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'deleniti', - * ); + * const response = await client.smartLinks.listFans('fugiat'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'dolorum', + * 'totam', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('non'); + * await client.smartLinks.retrieveCohortArps('quis'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'libero', + * 'doloremque', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a..adfdc4b 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'et', + * 'sapiente', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('et', { + * await client.stories.highlights.removeStory('sapiente', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 01621fc..9c2caf4 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'asperiores', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'asperiores', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('nam', { + * await client.trackingLinks.getCohortArps('cupiditate', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'quia', + * 'molestias', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 693cc87..9d01625 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'repellat', + * 'natus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'repellat', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('natus', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'vitae', + * 'reprehenderit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('qui', { + * await client.trialLinks.retrieveCohortArps('laboriosam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quibusdam', + * 'nobis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a3e613d..52dfdc1 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'gwdimjpdnyjxck' }, + * { name: 'ulbo' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 44c2278..bf5bd2c 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('voluptas'); + const responsePromise = client.accounts.disconnect('consectetur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index a51fb52..893d17e 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'quidem', - auth_type: 'mobile_app', - cookies: 'accusantium', + auth_id: 'voluptate', + auth_type: 'raw_data', + cookies: 'aliquid', customProxy: { host: 'proxy.example.com', - password: '04|.3`LFYSu-jn?l', + password: 'E?1eXPBS@#Ixn', port: 8080, - username: 'repellendus', + username: 'iure', }, - email: 'berry52@example.net', + email: 'labadie.seth@example.org', force_connect: false, - name: 'libero', - password: 'qn-QD[{', + name: 'nihil', + password: '&`M#]u&=l,^n1pcRm', proxyCountry: 'uk', - user_agent: 'quam', - xbc: 'culpa', + user_agent: 'eos', + xbc: 'quibusdam', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 5d39f0e..9a005f9 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('ut', { + const responsePromise = client.engagement.messages.getMessageBuyers('esse', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('ut', { + const response = await client.engagement.messages.getMessageBuyers('esse', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 130dc74..777722d 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('eligendi', { + const responsePromise = client.media.vault.lists.media.add('illo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('eligendi', { + const response = await client.media.vault.lists.media.add('illo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('eligendi', { + const responsePromise = client.media.vault.lists.media.remove('illo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('eligendi', { + const response = await client.media.vault.lists.media.remove('illo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b04294..42643a6 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'comments', + type: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 1f347b4..eadcb6b 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('est', { + const responsePromise = client.posts.comments.create('sequi', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('est', { + const response = await client.posts.comments.create('sequi', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('sequi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('est', { + const response = await client.posts.comments.list('sequi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index e2edc67..4ec8acc 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index dc4044d..963d82d 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('fuga'); + const responsePromise = client.smartLinks.listClicks('sed'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'fuga', + 'sed', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('ipsum'); + const responsePromise = client.smartLinks.listConversions('pariatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'ipsum', + 'pariatur', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('deleniti'); + const responsePromise = client.smartLinks.listFans('fugiat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'deleniti', + 'fugiat', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('dolorum'); + const responsePromise = client.smartLinks.listSpenders('totam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'dolorum', + 'totam', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('non'); + const responsePromise = client.smartLinks.retrieveCohortArps('quis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'non', + 'quis', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('libero'); + const responsePromise = client.smartLinks.retrieveStats('doloremque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'libero', + 'doloremque', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index d6a5981..4169824 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'kkweaxpjjxbwu', tags: ['tyukz'] }, + filter: { search: 'cmsrqdkjttoifpnucykkwkr', tags: ['prtcbd'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'cqdilcnrjajeh', tags: ['sedvirmvtqlvvc'] }, + filter: { search: 'ixjvtoidbksgbazqh', tags: ['xzxlvkgqtjwcdzgqkcg'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'cvfwddjacuao', - tags: ['uppuicvrofiyqafdibxqxezw'], + search: 'ylnowyoxcfjfwczjsgycng', + tags: ['gpehfu'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'egoriglrhzcdqkyjukzalpjv', - tags: ['sapdalqkwrk'], + include_smart_links: true, + search: 'itdutqbjb', + tags: ['yelkbdwbihx'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0..d94ddb8 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('et', { + const responsePromise = client.stories.highlights.addStory('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('et', { + const response = await client.stories.highlights.addStory('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('et', { + const responsePromise = client.stories.highlights.removeStory('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('et', { + const response = await client.stories.highlights.removeStory('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index b207a9a..19abc86 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('asperiores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('cupiditate', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('nam', { + const response = await client.trackingLinks.getCohortArps('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('molestias', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('quia', { + const response = await client.trackingLinks.getStats('molestias', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index ab5e4fc..4bc904f 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('vitae', { + const responsePromise = client.trialLinks.listSubscribers('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('vitae', { + const response = await client.trialLinks.listSubscribers('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('laboriosam', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('qui', { + const response = await client.trialLinks.retrieveCohortArps('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('quibusdam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('quibusdam', { + const response = await client.trialLinks.retrieveStats('nobis', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index e983f5f..d770202 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gwdimjpdnyjxck' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ulbo' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gwdimjpdnyjxck' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ulbo' }); }); // Mock server tests are disabled From c2bc00b282aca8daa45b24e6f4dc0fe66a606af4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 15:12:40 +0000 Subject: [PATCH 19/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +--- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 13 ++++------ .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 12 +++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 10 ++++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 24 +++++++++---------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 20 ++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 27 files changed, 104 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 62663e5..d04999b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9eac1756e78aa7ebb44a52251e6cc7e9b71453f4b83621038502db7001fe2e81.yml -openapi_spec_hash: 5e1e13e08b9151eec63c62350b75a542 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2a1ef16720390ce14743c08d67aa6beca760a5b721108e04c2fa9ba816141b02.yml +openapi_spec_hash: 7d897c87507de4f0c59a2e7c26a79004 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 192bbb1..f41cce0 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,9 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect( - * 'consectetur', - * ); + * const response = await client.accounts.disconnect('ipsum'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a9b996e..731f907 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'esse', + * 'earum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 415b53f..13a58c4 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'illo', + * 'neque', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'illo', + * 'neque', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index f36b1c5..ca82093 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,13 +11,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create( - * 'sequi', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('ut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }); * ``` */ create( @@ -37,7 +34,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('sequi', { + * const comments = await client.posts.comments.list('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a976781..599a952 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff07..2b04cbb 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index d3f4273..ad813bd 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('sed'); + * const response = await client.smartLinks.listClicks('iure'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'pariatur', + * 'reiciendis', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('fugiat'); + * const response = await client.smartLinks.listFans('cumque'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'totam', + * 'officiis', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quis'); + * await client.smartLinks.retrieveCohortArps('dicta'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'doloremque', + * 'sint', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index adfdc4b..67f64ce 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'sapiente', + * 'sint', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sapiente', { + * await client.stories.highlights.removeStory('sint', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 9c2caf4..d5c6a34 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'quia', + * 'occaecati', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quia', + * 'occaecati', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('cupiditate', { + * await client.trackingLinks.getCohortArps('quasi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'molestias', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('ut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 9d01625..3004085 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'natus', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('natus', { + * const trialLink = await client.trialLinks.delete('nihil', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'reprehenderit', + * 'maxime', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('laboriosam', { + * await client.trialLinks.retrieveCohortArps('ipsum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nobis', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 52dfdc1..470b912 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'ulbo' }, + * { name: 'favabwll' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index bf5bd2c..3b4e8ec 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('consectetur'); + const responsePromise = client.accounts.disconnect('ipsum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 893d17e..703de71 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'voluptate', - auth_type: 'raw_data', - cookies: 'aliquid', + auth_id: 'consequuntur', + auth_type: 'email_password', + cookies: 'accusantium', customProxy: { host: 'proxy.example.com', - password: 'E?1eXPBS@#Ixn', + password: '\\ { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('esse', { + const responsePromise = client.engagement.messages.getMessageBuyers('earum', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('esse', { + const response = await client.engagement.messages.getMessageBuyers('earum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 777722d..123e981 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('illo', { + const responsePromise = client.media.vault.lists.media.add('neque', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('illo', { + const response = await client.media.vault.lists.media.add('neque', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('illo', { + const responsePromise = client.media.vault.lists.media.remove('neque', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('illo', { + const response = await client.media.vault.lists.media.remove('neque', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index eadcb6b..548a48c 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('sequi', { + const responsePromise = client.posts.comments.create('ut', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('sequi', { + const response = await client.posts.comments.create('ut', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('sequi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('sequi', { + const response = await client.posts.comments.list('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 4ec8acc..8e5b056 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e1..96d399d 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2f..d13ad1c 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: false, + isForward: true, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 963d82d..50559bc 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('sed'); + const responsePromise = client.smartLinks.listClicks('iure'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'sed', + 'iure', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('pariatur'); + const responsePromise = client.smartLinks.listConversions('reiciendis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'pariatur', + 'reiciendis', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('fugiat'); + const responsePromise = client.smartLinks.listFans('cumque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'fugiat', + 'cumque', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('totam'); + const responsePromise = client.smartLinks.listSpenders('officiis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'totam', + 'officiis', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quis'); + const responsePromise = client.smartLinks.retrieveCohortArps('dicta'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'quis', + 'dicta', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('doloremque'); + const responsePromise = client.smartLinks.retrieveStats('sint'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'doloremque', + 'sint', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 4169824..607ecdc 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'cmsrqdkjttoifpnucykkwkr', tags: ['prtcbd'] }, + filter: { search: 'tnikeeadpdcldcwbgvqwkpjw', tags: ['kwxbzclkhfmcxoghpm'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ixjvtoidbksgbazqh', tags: ['xzxlvkgqtjwcdzgqkcg'] }, + filter: { search: 'l', tags: ['su'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ylnowyoxcfjfwczjsgycng', - tags: ['gpehfu'], + search: 'yannnhgeue', + tags: ['rdm'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'itdutqbjb', - tags: ['yelkbdwbihx'], + search: 'gsrcojswlttrmispl', + tags: ['gtisoxpsnnkfxkjyjzxc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index d94ddb8..58129b1 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('sapiente', { + const responsePromise = client.stories.highlights.addStory('sint', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('sapiente', { + const response = await client.stories.highlights.addStory('sint', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('sapiente', { + const responsePromise = client.stories.highlights.removeStory('sint', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('sapiente', { + const response = await client.stories.highlights.removeStory('sint', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 19abc86..988f8f6 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('occaecati', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('occaecati', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('occaecati', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,14 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('occaecati', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('cupiditate', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('quasi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -111,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('cupiditate', { + const response = await client.trackingLinks.getCohortArps('quasi', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('molestias', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('molestias', { + const response = await client.trackingLinks.getStats('ut', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 4bc904f..38bd14c 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('reprehenderit', { + const responsePromise = client.trialLinks.listSubscribers('maxime', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('reprehenderit', { + const response = await client.trialLinks.listSubscribers('maxime', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('laboriosam', { + const responsePromise = client.trialLinks.retrieveCohortArps('ipsum', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('laboriosam', { + const response = await client.trialLinks.retrieveCohortArps('ipsum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('nobis', { + const response = await client.trialLinks.retrieveStats('aut', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index d770202..e90ec0d 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ulbo' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'favabwll' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ulbo' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'favabwll' }); }); // Mock server tests are disabled From 5ffb97d9f3802d47f115a57bee40f3581801a3cd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 17:12:38 +0000 Subject: [PATCH 20/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 18 ++++++++------ .../saved-for-later/messages/settings.ts | 2 +- src/resources/smart-links.ts | 12 +++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 15 ++++++------ src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++--------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 22 ++++++++--------- .../user-lists/user-lists.test.ts | 4 ++-- 27 files changed, 111 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index d04999b..3e2f542 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2a1ef16720390ce14743c08d67aa6beca760a5b721108e04c2fa9ba816141b02.yml -openapi_spec_hash: 7d897c87507de4f0c59a2e7c26a79004 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c9d17ae99932b11fa8819040651f08274c017fecf393e316c45623991892d4d9.yml +openapi_spec_hash: 2c5d98333a487dcdc5b27d8d39a467a9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index f41cce0..e8b821f 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('ipsum'); + * const response = await client.accounts.disconnect('nobis'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 731f907..b9f4d3d 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'earum', + * 'quos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 13a58c4..27b521d 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'neque', + * 'dolore', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'neque', + * 'dolore', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index ca82093..1e5e4ad 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,10 +11,13 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'voluptatem', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }, + * ); * ``` */ create( @@ -34,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'voluptatem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a952..a976781 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index ad813bd..e815333 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('iure'); + * const response = await client.smartLinks.listClicks('sit'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'reiciendis', + * 'at', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('cumque'); + * const response = await client.smartLinks.listFans('quidem'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'officiis', + * 'error', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('dicta'); + * await client.smartLinks.retrieveCohortArps('qui'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'sint', + * 'possimus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 67f64ce..7b762fc 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'sint', + * 'similique', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sint', { + * await client.stories.highlights.removeStory('similique', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index d5c6a34..00d4e2b 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'occaecati', + * 'cupiditate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'occaecati', + * 'cupiditate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quasi', { + * await client.trackingLinks.getCohortArps('ipsa', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'facilis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3004085..9e0da5d 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,10 +50,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve( - * 'nihil', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('est', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('nihil', { + * const trialLink = await client.trialLinks.delete('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'maxime', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ipsum', { + * await client.trialLinks.retrieveCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aut', + * 'quam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 470b912..04856ed 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'favabwll' }, + * { name: 'yfqwkqknufqvkrkihg' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3b4e8ec..1e3be33 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('ipsum'); + const responsePromise = client.accounts.disconnect('nobis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 703de71..12c4bc1 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'consequuntur', - auth_type: 'email_password', - cookies: 'accusantium', + auth_id: 'ipsa', + auth_type: 'mobile_app', + cookies: 'dolores', customProxy: { host: 'proxy.example.com', - password: '\\ { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index e948868..b799b8d 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('earum', { + const responsePromise = client.engagement.messages.getMessageBuyers('quos', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('earum', { + const response = await client.engagement.messages.getMessageBuyers('quos', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 123e981..0cf478e 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('neque', { + const responsePromise = client.media.vault.lists.media.add('dolore', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('neque', { + const response = await client.media.vault.lists.media.add('dolore', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('neque', { + const responsePromise = client.media.vault.lists.media.remove('dolore', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('neque', { + const response = await client.media.vault.lists.media.remove('dolore', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a6..70f616c 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'mentions', + type: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 548a48c..8aee5ef 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('ut', { + const responsePromise = client.posts.comments.create('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('ut', { + const response = await client.posts.comments.create('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('ut', { + const response = await client.posts.comments.list('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 8e5b056..4ec8acc 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1c..6b1dc2f 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: true, + isForward: false, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 50559bc..81fafd0 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('iure'); + const responsePromise = client.smartLinks.listClicks('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'iure', + 'sit', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('reiciendis'); + const responsePromise = client.smartLinks.listConversions('at'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'reiciendis', + 'at', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('cumque'); + const responsePromise = client.smartLinks.listFans('quidem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'cumque', + 'quidem', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('officiis'); + const responsePromise = client.smartLinks.listSpenders('error'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'officiis', + 'error', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('dicta'); + const responsePromise = client.smartLinks.retrieveCohortArps('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'dicta', + 'qui', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('sint'); + const responsePromise = client.smartLinks.retrieveStats('possimus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'sint', + 'possimus', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 607ecdc..0afde69 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'tnikeeadpdcldcwbgvqwkpjw', tags: ['kwxbzclkhfmcxoghpm'] }, + filter: { search: 'qqheombvpwlybfrghk', tags: ['mbjgezxcez'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'l', tags: ['su'] }, + filter: { search: 'mofzhumszeempwfrtjsijn', tags: ['zmyvjn'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'yannnhgeue', - tags: ['rdm'], + search: 'htqtywisbibxp', + tags: ['zwjtlqxzkxf'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'gsrcojswlttrmispl', - tags: ['gtisoxpsnnkfxkjyjzxc'], + search: 'warfhwncfhktc', + tags: ['efjaatkslpplwprre'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 58129b1..72601d9 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('sint', { + const responsePromise = client.stories.highlights.addStory('similique', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('sint', { + const response = await client.stories.highlights.addStory('similique', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('sint', { + const responsePromise = client.stories.highlights.removeStory('similique', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('sint', { + const response = await client.stories.highlights.removeStory('similique', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 988f8f6..ae89ae4 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('occaecati', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('occaecati', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('occaecati', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('occaecati', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('quasi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('quasi', { + const response = await client.trackingLinks.getCohortArps('ipsa', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('ut', { + const response = await client.trackingLinks.getStats('facilis', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 38bd14c..d82aa7b 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('est', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('est', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('maxime', { + const responsePromise = client.trialLinks.listSubscribers('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('maxime', { + const response = await client.trialLinks.listSubscribers('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,9 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('ipsum', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -157,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('ipsum', { + const response = await client.trialLinks.retrieveCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('aut', { + const response = await client.trialLinks.retrieveStats('quam', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index e90ec0d..15d83a0 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'favabwll' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yfqwkqknufqvkrkihg' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'favabwll' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yfqwkqknufqvkrkihg' }); }); // Mock server tests are disabled From ac2d39857ba083470553fab82c27f940926081b6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 20:12:30 +0000 Subject: [PATCH 21/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 16 ++++++++----- src/resources/stories/highlights.ts | 13 ++++++---- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 20 +++++++++------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 18 +++++++------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 20 ++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 26 files changed, 109 insertions(+), 101 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3e2f542..5753597 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c9d17ae99932b11fa8819040651f08274c017fecf393e316c45623991892d4d9.yml -openapi_spec_hash: 2c5d98333a487dcdc5b27d8d39a467a9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-228e5e4b58ef1db78cc4762898961e3f01c5e8b0a73c4ecf50e46bdf63fe5874.yml +openapi_spec_hash: 52c5d5d27afadbefbb9672f10f1d4867 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e8b821f..26d0afe 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('nobis'); + * const response = await client.accounts.disconnect('quo'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index b9f4d3d..a5c5e92 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,10 +31,9 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers( - * 'quos', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('ut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 27b521d..0f98a3c 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'dolore', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'dolore', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a976781..e20f70d 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb..c9a094c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index e815333..3f4ff31 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('sit'); + * const response = await client.smartLinks.listClicks( + * 'laudantium', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'at', + * 'esse', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quidem'); + * const response = await client.smartLinks.listFans( + * 'impedit', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'error', + * 'quibusdam', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('qui'); + * await client.smartLinks.retrieveCohortArps('temporibus'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'possimus', + * 'nulla', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 7b762fc..78c9b0c 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'similique', + * 'voluptatem', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('similique', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'voluptatem', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }, + * ); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 00d4e2b..0420718 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'cupiditate', + * 'ex', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'cupiditate', + * 'ex', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ipsa', { + * await client.trackingLinks.getCohortArps('ullam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'facilis', + * 'cupiditate', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 9e0da5d..a31020c 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,9 +50,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('est', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'tempora', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('est', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'tempora', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'voluptatibus', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('aut', { + * await client.trialLinks.retrieveCohortArps('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quam', + * 'autem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 04856ed..8dd147f 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'yfqwkqknufqvkrkihg' }, + * { name: 'xl' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 1e3be33..328f1ca 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('nobis'); + const responsePromise = client.accounts.disconnect('quo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 12c4bc1..fd69026 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'ipsa', - auth_type: 'mobile_app', + auth_id: 'repudiandae', + auth_type: 'email_password', cookies: 'dolores', customProxy: { host: 'proxy.example.com', - password: "cWV+NtXhY'~?Y@R6X^ON", + password: '{)8%/]U_X@F@', port: 8080, - username: 'quia', + username: 'dolorem', }, - email: 'samanta90@example.net', + email: 'cody.christiansen@example.org', force_connect: true, - name: 'voluptatem', - password: '^6*fD\'v"_ { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index b799b8d..5d39f0e 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('quos', { + const responsePromise = client.engagement.messages.getMessageBuyers('ut', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('quos', { + const response = await client.engagement.messages.getMessageBuyers('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 0cf478e..9c53e9e 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('dolore', { + const responsePromise = client.media.vault.lists.media.add('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('dolore', { + const response = await client.media.vault.lists.media.add('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('dolore', { + const responsePromise = client.media.vault.lists.media.remove('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('dolore', { + const response = await client.media.vault.lists.media.remove('voluptas', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 4ec8acc..fd74b68 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399d..b643af6 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2f..d13ad1c 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: false, + isForward: true, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 81fafd0..d2fc9f3 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('sit'); + const responsePromise = client.smartLinks.listClicks('laudantium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'sit', + 'laudantium', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('at'); + const responsePromise = client.smartLinks.listConversions('esse'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'at', + 'esse', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('quidem'); + const responsePromise = client.smartLinks.listFans('impedit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'quidem', + 'impedit', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('error'); + const responsePromise = client.smartLinks.listSpenders('quibusdam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'error', + 'quibusdam', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('qui'); + const responsePromise = client.smartLinks.retrieveCohortArps('temporibus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'qui', + 'temporibus', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('possimus'); + const responsePromise = client.smartLinks.retrieveStats('nulla'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'possimus', + 'nulla', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 0afde69..24f24c2 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qqheombvpwlybfrghk', tags: ['mbjgezxcez'] }, + filter: { search: 'slmprqkintw', tags: ['flg'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'mofzhumszeempwfrtjsijn', tags: ['zmyvjn'] }, + filter: { search: 'efyfvcvj', tags: ['qtieoeqnu'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'htqtywisbibxp', - tags: ['zwjtlqxzkxf'], + search: 'bgriegu', + tags: ['albsndn'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'warfhwncfhktc', - tags: ['efjaatkslpplwprre'], + search: 'oevrmrrtmjh', + tags: ['kdllstrjrbkiwobfzyoyohkm'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 72601d9..dfeaef0 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('similique', { + const responsePromise = client.stories.highlights.addStory('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('similique', { + const response = await client.stories.highlights.addStory('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('similique', { + const responsePromise = client.stories.highlights.removeStory('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('similique', { + const response = await client.stories.highlights.removeStory('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index ae89ae4..cbf377f 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('ullam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('ipsa', { + const response = await client.trackingLinks.getCohortArps('ullam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('facilis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('facilis', { + const response = await client.trackingLinks.getStats('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index d82aa7b..0195c68 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('et', { + const responsePromise = client.trialLinks.listSubscribers('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('et', { + const response = await client.trialLinks.listSubscribers('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('aut', { + const response = await client.trialLinks.retrieveCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('quam', { + const response = await client.trialLinks.retrieveStats('autem', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 15d83a0..2b1d2cb 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yfqwkqknufqvkrkihg' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xl' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yfqwkqknufqvkrkihg' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xl' }); }); // Mock server tests are disabled From 3d8f2c4ca4509051e645536e656d82dadc9a20f2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 13:12:34 +0000 Subject: [PATCH 22/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +++- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 ++++--- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 16 +++++-------- src/resources/stories/highlights.ts | 13 ++++------ .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 10 ++++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- tests/api-resources/client-sessions.test.ts | 2 +- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 26 files changed, 107 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5753597..7c8bcbc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-228e5e4b58ef1db78cc4762898961e3f01c5e8b0a73c4ecf50e46bdf63fe5874.yml -openapi_spec_hash: 52c5d5d27afadbefbb9672f10f1d4867 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b97ef4ada355dc29dcda44aaa240d7ae51affb7573331f039de8f204ec07fb6d.yml +openapi_spec_hash: 62f41c3ea5bbda67c8b977f70fbd67d5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 26d0afe..204a2dd 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,9 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('quo'); + * const response = await client.accounts.disconnect( + * 'laboriosam', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 0f98a3c..4c51748 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'voluptas', + * 'sequi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'voluptas', + * 'sequi', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 1e5e4ad..7d1b2d6 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'voluptatem', + * 'autem', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,10 +37,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'voluptatem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('autem', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d..09d6973 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094c..2b04cbb 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 3f4ff31..c354167 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,9 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks( - * 'laudantium', - * ); + * const response = await client.smartLinks.listClicks('eos'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'esse', + * 'sit', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'impedit', - * ); + * const response = await client.smartLinks.listFans('odio'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quibusdam', + * 'dicta', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('temporibus'); + * await client.smartLinks.retrieveCohortArps('alias'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'nulla', + * 'voluptatem', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 78c9b0c..b20c9f1 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'voluptatem', + * 'repellat', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'voluptatem', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('repellat', { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 0420718..4a35dc9 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'ex', + * 'placeat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'ex', + * 'placeat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ullam', { + * await client.trackingLinks.getCohortArps('eos', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'cupiditate', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index a31020c..e889be3 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'tempora', + * 'tempore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'tempora', + * 'tempore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptatibus', + * 'debitis', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('qui', { + * await client.trialLinks.retrieveCohortArps('mollitia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'autem', + * 'dolorum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 8dd147f..64e1c28 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'xl' }, + * { name: 'arzef' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 328f1ca..0d21ee9 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('quo'); + const responsePromise = client.accounts.disconnect('laboriosam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index fd69026..f53a3c7 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'repudiandae', - auth_type: 'email_password', - cookies: 'dolores', + auth_id: 'deserunt', + auth_type: 'raw_data', + cookies: 'commodi', customProxy: { host: 'proxy.example.com', - password: '{)8%/]U_X@F@', + password: 'Hz^d.`t94_H.Bm:', port: 8080, - username: 'dolorem', + username: 'voluptatem', }, - email: 'cody.christiansen@example.org', + email: 'beahan.freddie@example.org', force_connect: true, - name: 'quod', - password: 'Bh[mg4<|72DNv-a^', + name: 'similique', + password: '\\t#[K&404', proxyCountry: 'uk', - user_agent: 'commodi', - xbc: 'corrupti', + user_agent: 'aspernatur', + xbc: 'aut', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d..229de46 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 9c53e9e..1d002d6 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('voluptas', { + const responsePromise = client.media.vault.lists.media.add('sequi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('voluptas', { + const response = await client.media.vault.lists.media.add('sequi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('voluptas', { + const responsePromise = client.media.vault.lists.media.remove('sequi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('voluptas', { + const response = await client.media.vault.lists.media.remove('sequi', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616c..b0d9651 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'promotions', + type: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 8aee5ef..03ab870 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('voluptatem', { + const responsePromise = client.posts.comments.create('autem', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('voluptatem', { + const response = await client.posts.comments.create('autem', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('voluptatem', { + const response = await client.posts.comments.list('autem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index fd74b68..e2edc67 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index b643af6..96d399d 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index d2fc9f3..07ee782 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('laudantium'); + const responsePromise = client.smartLinks.listClicks('eos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'laudantium', + 'eos', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('esse'); + const responsePromise = client.smartLinks.listConversions('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'esse', + 'sit', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('impedit'); + const responsePromise = client.smartLinks.listFans('odio'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'impedit', + 'odio', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quibusdam'); + const responsePromise = client.smartLinks.listSpenders('dicta'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'quibusdam', + 'dicta', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('temporibus'); + const responsePromise = client.smartLinks.retrieveCohortArps('alias'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'temporibus', + 'alias', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('nulla'); + const responsePromise = client.smartLinks.retrieveStats('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'nulla', + 'voluptatem', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 24f24c2..8f7d2c8 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'slmprqkintw', tags: ['flg'] }, + filter: { search: 'yrhbqvubmq', tags: ['s'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'efyfvcvj', tags: ['qtieoeqnu'] }, + filter: { search: 'jqxkzucmbjsxhhxeqykwx', tags: ['pupttwsvdgrbrg'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'bgriegu', - tags: ['albsndn'], + include_smart_links: false, + search: 'ifsaaglhvdfmjysasr', + tags: ['fucigpxkvcbsd'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'oevrmrrtmjh', - tags: ['kdllstrjrbkiwobfzyoyohkm'], + search: 'iltypln', + tags: ['q'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index dfeaef0..e41cf25 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('voluptatem', { + const responsePromise = client.stories.highlights.addStory('repellat', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('voluptatem', { + const response = await client.stories.highlights.addStory('repellat', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('voluptatem', { + const responsePromise = client.stories.highlights.removeStory('repellat', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('voluptatem', { + const response = await client.stories.highlights.removeStory('repellat', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index cbf377f..ba767a9 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('ullam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('ullam', { + const response = await client.trackingLinks.getCohortArps('eos', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('cupiditate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('cupiditate', { + const response = await client.trackingLinks.getStats('et', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 0195c68..28da32e 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('tempore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('tempore', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('tempore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('tempore', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('voluptatibus', { + const responsePromise = client.trialLinks.listSubscribers('debitis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('voluptatibus', { + const response = await client.trialLinks.listSubscribers('debitis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('mollitia', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('qui', { + const response = await client.trialLinks.retrieveCohortArps('mollitia', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('autem', { + const response = await client.trialLinks.retrieveStats('dolorum', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 2b1d2cb..fccb61f 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xl' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'arzef' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xl' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'arzef' }); }); // Mock server tests are disabled From 3df5007c69007088fc11a9aa01fb31088d9b5206 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 29 May 2026 11:12:30 +0000 Subject: [PATCH 23/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +--- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 +++---- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 ++++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 20 +++++++--------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 22 ++++++++--------- .../user-lists/user-lists.test.ts | 4 ++-- 28 files changed, 113 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7c8bcbc..af70973 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b97ef4ada355dc29dcda44aaa240d7ae51affb7573331f039de8f204ec07fb6d.yml -openapi_spec_hash: 62f41c3ea5bbda67c8b977f70fbd67d5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ef85e250cd665c3626cc59794b128ccb6e806f8efe43ed8a80c77a09bd191214.yml +openapi_spec_hash: 319f7a2c4c40340d82fb29dc4f6cb551 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 204a2dd..e61493a 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,9 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect( - * 'laboriosam', - * ); + * const response = await client.accounts.disconnect('quas'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a5c5e92..17e9af7 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,9 +31,10 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'suscipit', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 4c51748..8d8813e 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'sequi', + * 'veritatis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'sequi', + * 'veritatis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 7d1b2d6..cfda94d 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'autem', + * 'veritatis', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('autem', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'veritatis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973..599a952 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb..a84ff07 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index c354167..1191803 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('eos'); + * const response = await client.smartLinks.listClicks( + * 'totam', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sit', + * 'est', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('odio'); + * const response = await client.smartLinks.listFans('quae'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'dicta', + * 'eaque', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('alias'); + * await client.smartLinks.retrieveCohortArps('veniam'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptatem', + * 'est', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index b20c9f1..7b825c3 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'repellat', + * 'fugiat', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('repellat', { + * await client.stories.highlights.removeStory('fugiat', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 4a35dc9..e7d02f9 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'placeat', + * 'officia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'placeat', + * 'officia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('eos', { + * await client.trackingLinks.getCohortArps('architecto', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,7 +133,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('et', { + * const response = await client.trackingLinks.getStats('ab', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index e889be3..6c2648d 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,10 +50,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve( - * 'tempore', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('sunt', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'tempore', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('sunt', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'debitis', + * 'velit', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('mollitia', { + * await client.trialLinks.retrieveCohortArps('eius', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dolorum', + * 'sit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 64e1c28..81f8de2 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'arzef' }, + * { name: 'uwshox' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 0d21ee9..9ae9b59 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('laboriosam'); + const responsePromise = client.accounts.disconnect('quas'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index f53a3c7..b88b677 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'deserunt', + auth_id: 'et', auth_type: 'raw_data', cookies: 'commodi', customProxy: { host: 'proxy.example.com', - password: 'Hz^d.`t94_H.Bm:', + password: "|65jv'W/z~7dg+Y1)!", port: 8080, - username: 'voluptatem', + username: 'quo', }, - email: 'beahan.freddie@example.org', - force_connect: true, - name: 'similique', - password: '\\t#[K&404', - proxyCountry: 'uk', - user_agent: 'aspernatur', - xbc: 'aut', + email: 'lindgren.simeon@example.org', + force_connect: false, + name: 'iste', + password: '-&J~}F', + proxyCountry: 'us', + user_agent: 'dolore', + xbc: 'doloribus', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 5d39f0e..d25f07d 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('ut', { + const responsePromise = client.engagement.messages.getMessageBuyers('suscipit', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('ut', { + const response = await client.engagement.messages.getMessageBuyers('suscipit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 1d002d6..6eea7db 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('sequi', { + const responsePromise = client.media.vault.lists.media.add('veritatis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('sequi', { + const response = await client.media.vault.lists.media.add('veritatis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('sequi', { + const responsePromise = client.media.vault.lists.media.remove('veritatis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('sequi', { + const response = await client.media.vault.lists.media.remove('veritatis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d9651..7b04294 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'tags', + type: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 03ab870..094780b 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('autem', { + const responsePromise = client.posts.comments.create('veritatis', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('autem', { + const response = await client.posts.comments.create('veritatis', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('autem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('veritatis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('autem', { + const response = await client.posts.comments.list('veritatis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index e2edc67..8e5b056 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399d..02883e1 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1c..6b1dc2f 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: true, + isForward: false, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 07ee782..4cbb82d 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('eos'); + const responsePromise = client.smartLinks.listClicks('totam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'eos', + 'totam', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('sit'); + const responsePromise = client.smartLinks.listConversions('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'sit', + 'est', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('odio'); + const responsePromise = client.smartLinks.listFans('quae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'odio', + 'quae', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('dicta'); + const responsePromise = client.smartLinks.listSpenders('eaque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'dicta', + 'eaque', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('alias'); + const responsePromise = client.smartLinks.retrieveCohortArps('veniam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'alias', + 'veniam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptatem'); + const responsePromise = client.smartLinks.retrieveStats('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'voluptatem', + 'est', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 8f7d2c8..93ebf8f 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'yrhbqvubmq', tags: ['s'] }, + filter: { search: 'ggnthnpivffvocdajzwi', tags: ['bp'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'jqxkzucmbjsxhhxeqykwx', tags: ['pupttwsvdgrbrg'] }, + filter: { search: 'qnptanmcsyjl', tags: ['egkedzcxgaijzkfgx'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'ifsaaglhvdfmjysasr', - tags: ['fucigpxkvcbsd'], + search: 'xwtfwjqskhjpnyovhvxqkzam', + tags: ['jmzyiunmzwidrqdnfhu'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'iltypln', - tags: ['q'], + include_smart_links: false, + search: 'htmsqmzu', + tags: ['sf'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index e41cf25..1b90485 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('repellat', { + const responsePromise = client.stories.highlights.addStory('fugiat', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('repellat', { + const response = await client.stories.highlights.addStory('fugiat', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('repellat', { + const responsePromise = client.stories.highlights.removeStory('fugiat', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('repellat', { + const response = await client.stories.highlights.removeStory('fugiat', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index ba767a9..e69d3ad 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('officia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('officia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('officia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('officia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('architecto', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('eos', { + const response = await client.trackingLinks.getCohortArps('architecto', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('et', { + const response = await client.trackingLinks.getStats('ab', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 28da32e..623ee15 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('tempore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('tempore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('tempore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('tempore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('debitis', { + const responsePromise = client.trialLinks.listSubscribers('velit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('debitis', { + const response = await client.trialLinks.listSubscribers('velit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,9 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('mollitia', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -157,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('mollitia', { + const response = await client.trialLinks.retrieveCohortArps('eius', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('dolorum', { + const response = await client.trialLinks.retrieveStats('sit', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index fccb61f..c330776 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'arzef' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'uwshox' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'arzef' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'uwshox' }); }); // Mock server tests are disabled From 4eec03ff386d8c64bd83285865c82bb061bf70a6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 16:12:35 +0000 Subject: [PATCH 24/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +++- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 ++++--- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 16 ++++++------- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 15 ++++++------ src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 28 files changed, 114 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index af70973..7b5b2f2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ef85e250cd665c3626cc59794b128ccb6e806f8efe43ed8a80c77a09bd191214.yml -openapi_spec_hash: 319f7a2c4c40340d82fb29dc4f6cb551 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-675cb8ae7441cf596e1a10c0194d8af0f9d6c95b258b3699731ee30ed684ae71.yml +openapi_spec_hash: c9d7797180464b750e0ec0af58540375 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e61493a..245fc5f 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,9 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('quas'); + * const response = await client.accounts.disconnect( + * 'voluptatem', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 17e9af7..d727dd1 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,10 +31,9 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers( - * 'suscipit', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('eos', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8d8813e..7c9ead4 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'veritatis', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'veritatis', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index cfda94d..12edd19 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'veritatis', + * 'nihil', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,10 +37,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'veritatis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('nihil', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a952..e20f70d 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff07..c9a094c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 1191803..cfa8552 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'totam', + * 'blanditiis', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'est', + * 'magnam', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quae'); + * const response = await client.smartLinks.listFans( + * 'quisquam', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'eaque', + * 'sit', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('veniam'); + * await client.smartLinks.retrieveCohortArps('accusantium'); * ``` */ retrieveCohortArps( @@ -168,9 +170,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.retrieveStats( - * 'est', - * ); + * const response = await client.smartLinks.retrieveStats('a'); * ``` */ retrieveStats( diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 7b825c3..0889b58 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'fugiat', + * 'pariatur', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('fugiat', { + * await client.stories.highlights.removeStory('pariatur', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index e7d02f9..f12ab4c 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'officia', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'officia', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('architecto', { + * await client.trackingLinks.getCohortArps('reprehenderit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('ab', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'inventore', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 6c2648d..d9cabff 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,9 +50,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('sunt', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'optio', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sunt', { + * const trialLink = await client.trialLinks.delete('optio', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'velit', + * 'dolorem', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('eius', { + * await client.trialLinks.retrieveCohortArps('laborum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'sit', + * 'id', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 81f8de2..1f0b253 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'uwshox' }, + * { name: 'juw' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 9ae9b59..13e5c0c 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('quas'); + const responsePromise = client.accounts.disconnect('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index b88b677..4f78f60 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'et', + auth_id: 'beatae', auth_type: 'raw_data', - cookies: 'commodi', + cookies: 'quis', customProxy: { host: 'proxy.example.com', - password: "|65jv'W/z~7dg+Y1)!", + password: 'ouO`&~S)>]e~8*+q$jy;', port: 8080, - username: 'quo', + username: 'itaque', }, - email: 'lindgren.simeon@example.org', - force_connect: false, - name: 'iste', - password: '-&J~}F', + email: 'loyal68@example.net', + force_connect: true, + name: 'sed', + password: 'K-5K$ZPz+#M?n5}', proxyCountry: 'us', - user_agent: 'dolore', - xbc: 'doloribus', + user_agent: 'reprehenderit', + xbc: 'culpa', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de46..c17a81d 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index d25f07d..24eafa3 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('suscipit', { + const responsePromise = client.engagement.messages.getMessageBuyers('eos', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('suscipit', { + const response = await client.engagement.messages.getMessageBuyers('eos', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 6eea7db..391a66d 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('veritatis', { + const responsePromise = client.media.vault.lists.media.add('laborum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('veritatis', { + const response = await client.media.vault.lists.media.add('laborum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('veritatis', { + const responsePromise = client.media.vault.lists.media.remove('laborum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('veritatis', { + const response = await client.media.vault.lists.media.remove('laborum', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b04294..42643a6 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'comments', + type: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 094780b..3c27d9e 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('veritatis', { + const responsePromise = client.posts.comments.create('nihil', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('veritatis', { + const response = await client.posts.comments.create('nihil', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('veritatis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('veritatis', { + const response = await client.posts.comments.list('nihil', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 8e5b056..fd74b68 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e1..b643af6 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 4cbb82d..4044c95 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('totam'); + const responsePromise = client.smartLinks.listClicks('blanditiis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'totam', + 'blanditiis', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('est'); + const responsePromise = client.smartLinks.listConversions('magnam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'est', + 'magnam', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('quae'); + const responsePromise = client.smartLinks.listFans('quisquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'quae', + 'quisquam', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('eaque'); + const responsePromise = client.smartLinks.listSpenders('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'eaque', + 'sit', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('veniam'); + const responsePromise = client.smartLinks.retrieveCohortArps('accusantium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'veniam', + 'accusantium', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('est'); + const responsePromise = client.smartLinks.retrieveStats('a'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'est', + 'a', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 93ebf8f..bb60bf0 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ggnthnpivffvocdajzwi', tags: ['bp'] }, + filter: { search: 'oonettmo', tags: ['godbycitbenwhuqjsylfdjy'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qnptanmcsyjl', tags: ['egkedzcxgaijzkfgx'] }, + filter: { search: 'osqipasbihbvbxtauemjmes', tags: ['hizmsksacydxarxvtsbv'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'xwtfwjqskhjpnyovhvxqkzam', - tags: ['jmzyiunmzwidrqdnfhu'], + search: 'ofedsxajdvluhrhbbhmkuq', + tags: ['xmdqtbhuslvjvwbrglrrzvx'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'htmsqmzu', - tags: ['sf'], + search: 'tioldrkqggabonzvj', + tags: ['tgghybhogfatt'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 1b90485..1859713 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('fugiat', { + const responsePromise = client.stories.highlights.addStory('pariatur', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('fugiat', { + const response = await client.stories.highlights.addStory('pariatur', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('fugiat', { + const responsePromise = client.stories.highlights.removeStory('pariatur', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('fugiat', { + const response = await client.stories.highlights.removeStory('pariatur', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index e69d3ad..1ee36a3 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('officia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('officia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('officia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('officia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('architecto', { + const responsePromise = client.trackingLinks.getCohortArps('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -111,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('architecto', { + const response = await client.trackingLinks.getCohortArps('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('ab', { + const response = await client.trackingLinks.getStats('inventore', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 623ee15..37945f9 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('sunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('velit', { + const responsePromise = client.trialLinks.listSubscribers('dolorem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('velit', { + const response = await client.trialLinks.listSubscribers('dolorem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('laborum', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('eius', { + const response = await client.trialLinks.retrieveCohortArps('laborum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('id', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('sit', { + const response = await client.trialLinks.retrieveStats('id', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index c330776..3e21250 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'uwshox' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'juw' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'uwshox' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'juw' }); }); // Mock server tests are disabled From 882ec779a553bf8f0d1db0ca35ef2609c5a8078c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 20:12:36 +0000 Subject: [PATCH 25/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +--- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 +++---- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 18 +++++++------- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 15 ++++++------ src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 16 ++++++------- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 20 ++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 28 files changed, 107 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7b5b2f2..78dfd38 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-675cb8ae7441cf596e1a10c0194d8af0f9d6c95b258b3699731ee30ed684ae71.yml -openapi_spec_hash: c9d7797180464b750e0ec0af58540375 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d34944375289bdc9263e671e1ba4651a791ca2b50ae942618b57a02a78944cea.yml +openapi_spec_hash: 5d40232815622281f16d43e62189f2c4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 245fc5f..3aaab29 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,9 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect( - * 'voluptatem', - * ); + * const response = await client.accounts.disconnect('vero'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d727dd1..81f3d2e 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,7 +31,7 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('eos', { + * await client.engagement.messages.getMessageBuyers('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 7c9ead4..3f64bd1 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'laborum', + * 'corporis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'laborum', + * 'corporis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 12edd19..21410b8 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'nihil', + * 'molestias', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('nihil', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'molestias', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d..a976781 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094c..41feb4c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index cfa8552..036047e 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,9 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks( - * 'blanditiis', - * ); + * const response = await client.smartLinks.listClicks('ut'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'magnam', + * 'id', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'quisquam', - * ); + * const response = await client.smartLinks.listFans('quis'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sit', + * 'aut', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('accusantium'); + * await client.smartLinks.retrieveCohortArps('assumenda'); * ``` */ retrieveCohortArps( @@ -170,7 +166,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.retrieveStats('a'); + * const response = await client.smartLinks.retrieveStats( + * 'quis', + * ); * ``` */ retrieveStats( diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 0889b58..3db3f90 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'pariatur', + * 'explicabo', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('pariatur', { + * await client.stories.highlights.removeStory('explicabo', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index f12ab4c..bfbf4db 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'quia', + * 'natus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quia', + * 'natus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('reprehenderit', { + * await client.trackingLinks.getCohortArps('sit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'inventore', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index d9cabff..40f602f 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,10 +50,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve( - * 'optio', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('in', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('optio', { + * const trialLink = await client.trialLinks.delete('in', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'dolorem', + * 'facilis', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('laborum', { + * await client.trialLinks.retrieveCohortArps('perspiciatis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'id', + * 'nesciunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 1f0b253..6daf3e7 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'juw' }, + * { name: 'ec' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 13e5c0c..d67282b 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('voluptatem'); + const responsePromise = client.accounts.disconnect('vero'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 4f78f60..1e7bb4d 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'beatae', - auth_type: 'raw_data', - cookies: 'quis', + auth_id: 'iure', + auth_type: 'email_password', + cookies: 'sapiente', customProxy: { host: 'proxy.example.com', - password: 'ouO`&~S)>]e~8*+q$jy;', + password: '{f{ssxn25', port: 8080, - username: 'itaque', + username: 'quis', }, - email: 'loyal68@example.net', + email: 'qstrosin@example.com', force_connect: true, - name: 'sed', - password: 'K-5K$ZPz+#M?n5}', + name: 'minus', + password: 'd7Swx:v}L-k?CpL|^', proxyCountry: 'us', - user_agent: 'reprehenderit', - xbc: 'culpa', + user_agent: 'tempora', + xbc: 'non', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d..229de46 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 24eafa3..7712561 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('eos', { + const responsePromise = client.engagement.messages.getMessageBuyers('aut', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('eos', { + const response = await client.engagement.messages.getMessageBuyers('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 391a66d..30bf79e 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('laborum', { + const responsePromise = client.media.vault.lists.media.add('corporis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('laborum', { + const response = await client.media.vault.lists.media.add('corporis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('laborum', { + const responsePromise = client.media.vault.lists.media.remove('corporis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('laborum', { + const response = await client.media.vault.lists.media.remove('corporis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a6..70f616c 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'mentions', + type: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 3c27d9e..29c0602 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('nihil', { + const responsePromise = client.posts.comments.create('molestias', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('nihil', { + const response = await client.posts.comments.create('molestias', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('nihil', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('molestias', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('nihil', { + const response = await client.posts.comments.list('molestias', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index fd74b68..4ec8acc 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index b643af6..c151062 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2f..d13ad1c 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: false, + isForward: true, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 4044c95..9d5fbe8 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('blanditiis'); + const responsePromise = client.smartLinks.listClicks('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'blanditiis', + 'ut', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('magnam'); + const responsePromise = client.smartLinks.listConversions('id'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'magnam', + 'id', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('quisquam'); + const responsePromise = client.smartLinks.listFans('quis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'quisquam', + 'quis', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sit'); + const responsePromise = client.smartLinks.listSpenders('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'sit', + 'aut', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('accusantium'); + const responsePromise = client.smartLinks.retrieveCohortArps('assumenda'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'accusantium', + 'assumenda', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('a'); + const responsePromise = client.smartLinks.retrieveStats('quis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'a', + 'quis', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index bb60bf0..a8c1b14 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'oonettmo', tags: ['godbycitbenwhuqjsylfdjy'] }, + filter: { search: 'glzjjfz', tags: ['macjms'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'osqipasbihbvbxtauemjmes', tags: ['hizmsksacydxarxvtsbv'] }, + filter: { search: 'vzqvknjw', tags: ['sf'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ofedsxajdvluhrhbbhmkuq', - tags: ['xmdqtbhuslvjvwbrglrrzvx'], + include_smart_links: true, + search: 'bsytubzhqtba', + tags: ['ixmjftajlpfjqpk'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'tioldrkqggabonzvj', - tags: ['tgghybhogfatt'], + include_smart_links: true, + search: 'jlde', + tags: ['kxlawdiljvvhrtxnv'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 1859713..e4a2589 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('pariatur', { + const responsePromise = client.stories.highlights.addStory('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('pariatur', { + const response = await client.stories.highlights.addStory('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('pariatur', { + const responsePromise = client.stories.highlights.removeStory('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('pariatur', { + const response = await client.stories.highlights.removeStory('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 1ee36a3..220cc33 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,14 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('reprehenderit', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -111,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('reprehenderit', { + const response = await client.trackingLinks.getCohortArps('sit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('inventore', { + const response = await client.trackingLinks.getStats('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 37945f9..d1f374c 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('in', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('in', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('in', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('in', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('dolorem', { + const responsePromise = client.trialLinks.listSubscribers('facilis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('dolorem', { + const response = await client.trialLinks.listSubscribers('facilis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('laborum', { + const responsePromise = client.trialLinks.retrieveCohortArps('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('laborum', { + const response = await client.trialLinks.retrieveCohortArps('perspiciatis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('id', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('id', { + const response = await client.trialLinks.retrieveStats('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 3e21250..4cef3ab 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'juw' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ec' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'juw' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ec' }); }); // Mock server tests are disabled From b5ac8ccaa35aab1bfd6c8d391a9cb42302a4849a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 21:12:38 +0000 Subject: [PATCH 26/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 4 ++-- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 ++++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 6 ++--- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 12 +++++----- .../user-lists/user-lists.test.ts | 4 ++-- 27 files changed, 96 insertions(+), 93 deletions(-) diff --git a/.stats.yml b/.stats.yml index 78dfd38..add21bf 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d34944375289bdc9263e671e1ba4651a791ca2b50ae942618b57a02a78944cea.yml -openapi_spec_hash: 5d40232815622281f16d43e62189f2c4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e92803f481c7385ea22b1fdde55ec063f05b1ecf5b66a7ab5f22810206cde999.yml +openapi_spec_hash: fed9c7c8439462ab4f3cf2c960eda52e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3aaab29..2d703f7 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('vero'); + * const response = await client.accounts.disconnect('est'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 81f3d2e..d7f98f2 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,9 +31,10 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('aut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'praesentium', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 3f64bd1..82ed43b 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'corporis', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'corporis', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 21410b8..e7ef846 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'molestias', + * 'temporibus', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -38,7 +38,7 @@ export class Comments extends APIResource { * @example * ```ts * const comments = await client.posts.comments.list( - * 'molestias', + * 'temporibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a976781..e20f70d 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c..2b04cbb 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 036047e..99641e0 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('ut'); + * const response = await client.smartLinks.listClicks( + * 'occaecati', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'id', + * 'ut', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quis'); + * const response = await client.smartLinks.listFans('at'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'aut', + * 'doloremque', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('assumenda'); + * await client.smartLinks.retrieveCohortArps('consectetur'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quis', + * 'dolores', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3db3f90..ba15571 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'explicabo', + * 'itaque', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('explicabo', { + * await client.stories.highlights.removeStory('itaque', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index bfbf4db..a8ae696 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'natus', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'natus', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('sit', { + * await client.trackingLinks.getCohortArps('iusto', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'consequatur', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 40f602f..f4558f7 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'facilis', + * 'nobis', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('perspiciatis', { + * await client.trialLinks.retrieveCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nesciunt', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 6daf3e7..3859e1d 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'ec' }, + * { name: 'vpcgpo' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index d67282b..e5ed4ee 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('vero'); + const responsePromise = client.accounts.disconnect('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 1e7bb4d..7334e5c 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'iure', + auth_id: 'voluptate', auth_type: 'email_password', - cookies: 'sapiente', + cookies: 'unde', customProxy: { host: 'proxy.example.com', - password: '{f{ssxn25', + password: 'Ll./g{xCu2', port: 8080, - username: 'quis', + username: 'officiis', }, - email: 'qstrosin@example.com', + email: 'alexys.fadel@example.com', force_connect: true, - name: 'minus', - password: 'd7Swx:v}L-k?CpL|^', - proxyCountry: 'us', - user_agent: 'tempora', - xbc: 'non', + name: 'veniam', + password: ' { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 7712561..529744a 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('aut', { + const responsePromise = client.engagement.messages.getMessageBuyers('praesentium', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('aut', { + const response = await client.engagement.messages.getMessageBuyers('praesentium', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 30bf79e..02779d6 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('corporis', { + const responsePromise = client.media.vault.lists.media.add('quis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('corporis', { + const response = await client.media.vault.lists.media.add('quis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('corporis', { + const responsePromise = client.media.vault.lists.media.remove('quis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('corporis', { + const response = await client.media.vault.lists.media.remove('quis', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616c..7b04294 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'promotions', + type: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 29c0602..a704bc1 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('molestias', { + const responsePromise = client.posts.comments.create('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('molestias', { + const response = await client.posts.comments.create('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('molestias', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('molestias', { + const response = await client.posts.comments.list('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 4ec8acc..fd74b68 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index c151062..96d399d 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 9d5fbe8..10b82cc 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('ut'); + const responsePromise = client.smartLinks.listClicks('occaecati'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'ut', + 'occaecati', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('id'); + const responsePromise = client.smartLinks.listConversions('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'id', + 'ut', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('quis'); + const responsePromise = client.smartLinks.listFans('at'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'quis', + 'at', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('aut'); + const responsePromise = client.smartLinks.listSpenders('doloremque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'aut', + 'doloremque', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('assumenda'); + const responsePromise = client.smartLinks.retrieveCohortArps('consectetur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'assumenda', + 'consectetur', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quis'); + const responsePromise = client.smartLinks.retrieveStats('dolores'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'quis', + 'dolores', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index a8c1b14..c2e9106 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'glzjjfz', tags: ['macjms'] }, + filter: { search: 'ccyotgpfkysngijpwg', tags: ['c'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'vzqvknjw', tags: ['sf'] }, + filter: { search: 'tar', tags: ['iejgxtgtoym'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'bsytubzhqtba', - tags: ['ixmjftajlpfjqpk'], + search: 'ccielr', + tags: ['rgfqobfjkfhlxp'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'jlde', - tags: ['kxlawdiljvvhrtxnv'], + search: 'tlsayaecxzh', + tags: ['rydrfjvmf'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index e4a2589..cc1a6a9 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('explicabo', { + const responsePromise = client.stories.highlights.addStory('itaque', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('explicabo', { + const response = await client.stories.highlights.addStory('itaque', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('explicabo', { + const responsePromise = client.stories.highlights.removeStory('itaque', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('explicabo', { + const response = await client.stories.highlights.removeStory('itaque', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 220cc33..9f42dcd 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('natus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('sit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('iusto', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('sit', { + const response = await client.trackingLinks.getCohortArps('iusto', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('consequatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('consequatur', { + const response = await client.trackingLinks.getStats('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index d1f374c..2a255ce 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('facilis', { + const responsePromise = client.trialLinks.listSubscribers('nobis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('facilis', { + const response = await client.trialLinks.listSubscribers('nobis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('perspiciatis', { + const responsePromise = client.trialLinks.retrieveCohortArps('rerum', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('perspiciatis', { + const response = await client.trialLinks.retrieveCohortArps('rerum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('nesciunt', { + const response = await client.trialLinks.retrieveStats('quo', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 4cef3ab..7df36e9 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ec' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vpcgpo' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'ec' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vpcgpo' }); }); // Mock server tests are disabled From 1de2a952889d464577df810a8da0d7af3bbc1c7c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:12:33 +0000 Subject: [PATCH 27/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 4 ++-- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-link-postbacks.ts | 8 +++---- src/resources/smart-links.ts | 16 ++++++------- src/resources/stories/highlights.ts | 13 ++++++---- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 20 +++++++++------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++--------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- .../smart-link-postbacks.test.ts | 8 +++---- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 20 +++++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 31 files changed, 128 insertions(+), 117 deletions(-) diff --git a/.stats.yml b/.stats.yml index add21bf..1940ec0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e92803f481c7385ea22b1fdde55ec063f05b1ecf5b66a7ab5f22810206cde999.yml -openapi_spec_hash: fed9c7c8439462ab4f3cf2c960eda52e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-da3477c07ba03855de3b6cdc521c4721e162cc61e9160e2888f54b2c8015f1e6.yml +openapi_spec_hash: 1438c6cc0a359e8fb18784ea4559a206 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 2d703f7..925565d 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('est'); + * const response = await client.accounts.disconnect('ullam'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d7f98f2..e7d1ba8 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'praesentium', + * 'porro', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 82ed43b..8ef9d59 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'quis', + * 'nam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'quis', + * 'nam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index e7ef846..c40469c 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'temporibus', + * 'distinctio', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -38,7 +38,7 @@ export class Comments extends APIResource { * @example * ```ts * const comments = await client.posts.comments.list( - * 'temporibus', + * 'distinctio', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d..599a952 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb..a84ff07 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/smart-link-postbacks.ts b/src/resources/smart-link-postbacks.ts index 82dbf90..cdcf5bf 100644 --- a/src/resources/smart-link-postbacks.ts +++ b/src/resources/smart-link-postbacks.ts @@ -18,7 +18,7 @@ export class SmartLinkPostbacks extends APIResource { * await client.smartLinkPostbacks.create({ * conversion_types: ['new_subscriber', 'new_transaction'], * smart_link_scope: 'campaign_specific', - * url: 'https://example.com/postback?click={click_id}&type={conversion_type}&gclid={gclid}', + * url: 'https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}', * }); * ``` */ @@ -51,7 +51,7 @@ export class SmartLinkPostbacks extends APIResource { * await client.smartLinkPostbacks.update(123, { * conversion_types: ['new_subscriber'], * smart_link_scope: 'global', - * url: 'https://example.com/postback?click={click_id}&type={conversion_type}', + * url: 'https://example.com/postback?click={external_click_id}&type={conversion_type}', * }); * ``` */ @@ -359,8 +359,8 @@ export interface SmartLinkPostbackCreateParams { smart_link_scope: 'global' | 'campaign_specific'; /** - * The destination URL. Variables such as `{click_id}`, `{fbclid}`, `{gclid}`, and - * `{ttclid}` are replaced when the postback is dispatched. + * The destination URL. Variables such as `{external_click_id}`, `{fbclid}`, + * `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. */ url: string; diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 99641e0..1aae5c9 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,9 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks( - * 'occaecati', - * ); + * const response = await client.smartLinks.listClicks('in'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ut', + * 'quo', * ); * ``` */ @@ -113,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('at'); + * const response = await client.smartLinks.listFans( + * 'inventore', + * ); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'doloremque', + * 'laborum', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('consectetur'); + * await client.smartLinks.retrieveCohortArps('vitae'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'dolores', + * 'molestias', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index ba15571..f7d28e7 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'itaque', + * 'perferendis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('itaque', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'perferendis', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }, + * ); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index a8ae696..82aee79 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'inventore', + * 'reprehenderit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'inventore', + * 'reprehenderit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('iusto', { + * await client.trackingLinks.getCohortArps('atque', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'molestiae', + * 'beatae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f4558f7..8a79635 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,9 +50,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('in', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'dolorem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('in', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'dolorem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'nobis', + * 'aut', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('rerum', { + * await client.trialLinks.retrieveCohortArps('nihil', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quo', + * 'laboriosam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 3859e1d..a444a87 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'vpcgpo' }, + * { name: 'nrogtggpiijwuqmulos' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index e5ed4ee..139b3a7 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('est'); + const responsePromise = client.accounts.disconnect('ullam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 7334e5c..3a9bb12 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'voluptate', + auth_id: 'omnis', auth_type: 'email_password', - cookies: 'unde', + cookies: 'quo', customProxy: { host: 'proxy.example.com', - password: 'Ll./g{xCu2', + password: 'TI3EnYU9H?pU|<', port: 8080, - username: 'officiis', + username: 'nam', }, - email: 'alexys.fadel@example.com', - force_connect: true, - name: 'veniam', - password: ' { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 529744a..784164d 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('praesentium', { + const responsePromise = client.engagement.messages.getMessageBuyers('porro', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('praesentium', { + const response = await client.engagement.messages.getMessageBuyers('porro', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 02779d6..a65d65e 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('quis', { + const responsePromise = client.media.vault.lists.media.add('nam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('quis', { + const response = await client.media.vault.lists.media.add('nam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('quis', { + const responsePromise = client.media.vault.lists.media.remove('nam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('quis', { + const response = await client.media.vault.lists.media.remove('nam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b04294..42643a6 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'comments', + type: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index a704bc1..81fedb6 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('temporibus', { + const responsePromise = client.posts.comments.create('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('temporibus', { + const response = await client.posts.comments.create('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('temporibus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('distinctio', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('temporibus', { + const response = await client.posts.comments.list('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index fd74b68..8e5b056 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399d..02883e1 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1c..6b1dc2f 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: true, + isForward: false, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-link-postbacks.test.ts b/tests/api-resources/smart-link-postbacks.test.ts index 9aec640..5b7e4c7 100644 --- a/tests/api-resources/smart-link-postbacks.test.ts +++ b/tests/api-resources/smart-link-postbacks.test.ts @@ -13,7 +13,7 @@ describe('resource smartLinkPostbacks', () => { const responsePromise = client.smartLinkPostbacks.create({ conversion_types: ['new_subscriber', 'new_transaction'], smart_link_scope: 'campaign_specific', - url: 'https://example.com/postback?click={click_id}&type={conversion_type}&gclid={gclid}', + url: 'https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -29,7 +29,7 @@ describe('resource smartLinkPostbacks', () => { const response = await client.smartLinkPostbacks.create({ conversion_types: ['new_subscriber', 'new_transaction'], smart_link_scope: 'campaign_specific', - url: 'https://example.com/postback?click={click_id}&type={conversion_type}&gclid={gclid}', + url: 'https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}', smart_link_ids: ['01JTESTLINK000000000000001'], }); }); @@ -51,7 +51,7 @@ describe('resource smartLinkPostbacks', () => { const responsePromise = client.smartLinkPostbacks.update(123, { conversion_types: ['new_subscriber'], smart_link_scope: 'global', - url: 'https://example.com/postback?click={click_id}&type={conversion_type}', + url: 'https://example.com/postback?click={external_click_id}&type={conversion_type}', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -67,7 +67,7 @@ describe('resource smartLinkPostbacks', () => { const response = await client.smartLinkPostbacks.update(123, { conversion_types: ['new_subscriber'], smart_link_scope: 'global', - url: 'https://example.com/postback?click={click_id}&type={conversion_type}', + url: 'https://example.com/postback?click={external_click_id}&type={conversion_type}', smart_link_ids: ['01JTESTLINK000000000000001'], }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 10b82cc..09fb6c1 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('occaecati'); + const responsePromise = client.smartLinks.listClicks('in'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'occaecati', + 'in', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('ut'); + const responsePromise = client.smartLinks.listConversions('quo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'ut', + 'quo', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('at'); + const responsePromise = client.smartLinks.listFans('inventore'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'at', + 'inventore', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('doloremque'); + const responsePromise = client.smartLinks.listSpenders('laborum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'doloremque', + 'laborum', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('consectetur'); + const responsePromise = client.smartLinks.retrieveCohortArps('vitae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'consectetur', + 'vitae', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('dolores'); + const responsePromise = client.smartLinks.retrieveStats('molestias'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'dolores', + 'molestias', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index c2e9106..82ee8b6 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ccyotgpfkysngijpwg', tags: ['c'] }, + filter: { search: 'ezsdqbawddxahqstmtkpep', tags: ['vqpmsxqhzqkxaw'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'tar', tags: ['iejgxtgtoym'] }, + filter: { search: 'bspunxbctpwmbcyzjvhedjj', tags: ['roql'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ccielr', - tags: ['rgfqobfjkfhlxp'], + search: 'bqobexdpaipsmhhtfuape', + tags: ['egwwllyjcrmlf'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'tlsayaecxzh', - tags: ['rydrfjvmf'], + search: 'huebrrxj', + tags: ['zph'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index cc1a6a9..672b949 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('itaque', { + const responsePromise = client.stories.highlights.addStory('perferendis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('itaque', { + const response = await client.stories.highlights.addStory('perferendis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('itaque', { + const responsePromise = client.stories.highlights.removeStory('perferendis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('itaque', { + const response = await client.stories.highlights.removeStory('perferendis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 9f42dcd..983cc90 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,9 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('reprehenderit', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +44,9 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('reprehenderit', { + account: 'acct_XXXXXXXXXXXXXXX', + }); }); // Mock server tests are disabled @@ -80,7 +84,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +96,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('iusto', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +113,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('iusto', { + const response = await client.trackingLinks.getCohortArps('atque', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +123,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +135,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('molestiae', { + const response = await client.trackingLinks.getStats('beatae', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 2a255ce..7cc86e7 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('nobis', { + const responsePromise = client.trialLinks.listSubscribers('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('nobis', { + const response = await client.trialLinks.listSubscribers('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('rerum', { + const responsePromise = client.trialLinks.retrieveCohortArps('nihil', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('rerum', { + const response = await client.trialLinks.retrieveCohortArps('nihil', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +167,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('laboriosam', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +181,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('quo', { + const response = await client.trialLinks.retrieveStats('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 7df36e9..4c2a8a8 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vpcgpo' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nrogtggpiijwuqmulos' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vpcgpo' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nrogtggpiijwuqmulos' }); }); // Mock server tests are disabled From ebdc5d46ba1bec74cc573fafff2d20ac4849db76 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 16:12:33 +0000 Subject: [PATCH 28/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +++- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 ++++--- .../saved-for-later/messages/settings.ts | 2 +- src/resources/smart-links.ts | 16 ++++++------- src/resources/stories/highlights.ts | 13 ++++------ .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 15 ++++++------ src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 18 +++++++------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 22 ++++++++--------- .../trial-links/trial-links.test.ts | 22 ++++++++--------- .../user-lists/user-lists.test.ts | 4 ++-- 26 files changed, 109 insertions(+), 117 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1940ec0..c13af48 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-da3477c07ba03855de3b6cdc521c4721e162cc61e9160e2888f54b2c8015f1e6.yml -openapi_spec_hash: 1438c6cc0a359e8fb18784ea4559a206 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c457858fdd0d57f8f4b687cbcf6b65e5b1cf86f7cefe0d3635cd484a401fd23b.yml +openapi_spec_hash: f5f234adf7d7358ec8fb70bfb1e07aa5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 925565d..49933e5 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,9 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('ullam'); + * const response = await client.accounts.disconnect( + * 'quisquam', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index e7d1ba8..1e680fb 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,10 +31,9 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers( - * 'porro', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('quo', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 8ef9d59..febcb2b 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'nam', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'nam', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index c40469c..fd5fc9e 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'distinctio', + * 'nobis', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,10 +37,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'distinctio', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('nobis', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a952..09d6973 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 1aae5c9..beceeb7 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('in'); + * const response = await client.smartLinks.listClicks( + * 'fugiat', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quo', + * 'voluptatem', * ); * ``` */ @@ -111,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'inventore', - * ); + * const response = await client.smartLinks.listFans('quia'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'laborum', + * 'sit', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('vitae'); + * await client.smartLinks.retrieveCohortArps('laudantium'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'molestias', + * 'similique', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index f7d28e7..65baca3 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'perferendis', + * 'sunt', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'perferendis', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('sunt', { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 82aee79..285afba 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'reprehenderit', + * 'animi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'reprehenderit', + * 'animi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('atque', { + * await client.trackingLinks.getCohortArps('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'beatae', + * 'reprehenderit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 8a79635..c5dbf70 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'dolorem', + * 'illum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'dolorem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('illum', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'aut', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('nihil', { + * await client.trialLinks.retrieveCohortArps('libero', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'laboriosam', + * 'eos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a444a87..2a9bde0 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'nrogtggpiijwuqmulos' }, + * { name: 'oaoushuzikfwtaepdkm' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 139b3a7..ae12b8c 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('ullam'); + const responsePromise = client.accounts.disconnect('quisquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 3a9bb12..da3100e 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'omnis', + auth_id: 'consectetur', auth_type: 'email_password', cookies: 'quo', customProxy: { host: 'proxy.example.com', - password: 'TI3EnYU9H?pU|<', + password: 'Rq`U<', port: 8080, - username: 'nam', + username: 'ea', }, - email: 'vmarquardt@example.org', + email: 'tillman.jaquan@example.net', force_connect: false, - name: 'perspiciatis', - password: 'ZL/)iSx5#{@8|!', - proxyCountry: 'us', - user_agent: 'asperiores', - xbc: 'doloremque', + name: 'et', + password: '#vC_Q/YQZH', + proxyCountry: 'uk', + user_agent: 'tempora', + xbc: 'itaque', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 784164d..afd3743 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('porro', { + const responsePromise = client.engagement.messages.getMessageBuyers('quo', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('porro', { + const response = await client.engagement.messages.getMessageBuyers('quo', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index a65d65e..2e9728e 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('nam', { + const responsePromise = client.media.vault.lists.media.add('quia', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('nam', { + const response = await client.media.vault.lists.media.add('quia', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('nam', { + const responsePromise = client.media.vault.lists.media.remove('quia', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('nam', { + const response = await client.media.vault.lists.media.remove('quia', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a6..2533389 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'mentions', + type: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 81fedb6..234fa01 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('distinctio', { + const responsePromise = client.posts.comments.create('nobis', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('distinctio', { + const response = await client.posts.comments.create('nobis', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('distinctio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('distinctio', { + const response = await client.posts.comments.list('nobis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 8e5b056..e2edc67 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2f..d13ad1c 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: false, + isForward: true, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 09fb6c1..c7725c8 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('in'); + const responsePromise = client.smartLinks.listClicks('fugiat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'in', + 'fugiat', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('quo'); + const responsePromise = client.smartLinks.listConversions('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'quo', + 'voluptatem', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('inventore'); + const responsePromise = client.smartLinks.listFans('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'inventore', + 'quia', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('laborum'); + const responsePromise = client.smartLinks.listSpenders('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'laborum', + 'sit', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('vitae'); + const responsePromise = client.smartLinks.retrieveCohortArps('laudantium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'vitae', + 'laudantium', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('molestias'); + const responsePromise = client.smartLinks.retrieveStats('similique'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'molestias', + 'similique', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 82ee8b6..5f8f20e 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ezsdqbawddxahqstmtkpep', tags: ['vqpmsxqhzqkxaw'] }, + filter: { search: 'luwydfhp', tags: ['z'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'bspunxbctpwmbcyzjvhedjj', tags: ['roql'] }, + filter: { search: 'uyhmtzrtwevtrwbitmepzaac', tags: ['butkxjajzdftaeclfx'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'bqobexdpaipsmhhtfuape', - tags: ['egwwllyjcrmlf'], + search: 'gxwtoknhkwwqgpkht', + tags: ['xcynennnzgkpfeprohot'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'huebrrxj', - tags: ['zph'], + search: 'lektccsgbkuxrwevvpszw', + tags: ['ce'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 672b949..9c71825 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('perferendis', { + const responsePromise = client.stories.highlights.addStory('sunt', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('perferendis', { + const response = await client.stories.highlights.addStory('sunt', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('perferendis', { + const responsePromise = client.stories.highlights.removeStory('sunt', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('perferendis', { + const response = await client.stories.highlights.removeStory('sunt', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 983cc90..f03ca91 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,9 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('reprehenderit', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.retrieve('animi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -44,9 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('reprehenderit', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const response = await client.trackingLinks.retrieve('animi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -84,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('animi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -96,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('animi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('atque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -113,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('atque', { + const response = await client.trackingLinks.getCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -123,7 +119,9 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('beatae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('reprehenderit', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('beatae', { + const response = await client.trackingLinks.getStats('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 7cc86e7..1b57d3d 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('aut', { + const responsePromise = client.trialLinks.listSubscribers('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('aut', { + const response = await client.trialLinks.listSubscribers('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('nihil', { + const responsePromise = client.trialLinks.retrieveCohortArps('libero', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('nihil', { + const response = await client.trialLinks.retrieveCohortArps('libero', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,9 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('laboriosam', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -181,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('laboriosam', { + const response = await client.trialLinks.retrieveStats('eos', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 4c2a8a8..7283e99 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nrogtggpiijwuqmulos' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'oaoushuzikfwtaepdkm' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'nrogtggpiijwuqmulos' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'oaoushuzikfwtaepdkm' }); }); // Mock server tests are disabled From 4019fcbe6b6fdcc117c6b8dabc174ab166498520 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 17:12:38 +0000 Subject: [PATCH 29/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +--- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 +++---- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 16 +++++-------- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 15 ++++++------ src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++--------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 22 ++++++++--------- .../user-lists/user-lists.test.ts | 4 ++-- 28 files changed, 104 insertions(+), 114 deletions(-) diff --git a/.stats.yml b/.stats.yml index c13af48..920904a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c457858fdd0d57f8f4b687cbcf6b65e5b1cf86f7cefe0d3635cd484a401fd23b.yml -openapi_spec_hash: f5f234adf7d7358ec8fb70bfb1e07aa5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-53b36aaa9725d64141e250734aabae8661a7c89e51dfe432dfa75bcfdb9dcb45.yml +openapi_spec_hash: 3a472c76c2e292198869edf6e24266a9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 49933e5..3c5ed4a 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,9 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect( - * 'quisquam', - * ); + * const response = await client.accounts.disconnect('quia'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 1e680fb..400f400 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,7 +31,7 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('quo', { + * await client.engagement.messages.getMessageBuyers('eum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index febcb2b..e1713e4 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'quia', + * 'ex', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'quia', + * 'ex', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index fd5fc9e..6a3f46e 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'nobis', + * 'molestiae', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('nobis', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'molestiae', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973..599a952 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff07..2b04cbb 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index beceeb7..6aa78b1 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,9 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks( - * 'fugiat', - * ); + * const response = await client.smartLinks.listClicks('enim'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'voluptatem', + * 'quos', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quia'); + * const response = await client.smartLinks.listFans('qui'); * ``` */ listFans( @@ -129,9 +127,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'sit', - * ); + * const response = await client.smartLinks.listSpenders('in'); * ``` */ listSpenders( @@ -147,7 +143,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('laudantium'); + * await client.smartLinks.retrieveCohortArps('quam'); * ``` */ retrieveCohortArps( @@ -169,7 +165,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'similique', + * 'non', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 65baca3..96d12b7 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'sunt', + * 'nulla', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sunt', { + * await client.stories.highlights.removeStory('nulla', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 285afba..6498082 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'animi', + * 'quidem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'animi', + * 'quidem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('et', { + * await client.trackingLinks.getCohortArps('non', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'reprehenderit', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index c5dbf70..cb3b035 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,10 +50,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve( - * 'illum', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('modi', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('illum', { + * const trialLink = await client.trialLinks.delete('modi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'et', + * 'tempore', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('libero', { + * await client.trialLinks.retrieveCohortArps('quam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'eos', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 2a9bde0..967b85b 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'oaoushuzikfwtaepdkm' }, + * { name: 'a' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index ae12b8c..3c3098d 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('quisquam'); + const responsePromise = client.accounts.disconnect('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index da3100e..d07db4a 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'consectetur', - auth_type: 'email_password', - cookies: 'quo', + auth_id: 'quam', + auth_type: 'raw_data', + cookies: 'amet', customProxy: { host: 'proxy.example.com', - password: 'Rq`U<', + password: 'Iw09#Zg\\|kM>tzyK1iD', port: 8080, - username: 'ea', + username: 'ut', }, - email: 'tillman.jaquan@example.net', - force_connect: false, - name: 'et', - password: '#vC_Q/YQZH', + email: 'rubye.collins@example.org', + force_connect: true, + name: 'dolorum', + password: 'DJlV+|+aufdMZTu[]K', proxyCountry: 'uk', - user_agent: 'tempora', - xbc: 'itaque', + user_agent: 'porro', + xbc: 'soluta', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de46..c17a81d 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index afd3743..c720a7a 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('quo', { + const responsePromise = client.engagement.messages.getMessageBuyers('eum', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('quo', { + const response = await client.engagement.messages.getMessageBuyers('eum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 2e9728e..aee2c98 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('quia', { + const responsePromise = client.media.vault.lists.media.add('ex', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('quia', { + const response = await client.media.vault.lists.media.add('ex', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('quia', { + const responsePromise = client.media.vault.lists.media.remove('ex', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('quia', { + const response = await client.media.vault.lists.media.remove('ex', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 2533389..694c42e 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'subscriptions', + type: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 234fa01..6519eb0 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('nobis', { + const responsePromise = client.posts.comments.create('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('nobis', { + const response = await client.posts.comments.create('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('nobis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('nobis', { + const response = await client.posts.comments.list('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index e2edc67..8e5b056 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e1..96d399d 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1c..6b1dc2f 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: true, + isForward: false, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index c7725c8..11b6c2c 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('fugiat'); + const responsePromise = client.smartLinks.listClicks('enim'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'fugiat', + 'enim', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('voluptatem'); + const responsePromise = client.smartLinks.listConversions('quos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'voluptatem', + 'quos', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('quia'); + const responsePromise = client.smartLinks.listFans('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'quia', + 'qui', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sit'); + const responsePromise = client.smartLinks.listSpenders('in'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'sit', + 'in', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('laudantium'); + const responsePromise = client.smartLinks.retrieveCohortArps('quam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'laudantium', + 'quam', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('similique'); + const responsePromise = client.smartLinks.retrieveStats('non'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'similique', + 'non', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 5f8f20e..d11afc9 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'luwydfhp', tags: ['z'] }, + filter: { search: 'kzcpgktxfebjbixmzr', tags: ['yczwdsihbkhyy'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'uyhmtzrtwevtrwbitmepzaac', tags: ['butkxjajzdftaeclfx'] }, + filter: { search: 'docypfczj', tags: ['cbawtbjoen'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'gxwtoknhkwwqgpkht', - tags: ['xcynennnzgkpfeprohot'], + search: 'ldkmkwrgj', + tags: ['ushdeyboopqhamkfvnifa'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'lektccsgbkuxrwevvpszw', - tags: ['ce'], + search: 'ahbractxicvohwzjypqihmzj', + tags: ['eadbtiznpupvjpupkxegb'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 9c71825..a4fd83d 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('sunt', { + const responsePromise = client.stories.highlights.addStory('nulla', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('sunt', { + const response = await client.stories.highlights.addStory('nulla', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('sunt', { + const responsePromise = client.stories.highlights.removeStory('nulla', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('sunt', { + const response = await client.stories.highlights.removeStory('nulla', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index f03ca91..8e13cf4 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('animi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('quidem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('animi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quidem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('animi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('quidem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('animi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('quidem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('et', { + const response = await client.trackingLinks.getCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,9 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('reprehenderit', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getStats('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('reprehenderit', { + const response = await client.trackingLinks.getStats('inventore', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 1b57d3d..f7435a1 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('modi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('modi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('modi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('illum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('modi', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('et', { + const responsePromise = client.trialLinks.listSubscribers('tempore', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('et', { + const response = await client.trialLinks.listSubscribers('tempore', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,9 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('libero', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -157,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('libero', { + const response = await client.trialLinks.retrieveCohortArps('quam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('eos', { + const response = await client.trialLinks.retrieveStats('et', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 7283e99..2a32777 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'oaoushuzikfwtaepdkm' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'a' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'oaoushuzikfwtaepdkm' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'a' }); }); // Mock server tests are disabled From 3dbb7ca5c9b27baa4a7be982f69394a683db7090 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 20:12:34 +0000 Subject: [PATCH 30/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +++- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/lists.ts | 13 +++++++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 4 ++-- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 ++++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 10 ++++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/lists.test.ts | 10 ++++++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 24 +++++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 28 files changed, 124 insertions(+), 102 deletions(-) diff --git a/.stats.yml b/.stats.yml index 920904a..e4e8ffa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-53b36aaa9725d64141e250734aabae8661a7c89e51dfe432dfa75bcfdb9dcb45.yml -openapi_spec_hash: 3a472c76c2e292198869edf6e24266a9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a6dce7668a28815048567f576320f6a79e42ccf548e3b6dbef252d89e1853271.yml +openapi_spec_hash: 8384edfcec4a69602c57dab9143c101d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 3c5ed4a..c012ec5 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,9 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('quia'); + * const response = await client.accounts.disconnect( + * 'dignissimos', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 400f400..af87f26 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,9 +31,10 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('eum', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'aperiam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/lists.ts b/src/resources/media/vault/lists/lists.ts index 2161d5c..57026c2 100644 --- a/src/resources/media/vault/lists/lists.ts +++ b/src/resources/media/vault/lists/lists.ts @@ -58,12 +58,13 @@ export class Lists extends APIResource { * ```ts * const list = await client.media.vault.lists.update('123', { * account: 'acct_XXXXXXXXXXXXXXX', + * name: 'My renamed list', * }); * ``` */ update(listID: string, params: ListUpdateParams, options?: RequestOptions): APIPromise { - const { account } = params; - return this._client.put(path`/api/${account}/media/vault/lists/${listID}`, options); + const { account, ...body } = params; + return this._client.put(path`/api/${account}/media/vault/lists/${listID}`, { body, ...options }); } /** @@ -462,9 +463,15 @@ export interface ListRetrieveParams { export interface ListUpdateParams { /** - * The Account ID + * Path param: The Account ID */ account: string; + + /** + * Body param: The new name for the vault list. Must not be greater than 255 + * characters. + */ + name: string; } export interface ListListParams { diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index e1713e4..4e8e694 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'ex', + * 'id', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'ex', + * 'id', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 6a3f46e..33a94ac 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'molestiae', + * 'aspernatur', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -38,7 +38,7 @@ export class Comments extends APIResource { * @example * ```ts * const comments = await client.posts.comments.list( - * 'molestiae', + * 'aspernatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb..c9a094c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 6aa78b1..0757594 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('enim'); + * const response = await client.smartLinks.listClicks('et'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'quos', + * 'natus', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('qui'); + * const response = await client.smartLinks.listFans('amet'); * ``` */ listFans( @@ -127,7 +127,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('in'); + * const response = await client.smartLinks.listSpenders( + * 'ullam', + * ); * ``` */ listSpenders( @@ -143,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quam'); + * await client.smartLinks.retrieveCohortArps('eligendi'); * ``` */ retrieveCohortArps( @@ -165,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'non', + * 'repellat', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 96d12b7..209a377 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'nulla', + * 'quia', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('nulla', { + * await client.stories.highlights.removeStory('quia', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 6498082..1785ac0 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'quidem', + * 'nemo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quidem', + * 'nemo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('non', { + * await client.trackingLinks.getCohortArps('a', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'inventore', + * 'amet', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index cb3b035..9728a57 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,7 +50,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('modi', { + * const trialLink = await client.trialLinks.retrieve('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('modi', { + * const trialLink = await client.trialLinks.delete('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'tempore', + * 'id', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quam', { + * await client.trialLinks.retrieveCohortArps('doloribus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'et', + * 'necessitatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 967b85b..499041b 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'a' }, + * { name: 'iirlhpwuag' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 3c3098d..b930587 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('quia'); + const responsePromise = client.accounts.disconnect('dignissimos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index d07db4a..c779547 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'quam', - auth_type: 'raw_data', - cookies: 'amet', + auth_id: 'explicabo', + auth_type: 'mobile_app', + cookies: 'quia', customProxy: { host: 'proxy.example.com', - password: 'Iw09#Zg\\|kM>tzyK1iD', + password: 'Y"k__TNWXW]', port: 8080, - username: 'ut', + username: 'eum', }, - email: 'rubye.collins@example.org', + email: 'hellen51@example.net', force_connect: true, - name: 'dolorum', - password: 'DJlV+|+aufdMZTu[]K', + name: 'mollitia', + password: '0_:u~FCrahv', proxyCountry: 'uk', - user_agent: 'porro', - xbc: 'soluta', + user_agent: 'voluptas', + xbc: 'possimus', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d..229de46 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index c720a7a..ed46626 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('eum', { + const responsePromise = client.engagement.messages.getMessageBuyers('aperiam', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('eum', { + const response = await client.engagement.messages.getMessageBuyers('aperiam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/lists.test.ts b/tests/api-resources/media/vault/lists/lists.test.ts index e3f6929..5731d55 100644 --- a/tests/api-resources/media/vault/lists/lists.test.ts +++ b/tests/api-resources/media/vault/lists/lists.test.ts @@ -44,7 +44,10 @@ describe('resource lists', () => { // Mock server tests are disabled test.skip('update: only required params', async () => { - const responsePromise = client.media.vault.lists.update('123', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.media.vault.lists.update('123', { + account: 'acct_XXXXXXXXXXXXXXX', + name: 'My renamed list', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -56,7 +59,10 @@ describe('resource lists', () => { // Mock server tests are disabled test.skip('update: required and optional params', async () => { - const response = await client.media.vault.lists.update('123', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.media.vault.lists.update('123', { + account: 'acct_XXXXXXXXXXXXXXX', + name: 'My renamed list', + }); }); // Mock server tests are disabled diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index aee2c98..7562fa5 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('ex', { + const responsePromise = client.media.vault.lists.media.add('id', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('ex', { + const response = await client.media.vault.lists.media.add('id', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('ex', { + const responsePromise = client.media.vault.lists.media.remove('id', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('ex', { + const response = await client.media.vault.lists.media.remove('id', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e..42643a6 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'tips', + type: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 6519eb0..b5e2ece 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('molestiae', { + const responsePromise = client.posts.comments.create('aspernatur', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('molestiae', { + const response = await client.posts.comments.create('aspernatur', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('aspernatur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('molestiae', { + const response = await client.posts.comments.list('aspernatur', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399d..b643af6 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 11b6c2c..9ee6e10 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('enim'); + const responsePromise = client.smartLinks.listClicks('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'enim', + 'et', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('quos'); + const responsePromise = client.smartLinks.listConversions('natus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'quos', + 'natus', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('qui'); + const responsePromise = client.smartLinks.listFans('amet'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'qui', + 'amet', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('in'); + const responsePromise = client.smartLinks.listSpenders('ullam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'in', + 'ullam', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quam'); + const responsePromise = client.smartLinks.retrieveCohortArps('eligendi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'quam', + 'eligendi', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('non'); + const responsePromise = client.smartLinks.retrieveStats('repellat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'non', + 'repellat', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index d11afc9..58c60e0 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'kzcpgktxfebjbixmzr', tags: ['yczwdsihbkhyy'] }, + filter: { search: 'ghkspznot', tags: ['xdcyct'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'docypfczj', tags: ['cbawtbjoen'] }, + filter: { search: 'ollftrgbryvdp', tags: ['anxiykkkqv'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ldkmkwrgj', - tags: ['ushdeyboopqhamkfvnifa'], + search: 'odxxtwombpxqqemasrutnd', + tags: ['sjxtgifqfvojvfpbbo'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ahbractxicvohwzjypqihmzj', - tags: ['eadbtiznpupvjpupkxegb'], + search: 'fhmxcikxewhwqtrrvav', + tags: ['hbx'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index a4fd83d..f95a25b 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('nulla', { + const responsePromise = client.stories.highlights.addStory('quia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('nulla', { + const response = await client.stories.highlights.addStory('quia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('nulla', { + const responsePromise = client.stories.highlights.removeStory('quia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('nulla', { + const response = await client.stories.highlights.removeStory('quia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 8e13cf4..e8aaa7d 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('quidem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('quidem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('quidem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('quidem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('a', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('non', { + const response = await client.trackingLinks.getCohortArps('a', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('amet', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('inventore', { + const response = await client.trackingLinks.getStats('amet', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index f7435a1..95c0cc5 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('modi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('modi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('modi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('modi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('tempore', { + const responsePromise = client.trialLinks.listSubscribers('id', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('tempore', { + const response = await client.trialLinks.listSubscribers('id', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('quam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('doloribus', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('quam', { + const response = await client.trialLinks.retrieveCohortArps('doloribus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +167,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('necessitatibus', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +181,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('et', { + const response = await client.trialLinks.retrieveStats('necessitatibus', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 2a32777..70dfc18 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'a' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'iirlhpwuag' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'a' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'iirlhpwuag' }); }); // Mock server tests are disabled From 4b821d974a38d50ae58321f62a83cd6c62998bb5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 03:12:33 +0000 Subject: [PATCH 31/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +--- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 ++++--- .../saved-for-later/messages/settings.ts | 2 +- src/resources/smart-links.ts | 14 ++++++----- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 10 ++++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 24 +++++++++---------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 16 ++++++------- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 24 ++++++++----------- .../user-lists/user-lists.test.ts | 4 ++-- 24 files changed, 97 insertions(+), 102 deletions(-) diff --git a/.stats.yml b/.stats.yml index e4e8ffa..e8458a5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a6dce7668a28815048567f576320f6a79e42ccf548e3b6dbef252d89e1853271.yml -openapi_spec_hash: 8384edfcec4a69602c57dab9143c101d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7ec272d9816b974c4a10229c2fbf38ed7fca5382573f61a61f0d60f4ff7c7dac.yml +openapi_spec_hash: 63d89cac4960c7fd029e686c22109a84 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index c012ec5..6bb6558 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,9 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect( - * 'dignissimos', - * ); + * const response = await client.accounts.disconnect('aut'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index af87f26..17e9af7 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'aperiam', + * 'suscipit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 4e8e694..6f8aff5 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'id', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'id', + * 'nihil', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 33a94ac..cc4b4d5 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'aspernatur', + * 'velit', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,10 +37,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'aspernatur', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('velit', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a952..09d6973 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 0757594..ffc1587 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('et'); + * const response = await client.smartLinks.listClicks( + * 'distinctio', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'natus', + * 'dolor', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('amet'); + * const response = await client.smartLinks.listFans('est'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'ullam', + * 'quibusdam', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('eligendi'); + * await client.smartLinks.retrieveCohortArps('odit'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'repellat', + * 'doloremque', * ); * ``` */ diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 1785ac0..f4babb5 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'nemo', + * 'eius', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'nemo', + * 'eius', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('a', { + * await client.trackingLinks.getCohortArps('odio', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'amet', + * 'placeat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 9728a57..5a9ea72 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,7 +50,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('ut', { + * const trialLink = await client.trialLinks.retrieve('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('ut', { + * const trialLink = await client.trialLinks.delete('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'id', + * 'distinctio', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('doloribus', { + * await client.trialLinks.retrieveCohortArps('a', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'necessitatibus', + * 'dolorum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 499041b..189e87f 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'iirlhpwuag' }, + * { name: 'xchmnzdqtiuwhahh' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b930587..5756d5a 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('dignissimos'); + const responsePromise = client.accounts.disconnect('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index c779547..dc9d9d6 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'explicabo', - auth_type: 'mobile_app', - cookies: 'quia', + auth_id: 'eveniet', + auth_type: 'email_password', + cookies: 'error', customProxy: { host: 'proxy.example.com', - password: 'Y"k__TNWXW]', + password: 'Ml7|7&LyZiZV+A', port: 8080, - username: 'eum', + username: 'quia', }, - email: 'hellen51@example.net', - force_connect: true, - name: 'mollitia', - password: '0_:u~FCrahv', - proxyCountry: 'uk', - user_agent: 'voluptas', - xbc: 'possimus', + email: 'deshaun.sipes@example.com', + force_connect: false, + name: 'quos', + password: 'qCpnvEf}U7?>b^hE_`P', + proxyCountry: 'us', + user_agent: 'corrupti', + xbc: 'nihil', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index ed46626..d25f07d 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('aperiam', { + const responsePromise = client.engagement.messages.getMessageBuyers('suscipit', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('aperiam', { + const response = await client.engagement.messages.getMessageBuyers('suscipit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 7562fa5..0195dda 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('id', { + const responsePromise = client.media.vault.lists.media.add('nihil', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('id', { + const response = await client.media.vault.lists.media.add('nihil', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('id', { + const responsePromise = client.media.vault.lists.media.remove('nihil', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('id', { + const response = await client.media.vault.lists.media.remove('nihil', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a6..b0d9651 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'mentions', + type: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index b5e2ece..406a663 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('aspernatur', { + const responsePromise = client.posts.comments.create('velit', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('aspernatur', { + const response = await client.posts.comments.create('velit', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('aspernatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('aspernatur', { + const response = await client.posts.comments.list('velit', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 8e5b056..e2edc67 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2f..d13ad1c 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: false, + isForward: true, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 9ee6e10..d3e7cf3 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('et'); + const responsePromise = client.smartLinks.listClicks('distinctio'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'et', + 'distinctio', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('natus'); + const responsePromise = client.smartLinks.listConversions('dolor'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'natus', + 'dolor', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('amet'); + const responsePromise = client.smartLinks.listFans('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'amet', + 'est', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ullam'); + const responsePromise = client.smartLinks.listSpenders('quibusdam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'ullam', + 'quibusdam', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('eligendi'); + const responsePromise = client.smartLinks.retrieveCohortArps('odit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'eligendi', + 'odit', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('repellat'); + const responsePromise = client.smartLinks.retrieveStats('doloremque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'repellat', + 'doloremque', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 58c60e0..cb36496 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ghkspznot', tags: ['xdcyct'] }, + filter: { search: 'bhjlyzbpffwtojuhet', tags: ['zbhzzxmipvujcoghfzccgcl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ollftrgbryvdp', tags: ['anxiykkkqv'] }, + filter: { search: 'dlaqtrrb', tags: ['lpwfzvwfpkruyr'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'odxxtwombpxqqemasrutnd', - tags: ['sjxtgifqfvojvfpbbo'], + include_smart_links: false, + search: 'pooxwzbpgtuwbfxkf', + tags: ['kiwsiqujtna'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'fhmxcikxewhwqtrrvav', - tags: ['hbx'], + include_smart_links: false, + search: 'zxhxlgpwvxmjxnheuecs', + tags: ['pldqvj'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index e8aaa7d..f79687a 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('odio', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('a', { + const response = await client.trackingLinks.getCohortArps('odio', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('amet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('amet', { + const response = await client.trackingLinks.getStats('placeat', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 95c0cc5..c8ac37f 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('id', { + const responsePromise = client.trialLinks.listSubscribers('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('id', { + const response = await client.trialLinks.listSubscribers('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,9 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('doloribus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('a', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -157,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('doloribus', { + const response = await client.trialLinks.retrieveCohortArps('a', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,9 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('necessitatibus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -181,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('necessitatibus', { + const response = await client.trialLinks.retrieveStats('dolorum', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 70dfc18..8a91249 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'iirlhpwuag' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xchmnzdqtiuwhahh' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'iirlhpwuag' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xchmnzdqtiuwhahh' }); }); // Mock server tests are disabled From 8b449c44c869ab90ada7acc26123d58bfc083f1f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 11:12:30 +0000 Subject: [PATCH 32/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 +++---- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 +++++------ src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 20 +++++++++------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 18 +++++++------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 20 ++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 26 files changed, 108 insertions(+), 106 deletions(-) diff --git a/.stats.yml b/.stats.yml index e8458a5..252a0b6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7ec272d9816b974c4a10229c2fbf38ed7fca5382573f61a61f0d60f4ff7c7dac.yml -openapi_spec_hash: 63d89cac4960c7fd029e686c22109a84 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ccbb99ea966aca7065532cf62680cffc02dbe6418ff94a8d19f073db6e2bebd0.yml +openapi_spec_hash: eebd244f25ae287b2cca731dbeef7fd5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 6bb6558..e8b821f 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('aut'); + * const response = await client.accounts.disconnect('nobis'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 17e9af7..8ab752c 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'suscipit', + * 'officia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 6f8aff5..febcb2b 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'nihil', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'nihil', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index cc4b4d5..bff08de 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'velit', + * 'laborum', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('velit', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'laborum', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973..599a952 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094c..41feb4c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index ffc1587..e4c9fb4 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,9 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks( - * 'distinctio', - * ); + * const response = await client.smartLinks.listClicks('quia'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'dolor', + * 'odio', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('est'); + * const response = await client.smartLinks.listFans('sed'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quibusdam', + * 'beatae', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('odit'); + * await client.smartLinks.retrieveCohortArps('sed'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'doloremque', + * 'magni', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 209a377..a9c614a 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'quia', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quia', { + * await client.stories.highlights.removeStory('et', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index f4babb5..04ca6b2 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'eius', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'eius', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('odio', { + * await client.trackingLinks.getCohortArps('laboriosam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'placeat', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('ex', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 5a9ea72..74b4b4b 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,9 +50,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'laborum', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'laborum', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'distinctio', + * 'ea', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('a', { + * await client.trialLinks.retrieveCohortArps('ab', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'dolorum', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 189e87f..aa86b9e 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'xchmnzdqtiuwhahh' }, + * { name: 'gfpqzjnou' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5756d5a..1e3be33 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('aut'); + const responsePromise = client.accounts.disconnect('nobis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index dc9d9d6..a70e6da 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'eveniet', + auth_id: 'tempora', auth_type: 'email_password', - cookies: 'error', + cookies: 'veritatis', customProxy: { host: 'proxy.example.com', - password: 'Ml7|7&LyZiZV+A', + password: 'p9KVfhU', port: 8080, - username: 'quia', + username: 'provident', }, - email: 'deshaun.sipes@example.com', + email: 'zlueilwitz@example.org', force_connect: false, - name: 'quos', - password: 'qCpnvEf}U7?>b^hE_`P', + name: 'iure', + password: 'y2-!V^;1', proxyCountry: 'us', - user_agent: 'corrupti', - xbc: 'nihil', + user_agent: 'facere', + xbc: 'quaerat', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index d25f07d..022977e 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('suscipit', { + const responsePromise = client.engagement.messages.getMessageBuyers('officia', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('suscipit', { + const response = await client.engagement.messages.getMessageBuyers('officia', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 0195dda..2e9728e 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('nihil', { + const responsePromise = client.media.vault.lists.media.add('quia', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('nihil', { + const response = await client.media.vault.lists.media.add('quia', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('nihil', { + const responsePromise = client.media.vault.lists.media.remove('quia', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('nihil', { + const response = await client.media.vault.lists.media.remove('quia', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d9651..7b04294 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'tags', + type: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 406a663..8874da2 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('velit', { + const responsePromise = client.posts.comments.create('laborum', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('velit', { + const response = await client.posts.comments.create('laborum', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('velit', { + const response = await client.posts.comments.list('laborum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index e2edc67..8e5b056 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index b643af6..c151062 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index d3e7cf3..c1bb2fd 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('distinctio'); + const responsePromise = client.smartLinks.listClicks('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'distinctio', + 'quia', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('dolor'); + const responsePromise = client.smartLinks.listConversions('odio'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'dolor', + 'odio', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('est'); + const responsePromise = client.smartLinks.listFans('sed'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'est', + 'sed', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quibusdam'); + const responsePromise = client.smartLinks.listSpenders('beatae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'quibusdam', + 'beatae', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('odit'); + const responsePromise = client.smartLinks.retrieveCohortArps('sed'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'odit', + 'sed', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('doloremque'); + const responsePromise = client.smartLinks.retrieveStats('magni'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'doloremque', + 'magni', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index cb36496..8bf7d21 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'bhjlyzbpffwtojuhet', tags: ['zbhzzxmipvujcoghfzccgcl'] }, + filter: { search: 'sbsnb', tags: ['lqnuvdatruomru'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'dlaqtrrb', tags: ['lpwfzvwfpkruyr'] }, + filter: { search: 'airearuddtfxoqiazixsvp', tags: ['dm'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'pooxwzbpgtuwbfxkf', - tags: ['kiwsiqujtna'], + search: 'gbpptthqbphs', + tags: ['zxjmslhzbvtnshlitihske'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'zxhxlgpwvxmjxnheuecs', - tags: ['pldqvj'], + search: 'q', + tags: ['qxyw'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f95a25b..fca45b0 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('quia', { + const responsePromise = client.stories.highlights.addStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('quia', { + const response = await client.stories.highlights.addStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('quia', { + const responsePromise = client.stories.highlights.removeStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('quia', { + const response = await client.stories.highlights.removeStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index f79687a..772c183 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('eius', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('odio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('laboriosam', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('odio', { + const response = await client.trackingLinks.getCohortArps('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('placeat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('placeat', { + const response = await client.trackingLinks.getStats('ex', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index c8ac37f..9013781 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('distinctio', { + const responsePromise = client.trialLinks.listSubscribers('ea', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('distinctio', { + const response = await client.trialLinks.listSubscribers('ea', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('a', { + const response = await client.trialLinks.retrieveCohortArps('ab', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('dolorum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('dolorum', { + const response = await client.trialLinks.retrieveStats('est', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 8a91249..d4a31ee 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xchmnzdqtiuwhahh' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gfpqzjnou' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'xchmnzdqtiuwhahh' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gfpqzjnou' }); }); // Mock server tests are disabled From 8ebf680384a856aed45875ae4453bb594d8316c6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 13:12:30 +0000 Subject: [PATCH 33/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +++- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 18 +++++++---------- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 12 ++++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 13 ++++++------ src/resources/trial-links/trial-links.ts | 15 +++++++------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 +++++++++---------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 ++++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 ++++---- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 20 +++++++++---------- tests/api-resources/stored.test.ts | 14 ++++++------- .../api-resources/stories/highlights.test.ts | 8 ++++---- .../tracking-links/tracking-links.test.ts | 16 +++++++-------- .../trial-links/trial-links.test.ts | 20 +++++++++---------- .../user-lists/user-lists.test.ts | 4 ++-- 27 files changed, 109 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 252a0b6..e3aaaad 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ccbb99ea966aca7065532cf62680cffc02dbe6418ff94a8d19f073db6e2bebd0.yml -openapi_spec_hash: eebd244f25ae287b2cca731dbeef7fd5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-641f663d0134786ff1239eab224f03030f08704502dfa7d9f9d8ad3a3caa55e1.yml +openapi_spec_hash: 795d08db1824ff18cf8828f2dfd068f9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e8b821f..07f8942 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,9 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('nobis'); + * const response = await client.accounts.disconnect( + * 'voluptatum', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 8ab752c..7da23a1 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'officia', + * 'explicabo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index febcb2b..09646b7 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'quia', + * 'reprehenderit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'quia', + * 'reprehenderit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index bff08de..0b5fb77 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,13 +11,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create( - * 'laborum', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('est', { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }); * ``` */ create( @@ -37,10 +34,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'laborum', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('est', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a952..a976781 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c..2b04cbb 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index e4c9fb4..36d7178 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('quia'); + * const response = await client.smartLinks.listClicks( + * 'error', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'odio', + * 'ipsam', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('sed'); + * const response = await client.smartLinks.listFans('et'); * ``` */ listFans( @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('sed'); + * await client.smartLinks.retrieveCohortArps('beatae'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'magni', + * 'at', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a..27cd427 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'et', + * 'ut', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('et', { + * await client.stories.highlights.removeStory('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 04ca6b2..a4d7260 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'rerum', + * 'magni', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'rerum', + * 'magni', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('laboriosam', { + * await client.trackingLinks.getCohortArps('tempora', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('ex', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'eligendi', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 74b4b4b..b6603ae 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'laborum', + * 'dicta', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'laborum', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('dicta', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ea', + * 'dolorum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('ab', { + * await client.trialLinks.retrieveCohortArps('non', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'est', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index aa86b9e..d528aa7 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'gfpqzjnou' }, + * { name: 'mklozuwszqf' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 1e3be33..5c96d4f 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('nobis'); + const responsePromise = client.accounts.disconnect('voluptatum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index a70e6da..54409f0 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'tempora', - auth_type: 'email_password', - cookies: 'veritatis', + auth_id: 'sed', + auth_type: 'raw_data', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: 'p9KVfhU', + password: 'tj(w/^', port: 8080, - username: 'provident', + username: 'mollitia', }, - email: 'zlueilwitz@example.org', + email: 'greenfelder.brenna@example.com', force_connect: false, - name: 'iure', - password: 'y2-!V^;1', + name: 'necessitatibus', + password: 'R(Zk-tt', proxyCountry: 'us', - user_agent: 'facere', - xbc: 'quaerat', + user_agent: 'sed', + xbc: 'ipsam', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 022977e..4fc49ec 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('officia', { + const responsePromise = client.engagement.messages.getMessageBuyers('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('officia', { + const response = await client.engagement.messages.getMessageBuyers('explicabo', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 2e9728e..6ed14db 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('quia', { + const responsePromise = client.media.vault.lists.media.add('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('quia', { + const response = await client.media.vault.lists.media.add('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('quia', { + const responsePromise = client.media.vault.lists.media.remove('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('quia', { + const response = await client.media.vault.lists.media.remove('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b04294..70f616c 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'comments', + type: 'promotions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 8874da2..1f347b4 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('laborum', { + const responsePromise = client.posts.comments.create('est', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('laborum', { + const response = await client.posts.comments.create('est', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('laborum', { + const response = await client.posts.comments.list('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 8e5b056..4ec8acc 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index c151062..96d399d 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1c..6b1dc2f 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: true, + isForward: false, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index c1bb2fd..5c38bfd 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quia'); + const responsePromise = client.smartLinks.listClicks('error'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'quia', + 'error', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('odio'); + const responsePromise = client.smartLinks.listConversions('ipsam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'odio', + 'ipsam', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('sed'); + const responsePromise = client.smartLinks.listFans('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'sed', + 'et', { has_messages: true, limit: 100, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('sed'); + const responsePromise = client.smartLinks.retrieveCohortArps('beatae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'sed', + 'beatae', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('magni'); + const responsePromise = client.smartLinks.retrieveStats('at'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'magni', + 'at', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 8bf7d21..d6cccc8 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'sbsnb', tags: ['lqnuvdatruomru'] }, + filter: { search: 'qfvoytljqllfyevicatxcnsg', tags: ['vratdxyjxzpyhxbpruaskfyv'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'airearuddtfxoqiazixsvp', tags: ['dm'] }, + filter: { search: 'kxuwxtwnngzresf', tags: ['wqfuoarqv'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'gbpptthqbphs', - tags: ['zxjmslhzbvtnshlitihske'], + search: 'scl', + tags: ['hokzeazwhgqwynq'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'q', - tags: ['qxyw'], + include_smart_links: true, + search: 'shplruiu', + tags: ['qxkhsmzyodcwzppuwxwav'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0..875fdcf 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('et', { + const responsePromise = client.stories.highlights.addStory('ut', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('et', { + const response = await client.stories.highlights.addStory('ut', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('et', { + const responsePromise = client.stories.highlights.removeStory('ut', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('et', { + const response = await client.stories.highlights.removeStory('ut', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 772c183..7d2c350 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('laboriosam', { + const responsePromise = client.trackingLinks.getCohortArps('tempora', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -111,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('laboriosam', { + const response = await client.trackingLinks.getCohortArps('tempora', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('ex', { + const response = await client.trackingLinks.getStats('eligendi', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 9013781..15a0237 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('ea', { + const responsePromise = client.trialLinks.listSubscribers('dolorum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('ea', { + const response = await client.trialLinks.listSubscribers('dolorum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('ab', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('ab', { + const response = await client.trialLinks.retrieveCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('est', { + const response = await client.trialLinks.retrieveStats('inventore', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index d4a31ee..4aeb999 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gfpqzjnou' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mklozuwszqf' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gfpqzjnou' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mklozuwszqf' }); }); // Mock server tests are disabled From f4d514a682ee576ba07b3b4c0b7f78da3895ab60 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 15:55:56 +0000 Subject: [PATCH 34/59] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e3aaaad..9dc4165 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-641f663d0134786ff1239eab224f03030f08704502dfa7d9f9d8ad3a3caa55e1.yml -openapi_spec_hash: 795d08db1824ff18cf8828f2dfd068f9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b1ce2ec26e4caee65ba7ac15f712175c2d8008729c61791ef88284a3b1795fff.yml +openapi_spec_hash: 734d7ffe696a29001f0ccd6df2dad77d config_hash: 397c91e15c0024f8b5bbed9b82c2348c From 870271a9e04386e88bb6cc04d821b89b1f533466 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 16:12:43 +0000 Subject: [PATCH 35/59] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9dc4165..e3aaaad 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b1ce2ec26e4caee65ba7ac15f712175c2d8008729c61791ef88284a3b1795fff.yml -openapi_spec_hash: 734d7ffe696a29001f0ccd6df2dad77d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-641f663d0134786ff1239eab224f03030f08704502dfa7d9f9d8ad3a3caa55e1.yml +openapi_spec_hash: 795d08db1824ff18cf8828f2dfd068f9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c From a79343d9a35f5a31e3d29320e1588e1d3c529f10 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 18:12:35 +0000 Subject: [PATCH 36/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +--- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 18 ++++++++------ .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 +++++------ src/resources/stories/highlights.ts | 13 ++++++---- .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 15 ++++++------ src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++--------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 20 ++++++++-------- .../user-lists/user-lists.test.ts | 8 +++++-- 25 files changed, 120 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index e3aaaad..113d8fa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-641f663d0134786ff1239eab224f03030f08704502dfa7d9f9d8ad3a3caa55e1.yml -openapi_spec_hash: 795d08db1824ff18cf8828f2dfd068f9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-58a5691f9bb5e713e93fcc654175160b7cf3dc29aa8a8630cb69dda731c357bc.yml +openapi_spec_hash: 113bf2a7381de8577997aed09e19e195 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 07f8942..a11b192 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,9 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect( - * 'voluptatum', - * ); + * const response = await client.accounts.disconnect('cum'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7da23a1..07bc710 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'explicabo', + * 'numquam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 09646b7..0338921 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'reprehenderit', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'reprehenderit', + * 'magnam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0b5fb77..d9ba020 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,10 +11,13 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create('est', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'blanditiis', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }, + * ); * ``` */ create( @@ -34,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('est', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'blanditiis', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb..a84ff07 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 36d7178..3e7d2f0 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,9 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks( - * 'error', - * ); + * const response = await client.smartLinks.listClicks('qui'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ipsam', + * 'ut', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('et'); + * const response = await client.smartLinks.listFans('saepe'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'beatae', + * 'qui', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('beatae'); + * await client.smartLinks.retrieveCohortArps('eligendi'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'at', + * 'et', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 27cd427..49b5faa 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'ut', + * 'blanditiis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'blanditiis', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }, + * ); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index a4d7260..1b3a0ec 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'magni', + * 'voluptates', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'magni', + * 'voluptates', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('tempora', { + * await client.trackingLinks.getCohortArps('quia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'eligendi', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('ex', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index b6603ae..1f33330 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'dicta', + * 'repudiandae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('dicta', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'repudiandae', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'dolorum', + * 'iure', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('non', { + * await client.trialLinks.retrieveCohortArps('sed', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'inventore', + * 'corporis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d528aa7..02f0557 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'mklozuwszqf' }, + * { name: 'kzxnsqieiladfairxairlcpjg' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5c96d4f..bb7123c 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('voluptatum'); + const responsePromise = client.accounts.disconnect('cum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 54409f0..ded0e81 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'sed', + auth_id: 'doloribus', auth_type: 'raw_data', - cookies: 'et', + cookies: 'est', customProxy: { host: 'proxy.example.com', - password: 'tj(w/^', + password: '}>;7}Gj[}bTqCncqD', port: 8080, - username: 'mollitia', + username: 'beatae', }, - email: 'greenfelder.brenna@example.com', - force_connect: false, - name: 'necessitatibus', - password: 'R(Zk-tt', - proxyCountry: 'us', - user_agent: 'sed', - xbc: 'ipsam', + email: 'tkozey@example.org', + force_connect: true, + name: 'reiciendis', + password: '1[hqMO"', + proxyCountry: 'uk', + user_agent: 'aut', + xbc: 'expedita', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de46..c17a81d 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 4fc49ec..b018e79 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('explicabo', { + const responsePromise = client.engagement.messages.getMessageBuyers('numquam', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('explicabo', { + const response = await client.engagement.messages.getMessageBuyers('numquam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 6ed14db..c9be794 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('reprehenderit', { + const responsePromise = client.media.vault.lists.media.add('magnam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('reprehenderit', { + const response = await client.media.vault.lists.media.add('magnam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('reprehenderit', { + const responsePromise = client.media.vault.lists.media.remove('magnam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('reprehenderit', { + const response = await client.media.vault.lists.media.remove('magnam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 70f616c..69b39e4 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'promotions', + type: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 1f347b4..7d3edc2 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('est', { + const responsePromise = client.posts.comments.create('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('est', { + const response = await client.posts.comments.create('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('est', { + const response = await client.posts.comments.list('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399d..02883e1 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 5c38bfd..4293939 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('error'); + const responsePromise = client.smartLinks.listClicks('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'error', + 'qui', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('ipsam'); + const responsePromise = client.smartLinks.listConversions('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'ipsam', + 'ut', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('et'); + const responsePromise = client.smartLinks.listFans('saepe'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'et', + 'saepe', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('beatae'); + const responsePromise = client.smartLinks.listSpenders('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'beatae', + 'qui', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('beatae'); + const responsePromise = client.smartLinks.retrieveCohortArps('eligendi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'beatae', + 'eligendi', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('at'); + const responsePromise = client.smartLinks.retrieveStats('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'at', + 'et', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index d6cccc8..2f4a81d 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qfvoytljqllfyevicatxcnsg', tags: ['vratdxyjxzpyhxbpruaskfyv'] }, + filter: { search: 'cdbldlpp', tags: ['iwfkyzmqyfheypgxfsfaak'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'kxuwxtwnngzresf', tags: ['wqfuoarqv'] }, + filter: { search: 'lriutobczew', tags: ['vyeybutswzimajcjscrx'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'scl', - tags: ['hokzeazwhgqwynq'], + search: 'jj', + tags: ['pectmelny'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'shplruiu', - tags: ['qxkhsmzyodcwzppuwxwav'], + include_smart_links: false, + search: 'uiyarfhbgajc', + tags: ['unhwpzxpqmbshfukrrs'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 875fdcf..2a70879 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('ut', { + const responsePromise = client.stories.highlights.addStory('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('ut', { + const response = await client.stories.highlights.addStory('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('ut', { + const responsePromise = client.stories.highlights.removeStory('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('ut', { + const response = await client.stories.highlights.removeStory('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 7d2c350..81959be 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,14 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('magni', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('tempora', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -111,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('tempora', { + const response = await client.trackingLinks.getCohortArps('quia', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('eligendi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('eligendi', { + const response = await client.trackingLinks.getStats('ex', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 15a0237..abff62a 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('dicta', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('dolorum', { + const responsePromise = client.trialLinks.listSubscribers('iure', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('dolorum', { + const response = await client.trialLinks.listSubscribers('iure', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('non', { + const response = await client.trialLinks.retrieveCohortArps('sed', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('corporis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('inventore', { + const response = await client.trialLinks.retrieveStats('corporis', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 4aeb999..ce95368 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,9 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mklozuwszqf' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'kzxnsqieiladfairxairlcpjg', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,9 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mklozuwszqf' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'kzxnsqieiladfairxairlcpjg', + }); }); // Mock server tests are disabled From 1f119f566c1f540f8a466d371fb6956ceecce30a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 20:12:30 +0000 Subject: [PATCH 37/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 4 ++-- .../saved-for-later/messages/settings.ts | 2 +- src/resources/smart-links.ts | 14 ++++++----- src/resources/stories/highlights.ts | 13 ++++------ .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 15 ++++++------ src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 24 +++++++++---------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 16 ++++++------- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 20 ++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 25 files changed, 108 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index 113d8fa..273003d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-58a5691f9bb5e713e93fcc654175160b7cf3dc29aa8a8630cb69dda731c357bc.yml -openapi_spec_hash: 113bf2a7381de8577997aed09e19e195 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e5b9679cc16dfefa265a334476fb3bc56b4f66e1bc075a519313d18d4d14c5e1.yml +openapi_spec_hash: 2308e7a123b6fa89f5e6f1f2b6496ed6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index a11b192..d25bbb2 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('cum'); + * const response = await client.accounts.disconnect('dolor'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 07bc710..d3dd7ca 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'numquam', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 0338921..e1713e4 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'magnam', + * 'ex', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'magnam', + * 'ex', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index d9ba020..3b983da 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'blanditiis', + * 'deserunt', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -38,7 +38,7 @@ export class Comments extends APIResource { * @example * ```ts * const comments = await client.posts.comments.list( - * 'blanditiis', + * 'deserunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a976781..e20f70d 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 3e7d2f0..cae6ad5 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('qui'); + * const response = await client.smartLinks.listClicks( + * 'totam', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ut', + * 'rerum', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('saepe'); + * const response = await client.smartLinks.listFans('labore'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'qui', + * 'voluptatum', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('eligendi'); + * await client.smartLinks.retrieveCohortArps('velit'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'et', + * 'omnis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 49b5faa..160c893 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'blanditiis', + * 'nostrum', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'blanditiis', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('nostrum', { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 1b3a0ec..88544c1 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'voluptates', + * 'assumenda', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'voluptates', + * 'assumenda', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('quia', { + * await client.trackingLinks.getCohortArps('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('ex', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'aperiam', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 1f33330..9c66d8a 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'repudiandae', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,10 +89,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'repudiandae', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('rerum', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'iure', + * 'vel', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('sed', { + * await client.trialLinks.retrieveCohortArps('quae', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'corporis', + * 'cumque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 02f0557..2eb5f74 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'kzxnsqieiladfairxairlcpjg' }, + * { name: 'foxmfspzyffhxlhqxdmlmto' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index bb7123c..6877d23 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('cum'); + const responsePromise = client.accounts.disconnect('dolor'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index ded0e81..4f77584 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'doloribus', - auth_type: 'raw_data', - cookies: 'est', + auth_id: 'sed', + auth_type: 'email_password', + cookies: 'et', customProxy: { host: 'proxy.example.com', - password: '}>;7}Gj[}bTqCncqD', + password: '&\\#-1Z4', port: 8080, - username: 'beatae', + username: 'in', }, - email: 'tkozey@example.org', - force_connect: true, - name: 'reiciendis', - password: '1[hqMO"', - proxyCountry: 'uk', - user_agent: 'aut', - xbc: 'expedita', + email: 'khaley@example.org', + force_connect: false, + name: 'officia', + password: '0vN4b.-$fO_oe!QI@24', + proxyCountry: 'us', + user_agent: 'eos', + xbc: 'nobis', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index b018e79..5160247 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('numquam', { + const responsePromise = client.engagement.messages.getMessageBuyers('doloremque', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('numquam', { + const response = await client.engagement.messages.getMessageBuyers('doloremque', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index c9be794..aee2c98 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('magnam', { + const responsePromise = client.media.vault.lists.media.add('ex', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('magnam', { + const response = await client.media.vault.lists.media.add('ex', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('magnam', { + const responsePromise = client.media.vault.lists.media.remove('ex', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('magnam', { + const response = await client.media.vault.lists.media.remove('ex', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e4..694c42e 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'onlyfans', + type: 'tips', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 7d3edc2..4dff22a 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('blanditiis', { + const responsePromise = client.posts.comments.create('deserunt', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('blanditiis', { + const response = await client.posts.comments.create('deserunt', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('blanditiis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('deserunt', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('blanditiis', { + const response = await client.posts.comments.list('deserunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 4ec8acc..fd74b68 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 4293939..413d0e1 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('qui'); + const responsePromise = client.smartLinks.listClicks('totam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'qui', + 'totam', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('ut'); + const responsePromise = client.smartLinks.listConversions('rerum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'ut', + 'rerum', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('saepe'); + const responsePromise = client.smartLinks.listFans('labore'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'saepe', + 'labore', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('qui'); + const responsePromise = client.smartLinks.listSpenders('voluptatum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'qui', + 'voluptatum', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('eligendi'); + const responsePromise = client.smartLinks.retrieveCohortArps('velit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'eligendi', + 'velit', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('et'); + const responsePromise = client.smartLinks.retrieveStats('omnis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'et', + 'omnis', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 2f4a81d..90a633b 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'cdbldlpp', tags: ['iwfkyzmqyfheypgxfsfaak'] }, + filter: { search: 'hgckxy', tags: ['aqxcifcznrc'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'lriutobczew', tags: ['vyeybutswzimajcjscrx'] }, + filter: { search: 'denlogiejqdeewgckpugoli', tags: ['jbzxagbnathrw'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'jj', - tags: ['pectmelny'], + include_smart_links: true, + search: 'kclizkinyyquwhvtpvfjgs', + tags: ['nogjbhykqod'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'uiyarfhbgajc', - tags: ['unhwpzxpqmbshfukrrs'], + include_smart_links: true, + search: 'pezcygxk', + tags: ['evx'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2a70879..60c0240 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('blanditiis', { + const responsePromise = client.stories.highlights.addStory('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('blanditiis', { + const response = await client.stories.highlights.addStory('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('blanditiis', { + const responsePromise = client.stories.highlights.removeStory('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('blanditiis', { + const response = await client.stories.highlights.removeStory('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 81959be..8e699fc 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('quia', { + const response = await client.trackingLinks.getCohortArps('ut', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('ex', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('ex', { + const response = await client.trackingLinks.getStats('aperiam', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index abff62a..69ceba5 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('iure', { + const responsePromise = client.trialLinks.listSubscribers('vel', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('iure', { + const response = await client.trialLinks.listSubscribers('vel', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('quae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('sed', { + const response = await client.trialLinks.retrieveCohortArps('quae', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('corporis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('cumque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('corporis', { + const response = await client.trialLinks.retrieveStats('cumque', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index ce95368..29afc4f 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -11,7 +11,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'kzxnsqieiladfairxairlcpjg', + name: 'foxmfspzyffhxlhqxdmlmto', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -25,7 +25,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'kzxnsqieiladfairxairlcpjg', + name: 'foxmfspzyffhxlhqxdmlmto', }); }); From 0017f6f209548fe6a8ead615b86b913a6df7baf1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 6 Jun 2026 16:12:29 +0000 Subject: [PATCH 38/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 ++++--- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 12 +++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 10 ++++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 24 +++++++++---------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++-------- .../user-lists/user-lists.test.ts | 8 ++----- 25 files changed, 101 insertions(+), 104 deletions(-) diff --git a/.stats.yml b/.stats.yml index 273003d..4ed12a0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e5b9679cc16dfefa265a334476fb3bc56b4f66e1bc075a519313d18d4d14c5e1.yml -openapi_spec_hash: 2308e7a123b6fa89f5e6f1f2b6496ed6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-dfa9194b09a0589fd3344d6ea20b2c2b330b0a235026e4e772a0e95112e94c0d.yml +openapi_spec_hash: 10b2a643dc02cbcd2499ebe551257acd config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d25bbb2..e8b821f 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('dolor'); + * const response = await client.accounts.disconnect('nobis'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d3dd7ca..aedd3ec 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'doloremque', + * 'enim', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index e1713e4..08ef990 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'ex', + * 'distinctio', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'ex', + * 'distinctio', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 3b983da..e33ad59 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'deserunt', + * 'ipsum', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,10 +37,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'deserunt', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('ipsum', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff07..c9a094c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index cae6ad5..d7bd1b0 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'totam', + * 'quibusdam', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'rerum', + * 'soluta', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('labore'); + * const response = await client.smartLinks.listFans('aut'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'voluptatum', + * 'culpa', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('velit'); + * await client.smartLinks.retrieveCohortArps('qui'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'omnis', + * 'voluptatem', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 160c893..9564223 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'nostrum', + * 'quod', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('nostrum', { + * await client.stories.highlights.removeStory('quod', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 88544c1..86c53ef 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'assumenda', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'assumenda', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ut', { + * await client.trackingLinks.getCohortArps('in', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'aperiam', + * 'voluptates', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 9c66d8a..84b9f43 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'rerum', + * 'culpa', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('rerum', { + * const trialLink = await client.trialLinks.delete('culpa', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'vel', + * 'qui', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quae', { + * await client.trialLinks.retrieveCohortArps('dolorem', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'cumque', + * 'hic', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 2eb5f74..8469b14 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'foxmfspzyffhxlhqxdmlmto' }, + * { name: 'zxawrlntjvpczctt' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 6877d23..1e3be33 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('dolor'); + const responsePromise = client.accounts.disconnect('nobis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 4f77584..51279a0 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'sed', - auth_type: 'email_password', - cookies: 'et', + auth_id: 'earum', + auth_type: 'raw_data', + cookies: 'autem', customProxy: { host: 'proxy.example.com', - password: '&\\#-1Z4', + password: 'V)i;w,E-+<#,Unf."{=', port: 8080, - username: 'in', + username: 'sed', }, - email: 'khaley@example.org', - force_connect: false, - name: 'officia', - password: '0vN4b.-$fO_oe!QI@24', - proxyCountry: 'us', - user_agent: 'eos', - xbc: 'nobis', + email: 'mathias45@example.org', + force_connect: true, + name: 'sunt', + password: '|8N=u?0$geI', + proxyCountry: 'uk', + user_agent: 'et', + xbc: 'adipisci', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 5160247..937a9aa 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('doloremque', { + const responsePromise = client.engagement.messages.getMessageBuyers('enim', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('doloremque', { + const response = await client.engagement.messages.getMessageBuyers('enim', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index aee2c98..4683978 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('ex', { + const responsePromise = client.media.vault.lists.media.add('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('ex', { + const response = await client.media.vault.lists.media.add('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('ex', { + const responsePromise = client.media.vault.lists.media.remove('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('ex', { + const response = await client.media.vault.lists.media.remove('distinctio', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 694c42e..7b04294 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'tips', + type: 'comments', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 4dff22a..3569d38 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('deserunt', { + const responsePromise = client.posts.comments.create('ipsum', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('deserunt', { + const response = await client.posts.comments.create('ipsum', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('deserunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('ipsum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('deserunt', { + const response = await client.posts.comments.list('ipsum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e1..b643af6 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2f..d13ad1c 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: false, + isForward: true, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 413d0e1..91de9c7 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('totam'); + const responsePromise = client.smartLinks.listClicks('quibusdam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'totam', + 'quibusdam', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('rerum'); + const responsePromise = client.smartLinks.listConversions('soluta'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'rerum', + 'soluta', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('labore'); + const responsePromise = client.smartLinks.listFans('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'labore', + 'aut', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('voluptatum'); + const responsePromise = client.smartLinks.listSpenders('culpa'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'voluptatum', + 'culpa', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('velit'); + const responsePromise = client.smartLinks.retrieveCohortArps('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'velit', + 'qui', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('omnis'); + const responsePromise = client.smartLinks.retrieveStats('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'omnis', + 'voluptatem', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 90a633b..fe1c40d 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'hgckxy', tags: ['aqxcifcznrc'] }, + filter: { search: 'lsazhoivqvgwseffkuizvhhj', tags: ['znivldvnfjrikld'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'denlogiejqdeewgckpugoli', tags: ['jbzxagbnathrw'] }, + filter: { search: 'izpz', tags: ['zisptqkzskdbh'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'kclizkinyyquwhvtpvfjgs', - tags: ['nogjbhykqod'], + include_smart_links: false, + search: 'iufaanxa', + tags: ['laqbuymcnrmjhkxduzjjuqhu'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'pezcygxk', - tags: ['evx'], + search: 'ryxjuejsvaxsxjq', + tags: ['uswnnchswhbvmexk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 60c0240..c748c17 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('nostrum', { + const responsePromise = client.stories.highlights.addStory('quod', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('nostrum', { + const response = await client.stories.highlights.addStory('quod', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('nostrum', { + const responsePromise = client.stories.highlights.removeStory('quod', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('nostrum', { + const response = await client.stories.highlights.removeStory('quod', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 8e699fc..24d496e 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('in', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('ut', { + const response = await client.trackingLinks.getCohortArps('in', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('aperiam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('aperiam', { + const response = await client.trackingLinks.getStats('voluptates', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 69ceba5..b318326 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('vel', { + const responsePromise = client.trialLinks.listSubscribers('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('vel', { + const response = await client.trialLinks.listSubscribers('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('quae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('dolorem', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('quae', { + const response = await client.trialLinks.retrieveCohortArps('dolorem', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('cumque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('cumque', { + const response = await client.trialLinks.retrieveStats('hic', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 29afc4f..22a82f6 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,9 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'foxmfspzyffhxlhqxdmlmto', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zxawrlntjvpczctt' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,9 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'foxmfspzyffhxlhqxdmlmto', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zxawrlntjvpczctt' }); }); // Mock server tests are disabled From 8d3c93c186cb7a11fd84226957137a7505e045d7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 22:12:36 +0000 Subject: [PATCH 39/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 13 ++++------ .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 ++++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 10 ++++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 27 files changed, 111 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4ed12a0..e444cca 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-dfa9194b09a0589fd3344d6ea20b2c2b330b0a235026e4e772a0e95112e94c0d.yml -openapi_spec_hash: 10b2a643dc02cbcd2499ebe551257acd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8e5ddc9ff4b3c807dbee077def9b9ef094ad5f0f34a7c55136ec1179667652f4.yml +openapi_spec_hash: 8ee37c36163bd14eeccfd489360a2d79 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index e8b821f..4838acc 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('nobis'); + * const response = await client.accounts.disconnect('qui'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index aedd3ec..7e83f2a 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,10 +31,9 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers( - * 'enim', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 08ef990..a90c162 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'distinctio', + * 'quisquam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'distinctio', + * 'quisquam', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index e33ad59..5c7b2c9 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,13 +11,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create( - * 'ipsum', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('nam', { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }); * ``` */ create( @@ -37,7 +34,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('ipsum', { + * const comments = await client.posts.comments.list('nam', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d..a976781 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094c..2b04cbb 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index d7bd1b0..39994cc 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'quibusdam', + * 'voluptatibus', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'soluta', + * 'dolores', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('aut'); + * const response = await client.smartLinks.listFans( + * 'voluptate', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'culpa', + * 'reiciendis', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('qui'); + * await client.smartLinks.retrieveCohortArps('repellendus'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptatem', + * 'nesciunt', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 9564223..8782f52 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'quod', + * 'minima', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quod', { + * await client.stories.highlights.removeStory('minima', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 86c53ef..cf1131c 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'molestiae', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'molestiae', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('in', { + * await client.trackingLinks.getCohortArps('repellendus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'voluptates', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('ut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 84b9f43..0134318 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'culpa', + * 'earum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('culpa', { + * const trialLink = await client.trialLinks.delete('earum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'qui', + * 'repellat', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('dolorem', { + * await client.trialLinks.retrieveCohortArps('deleniti', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'hic', + * 'doloremque', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 8469b14..2325aa6 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'zxawrlntjvpczctt' }, + * { name: 'vjxjprcshnfozfbnfl' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 1e3be33..ee79bf4 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('nobis'); + const responsePromise = client.accounts.disconnect('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 51279a0..fc8c7cd 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'earum', + auth_id: 'dolorem', auth_type: 'raw_data', - cookies: 'autem', + cookies: 'consequatur', customProxy: { host: 'proxy.example.com', - password: 'V)i;w,E-+<#,Unf."{=', + password: '_eiBb!!u!xJtZ', port: 8080, - username: 'sed', + username: 'repudiandae', }, - email: 'mathias45@example.org', - force_connect: true, - name: 'sunt', - password: '|8N=u?0$geI', + email: 'nader.cyril@example.com', + force_connect: false, + name: 'error', + password: "wwz\\+gD0AZE,',[", proxyCountry: 'uk', - user_agent: 'et', - xbc: 'adipisci', + user_agent: 'autem', + xbc: 'id', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 937a9aa..32dab22 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('enim', { + const responsePromise = client.engagement.messages.getMessageBuyers('et', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('enim', { + const response = await client.engagement.messages.getMessageBuyers('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 4683978..9271adb 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('distinctio', { + const responsePromise = client.media.vault.lists.media.add('quisquam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('distinctio', { + const response = await client.media.vault.lists.media.add('quisquam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('distinctio', { + const responsePromise = client.media.vault.lists.media.remove('quisquam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('distinctio', { + const response = await client.media.vault.lists.media.remove('quisquam', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 7b04294..e769f5c 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'comments', + type: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 3569d38..2eea002 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('ipsum', { + const responsePromise = client.posts.comments.create('nam', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('ipsum', { + const response = await client.posts.comments.create('nam', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('ipsum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('ipsum', { + const response = await client.posts.comments.list('nam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index fd74b68..4ec8acc 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index b643af6..96d399d 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 91de9c7..eeb4e84 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quibusdam'); + const responsePromise = client.smartLinks.listClicks('voluptatibus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'quibusdam', + 'voluptatibus', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('soluta'); + const responsePromise = client.smartLinks.listConversions('dolores'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'soluta', + 'dolores', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('aut'); + const responsePromise = client.smartLinks.listFans('voluptate'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'aut', + 'voluptate', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('culpa'); + const responsePromise = client.smartLinks.listSpenders('reiciendis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'culpa', + 'reiciendis', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('qui'); + const responsePromise = client.smartLinks.retrieveCohortArps('repellendus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'qui', + 'repellendus', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptatem'); + const responsePromise = client.smartLinks.retrieveStats('nesciunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'voluptatem', + 'nesciunt', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index fe1c40d..f703f82 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'lsazhoivqvgwseffkuizvhhj', tags: ['znivldvnfjrikld'] }, + filter: { search: 'blidalzpefisy', tags: ['ujuvoonxjusrs'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'izpz', tags: ['zisptqkzskdbh'] }, + filter: { search: 'atagdqyd', tags: ['ggszdzlwbkkgjhqk'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'iufaanxa', - tags: ['laqbuymcnrmjhkxduzjjuqhu'], + search: 'idncfycfbkvhfxcrpkifmvn', + tags: ['flyjbck'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ryxjuejsvaxsxjq', - tags: ['uswnnchswhbvmexk'], + include_smart_links: false, + search: 'oudnjzxhju', + tags: ['ezfhprygaq'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index c748c17..7402688 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('quod', { + const responsePromise = client.stories.highlights.addStory('minima', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('quod', { + const response = await client.stories.highlights.addStory('minima', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('quod', { + const responsePromise = client.stories.highlights.removeStory('minima', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('quod', { + const response = await client.stories.highlights.removeStory('minima', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 24d496e..43e246b 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('molestiae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('repellendus', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('in', { + const response = await client.trackingLinks.getCohortArps('repellendus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('voluptates', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('voluptates', { + const response = await client.trackingLinks.getStats('ut', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index b318326..2c9201f 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('culpa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('qui', { + const responsePromise = client.trialLinks.listSubscribers('repellat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('qui', { + const response = await client.trialLinks.listSubscribers('repellat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('dolorem', { + const responsePromise = client.trialLinks.retrieveCohortArps('deleniti', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('dolorem', { + const response = await client.trialLinks.retrieveCohortArps('deleniti', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +167,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('hic', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('doloremque', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +181,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('hic', { + const response = await client.trialLinks.retrieveStats('doloremque', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 22a82f6..37ae0b4 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zxawrlntjvpczctt' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vjxjprcshnfozfbnfl' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zxawrlntjvpczctt' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vjxjprcshnfozfbnfl' }); }); // Mock server tests are disabled From 0d0c1dcf0720c6f4ef56779a1c4e6f2fad1a33c3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 9 Jun 2026 02:12:36 +0000 Subject: [PATCH 40/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +++- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 18 ++++++++------ src/resources/smart-links.ts | 16 ++++++------- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 15 ++++++------ src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++--------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 22 ++++++++--------- .../user-lists/user-lists.test.ts | 4 ++-- 23 files changed, 114 insertions(+), 109 deletions(-) diff --git a/.stats.yml b/.stats.yml index e444cca..48d3a1c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8e5ddc9ff4b3c807dbee077def9b9ef094ad5f0f34a7c55136ec1179667652f4.yml -openapi_spec_hash: 8ee37c36163bd14eeccfd489360a2d79 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-eab604f37d98f3e04e08f5f50f591467230261503eec23dcd6a36a68e02512b3.yml +openapi_spec_hash: ae4ef4ec4cf3f26b009651f73ada95d4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 4838acc..9815091 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,9 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('qui'); + * const response = await client.accounts.disconnect( + * 'asperiores', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7e83f2a..d65076b 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,9 +31,10 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'quia', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a90c162..2f38ae6 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'quisquam', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'quisquam', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 5c7b2c9..a0f5e08 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,10 +11,13 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create('nam', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'doloremque', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }, + * ); * ``` */ create( @@ -34,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('nam', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'doloremque', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 39994cc..72803c6 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'voluptatibus', + * 'nulla', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'dolores', + * 'ad', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'voluptate', - * ); + * const response = await client.smartLinks.listFans('quis'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'reiciendis', + * 'aut', * ); * ``` */ @@ -149,7 +147,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('repellendus'); + * await client.smartLinks.retrieveCohortArps( + * 'exercitationem', + * ); * ``` */ retrieveCohortArps( @@ -171,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'nesciunt', + * 'dolorum', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 8782f52..0889b58 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'minima', + * 'pariatur', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('minima', { + * await client.stories.highlights.removeStory('pariatur', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index cf1131c..e2831d4 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'qui', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'qui', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('repellendus', { + * await client.trackingLinks.getCohortArps('adipisci', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'commodi', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 0134318..824e389 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,10 +50,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve( - * 'earum', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('est', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('earum', { + * const trialLink = await client.trialLinks.delete('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -129,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'repellat', + * 'ad', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('deleniti', { + * await client.trialLinks.retrieveCohortArps('officiis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'doloremque', + * 'nisi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 2325aa6..9215da0 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'vjxjprcshnfozfbnfl' }, + * { name: 'axmckamrfnnfxpzvob' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index ee79bf4..04ac84e 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('qui'); + const responsePromise = client.accounts.disconnect('asperiores'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index fc8c7cd..bc7c2e4 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'dolorem', - auth_type: 'raw_data', - cookies: 'consequatur', + auth_id: 'deleniti', + auth_type: 'email_password', + cookies: 'quia', customProxy: { host: 'proxy.example.com', - password: '_eiBb!!u!xJtZ', + password: 'yKg~[sbAmJ@X%.Fq=xq$', port: 8080, - username: 'repudiandae', + username: 'repellat', }, - email: 'nader.cyril@example.com', - force_connect: false, - name: 'error', - password: "wwz\\+gD0AZE,',[", + email: 'gavin.bednar@example.org', + force_connect: true, + name: 'ea', + password: 'p}w)m { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 32dab22..16f3d96 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('et', { + const responsePromise = client.engagement.messages.getMessageBuyers('quia', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('et', { + const response = await client.engagement.messages.getMessageBuyers('quia', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 9271adb..19155ed 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('quisquam', { + const responsePromise = client.media.vault.lists.media.add('ut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('quisquam', { + const response = await client.media.vault.lists.media.add('ut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('quisquam', { + const responsePromise = client.media.vault.lists.media.remove('ut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('quisquam', { + const response = await client.media.vault.lists.media.remove('ut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 2eea002..f9ab1f1 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('nam', { + const responsePromise = client.posts.comments.create('doloremque', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('nam', { + const response = await client.posts.comments.create('doloremque', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('nam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('nam', { + const response = await client.posts.comments.list('doloremque', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index eeb4e84..11354b7 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('voluptatibus'); + const responsePromise = client.smartLinks.listClicks('nulla'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'voluptatibus', + 'nulla', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('dolores'); + const responsePromise = client.smartLinks.listConversions('ad'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'dolores', + 'ad', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('voluptate'); + const responsePromise = client.smartLinks.listFans('quis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'voluptate', + 'quis', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('reiciendis'); + const responsePromise = client.smartLinks.listSpenders('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'reiciendis', + 'aut', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('repellendus'); + const responsePromise = client.smartLinks.retrieveCohortArps('exercitationem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'repellendus', + 'exercitationem', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('nesciunt'); + const responsePromise = client.smartLinks.retrieveStats('dolorum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'nesciunt', + 'dolorum', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index f703f82..6bf35d8 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'blidalzpefisy', tags: ['ujuvoonxjusrs'] }, + filter: { search: 'oyufwphrihpvtvljb', tags: ['mwnbdlbnaojjrgqhgl'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'atagdqyd', tags: ['ggszdzlwbkkgjhqk'] }, + filter: { search: 'fcnzyzqkgocra', tags: ['nwbdvvqiykgsgwnlrhpoya'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'idncfycfbkvhfxcrpkifmvn', - tags: ['flyjbck'], + include_smart_links: true, + search: 'xsualzmate', + tags: ['bozmrfspu'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'oudnjzxhju', - tags: ['ezfhprygaq'], + search: 'acvxloyprdloldiec', + tags: ['pcjs'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 7402688..1859713 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('minima', { + const responsePromise = client.stories.highlights.addStory('pariatur', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('minima', { + const response = await client.stories.highlights.addStory('pariatur', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('minima', { + const responsePromise = client.stories.highlights.removeStory('pariatur', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('minima', { + const response = await client.stories.highlights.removeStory('pariatur', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 43e246b..0171677 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('repellendus', { + const responsePromise = client.trackingLinks.getCohortArps('adipisci', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -111,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('repellendus', { + const response = await client.trackingLinks.getCohortArps('adipisci', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('commodi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('ut', { + const response = await client.trackingLinks.getStats('commodi', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 2c9201f..e5538e9 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('est', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('earum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('est', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('repellat', { + const responsePromise = client.trialLinks.listSubscribers('ad', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('repellat', { + const response = await client.trialLinks.listSubscribers('ad', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('deleniti', { + const responsePromise = client.trialLinks.retrieveCohortArps('officiis', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('deleniti', { + const response = await client.trialLinks.retrieveCohortArps('officiis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,9 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('doloremque', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('nisi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -181,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('doloremque', { + const response = await client.trialLinks.retrieveStats('nisi', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 37ae0b4..d5858a7 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vjxjprcshnfozfbnfl' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'axmckamrfnnfxpzvob' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vjxjprcshnfozfbnfl' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'axmckamrfnnfxpzvob' }); }); // Mock server tests are disabled From 3bdb33f46ecd9a661a99ffbe1eeb4ce7ddfb57cb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 9 Jun 2026 03:12:29 +0000 Subject: [PATCH 41/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 4 ++-- .../saved-for-later/messages/settings.ts | 2 +- src/resources/smart-links.ts | 14 +++++------ src/resources/stories/highlights.ts | 13 ++++++---- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 10 ++++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++--------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/messages/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 16 ++++++------- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 22 ++++++++--------- .../user-lists/user-lists.test.ts | 8 +++++-- 23 files changed, 105 insertions(+), 102 deletions(-) diff --git a/.stats.yml b/.stats.yml index 48d3a1c..dcf3b55 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-eab604f37d98f3e04e08f5f50f591467230261503eec23dcd6a36a68e02512b3.yml -openapi_spec_hash: ae4ef4ec4cf3f26b009651f73ada95d4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f55b2c1592727e33434046d90316dc071b11cce72dacdccb57bed289b11d3367.yml +openapi_spec_hash: 1fdb9cd0b04b4f43e9d4ef8d83634742 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 9815091..71ca3de 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -30,7 +30,7 @@ export class Accounts extends APIResource { * @example * ```ts * const response = await client.accounts.disconnect( - * 'asperiores', + * 'placeat', * ); * ``` */ diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d65076b..5b26103 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'quia', + * 'odio', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2f38ae6..ae616ee 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'ut', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'ut', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index a0f5e08..bca70ea 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'doloremque', + * 'laudantium', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -38,7 +38,7 @@ export class Comments extends APIResource { * @example * ```ts * const comments = await client.posts.comments.list( - * 'doloremque', + * 'laudantium', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a976781..599a952 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 72803c6..db2db1b 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'nulla', + * 'tempora', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ad', + * 'dolor', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quis'); + * const response = await client.smartLinks.listFans('natus'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'aut', + * 'eos', * ); * ``` */ @@ -147,9 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps( - * 'exercitationem', - * ); + * await client.smartLinks.retrieveCohortArps('quis'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'dolorum', + * 'natus', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 0889b58..b4c6a0a 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'pariatur', + * 'repudiandae', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('pariatur', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'repudiandae', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }, + * ); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index e2831d4..c3c469e 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'omnis', + * 'unde', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'omnis', + * 'unde', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('adipisci', { + * await client.trackingLinks.getCohortArps('reprehenderit', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'commodi', + * 'pariatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 824e389..bc67517 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,7 +50,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('est', { + * const trialLink = await client.trialLinks.retrieve('quia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('est', { + * const trialLink = await client.trialLinks.delete('quia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'ad', + * 'vel', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('officiis', { + * await client.trialLinks.retrieveCohortArps('non', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nisi', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 9215da0..feb538a 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'axmckamrfnnfxpzvob' }, + * { name: 'owrslgixakelwccdlerecavh' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 04ac84e..5b4fff4 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('asperiores'); + const responsePromise = client.accounts.disconnect('placeat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index bc7c2e4..d6408b3 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'deleniti', - auth_type: 'email_password', - cookies: 'quia', + auth_id: 'repudiandae', + auth_type: 'raw_data', + cookies: 'eaque', customProxy: { host: 'proxy.example.com', - password: 'yKg~[sbAmJ@X%.Fq=xq$', + password: '(bQqHf', port: 8080, - username: 'repellat', + username: 'dignissimos', }, - email: 'gavin.bednar@example.org', - force_connect: true, - name: 'ea', - password: 'p}w)m { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('quia', { + const responsePromise = client.engagement.messages.getMessageBuyers('odio', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('quia', { + const response = await client.engagement.messages.getMessageBuyers('odio', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 19155ed..afbf4c8 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('ut', { + const responsePromise = client.media.vault.lists.media.add('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('ut', { + const response = await client.media.vault.lists.media.add('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('ut', { + const responsePromise = client.media.vault.lists.media.remove('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('ut', { + const response = await client.media.vault.lists.media.remove('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index f9ab1f1..ec0bb29 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('doloremque', { + const responsePromise = client.posts.comments.create('laudantium', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('doloremque', { + const response = await client.posts.comments.create('laudantium', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('doloremque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('laudantium', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('doloremque', { + const response = await client.posts.comments.list('laudantium', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 4ec8acc..8e5b056 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 11354b7..ed2fea9 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('nulla'); + const responsePromise = client.smartLinks.listClicks('tempora'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'nulla', + 'tempora', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('ad'); + const responsePromise = client.smartLinks.listConversions('dolor'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'ad', + 'dolor', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('quis'); + const responsePromise = client.smartLinks.listFans('natus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'quis', + 'natus', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('aut'); + const responsePromise = client.smartLinks.listSpenders('eos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'aut', + 'eos', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('exercitationem'); + const responsePromise = client.smartLinks.retrieveCohortArps('quis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'exercitationem', + 'quis', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('dolorum'); + const responsePromise = client.smartLinks.retrieveStats('natus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'dolorum', + 'natus', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 6bf35d8..e346192 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'oyufwphrihpvtvljb', tags: ['mwnbdlbnaojjrgqhgl'] }, + filter: { search: 'uasiicgwvsyovcdniyzbyxza', tags: ['qgaghjuohkcavinarr'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'fcnzyzqkgocra', tags: ['nwbdvvqiykgsgwnlrhpoya'] }, + filter: { search: 'ivohirs', tags: ['isecngelnvntsktl'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'xsualzmate', - tags: ['bozmrfspu'], + include_smart_links: false, + search: 'ziemaqzrzwmziaqcj', + tags: ['pqqzivfqgvwoguomhtguemje'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'acvxloyprdloldiec', - tags: ['pcjs'], + include_smart_links: true, + search: 'lpfutzezg', + tags: ['pfaoowvrtfnbidrukbo'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 1859713..c2c26e0 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('pariatur', { + const responsePromise = client.stories.highlights.addStory('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('pariatur', { + const response = await client.stories.highlights.addStory('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('pariatur', { + const responsePromise = client.stories.highlights.removeStory('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('pariatur', { + const response = await client.stories.highlights.removeStory('repudiandae', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 0171677..33f73c4 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('adipisci', { + const responsePromise = client.trackingLinks.getCohortArps('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -111,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('adipisci', { + const response = await client.trackingLinks.getCohortArps('reprehenderit', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('commodi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('commodi', { + const response = await client.trackingLinks.getStats('pariatur', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index e5538e9..a483fbf 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('ad', { + const responsePromise = client.trialLinks.listSubscribers('vel', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('ad', { + const response = await client.trialLinks.listSubscribers('vel', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,9 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('officiis', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -157,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('officiis', { + const response = await client.trialLinks.retrieveCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('nisi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('nisi', { + const response = await client.trialLinks.retrieveStats('et', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index d5858a7..31feb22 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,9 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'axmckamrfnnfxpzvob' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'owrslgixakelwccdlerecavh', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,9 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'axmckamrfnnfxpzvob' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'owrslgixakelwccdlerecavh', + }); }); // Mock server tests are disabled From 710d78e95405788e056f3a338a2d8fd772a26eee Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 9 Jun 2026 17:12:44 +0000 Subject: [PATCH 42/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/data-exports.ts | 4 ++++ src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 18 ++++++-------- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 12 +++++----- src/resources/stories/highlights.ts | 13 ++++------ .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 20 +++++++++------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 16 ++++++------- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 20 ++++++++-------- .../user-lists/user-lists.test.ts | 8 ++----- 26 files changed, 117 insertions(+), 125 deletions(-) diff --git a/.stats.yml b/.stats.yml index dcf3b55..a074d12 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f55b2c1592727e33434046d90316dc071b11cce72dacdccb57bed289b11d3367.yml -openapi_spec_hash: 1fdb9cd0b04b4f43e9d4ef8d83634742 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-80f0a6b60cdd7a4e61c707368aa54fd0c1bce7fc5b5997dc3b42a1bd466dd683.yml +openapi_spec_hash: 72e38ddcd236d501fab63438c14890e2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 71ca3de..1d544e4 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -30,7 +30,7 @@ export class Accounts extends APIResource { * @example * ```ts * const response = await client.accounts.disconnect( - * 'placeat', + * 'eveniet', * ); * ``` */ diff --git a/src/resources/data-exports.ts b/src/resources/data-exports.ts index 7655bbe..299281d 100644 --- a/src/resources/data-exports.ts +++ b/src/resources/data-exports.ts @@ -230,6 +230,8 @@ export namespace DataExportRetrieveResponse { failed_at?: string | null; + failed_downloads?: number; + failed_reason?: string | null; file_type?: string; @@ -327,6 +329,8 @@ export namespace DataExportListResponse { failed_at?: string | null; + failed_downloads?: number; + failed_reason?: string | null; file_type?: string; diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 5b26103..02db5a6 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,10 +31,9 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers( - * 'odio', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('est', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index ae616ee..bbd381d 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'consequatur', + * 'quod', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'consequatur', + * 'quod', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index bca70ea..9f6dd5a 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,13 +11,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create( - * 'laudantium', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('amet', { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }); * ``` */ create( @@ -37,10 +34,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'laudantium', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('amet', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a952..a976781 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb..41feb4c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index db2db1b..6fe0cad 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'tempora', + * 'itaque', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'dolor', + * 'aliquid', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('natus'); + * const response = await client.smartLinks.listFans('culpa'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'eos', + * 'ipsum', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quis'); + * await client.smartLinks.retrieveCohortArps('quidem'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'natus', + * 'voluptas', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index b4c6a0a..cd409b5 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'repudiandae', + * 'nobis', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'repudiandae', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('nobis', { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index c3c469e..1c01fab 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'unde', + * 'quae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'unde', + * 'quae', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('reprehenderit', { + * await client.trackingLinks.getCohortArps('harum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'pariatur', + * 'eos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index bc67517..254aa3a 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,9 +50,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('quia', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'distinctio', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('quia', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'distinctio', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'vel', + * 'voluptate', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('non', { + * await client.trialLinks.retrieveCohortArps('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'et', + * 'assumenda', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index feb538a..e6ced05 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'owrslgixakelwccdlerecavh' }, + * { name: 'zjrisc' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 5b4fff4..d25c2c8 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('placeat'); + const responsePromise = client.accounts.disconnect('eveniet'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index d6408b3..dff9f51 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'repudiandae', + auth_id: 'mollitia', auth_type: 'raw_data', - cookies: 'eaque', + cookies: 'sapiente', customProxy: { host: 'proxy.example.com', - password: '(bQqHf', + password: '?fHJ5NF2?mza8SMw/', port: 8080, - username: 'dignissimos', + username: 'culpa', }, - email: 'nframi@example.net', + email: 'jerel.paucek@example.com', force_connect: false, - name: 'explicabo', - password: '^w#Eqh', - proxyCountry: 'uk', - user_agent: 'et', - xbc: 'recusandae', + name: 'dolores', + password: 'G=B$B~', + proxyCountry: 'us', + user_agent: 'ad', + xbc: 'ut', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 9699c17..1856b81 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('odio', { + const responsePromise = client.engagement.messages.getMessageBuyers('est', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('odio', { + const response = await client.engagement.messages.getMessageBuyers('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index afbf4c8..bb0d086 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('consequatur', { + const responsePromise = client.media.vault.lists.media.add('quod', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('consequatur', { + const response = await client.media.vault.lists.media.add('quod', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('consequatur', { + const responsePromise = client.media.vault.lists.media.remove('quod', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('consequatur', { + const response = await client.media.vault.lists.media.remove('quod', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index ec0bb29..f27e472 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('laudantium', { + const responsePromise = client.posts.comments.create('amet', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('laudantium', { + const response = await client.posts.comments.create('amet', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('laudantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('amet', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('laudantium', { + const response = await client.posts.comments.list('amet', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 8e5b056..4ec8acc 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399d..c151062 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index ed2fea9..0b53060 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('tempora'); + const responsePromise = client.smartLinks.listClicks('itaque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'tempora', + 'itaque', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('dolor'); + const responsePromise = client.smartLinks.listConversions('aliquid'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'dolor', + 'aliquid', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('natus'); + const responsePromise = client.smartLinks.listFans('culpa'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'natus', + 'culpa', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('eos'); + const responsePromise = client.smartLinks.listSpenders('ipsum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'eos', + 'ipsum', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quis'); + const responsePromise = client.smartLinks.retrieveCohortArps('quidem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'quis', + 'quidem', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('natus'); + const responsePromise = client.smartLinks.retrieveStats('voluptas'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'natus', + 'voluptas', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index e346192..0001423 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'uasiicgwvsyovcdniyzbyxza', tags: ['qgaghjuohkcavinarr'] }, + filter: { search: 'uhlc', tags: ['gndddz'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ivohirs', tags: ['isecngelnvntsktl'] }, + filter: { search: 'tdn', tags: ['sppfyoln'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'ziemaqzrzwmziaqcj', - tags: ['pqqzivfqgvwoguomhtguemje'], + include_smart_links: true, + search: 'ixmdnigdrvlxgceqchx', + tags: ['jcyzslczkecz'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'lpfutzezg', - tags: ['pfaoowvrtfnbidrukbo'], + include_smart_links: false, + search: 'qpjjcomcpirlrqr', + tags: ['fikndvimvm'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index c2c26e0..2327f11 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('repudiandae', { + const responsePromise = client.stories.highlights.addStory('nobis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('repudiandae', { + const response = await client.stories.highlights.addStory('nobis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('repudiandae', { + const responsePromise = client.stories.highlights.removeStory('nobis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('repudiandae', { + const response = await client.stories.highlights.removeStory('nobis', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 33f73c4..9f5aab2 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('quae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('quae', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,14 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('unde', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('quae', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('reprehenderit', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -111,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('reprehenderit', { + const response = await client.trackingLinks.getCohortArps('harum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('pariatur', { + const response = await client.trackingLinks.getStats('eos', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index a483fbf..6d1b933 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('distinctio', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('distinctio', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('distinctio', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('distinctio', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('vel', { + const responsePromise = client.trialLinks.listSubscribers('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('vel', { + const response = await client.trialLinks.listSubscribers('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('non', { + const response = await client.trialLinks.retrieveCohortArps('est', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('et', { + const response = await client.trialLinks.retrieveStats('assumenda', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 31feb22..ba29427 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,9 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'owrslgixakelwccdlerecavh', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zjrisc' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,9 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'owrslgixakelwccdlerecavh', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zjrisc' }); }); // Mock server tests are disabled From bc7b763675ba43a49f8cab78a30255866c35e4b2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 9 Jun 2026 18:12:32 +0000 Subject: [PATCH 43/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 4 +--- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 18 ++++++++------ .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 +++++------ src/resources/stories/highlights.ts | 13 ++++++---- .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 10 ++++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++-------- .../user-lists/user-lists.test.ts | 8 +++++-- 26 files changed, 122 insertions(+), 113 deletions(-) diff --git a/.stats.yml b/.stats.yml index a074d12..eb3560b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-80f0a6b60cdd7a4e61c707368aa54fd0c1bce7fc5b5997dc3b42a1bd466dd683.yml -openapi_spec_hash: 72e38ddcd236d501fab63438c14890e2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b86afc817b1c0d4b2263da6812323e9a65ab58a08f4521800c03e8b73fee064a.yml +openapi_spec_hash: 277e9d0d8eec92a152492d0c4848e0e9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 1d544e4..9d0ee72 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,9 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect( - * 'eveniet', - * ); + * const response = await client.accounts.disconnect('sed'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 02db5a6..18e58a9 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,9 +31,10 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('est', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'exercitationem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index bbd381d..ae616ee 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'quod', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'quod', + * 'consequatur', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 9f6dd5a..dee0ca8 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,10 +11,13 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create('amet', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'excepturi', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }, + * ); * ``` */ create( @@ -34,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('amet', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'excepturi', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c..a84ff07 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 6fe0cad..ac75751 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,9 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks( - * 'itaque', - * ); + * const response = await client.smartLinks.listClicks('aut'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'aliquid', + * 'iusto', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('culpa'); + * const response = await client.smartLinks.listFans('maxime'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'ipsum', + * 'provident', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('quidem'); + * await client.smartLinks.retrieveCohortArps('atque'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptas', + * 'reprehenderit', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index cd409b5..42e6ed5 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'nobis', + * 'temporibus', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,10 +148,13 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('nobis', { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }); + * await client.stories.highlights.removeStory( + * 'temporibus', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }, + * ); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 1c01fab..87860ad 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'quae', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quae', + * 'rerum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('harum', { + * await client.trackingLinks.getCohortArps('omnis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'eos', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('in', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 254aa3a..a88df39 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'distinctio', + * 'assumenda', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'distinctio', + * 'assumenda', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'voluptate', + * 'at', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('est', { + * await client.trialLinks.retrieveCohortArps('possimus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'assumenda', + * 'nostrum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e6ced05..9d222b0 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'zjrisc' }, + * { name: 'xrbquznbkbofdmhozmxaufvla' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index d25c2c8..37a21a6 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('eveniet'); + const responsePromise = client.accounts.disconnect('sed'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index dff9f51..55516d4 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'mollitia', + auth_id: 'nisi', auth_type: 'raw_data', - cookies: 'sapiente', + cookies: 'ut', customProxy: { host: 'proxy.example.com', - password: '?fHJ5NF2?mza8SMw/', + password: 'r+T2d-~2k', port: 8080, - username: 'culpa', + username: 'minima', }, - email: 'jerel.paucek@example.com', + email: 'keanu.nader@example.org', force_connect: false, - name: 'dolores', - password: 'G=B$B~', - proxyCountry: 'us', - user_agent: 'ad', - xbc: 'ut', + name: 'velit', + password: 'l;pcSTW#YvN)', + proxyCountry: 'uk', + user_agent: 'at', + xbc: 'aut', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de46..c17a81d 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 1856b81..82badda 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('est', { + const responsePromise = client.engagement.messages.getMessageBuyers('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('est', { + const response = await client.engagement.messages.getMessageBuyers('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index bb0d086..afbf4c8 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('quod', { + const responsePromise = client.media.vault.lists.media.add('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('quod', { + const response = await client.media.vault.lists.media.add('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('quod', { + const responsePromise = client.media.vault.lists.media.remove('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('quod', { + const response = await client.media.vault.lists.media.remove('consequatur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e769f5c..42643a6 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'purchases', + type: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index f27e472..3ae8a5f 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('amet', { + const responsePromise = client.posts.comments.create('excepturi', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('amet', { + const response = await client.posts.comments.create('excepturi', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('amet', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('amet', { + const response = await client.posts.comments.list('excepturi', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index c151062..02883e1 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1c..6b1dc2f 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: true, + isForward: false, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 0b53060..b4c4a9f 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('itaque'); + const responsePromise = client.smartLinks.listClicks('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'itaque', + 'aut', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('aliquid'); + const responsePromise = client.smartLinks.listConversions('iusto'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'aliquid', + 'iusto', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('culpa'); + const responsePromise = client.smartLinks.listFans('maxime'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'culpa', + 'maxime', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ipsum'); + const responsePromise = client.smartLinks.listSpenders('provident'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'ipsum', + 'provident', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('quidem'); + const responsePromise = client.smartLinks.retrieveCohortArps('atque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'quidem', + 'atque', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptas'); + const responsePromise = client.smartLinks.retrieveStats('reprehenderit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'voluptas', + 'reprehenderit', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 0001423..8e8e559 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'uhlc', tags: ['gndddz'] }, + filter: { search: 'twrrcryiylzmngclhof', tags: ['uftxx'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'tdn', tags: ['sppfyoln'] }, + filter: { search: 'efivrqnpcrqwkhfbqkf', tags: ['cdvafocpysjwker'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'ixmdnigdrvlxgceqchx', - tags: ['jcyzslczkecz'], + include_smart_links: false, + search: 'lvkyllgsgbncmljfrpstyc', + tags: ['xv'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'qpjjcomcpirlrqr', - tags: ['fikndvimvm'], + search: 'oa', + tags: ['xdl'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 2327f11..876e310 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('nobis', { + const responsePromise = client.stories.highlights.addStory('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('nobis', { + const response = await client.stories.highlights.addStory('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('nobis', { + const responsePromise = client.stories.highlights.removeStory('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('nobis', { + const response = await client.stories.highlights.removeStory('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 9f5aab2..c8cfff7 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('quae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('quae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('quae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('quae', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('harum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('harum', { + const response = await client.trackingLinks.getCohortArps('omnis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('eos', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('in', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('eos', { + const response = await client.trackingLinks.getStats('in', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 6d1b933..9f4e2df 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('distinctio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('distinctio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('distinctio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('distinctio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('voluptate', { + const responsePromise = client.trialLinks.listSubscribers('at', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('voluptate', { + const response = await client.trialLinks.listSubscribers('at', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('possimus', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('est', { + const response = await client.trialLinks.retrieveCohortArps('possimus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('nostrum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('assumenda', { + const response = await client.trialLinks.retrieveStats('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index ba29427..e8f734f 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,9 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zjrisc' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'xrbquznbkbofdmhozmxaufvla', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,9 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zjrisc' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'xrbquznbkbofdmhozmxaufvla', + }); }); // Mock server tests are disabled From 59cc52af2ecf36763f5d1f06c7bba9a55519141e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 08:12:35 +0000 Subject: [PATCH 44/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 18 ++++++-------- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 12 +++++----- src/resources/stories/highlights.ts | 13 ++++------ .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 10 ++++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 22 ++++++++--------- .../user-lists/user-lists.test.ts | 8 ++----- 27 files changed, 112 insertions(+), 123 deletions(-) diff --git a/.stats.yml b/.stats.yml index eb3560b..1ab5398 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b86afc817b1c0d4b2263da6812323e9a65ab58a08f4521800c03e8b73fee064a.yml -openapi_spec_hash: 277e9d0d8eec92a152492d0c4848e0e9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-03ad84203a4ad47fc689c784399b8f4058f84f384ca02e91d13d74deafd1f464.yml +openapi_spec_hash: 1e03c0c31bc6b7ae69eb060385fa7895 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 9d0ee72..06d37c8 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('sed'); + * const response = await client.accounts.disconnect('et'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 18e58a9..a5c5e92 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,10 +31,9 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers( - * 'exercitationem', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('ut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index ae616ee..2551fff 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'consequatur', + * 'deleniti', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'consequatur', + * 'deleniti', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index dee0ca8..f48a8f6 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,13 +11,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create( - * 'excepturi', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('non', { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }); * ``` */ create( @@ -37,10 +34,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'excepturi', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('non', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a976781..09d6973 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff07..c9a094c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index ac75751..9757d86 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('aut'); + * const response = await client.smartLinks.listClicks('sed'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'iusto', + * 'praesentium', * ); * ``` */ @@ -111,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('maxime'); + * const response = await client.smartLinks.listFans('in'); * ``` */ listFans( @@ -128,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'provident', + * 'sunt', * ); * ``` */ @@ -145,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('atque'); + * await client.smartLinks.retrieveCohortArps('adipisci'); * ``` */ retrieveCohortArps( @@ -167,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'reprehenderit', + * 'aut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 42e6ed5..dd3bc7c 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'temporibus', + * 'vero', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,13 +148,10 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory( - * 'temporibus', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * highlight_id: 1234567890, - * }, - * ); + * await client.stories.highlights.removeStory('vero', { + * account: 'acct_XXXXXXXXXXXXXXX', + * highlight_id: 1234567890, + * }); * ``` */ removeStory( diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 87860ad..a3e1bc6 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'rerum', + * 'labore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'rerum', + * 'labore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('omnis', { + * await client.trackingLinks.getCohortArps('delectus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('in', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'tempore', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index a88df39..958891b 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'assumenda', + * 'debitis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'assumenda', + * 'debitis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'at', + * 'illum', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('possimus', { + * await client.trialLinks.retrieveCohortArps('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'nostrum', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 9d222b0..a9e8d1f 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'xrbquznbkbofdmhozmxaufvla' }, + * { name: 'lbafjgqoiwnq' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 37a21a6..44b9315 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('sed'); + const responsePromise = client.accounts.disconnect('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 55516d4..85e64d2 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'nisi', + auth_id: 'perferendis', auth_type: 'raw_data', - cookies: 'ut', + cookies: 'sit', customProxy: { host: 'proxy.example.com', - password: 'r+T2d-~2k', + password: 'd!(``m', port: 8080, - username: 'minima', + username: 'quas', }, - email: 'keanu.nader@example.org', - force_connect: false, - name: 'velit', - password: 'l;pcSTW#YvN)', + email: 'sarah73@example.org', + force_connect: true, + name: 'numquam', + password: 'y { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('exercitationem', { + const responsePromise = client.engagement.messages.getMessageBuyers('ut', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('exercitationem', { + const response = await client.engagement.messages.getMessageBuyers('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index afbf4c8..f38bb5c 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('consequatur', { + const responsePromise = client.media.vault.lists.media.add('deleniti', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('consequatur', { + const response = await client.media.vault.lists.media.add('deleniti', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('consequatur', { + const responsePromise = client.media.vault.lists.media.remove('deleniti', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('consequatur', { + const response = await client.media.vault.lists.media.remove('deleniti', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a6..2533389 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'mentions', + type: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 3ae8a5f..258eb32 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('excepturi', { + const responsePromise = client.posts.comments.create('non', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('excepturi', { + const response = await client.posts.comments.create('non', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('excepturi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('excepturi', { + const response = await client.posts.comments.list('non', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 4ec8acc..e2edc67 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e1..b643af6 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index b4c4a9f..01f8567 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('aut'); + const responsePromise = client.smartLinks.listClicks('sed'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'aut', + 'sed', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('iusto'); + const responsePromise = client.smartLinks.listConversions('praesentium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'iusto', + 'praesentium', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('maxime'); + const responsePromise = client.smartLinks.listFans('in'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'maxime', + 'in', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('provident'); + const responsePromise = client.smartLinks.listSpenders('sunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'provident', + 'sunt', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('atque'); + const responsePromise = client.smartLinks.retrieveCohortArps('adipisci'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'atque', + 'adipisci', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('reprehenderit'); + const responsePromise = client.smartLinks.retrieveStats('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'reprehenderit', + 'aut', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 8e8e559..9adf219 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'twrrcryiylzmngclhof', tags: ['uftxx'] }, + filter: { search: 'afamecskm', tags: ['wcxiufr'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'efivrqnpcrqwkhfbqkf', tags: ['cdvafocpysjwker'] }, + filter: { search: 'jt', tags: ['frlnemgiwob'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'lvkyllgsgbncmljfrpstyc', - tags: ['xv'], + search: 'uibdcyqrsdcacxrbw', + tags: ['pgaz'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'oa', - tags: ['xdl'], + search: 'rkooquoqzntdgckxsjuu', + tags: ['fcqmuyzbmkfa'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 876e310..e0c384f 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('temporibus', { + const responsePromise = client.stories.highlights.addStory('vero', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('temporibus', { + const response = await client.stories.highlights.addStory('vero', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('temporibus', { + const responsePromise = client.stories.highlights.removeStory('vero', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('temporibus', { + const response = await client.stories.highlights.removeStory('vero', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index c8cfff7..f7a6315 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('delectus', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('omnis', { + const response = await client.trackingLinks.getCohortArps('delectus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('tempore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('in', { + const response = await client.trackingLinks.getStats('tempore', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 9f4e2df..3d99574 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('assumenda', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('at', { + const responsePromise = client.trialLinks.listSubscribers('illum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('at', { + const response = await client.trialLinks.listSubscribers('illum', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,9 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('possimus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -157,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('possimus', { + const response = await client.trialLinks.retrieveCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('nostrum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('nostrum', { + const response = await client.trialLinks.retrieveStats('laborum', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index e8f734f..5a4aea1 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,9 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'xrbquznbkbofdmhozmxaufvla', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'lbafjgqoiwnq' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,9 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'xrbquznbkbofdmhozmxaufvla', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'lbafjgqoiwnq' }); }); // Mock server tests are disabled From 9ca88c44a83eb4ab893c19c433044176fcc479d1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 14:12:34 +0000 Subject: [PATCH 45/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 4 ++-- src/resources/smart-links.ts | 16 ++++++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 10 ++++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 24 +++++++++---------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- tests/api-resources/profiles.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 12 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 24 +++++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 23 files changed, 104 insertions(+), 97 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1ab5398..4f56253 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-03ad84203a4ad47fc689c784399b8f4058f84f384ca02e91d13d74deafd1f464.yml -openapi_spec_hash: 1e03c0c31bc6b7ae69eb060385fa7895 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-21f774f4bf5df95043704abdd4ab9f3da7d62b668d1528260c6997910f597873.yml +openapi_spec_hash: 636b1d0d3a9c53ad92114b30c4e616e7 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 06d37c8..7e6e59b 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('et'); + * const response = await client.accounts.disconnect('illum'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a5c5e92..7d81cd6 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,9 +31,10 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'itaque', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 2551fff..d62bfa6 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'deleniti', + * 'voluptate', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'deleniti', + * 'voluptate', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index f48a8f6..5a6f0e8 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,7 +11,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create('non', { + * const comment = await client.posts.comments.create('at', { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', * }); @@ -34,7 +34,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('non', { + * const comments = await client.posts.comments.list('at', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 9757d86..3226d2c 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('sed'); + * const response = await client.smartLinks.listClicks( + * 'voluptatem', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'praesentium', + * 'qui', * ); * ``` */ @@ -111,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('in'); + * const response = await client.smartLinks.listFans( + * 'ratione', + * ); * ``` */ listFans( @@ -128,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sunt', + * 'quibusdam', * ); * ``` */ @@ -145,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('adipisci'); + * await client.smartLinks.retrieveCohortArps('dolor'); * ``` */ retrieveCohortArps( @@ -167,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'aut', + * 'quia', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index dd3bc7c..fff814c 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'vero', + * 'aliquam', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('vero', { + * await client.stories.highlights.removeStory('aliquam', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index a3e1bc6..821e9eb 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'labore', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'labore', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('delectus', { + * await client.trackingLinks.getCohortArps('alias', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'tempore', + * 'sed', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 958891b..f9d7362 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'debitis', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'debitis', + * 'dolores', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'illum', + * 'sapiente', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('qui', { + * await client.trialLinks.retrieveCohortArps('debitis', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'laborum', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index a9e8d1f..e63088e 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'lbafjgqoiwnq' }, + * { name: 'mooxmkikvpsrjrrwo' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 44b9315..b588d26 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('et'); + const responsePromise = client.accounts.disconnect('illum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 85e64d2..19ad289 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'perferendis', - auth_type: 'raw_data', - cookies: 'sit', + auth_id: 'esse', + auth_type: 'email_password', + cookies: 'in', customProxy: { host: 'proxy.example.com', - password: 'd!(``m', + password: ':fL:=7r', port: 8080, - username: 'quas', + username: 'rerum', }, - email: 'sarah73@example.org', - force_connect: true, - name: 'numquam', - password: 'y { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('ut', { + const responsePromise = client.engagement.messages.getMessageBuyers('itaque', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('ut', { + const response = await client.engagement.messages.getMessageBuyers('itaque', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index f38bb5c..b67c2a6 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('deleniti', { + const responsePromise = client.media.vault.lists.media.add('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('deleniti', { + const response = await client.media.vault.lists.media.add('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('deleniti', { + const responsePromise = client.media.vault.lists.media.remove('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('deleniti', { + const response = await client.media.vault.lists.media.remove('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 2533389..e769f5c 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'subscriptions', + type: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 258eb32..c495db3 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('non', { + const responsePromise = client.posts.comments.create('at', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('non', { + const response = await client.posts.comments.create('at', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('at', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('non', { + const response = await client.posts.comments.list('at', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 01f8567..2839b59 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('sed'); + const responsePromise = client.smartLinks.listClicks('voluptatem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'sed', + 'voluptatem', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('praesentium'); + const responsePromise = client.smartLinks.listConversions('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'praesentium', + 'qui', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('in'); + const responsePromise = client.smartLinks.listFans('ratione'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'in', + 'ratione', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sunt'); + const responsePromise = client.smartLinks.listSpenders('quibusdam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'sunt', + 'quibusdam', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('adipisci'); + const responsePromise = client.smartLinks.retrieveCohortArps('dolor'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'adipisci', + 'dolor', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('aut'); + const responsePromise = client.smartLinks.retrieveStats('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'aut', + 'quia', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 9adf219..f23546f 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'afamecskm', tags: ['wcxiufr'] }, + filter: { search: 'wsceywnnmlox', tags: ['tcbojxljbybjijtypzssrhr'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'jt', tags: ['frlnemgiwob'] }, + filter: { search: 'djbqhqbs', tags: ['cnovotaxvcevofnzbvu'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'uibdcyqrsdcacxrbw', - tags: ['pgaz'], + search: 'vfiaeuzx', + tags: ['ufscmzsjzl'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'rkooquoqzntdgckxsjuu', - tags: ['fcqmuyzbmkfa'], + search: 'hi', + tags: ['iluqrwswb'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index e0c384f..f29759e 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('vero', { + const responsePromise = client.stories.highlights.addStory('aliquam', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('vero', { + const response = await client.stories.highlights.addStory('aliquam', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('vero', { + const responsePromise = client.stories.highlights.removeStory('aliquam', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('vero', { + const response = await client.stories.highlights.removeStory('aliquam', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index f7a6315..c47837e 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,14 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('labore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('delectus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -111,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('delectus', { + const response = await client.trackingLinks.getCohortArps('alias', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('tempore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('tempore', { + const response = await client.trackingLinks.getStats('sed', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 3d99574..bb17824 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('debitis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('illum', { + const responsePromise = client.trialLinks.listSubscribers('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('illum', { + const response = await client.trialLinks.listSubscribers('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('debitis', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('qui', { + const response = await client.trialLinks.retrieveCohortArps('debitis', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +167,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('voluptatem', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +181,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('laborum', { + const response = await client.trialLinks.retrieveStats('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 5a4aea1..d942aef 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'lbafjgqoiwnq' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mooxmkikvpsrjrrwo' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'lbafjgqoiwnq' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mooxmkikvpsrjrrwo' }); }); // Mock server tests are disabled From 66e39a42bb0d0c4bb70d0450f0cbff98cc45fe5c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 17:12:35 +0000 Subject: [PATCH 46/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 18 ++++++++------ .../saved-for-later/messages/settings.ts | 2 +- src/resources/smart-links.ts | 12 +++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 20 +++++++--------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++--------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/messages/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 16 ++++++------- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 24 ++++++++----------- .../user-lists/user-lists.test.ts | 4 ++-- 25 files changed, 112 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4f56253..a60308b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-21f774f4bf5df95043704abdd4ab9f3da7d62b668d1528260c6997910f597873.yml -openapi_spec_hash: 636b1d0d3a9c53ad92114b30c4e616e7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0df6a9e16609368c35c32ee82fa44621fe492cc33106b4569a52bf2787824e9a.yml +openapi_spec_hash: a352fe439e3bacb87c9bc566e72acbc0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 7e6e59b..fe860f5 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('illum'); + * const response = await client.accounts.disconnect('ea'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 7d81cd6..02db5a6 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,10 +31,9 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers( - * 'itaque', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('est', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index d62bfa6..aa4e8de 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'voluptate', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'voluptate', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 5a6f0e8..6620104 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,10 +11,13 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create('at', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'voluptate', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }, + * ); * ``` */ create( @@ -34,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('at', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'voluptate', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973..599a952 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 3226d2c..dee0513 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'voluptatem', + * 'vitae', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'qui', + * 'aliquam', * ); * ``` */ @@ -114,7 +114,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listFans( - * 'ratione', + * 'laboriosam', * ); * ``` */ @@ -132,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quibusdam', + * 'vel', * ); * ``` */ @@ -149,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('dolor'); + * await client.smartLinks.retrieveCohortArps('accusamus'); * ``` */ retrieveCohortArps( @@ -171,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quia', + * 'dolorem', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index fff814c..67f64ce 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'aliquam', + * 'sint', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('aliquam', { + * await client.stories.highlights.removeStory('sint', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 821e9eb..7592436 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'et', + * 'facere', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'facere', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('alias', { + * await client.trackingLinks.getCohortArps('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'sed', + * 'minima', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index f9d7362..34058eb 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,10 +50,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve( - * 'dolores', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('eum', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'dolores', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('eum', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'sapiente', + * 'non', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('debitis', { + * await client.trialLinks.retrieveCohortArps('fuga', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptatem', + * 'quasi', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e63088e..aaf2de3 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'mooxmkikvpsrjrrwo' }, + * { name: 'kwbbvsmt' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b588d26..01afe1e 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('illum'); + const responsePromise = client.accounts.disconnect('ea'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 19ad289..c41a6a4 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'esse', - auth_type: 'email_password', - cookies: 'in', + auth_id: 'omnis', + auth_type: 'raw_data', + cookies: 'exercitationem', customProxy: { host: 'proxy.example.com', - password: ':fL:=7r', + password: 'Q704]UxB_U1/S', port: 8080, - username: 'rerum', + username: 'porro', }, - email: 'scorkery@example.net', + email: 'margie95@example.org', force_connect: false, - name: 'aut', - password: '!wpJI\\$dI*', - proxyCountry: 'us', - user_agent: 'neque', - xbc: 'quam', + name: 'dicta', + password: 'yN#:\\gzj4@!WS%', + proxyCountry: 'uk', + user_agent: 'voluptatem', + xbc: 'molestiae', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d..229de46 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 9bb8cbf..1856b81 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('itaque', { + const responsePromise = client.engagement.messages.getMessageBuyers('est', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('itaque', { + const response = await client.engagement.messages.getMessageBuyers('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index b67c2a6..1cb0c75 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('voluptate', { + const responsePromise = client.media.vault.lists.media.add('est', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('voluptate', { + const response = await client.media.vault.lists.media.add('est', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('voluptate', { + const responsePromise = client.media.vault.lists.media.remove('est', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('voluptate', { + const response = await client.media.vault.lists.media.remove('est', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e769f5c..e56040c 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'purchases', + type: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index c495db3..cbf88c1 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('at', { + const responsePromise = client.posts.comments.create('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('at', { + const response = await client.posts.comments.create('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('at', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('at', { + const response = await client.posts.comments.list('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index e2edc67..8e5b056 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 2839b59..5446dcd 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -89,7 +89,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('voluptatem'); + const responsePromise = client.smartLinks.listClicks('vitae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +104,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'voluptatem', + 'vitae', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +120,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('qui'); + const responsePromise = client.smartLinks.listConversions('aliquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +135,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'qui', + 'aliquam', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +153,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('ratione'); + const responsePromise = client.smartLinks.listFans('laboriosam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +168,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'ratione', + 'laboriosam', { has_messages: true, limit: 100, @@ -185,7 +185,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quibusdam'); + const responsePromise = client.smartLinks.listSpenders('vel'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +200,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'quibusdam', + 'vel', { limit: 50, minSpend: 1, @@ -213,7 +213,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('dolor'); + const responsePromise = client.smartLinks.retrieveCohortArps('accusamus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +228,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'dolor', + 'accusamus', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +241,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quia'); + const responsePromise = client.smartLinks.retrieveStats('dolorem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +256,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'quia', + 'dolorem', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index f23546f..3cddc99 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'wsceywnnmlox', tags: ['tcbojxljbybjijtypzssrhr'] }, + filter: { search: 'wqjdgosbildbzpvhrkozloryd', tags: ['oc'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'djbqhqbs', tags: ['cnovotaxvcevofnzbvu'] }, + filter: { search: 'uopxlltmdlgjlyabvmwudejxz', tags: ['lreozaznnirijdpfstvzqoh'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'vfiaeuzx', - tags: ['ufscmzsjzl'], + include_smart_links: true, + search: 'amxtxexsx', + tags: ['pmmlz'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'hi', - tags: ['iluqrwswb'], + include_smart_links: true, + search: 'rvdeuqbx', + tags: ['cixjvfqaxil'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f29759e..58129b1 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('aliquam', { + const responsePromise = client.stories.highlights.addStory('sint', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('aliquam', { + const response = await client.stories.highlights.addStory('sint', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('aliquam', { + const responsePromise = client.stories.highlights.removeStory('sint', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('aliquam', { + const response = await client.stories.highlights.removeStory('sint', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index c47837e..b2e1db3 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('alias', { + const response = await client.trackingLinks.getCohortArps('ut', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('sed', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('sed', { + const response = await client.trackingLinks.getStats('minima', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index bb17824..e93f283 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('dolores', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('sapiente', { + const responsePromise = client.trialLinks.listSubscribers('non', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('sapiente', { + const response = await client.trialLinks.listSubscribers('non', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,9 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('debitis', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -157,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('debitis', { + const response = await client.trialLinks.retrieveCohortArps('fuga', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,9 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('voluptatem', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('quasi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -181,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('voluptatem', { + const response = await client.trialLinks.retrieveStats('quasi', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index d942aef..bccd959 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mooxmkikvpsrjrrwo' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kwbbvsmt' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'mooxmkikvpsrjrrwo' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kwbbvsmt' }); }); // Mock server tests are disabled From aee1709a9d39bd78be1db9aaaf0e3a2497a45f83 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 18:12:35 +0000 Subject: [PATCH 47/59] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 +-- src/resources/posts/comments.ts | 4 +-- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 23 +++++++++-------- src/resources/stories/highlights.ts | 4 +-- .../tracking-links/tracking-links.ts | 8 +++--- src/resources/trial-links/trial-links.ts | 10 ++++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 18 ++++++------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 +-- .../media/vault/lists/media.test.ts | 8 +++--- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++--- .../saved-for-later/posts/settings.test.ts | 4 +-- tests/api-resources/smart-links.test.ts | 25 ++++++++++--------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++--- .../tracking-links/tracking-links.test.ts | 18 +++++++------ .../trial-links/trial-links.test.ts | 20 +++++++-------- .../user-lists/user-lists.test.ts | 4 +-- 25 files changed, 106 insertions(+), 101 deletions(-) diff --git a/.stats.yml b/.stats.yml index a60308b..1b10c3a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0df6a9e16609368c35c32ee82fa44621fe492cc33106b4569a52bf2787824e9a.yml -openapi_spec_hash: a352fe439e3bacb87c9bc566e72acbc0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bee7507b20d149239fdbacb3de6b342dcefd08eefeabf1fd35d38cd898264298.yml +openapi_spec_hash: 6fe4334c602d4eaeef46c509545a17b3 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index fe860f5..97372da 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('ea'); + * const response = await client.accounts.disconnect('ipsam'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 02db5a6..d65076b 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,9 +31,10 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('est', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'quia', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index aa4e8de..7ebe5ad 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'est', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'est', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 6620104..0d4e668 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'voluptate', + * 'tenetur', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -38,7 +38,7 @@ export class Comments extends APIResource { * @example * ```ts * const comments = await client.posts.comments.list( - * 'voluptate', + * 'tenetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094c..a84ff07 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index dee0513..29770b7 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,9 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks( - * 'vitae', - * ); + * const response = await client.smartLinks.listClicks('aut'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'aliquam', + * 'excepturi', * ); * ``` */ @@ -113,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'laboriosam', - * ); + * const response = await client.smartLinks.listFans('maxime'); * ``` */ listFans( @@ -132,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'vel', + * 'odit', * ); * ``` */ @@ -149,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('accusamus'); + * await client.smartLinks.retrieveCohortArps('libero'); * ``` */ retrieveCohortArps( @@ -171,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'dolorem', + * 'quia', * ); * ``` */ @@ -1050,7 +1046,7 @@ export interface SmartLinkListParams { limit?: number; /** - * Comma-separated Meta Pixel IDs to include. + * Deprecated alias for `pixel_ids`. Comma-separated Pixel IDs to include. */ meta_pixel_ids?: string | null; @@ -1063,6 +1059,11 @@ export interface SmartLinkListParams { * The offset used for pagination. Default `0`. Must be at least 0. */ offset?: number; + + /** + * Comma-separated ad platform Pixel IDs to include. + */ + pixel_ids?: string | null; } export interface SmartLinkListClicksParams { diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 67f64ce..9a22ea2 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'sint', + * 'occaecati', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('sint', { + * await client.stories.highlights.removeStory('occaecati', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 7592436..d9f091b 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'facere', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'facere', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('ut', { + * await client.trackingLinks.getCohortArps('voluptates', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'minima', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 34058eb..6b386cf 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,7 +50,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('eum', { + * const trialLink = await client.trialLinks.retrieve('non', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('eum', { + * const trialLink = await client.trialLinks.delete('non', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'non', + * 'similique', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('fuga', { + * await client.trialLinks.retrieveCohortArps('est', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quasi', + * 'ipsa', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index aaf2de3..9823974 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'kwbbvsmt' }, + * { name: 'hbvr' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 01afe1e..0bcd04f 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('ea'); + const responsePromise = client.accounts.disconnect('ipsam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index c41a6a4..aa57bcf 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'omnis', + auth_id: 'voluptate', auth_type: 'raw_data', - cookies: 'exercitationem', + cookies: 'accusantium', customProxy: { host: 'proxy.example.com', - password: 'Q704]UxB_U1/S', + password: 'Jr6hkw[`?CUz#A#3', proxyCountry: 'uk', - user_agent: 'voluptatem', - xbc: 'molestiae', + user_agent: 'aspernatur', + xbc: 'quo', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de46..c17a81d 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 1856b81..16f3d96 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('est', { + const responsePromise = client.engagement.messages.getMessageBuyers('quia', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('est', { + const response = await client.engagement.messages.getMessageBuyers('quia', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 1cb0c75..80e35cb 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('est', { + const responsePromise = client.media.vault.lists.media.add('quo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('est', { + const response = await client.media.vault.lists.media.add('quo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('est', { + const responsePromise = client.media.vault.lists.media.remove('quo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('est', { + const response = await client.media.vault.lists.media.remove('quo', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e56040c..42643a6 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'likes', + type: 'mentions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index cbf88c1..1142580 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('voluptate', { + const responsePromise = client.posts.comments.create('tenetur', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('voluptate', { + const response = await client.posts.comments.create('tenetur', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('voluptate', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('tenetur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('voluptate', { + const response = await client.posts.comments.list('tenetur', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index b643af6..02883e1 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 5446dcd..7cfef85 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -69,6 +69,7 @@ describe('resource smartLinks', () => { meta_pixel_ids: '1,2', name: 'Instagram', offset: 0, + pixel_ids: '1,2', }, { path: '/_stainless_unknown_path' }, ), @@ -89,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('vitae'); + const responsePromise = client.smartLinks.listClicks('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -104,7 +105,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'vitae', + 'aut', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -120,7 +121,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('aliquam'); + const responsePromise = client.smartLinks.listConversions('excepturi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -135,7 +136,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'aliquam', + 'excepturi', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -153,7 +154,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('laboriosam'); + const responsePromise = client.smartLinks.listFans('maxime'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -168,7 +169,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'laboriosam', + 'maxime', { has_messages: true, limit: 100, @@ -185,7 +186,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('vel'); + const responsePromise = client.smartLinks.listSpenders('odit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -200,7 +201,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'vel', + 'odit', { limit: 50, minSpend: 1, @@ -213,7 +214,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('accusamus'); + const responsePromise = client.smartLinks.retrieveCohortArps('libero'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -228,7 +229,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'accusamus', + 'libero', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -241,7 +242,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('dolorem'); + const responsePromise = client.smartLinks.retrieveStats('quia'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -256,7 +257,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'dolorem', + 'quia', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 3cddc99..431f6ec 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'wqjdgosbildbzpvhrkozloryd', tags: ['oc'] }, + filter: { search: 'nxeqi', tags: ['z'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'uopxlltmdlgjlyabvmwudejxz', tags: ['lreozaznnirijdpfstvzqoh'] }, + filter: { search: 'iackoazlgioopjsrzejhlnu', tags: ['yudrsdcexhixwlezkaeuayo'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'amxtxexsx', - tags: ['pmmlz'], + search: 'cdsobldwnhwvzkxgirnvmgvi', + tags: ['xz'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'rvdeuqbx', - tags: ['cixjvfqaxil'], + include_smart_links: false, + search: 'gvobxssjatknclxt', + tags: ['wfzinazhx'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 58129b1..06f2e1a 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('sint', { + const responsePromise = client.stories.highlights.addStory('occaecati', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('sint', { + const response = await client.stories.highlights.addStory('occaecati', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('sint', { + const responsePromise = client.stories.highlights.removeStory('occaecati', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('sint', { + const response = await client.stories.highlights.removeStory('occaecati', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index b2e1db3..f12a408 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('voluptates', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('ut', { + const response = await client.trackingLinks.getCohortArps('voluptates', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('minima', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('minima', { + const response = await client.trackingLinks.getStats('velit', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index e93f283..1b9392b 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('eum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('non', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('non', { + const responsePromise = client.trialLinks.listSubscribers('similique', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('non', { + const response = await client.trialLinks.listSubscribers('similique', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('fuga', { + const response = await client.trialLinks.retrieveCohortArps('est', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('quasi', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('quasi', { + const response = await client.trialLinks.retrieveStats('ipsa', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index bccd959..be87f30 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kwbbvsmt' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hbvr' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'kwbbvsmt' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hbvr' }); }); // Mock server tests are disabled From f9977f213c80713606e9cfc600e15c7383e4644f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 01:12:32 +0000 Subject: [PATCH 48/59] feat(api): api update --- .stats.yml | 4 +- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +- src/resources/media/vault/lists/media.ts | 4 +- src/resources/posts/comments.ts | 4 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-link-postbacks.ts | 114 ++++++++++++++++++ src/resources/smart-links.ts | 14 ++- src/resources/stories/highlights.ts | 4 +- .../tracking-links/tracking-links.ts | 8 +- src/resources/trial-links/trial-links.ts | 15 +-- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 +-- .../engagement/messages/messages.test.ts | 4 +- .../media/vault/lists/media.test.ts | 8 +- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +- .../saved-for-later/posts/settings.test.ts | 4 +- .../smart-link-postbacks.test.ts | 6 + tests/api-resources/smart-links.test.ts | 24 ++-- tests/api-resources/stored.test.ts | 16 +-- .../api-resources/stories/highlights.test.ts | 8 +- .../tracking-links/tracking-links.test.ts | 16 +-- .../trial-links/trial-links.test.ts | 22 ++-- .../user-lists/user-lists.test.ts | 4 +- 26 files changed, 224 insertions(+), 100 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1b10c3a..99bc67b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bee7507b20d149239fdbacb3de6b342dcefd08eefeabf1fd35d38cd898264298.yml -openapi_spec_hash: 6fe4334c602d4eaeef46c509545a17b3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5a86517cb84478db1099c218ff317bf61ec3b1a0e6b5559f18d86724c714c460.yml +openapi_spec_hash: ef07d9eb4d7cb67521c6e7a82cb3cc5e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 97372da..4838acc 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('ipsam'); + * const response = await client.accounts.disconnect('qui'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index d65076b..a5c5e92 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,10 +31,9 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers( - * 'quia', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('ut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 7ebe5ad..498021b 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'quo', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'quo', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0d4e668..9ec020c 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'tenetur', + * 'consequuntur', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -38,7 +38,7 @@ export class Comments extends APIResource { * @example * ```ts * const comments = await client.posts.comments.list( - * 'tenetur', + * 'consequuntur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff07..c9a094c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/smart-link-postbacks.ts b/src/resources/smart-link-postbacks.ts index cdcf5bf..255e9d2 100644 --- a/src/resources/smart-link-postbacks.ts +++ b/src/resources/smart-link-postbacks.ts @@ -122,10 +122,16 @@ export namespace SmartLinkPostbackCreateResponse { export interface Data { id?: number; + body?: string; + conversion_types?: Array; created_at?: string; + headers?: Array; + + http_method?: string; + latest_response?: string | null; smart_link_ids?: Array; @@ -138,6 +144,14 @@ export namespace SmartLinkPostbackCreateResponse { url?: string; } + + export namespace Data { + export interface Header { + name?: string; + + value?: string; + } + } } export interface SmartLinkPostbackRetrieveResponse { @@ -172,10 +186,16 @@ export namespace SmartLinkPostbackRetrieveResponse { export interface Data { id?: number; + body?: string; + conversion_types?: Array; created_at?: string; + headers?: Array; + + http_method?: string; + latest_response?: string | null; smart_link_ids?: Array; @@ -190,6 +210,12 @@ export namespace SmartLinkPostbackRetrieveResponse { } export namespace Data { + export interface Header { + name?: string; + + value?: string; + } + export interface SmartLink { account_display_name?: string; @@ -234,10 +260,16 @@ export namespace SmartLinkPostbackUpdateResponse { export interface Data { id?: number; + body?: string; + conversion_types?: Array; created_at?: string; + headers?: Array; + + http_method?: string; + latest_response?: string | null; smart_link_ids?: Array; @@ -252,6 +284,12 @@ export namespace SmartLinkPostbackUpdateResponse { } export namespace Data { + export interface Header { + name?: string; + + value?: string; + } + export interface SmartLink { account_display_name?: string; @@ -296,10 +334,16 @@ export namespace SmartLinkPostbackListResponse { export interface Data { id?: number; + body?: string; + conversion_types?: Array; created_at?: string; + headers?: Array; + + http_method?: string; + latest_response?: Data.LatestResponse; smart_link_ids?: Array; @@ -314,6 +358,12 @@ export namespace SmartLinkPostbackListResponse { } export namespace Data { + export interface Header { + name?: string; + + value?: string; + } + export interface LatestResponse { id?: number; @@ -364,12 +414,44 @@ export interface SmartLinkPostbackCreateParams { */ url: string; + /** + * Optional request body template for POST postbacks. Variables are replaced when + * the postback is dispatched. + */ + body?: string; + + /** + * Optional request headers. Header values may include postback variables. + */ + headers?: Array; + + /** + * HTTP method used for the postback request. Defaults to `GET` when omitted. + */ + http_method?: 'GET' | 'POST'; + /** * Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. */ smart_link_ids?: Array; } +export namespace SmartLinkPostbackCreateParams { + export interface Header { + /** + * This field is required when headers._.value is present. Must match + * the regex /\A[A-Za-z0-9!#$%&'_+.^\_`|~-]+\z/. Must not be greater than 100 + * characters. + */ + name?: string | null; + + /** + * Must not be greater than 2000 characters. + */ + value?: string | null; + } +} + export interface SmartLinkPostbackUpdateParams { /** * One or more Smart Link conversion types that should trigger this postback. @@ -386,12 +468,44 @@ export interface SmartLinkPostbackUpdateParams { */ url: string; + /** + * Optional request body template for POST postbacks. Variables are replaced when + * the postback is dispatched. + */ + body?: string; + + /** + * Optional request headers. Header values may include postback variables. + */ + headers?: Array; + + /** + * HTTP method used for the postback request. Existing value is kept when omitted. + */ + http_method?: 'GET' | 'POST'; + /** * Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. */ smart_link_ids?: Array; } +export namespace SmartLinkPostbackUpdateParams { + export interface Header { + /** + * This field is required when headers._.value is present. Must match + * the regex /\A[A-Za-z0-9!#$%&'_+.^\_`|~-]+\z/. Must not be greater than 100 + * characters. + */ + name?: string | null; + + /** + * Must not be greater than 2000 characters. + */ + value?: string | null; + } +} + export declare namespace SmartLinkPostbacks { export { type SmartLinkPostbackCreateResponse as SmartLinkPostbackCreateResponse, diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 29770b7..8694513 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('aut'); + * const response = await client.smartLinks.listClicks( + * 'voluptate', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'excepturi', + * 'sequi', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('maxime'); + * const response = await client.smartLinks.listFans('autem'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'odit', + * 'repudiandae', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('libero'); + * await client.smartLinks.retrieveCohortArps('rerum'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quia', + * 'quis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 9a22ea2..160c893 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'occaecati', + * 'nostrum', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('occaecati', { + * await client.stories.highlights.removeStory('nostrum', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index d9f091b..32b2374 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'quo', + * 'enim', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'quo', + * 'enim', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('voluptates', { + * await client.trackingLinks.getCohortArps('voluptate', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'velit', + * 'pariatur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 6b386cf..eb25b96 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,9 +50,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('non', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'optio', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,7 +89,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('non', { + * const trialLink = await client.trialLinks.delete('optio', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +129,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'similique', + * 'maxime', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +155,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('est', { + * await client.trialLinks.retrieveCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +180,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ipsa', + * 'voluptatem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 9823974..cafc10a 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'hbvr' }, + * { name: 'oykguaf' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 0bcd04f..ee79bf4 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('ipsam'); + const responsePromise = client.accounts.disconnect('qui'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index aa57bcf..e397b0e 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'voluptate', - auth_type: 'raw_data', - cookies: 'accusantium', + auth_id: 'impedit', + auth_type: 'mobile_app', + cookies: 'aut', customProxy: { host: 'proxy.example.com', - password: 'Jr6'[x", port: 8080, - username: 'ipsam', + username: 'optio', }, - email: 'fkirlin@example.com', + email: 'jarrell37@example.org', force_connect: false, - name: 'facilis', - password: '9PX8`V>hkw[`?CUz#A#3', + name: 'totam', + password: 'Ut;aK1', proxyCountry: 'uk', - user_agent: 'aspernatur', - xbc: 'quo', + user_agent: 'harum', + xbc: 'eos', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 16f3d96..5d39f0e 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('quia', { + const responsePromise = client.engagement.messages.getMessageBuyers('ut', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('quia', { + const response = await client.engagement.messages.getMessageBuyers('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 80e35cb..7b876bd 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('quo', { + const responsePromise = client.media.vault.lists.media.add('aut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('quo', { + const response = await client.media.vault.lists.media.add('aut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('quo', { + const responsePromise = client.media.vault.lists.media.remove('aut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('quo', { + const response = await client.media.vault.lists.media.remove('aut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 42643a6..69b39e4 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'mentions', + type: 'onlyfans', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 1142580..a296a8f 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('tenetur', { + const responsePromise = client.posts.comments.create('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('tenetur', { + const response = await client.posts.comments.create('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('tenetur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('tenetur', { + const response = await client.posts.comments.list('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e1..b643af6 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/smart-link-postbacks.test.ts b/tests/api-resources/smart-link-postbacks.test.ts index 5b7e4c7..09984bf 100644 --- a/tests/api-resources/smart-link-postbacks.test.ts +++ b/tests/api-resources/smart-link-postbacks.test.ts @@ -30,6 +30,9 @@ describe('resource smartLinkPostbacks', () => { conversion_types: ['new_subscriber', 'new_transaction'], smart_link_scope: 'campaign_specific', url: 'https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}', + body: '{"click_id":"{click_id}","value":"{amount_gross}"}', + headers: [{ name: 'Authorization', value: 'Bearer token' }], + http_method: 'POST', smart_link_ids: ['01JTESTLINK000000000000001'], }); }); @@ -68,6 +71,9 @@ describe('resource smartLinkPostbacks', () => { conversion_types: ['new_subscriber'], smart_link_scope: 'global', url: 'https://example.com/postback?click={external_click_id}&type={conversion_type}', + body: '{"click_id":"{click_id}","value":"{amount_gross}"}', + headers: [{ name: 'Authorization', value: 'Bearer token' }], + http_method: 'POST', smart_link_ids: ['01JTESTLINK000000000000001'], }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 7cfef85..a768ce3 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('aut'); + const responsePromise = client.smartLinks.listClicks('voluptate'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -105,7 +105,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'aut', + 'voluptate', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -121,7 +121,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('excepturi'); + const responsePromise = client.smartLinks.listConversions('sequi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -136,7 +136,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'excepturi', + 'sequi', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -154,7 +154,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('maxime'); + const responsePromise = client.smartLinks.listFans('autem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -169,7 +169,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'maxime', + 'autem', { has_messages: true, limit: 100, @@ -186,7 +186,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('odit'); + const responsePromise = client.smartLinks.listSpenders('repudiandae'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -201,7 +201,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'odit', + 'repudiandae', { limit: 50, minSpend: 1, @@ -214,7 +214,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('libero'); + const responsePromise = client.smartLinks.retrieveCohortArps('rerum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -229,7 +229,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'libero', + 'rerum', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -242,7 +242,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quia'); + const responsePromise = client.smartLinks.retrieveStats('quis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -257,7 +257,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'quia', + 'quis', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 431f6ec..6fb9fa9 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'nxeqi', tags: ['z'] }, + filter: { search: 'rqqtkjnknlfzmfls', tags: ['hylpqdvepchoy'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'iackoazlgioopjsrzejhlnu', tags: ['yudrsdcexhixwlezkaeuayo'] }, + filter: { search: 'ykyjxnbqakck', tags: ['jso'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'cdsobldwnhwvzkxgirnvmgvi', - tags: ['xz'], + include_smart_links: false, + search: 'flxwktfjgtj', + tags: ['iaqrfrdvomtecdnppk'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'gvobxssjatknclxt', - tags: ['wfzinazhx'], + include_smart_links: true, + search: 'bcummcznprynfodfwtqt', + tags: ['nleccjiglzauxnn'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 06f2e1a..60c0240 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('occaecati', { + const responsePromise = client.stories.highlights.addStory('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('occaecati', { + const response = await client.stories.highlights.addStory('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('occaecati', { + const responsePromise = client.stories.highlights.removeStory('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('occaecati', { + const response = await client.stories.highlights.removeStory('nostrum', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index f12a408..c81b46b 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('voluptates', { + const responsePromise = client.trackingLinks.getCohortArps('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -111,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('voluptates', { + const response = await client.trackingLinks.getCohortArps('voluptate', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('velit', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('velit', { + const response = await client.trackingLinks.getStats('pariatur', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 1b9392b..0ac0487 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('similique', { + const responsePromise = client.trialLinks.listSubscribers('maxime', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('similique', { + const response = await client.trialLinks.listSubscribers('maxime', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('est', { + const response = await client.trialLinks.retrieveCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +165,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ipsa', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('voluptatem', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('ipsa', { + const response = await client.trialLinks.retrieveStats('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index be87f30..6608d8b 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hbvr' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'oykguaf' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hbvr' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'oykguaf' }); }); // Mock server tests are disabled From a48a7e23be200f80b19c72e4b2c82f974cec1117 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 09:12:32 +0000 Subject: [PATCH 49/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/engagement/messages/messages.ts | 7 +++--- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 ++++--- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 12 +++++----- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 15 ++++++------ src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++--------- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 16 ++++++------- .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 18 +++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++-------- .../user-lists/user-lists.test.ts | 4 ++-- 24 files changed, 107 insertions(+), 106 deletions(-) diff --git a/.stats.yml b/.stats.yml index 99bc67b..fc6efd6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5a86517cb84478db1099c218ff317bf61ec3b1a0e6b5559f18d86724c714c460.yml -openapi_spec_hash: ef07d9eb4d7cb67521c6e7a82cb3cc5e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-12226af0fac38fa09d754de371c332d3bd6e502db824394a83c8814f046b1ad6.yml +openapi_spec_hash: fe932be75d90f80f367107bddaa781e0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a5c5e92..a7ba108 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,9 +31,10 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'repellat', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 498021b..a0a0137 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'aut', + * 'tenetur', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'aut', + * 'tenetur', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 9ec020c..0cd35ac 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'consequuntur', + * 'saepe', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,10 +37,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'consequuntur', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('saepe', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a952..e20f70d 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094c..41feb4c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 8694513..1f97014 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'voluptate', + * 'dolor', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'sequi', + * 'ea', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('autem'); + * const response = await client.smartLinks.listFans('et'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'repudiandae', + * 'est', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('rerum'); + * await client.smartLinks.retrieveCohortArps('eius'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quis', + * 'magnam', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 160c893..9edbda2 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'nostrum', + * 'animi', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('nostrum', { + * await client.stories.highlights.removeStory('animi', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 32b2374..89f0a59 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'enim', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'enim', + * 'et', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('voluptate', { + * await client.trackingLinks.getCohortArps('non', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'pariatur', + * 'possimus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index eb25b96..3f9d4f6 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'optio', + * 'voluptas', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -89,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('optio', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'voluptas', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -129,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'maxime', + * 'est', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -155,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('aut', { + * await client.trialLinks.retrieveCohortArps('vitae', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -180,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptatem', + * 'voluptatum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index cafc10a..e94415c 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'oykguaf' }, + * { name: 'zkrgzlh' }, * ); * ``` */ diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index e397b0e..ed71e6e 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'impedit', - auth_type: 'mobile_app', - cookies: 'aut', + auth_id: 'non', + auth_type: 'email_password', + cookies: 'quis', customProxy: { host: 'proxy.example.com', - password: "vOy@4$#Z0>'[x", + password: '"(Z/2F#:', port: 8080, - username: 'optio', + username: 'at', }, - email: 'jarrell37@example.org', - force_connect: false, - name: 'totam', - password: 'Ut;aK1', + email: 'ella.paucek@example.com', + force_connect: true, + name: 'harum', + password: 'fH/|ta9v', proxyCountry: 'uk', - user_agent: 'harum', - xbc: 'eos', + user_agent: 'esse', + xbc: 'qui', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 5d39f0e..fbbfdb0 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('ut', { + const responsePromise = client.engagement.messages.getMessageBuyers('repellat', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('ut', { + const response = await client.engagement.messages.getMessageBuyers('repellat', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 7b876bd..2eafe6c 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('aut', { + const responsePromise = client.media.vault.lists.media.add('tenetur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('aut', { + const response = await client.media.vault.lists.media.add('tenetur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('aut', { + const responsePromise = client.media.vault.lists.media.remove('tenetur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('aut', { + const response = await client.media.vault.lists.media.remove('tenetur', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index a296a8f..7dc0f06 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('consequuntur', { + const responsePromise = client.posts.comments.create('saepe', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('consequuntur', { + const response = await client.posts.comments.create('saepe', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('consequuntur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('consequuntur', { + const response = await client.posts.comments.list('saepe', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 8e5b056..fd74b68 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index b643af6..c151062 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2f..d13ad1c 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: false, + isForward: true, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index a768ce3..436a202 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('voluptate'); + const responsePromise = client.smartLinks.listClicks('dolor'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -105,7 +105,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'voluptate', + 'dolor', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -121,7 +121,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('sequi'); + const responsePromise = client.smartLinks.listConversions('ea'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -136,7 +136,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'sequi', + 'ea', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -154,7 +154,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('autem'); + const responsePromise = client.smartLinks.listFans('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -169,7 +169,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'autem', + 'et', { has_messages: true, limit: 100, @@ -186,7 +186,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('repudiandae'); + const responsePromise = client.smartLinks.listSpenders('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -201,7 +201,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'repudiandae', + 'est', { limit: 50, minSpend: 1, @@ -214,7 +214,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('rerum'); + const responsePromise = client.smartLinks.retrieveCohortArps('eius'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -229,7 +229,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'rerum', + 'eius', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -242,7 +242,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quis'); + const responsePromise = client.smartLinks.retrieveStats('magnam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -257,7 +257,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'quis', + 'magnam', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 6fb9fa9..2cd6660 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rqqtkjnknlfzmfls', tags: ['hylpqdvepchoy'] }, + filter: { search: 'attalciexyiempgdnxqs', tags: ['ztgswyhtutzvloehmhhdfin'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ykyjxnbqakck', tags: ['jso'] }, + filter: { search: 'yikccvyeddsspumvbxomlaebk', tags: ['sclvcmlspcinswlcwvzkkg'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'flxwktfjgtj', - tags: ['iaqrfrdvomtecdnppk'], + include_smart_links: true, + search: 'cwmchosceczdhjaue', + tags: ['hagyrehqtravkpphn'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'bcummcznprynfodfwtqt', - tags: ['nleccjiglzauxnn'], + include_smart_links: false, + search: 'bhzzvmjdkzdyartd', + tags: ['srftuxezhsnjgkpodlwfuk'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 60c0240..f9f263e 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('nostrum', { + const responsePromise = client.stories.highlights.addStory('animi', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('nostrum', { + const response = await client.stories.highlights.addStory('animi', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('nostrum', { + const responsePromise = client.stories.highlights.removeStory('animi', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('nostrum', { + const response = await client.stories.highlights.removeStory('animi', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index c81b46b..39021c5 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,14 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('enim', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('voluptate', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -111,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('voluptate', { + const response = await client.trackingLinks.getCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('pariatur', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('pariatur', { + const response = await client.trackingLinks.getStats('possimus', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 0ac0487..a690027 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('maxime', { + const responsePromise = client.trialLinks.listSubscribers('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('maxime', { + const response = await client.trialLinks.listSubscribers('est', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('vitae', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('aut', { + const response = await client.trialLinks.retrieveCohortArps('vitae', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('voluptatem', { + const responsePromise = client.trialLinks.retrieveStats('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -179,7 +181,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('voluptatem', { + const response = await client.trialLinks.retrieveStats('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 6608d8b..547e772 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'oykguaf' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zkrgzlh' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'oykguaf' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zkrgzlh' }); }); // Mock server tests are disabled From 057180b905228cbb29c753be8ecac5683c600dd0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 10:12:34 +0000 Subject: [PATCH 50/59] feat(api): api update --- .stats.yml | 4 ++-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 ++-- src/resources/posts/comments.ts | 9 +++---- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 16 +++++-------- src/resources/stories/highlights.ts | 4 ++-- .../tracking-links/tracking-links.ts | 8 +++---- src/resources/trial-links/trial-links.ts | 20 +++++++--------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 ++++++++-------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 ++-- .../media/vault/lists/media.test.ts | 8 +++---- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++---- .../saved-for-later/messages/settings.test.ts | 4 ++-- .../saved-for-later/posts/settings.test.ts | 4 ++-- tests/api-resources/smart-links.test.ts | 24 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++------ .../api-resources/stories/highlights.test.ts | 8 +++---- .../tracking-links/tracking-links.test.ts | 16 ++++++------- .../trial-links/trial-links.test.ts | 22 ++++++++--------- .../user-lists/user-lists.test.ts | 4 ++-- 27 files changed, 105 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index fc6efd6..ae9cb11 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-12226af0fac38fa09d754de371c332d3bd6e502db824394a83c8814f046b1ad6.yml -openapi_spec_hash: fe932be75d90f80f367107bddaa781e0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8fc068b0eaa22ed851b43bf6a3504c7aa451ec280d6677e8472a0e1f89b9b9b6.yml +openapi_spec_hash: ae58a89e758acbaa14f71ef912d341cf config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 4838acc..ab94d0d 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('qui'); + * const response = await client.accounts.disconnect('rerum'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a7ba108..fc1e3b4 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'repellat', + * 'voluptatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a0a0137..a9b5c26 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'tenetur', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'tenetur', + * 'velit', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 0cd35ac..e04dc91 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'saepe', + * 'incidunt', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -37,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('saepe', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'incidunt', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d..a976781 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c..2b04cbb 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 1f97014..2aaa33f 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,9 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks( - * 'dolor', - * ); + * const response = await client.smartLinks.listClicks('sit'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ea', + * 'eum', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('et'); + * const response = await client.smartLinks.listFans('est'); * ``` */ listFans( @@ -129,9 +127,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'est', - * ); + * const response = await client.smartLinks.listSpenders('et'); * ``` */ listSpenders( @@ -147,7 +143,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('eius'); + * await client.smartLinks.retrieveCohortArps('voluptates'); * ``` */ retrieveCohortArps( @@ -169,7 +165,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'magnam', + * 'blanditiis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 9edbda2..209a377 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'animi', + * 'quia', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('animi', { + * await client.stories.highlights.removeStory('quia', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 89f0a59..d1dc853 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'et', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'et', + * 'laborum', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('non', { + * await client.trackingLinks.getCohortArps('maxime', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'possimus', + * 'maxime', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 3f9d4f6..c697379 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,10 +50,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve( - * 'voluptas', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('sint', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'voluptas', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('sint', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'est', + * 'inventore', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('vitae', { + * await client.trialLinks.retrieveCohortArps('praesentium', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'voluptatum', + * 'facere', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index e94415c..289dd44 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'zkrgzlh' }, + * { name: 'dxevkwjtngovx' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index ee79bf4..da0a05c 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('qui'); + const responsePromise = client.accounts.disconnect('rerum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index ed71e6e..a84a6e9 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'non', - auth_type: 'email_password', - cookies: 'quis', + auth_id: 'corporis', + auth_type: 'mobile_app', + cookies: 'voluptate', customProxy: { host: 'proxy.example.com', - password: '"(Z/2F#:', + password: "d(pg'O-@8e=d&1VBQLb|", port: 8080, - username: 'at', + username: 'nihil', }, - email: 'ella.paucek@example.com', + email: 'jadon.gerhold@example.net', force_connect: true, - name: 'harum', - password: 'fH/|ta9v', + name: 'itaque', + password: 'Ts#g8Uy~)mOP=O#+q+*', proxyCountry: 'uk', - user_agent: 'esse', - xbc: 'qui', + user_agent: 'deleniti', + xbc: 'vel', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d..229de46 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index fbbfdb0..9777e69 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('repellat', { + const responsePromise = client.engagement.messages.getMessageBuyers('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('repellat', { + const response = await client.engagement.messages.getMessageBuyers('voluptatibus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 2eafe6c..d51681f 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('tenetur', { + const responsePromise = client.media.vault.lists.media.add('velit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('tenetur', { + const response = await client.media.vault.lists.media.add('velit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('tenetur', { + const responsePromise = client.media.vault.lists.media.remove('velit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('tenetur', { + const response = await client.media.vault.lists.media.remove('velit', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 69b39e4..14dcb2e 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'onlyfans', + type: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 7dc0f06..d7ebd33 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('saepe', { + const responsePromise = client.posts.comments.create('incidunt', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('saepe', { + const response = await client.posts.comments.create('incidunt', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('saepe', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('incidunt', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('saepe', { + const response = await client.posts.comments.list('incidunt', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index fd74b68..4ec8acc 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index c151062..96d399d 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 436a202..a316af6 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -90,7 +90,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('dolor'); + const responsePromise = client.smartLinks.listClicks('sit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -105,7 +105,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'dolor', + 'sit', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -121,7 +121,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('ea'); + const responsePromise = client.smartLinks.listConversions('eum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -136,7 +136,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'ea', + 'eum', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -154,7 +154,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('et'); + const responsePromise = client.smartLinks.listFans('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -169,7 +169,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'et', + 'est', { has_messages: true, limit: 100, @@ -186,7 +186,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('est'); + const responsePromise = client.smartLinks.listSpenders('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -201,7 +201,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'est', + 'et', { limit: 50, minSpend: 1, @@ -214,7 +214,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('eius'); + const responsePromise = client.smartLinks.retrieveCohortArps('voluptates'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -229,7 +229,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'eius', + 'voluptates', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -242,7 +242,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('magnam'); + const responsePromise = client.smartLinks.retrieveStats('blanditiis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -257,7 +257,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'magnam', + 'blanditiis', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 2cd6660..368adc0 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'attalciexyiempgdnxqs', tags: ['ztgswyhtutzvloehmhhdfin'] }, + filter: { search: 'tqe', tags: ['bfpdiimcpjsvivtokaponbdhq'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'yikccvyeddsspumvbxomlaebk', tags: ['sclvcmlspcinswlcwvzkkg'] }, + filter: { search: 't', tags: ['ryqjifaogiwzypeqyofr'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'cwmchosceczdhjaue', - tags: ['hagyrehqtravkpphn'], + search: 'zzdgdlaiz', + tags: ['xblcciohteznhvi'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'bhzzvmjdkzdyartd', - tags: ['srftuxezhsnjgkpodlwfuk'], + include_smart_links: true, + search: 'ypbyuktvramcvguk', + tags: ['xedtgszcvxvodmir'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f9f263e..f95a25b 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('animi', { + const responsePromise = client.stories.highlights.addStory('quia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('animi', { + const response = await client.stories.highlights.addStory('quia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('animi', { + const responsePromise = client.stories.highlights.removeStory('quia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('animi', { + const response = await client.stories.highlights.removeStory('quia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 39021c5..9fabb89 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('non', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('maxime', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('non', { + const response = await client.trackingLinks.getCohortArps('maxime', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('possimus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('maxime', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('possimus', { + const response = await client.trackingLinks.getStats('maxime', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index a690027..989bd76 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('voluptas', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('est', { + const responsePromise = client.trialLinks.listSubscribers('inventore', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('est', { + const response = await client.trialLinks.listSubscribers('inventore', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('vitae', { + const responsePromise = client.trialLinks.retrieveCohortArps('praesentium', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('vitae', { + const response = await client.trialLinks.retrieveCohortArps('praesentium', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,9 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('voluptatum', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -181,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('voluptatum', { + const response = await client.trialLinks.retrieveStats('facere', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 547e772..2656be8 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zkrgzlh' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dxevkwjtngovx' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'zkrgzlh' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dxevkwjtngovx' }); }); // Mock server tests are disabled From 01c6418872a4dc0595e42f781d03386a82bff9be Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 13:12:36 +0000 Subject: [PATCH 51/59] feat(api): api update --- .stats.yml | 4 +-- src/client.ts | 2 +- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 2 +- src/resources/link-tags.ts | 10 +++---- src/resources/media/vault/lists/media.ts | 4 +-- src/resources/posts/comments.ts | 18 +++++-------- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 27 ++++++++++++++----- src/resources/stories/highlights.ts | 4 +-- .../tracking-links/tracking-links.ts | 13 +++++---- src/resources/trial-links/trial-links.ts | 20 +++++++------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 +++++++------- .../engagement/messages/messages.test.ts | 4 +-- .../media/vault/lists/media.test.ts | 8 +++--- tests/api-resources/posts/comments.test.ts | 8 +++--- .../saved-for-later/posts/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 25 ++++++++--------- tests/api-resources/stored.test.ts | 12 ++++----- .../api-resources/stories/highlights.test.ts | 8 +++--- .../tracking-links/tracking-links.test.ts | 16 +++++------ .../trial-links/trial-links.test.ts | 22 ++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 26 files changed, 130 insertions(+), 115 deletions(-) diff --git a/.stats.yml b/.stats.yml index ae9cb11..4e60eca 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8fc068b0eaa22ed851b43bf6a3504c7aa451ec280d6677e8472a0e1f89b9b9b6.yml -openapi_spec_hash: ae58a89e758acbaa14f71ef912d341cf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7208a292a7e06ff0b1104c21c970fabf73cc1adfa4bc33816ab7e4a5553e6267.yml +openapi_spec_hash: 4f652aa77155c360d33db12fc0e9e9cf config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/client.ts b/src/client.ts index 035a499..8e00161 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1146,7 +1146,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); diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index ab94d0d..5002862 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('rerum'); + * const response = await client.accounts.disconnect('eos'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index fc1e3b4..0467182 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'voluptatibus', + * 'necessitatibus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/link-tags.ts b/src/resources/link-tags.ts index 5489cf2..104cf49 100644 --- a/src/resources/link-tags.ts +++ b/src/resources/link-tags.ts @@ -5,12 +5,12 @@ import { APIPromise } from '../core/api-promise'; import { RequestOptions } from '../internal/request-options'; /** - * APIs for managing tags on free trial links and tracking links + * APIs for managing tags on free trial links, tracking links, and Smart Links */ export class LinkTags extends APIResource { /** - * Get all existing tags that have been used on free trial links and/or tracking - * links for this account. This is a free endpoint. + * Get all existing tags that have been used on free trial links, tracking links, + * and/or Smart Links for this account. This is a free endpoint. * * @example * ```ts @@ -73,9 +73,9 @@ export namespace LinkTagListResponse { export interface LinkTagListParams { /** - * Filter by link type. If not provided, returns tags for both types. + * Filter by link type. If not provided, returns tags for all types. */ - type?: 'trial_links' | 'tracking_links'; + type?: 'trial_links' | 'tracking_links' | 'smart_links'; } export declare namespace LinkTags { diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index a9b5c26..f66025c 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'velit', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'velit', + * 'atque', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index e04dc91..33a40fd 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,13 +11,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create( - * 'incidunt', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('aut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }); * ``` */ create( @@ -37,10 +34,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'incidunt', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('aut', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb..41feb4c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 2aaa33f..0e54090 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('sit'); + * const response = await client.smartLinks.listClicks( + * 'dolor', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'eum', + * 'unde', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('est'); + * const response = await client.smartLinks.listFans('quis'); * ``` */ listFans( @@ -127,7 +129,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('et'); + * const response = await client.smartLinks.listSpenders( + * 'quo', + * ); * ``` */ listSpenders( @@ -143,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('voluptates'); + * await client.smartLinks.retrieveCohortArps('tenetur'); * ``` */ retrieveCohortArps( @@ -165,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'blanditiis', + * 'amet', * ); * ``` */ @@ -1037,6 +1041,8 @@ export interface SmartLinkListParams { */ account_ids?: string | null; + filter?: SmartLinkListParams.Filter; + /** * The number of Smart Links to return. Default `50`. Must be at least 1. Must not * be greater than 1000. @@ -1064,6 +1070,15 @@ export interface SmartLinkListParams { pixel_ids?: string | null; } +export namespace SmartLinkListParams { + export interface Filter { + /** + * Must not be greater than 50 characters. + */ + tags?: Array; + } +} + export interface SmartLinkListClicksParams { /** * Optional report range end date diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 209a377..a268750 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'quia', + * 'unde', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quia', { + * await client.stories.highlights.removeStory('unde', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index d1dc853..29772ee 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'laborum', + * 'perferendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'laborum', + * 'perferendis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('maxime', { + * await client.trackingLinks.getCohortArps('iusto', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'maxime', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index c697379..a1cb6b9 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,9 +50,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('sint', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'voluptatem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('sint', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'voluptatem', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'inventore', + * 'molestiae', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('praesentium', { + * await client.trialLinks.retrieveCohortArps('sapiente', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'facere', + * 'consectetur', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 289dd44..cb9015b 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'dxevkwjtngovx' }, + * { name: 'om' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index da0a05c..b5ead1c 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('rerum'); + const responsePromise = client.accounts.disconnect('eos'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index a84a6e9..1abeaa8 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'corporis', - auth_type: 'mobile_app', - cookies: 'voluptate', + auth_id: 'cumque', + auth_type: 'email_password', + cookies: 'dicta', customProxy: { host: 'proxy.example.com', - password: "d(pg'O-@8e=d&1VBQLb|", + password: "x('$wr=CbmH*4[f4&g", port: 8080, - username: 'nihil', + username: 'necessitatibus', }, - email: 'jadon.gerhold@example.net', + email: 'maggio.rafael@example.org', force_connect: true, - name: 'itaque', - password: 'Ts#g8Uy~)mOP=O#+q+*', + name: 'quis', + password: '<8e\\;|ZDP*7ts', proxyCountry: 'uk', - user_agent: 'deleniti', - xbc: 'vel', + user_agent: 'fugiat', + xbc: 'cum', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 9777e69..a007aad 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('voluptatibus', { + const responsePromise = client.engagement.messages.getMessageBuyers('necessitatibus', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('voluptatibus', { + const response = await client.engagement.messages.getMessageBuyers('necessitatibus', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index d51681f..34e739d 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('velit', { + const responsePromise = client.media.vault.lists.media.add('atque', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('velit', { + const response = await client.media.vault.lists.media.add('atque', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('velit', { + const responsePromise = client.media.vault.lists.media.remove('atque', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('velit', { + const response = await client.media.vault.lists.media.remove('atque', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index d7ebd33..e56adcd 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('incidunt', { + const responsePromise = client.posts.comments.create('aut', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('incidunt', { + const response = await client.posts.comments.create('aut', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('incidunt', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('incidunt', { + const response = await client.posts.comments.list('aut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399d..c151062 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1c..6b1dc2f 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: true, + isForward: false, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index a316af6..b87e32a 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -65,6 +65,7 @@ describe('resource smartLinks', () => { client.smartLinks.list( { account_ids: 'acct_abc123,acct_def456', + filter: { tags: ['dvn'] }, limit: 50, meta_pixel_ids: '1,2', name: 'Instagram', @@ -90,7 +91,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('sit'); + const responsePromise = client.smartLinks.listClicks('dolor'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -105,7 +106,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'sit', + 'dolor', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -121,7 +122,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('eum'); + const responsePromise = client.smartLinks.listConversions('unde'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -136,7 +137,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'eum', + 'unde', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -154,7 +155,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('est'); + const responsePromise = client.smartLinks.listFans('quis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -169,7 +170,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'est', + 'quis', { has_messages: true, limit: 100, @@ -186,7 +187,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('et'); + const responsePromise = client.smartLinks.listSpenders('quo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -201,7 +202,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'et', + 'quo', { limit: 50, minSpend: 1, @@ -214,7 +215,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('voluptates'); + const responsePromise = client.smartLinks.retrieveCohortArps('tenetur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -229,7 +230,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'voluptates', + 'tenetur', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -242,7 +243,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('blanditiis'); + const responsePromise = client.smartLinks.retrieveStats('amet'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -257,7 +258,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'blanditiis', + 'amet', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 368adc0..82a2173 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'tqe', tags: ['bfpdiimcpjsvivtokaponbdhq'] }, + filter: { search: 'xqbpeywbnqzrot', tags: ['lfxdosngduiebunbimoa'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 't', tags: ['ryqjifaogiwzypeqyofr'] }, + filter: { search: 'rqlins', tags: ['tkfprulkxtdvfxv'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'zzdgdlaiz', - tags: ['xblcciohteznhvi'], + search: 'vfoonzamgezijosgdi', + tags: ['izvekcrinduhpt'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ypbyuktvramcvguk', - tags: ['xedtgszcvxvodmir'], + search: 'umawdvjudoyzzsptmkjdhjp', + tags: ['m'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f95a25b..32b96b7 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('quia', { + const responsePromise = client.stories.highlights.addStory('unde', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('quia', { + const response = await client.stories.highlights.addStory('unde', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('quia', { + const responsePromise = client.stories.highlights.removeStory('unde', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('quia', { + const response = await client.stories.highlights.removeStory('unde', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 9fabb89..3adc028 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('perferendis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('perferendis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('perferendis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('laborum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('perferendis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('maxime', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('iusto', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('maxime', { + const response = await client.trackingLinks.getCohortArps('iusto', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('maxime', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('maxime', { + const response = await client.trackingLinks.getStats('et', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 989bd76..16d5ebf 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('sint', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('inventore', { + const responsePromise = client.trialLinks.listSubscribers('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('inventore', { + const response = await client.trialLinks.listSubscribers('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('praesentium', { + const responsePromise = client.trialLinks.retrieveCohortArps('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('praesentium', { + const response = await client.trialLinks.retrieveCohortArps('sapiente', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +167,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('facere', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('consectetur', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +181,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('facere', { + const response = await client.trialLinks.retrieveStats('consectetur', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 2656be8..269d5b4 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dxevkwjtngovx' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'om' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'dxevkwjtngovx' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'om' }); }); // Mock server tests are disabled From ca2135486d6ca505afe5c49142f29adc7e227fa3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 15:12:36 +0000 Subject: [PATCH 52/59] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 4 ++- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 +-- src/resources/posts/comments.ts | 18 ++++++++----- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 12 ++++----- src/resources/stories/highlights.ts | 4 +-- .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 10 +++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++-------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 +-- .../media/vault/lists/media.test.ts | 8 +++--- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++--- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- tests/api-resources/smart-links.test.ts | 26 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++--- .../tracking-links/tracking-links.test.ts | 16 ++++++------ .../trial-links/trial-links.test.ts | 24 +++++++---------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 115 insertions(+), 112 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4e60eca..5930ed9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7208a292a7e06ff0b1104c21c970fabf73cc1adfa4bc33816ab7e4a5553e6267.yml -openapi_spec_hash: 4f652aa77155c360d33db12fc0e9e9cf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-98e4e47da7e64769b6554eea85263c51042b47fd498b081e3db4dd1d84082355.yml +openapi_spec_hash: 28324b15d88b3d82e1a3ea0a0f03a02a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 5002862..0859fc3 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,9 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('eos'); + * const response = await client.accounts.disconnect( + * 'dolores', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 0467182..bed11f9 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'necessitatibus', + * 'quis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index f66025c..685b16a 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'atque', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'atque', + * 'molestiae', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 33a40fd..9f94b65 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,10 +11,13 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create('aut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'adipisci', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }, + * ); * ``` */ create( @@ -34,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('aut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'adipisci', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index a976781..599a952 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 41feb4c..c9a094c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 0e54090..105f082 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'dolor', + * 'placeat', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'unde', + * 'laborum', * ); * ``` */ @@ -113,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('quis'); + * const response = await client.smartLinks.listFans('est'); * ``` */ listFans( @@ -130,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quo', + * 'quisquam', * ); * ``` */ @@ -147,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('tenetur'); + * await client.smartLinks.retrieveCohortArps('consequatur'); * ``` */ retrieveCohortArps( @@ -169,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'amet', + * 'voluptatum', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a268750..3e57276 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'unde', + * 'est', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('unde', { + * await client.stories.highlights.removeStory('est', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 29772ee..e39ebde 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'perferendis', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'perferendis', + * 'omnis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('iusto', { + * await client.trackingLinks.getCohortArps('esse', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'alias', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index a1cb6b9..67f5cdf 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'voluptatem', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'voluptatem', + * 'dolorem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'molestiae', + * 'iste', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('sapiente', { + * await client.trialLinks.retrieveCohortArps('fuga', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'consectetur', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index cb9015b..687523b 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'om' }, + * { name: 'yonlwqrjuftfvp' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index b5ead1c..a2da246 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('eos'); + const responsePromise = client.accounts.disconnect('dolores'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 1abeaa8..959825f 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'cumque', - auth_type: 'email_password', - cookies: 'dicta', + auth_id: 'nobis', + auth_type: 'raw_data', + cookies: 'reiciendis', customProxy: { host: 'proxy.example.com', - password: "x('$wr=CbmH*4[f4&g", + password: 'G*thdB,m$F-f', port: 8080, - username: 'necessitatibus', + username: 'rem', }, - email: 'maggio.rafael@example.org', - force_connect: true, - name: 'quis', - password: '<8e\\;|ZDP*7ts', + email: 'hackett.alphonso@example.net', + force_connect: false, + name: 'quidem', + password: 'q7TDu.1jo0N6;', proxyCountry: 'uk', - user_agent: 'fugiat', - xbc: 'cum', + user_agent: 'ex', + xbc: 'illum', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index 229de46..c17a81d 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index a007aad..1bf6241 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('necessitatibus', { + const responsePromise = client.engagement.messages.getMessageBuyers('quis', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('necessitatibus', { + const response = await client.engagement.messages.getMessageBuyers('quis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 34e739d..1697eb4 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('atque', { + const responsePromise = client.media.vault.lists.media.add('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('atque', { + const response = await client.media.vault.lists.media.add('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('atque', { + const responsePromise = client.media.vault.lists.media.remove('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('atque', { + const response = await client.media.vault.lists.media.remove('molestiae', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e..2533389 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'all', + type: 'subscriptions', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index e56adcd..08ce109 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('aut', { + const responsePromise = client.posts.comments.create('adipisci', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('aut', { + const response = await client.posts.comments.create('adipisci', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('adipisci', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('aut', { + const response = await client.posts.comments.list('adipisci', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 4ec8acc..8e5b056 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index c151062..b643af6 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index b87e32a..fb1db99 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -65,7 +65,7 @@ describe('resource smartLinks', () => { client.smartLinks.list( { account_ids: 'acct_abc123,acct_def456', - filter: { tags: ['dvn'] }, + filter: { tags: ['llbkcmzaxeolzcwd'] }, limit: 50, meta_pixel_ids: '1,2', name: 'Instagram', @@ -91,7 +91,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('dolor'); + const responsePromise = client.smartLinks.listClicks('placeat'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -106,7 +106,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'dolor', + 'placeat', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('unde'); + const responsePromise = client.smartLinks.listConversions('laborum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -137,7 +137,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'unde', + 'laborum', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -155,7 +155,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('quis'); + const responsePromise = client.smartLinks.listFans('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -170,7 +170,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'quis', + 'est', { has_messages: true, limit: 100, @@ -187,7 +187,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quo'); + const responsePromise = client.smartLinks.listSpenders('quisquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -202,7 +202,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'quo', + 'quisquam', { limit: 50, minSpend: 1, @@ -215,7 +215,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('tenetur'); + const responsePromise = client.smartLinks.retrieveCohortArps('consequatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -230,7 +230,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'tenetur', + 'consequatur', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -243,7 +243,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('amet'); + const responsePromise = client.smartLinks.retrieveStats('voluptatum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -258,7 +258,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'amet', + 'voluptatum', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 82a2173..554d0e9 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'xqbpeywbnqzrot', tags: ['lfxdosngduiebunbimoa'] }, + filter: { search: 'tgosrbj', tags: ['tgvhvhakvmebvcgoqbccejro'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'rqlins', tags: ['tkfprulkxtdvfxv'] }, + filter: { search: 'uk', tags: ['cmgfkircewewpxhatzrcnystq'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'vfoonzamgezijosgdi', - tags: ['izvekcrinduhpt'], + search: 'ljkagjuegego', + tags: ['hs'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'umawdvjudoyzzsptmkjdhjp', - tags: ['m'], + include_smart_links: false, + search: 'i', + tags: ['dndyehdh'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 32b96b7..3b4f631 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('unde', { + const responsePromise = client.stories.highlights.addStory('est', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('unde', { + const response = await client.stories.highlights.addStory('est', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('unde', { + const responsePromise = client.stories.highlights.removeStory('est', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('unde', { + const response = await client.stories.highlights.removeStory('est', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 3adc028..01e5fef 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('perferendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('perferendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('perferendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('perferendis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('iusto', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('iusto', { + const response = await client.trackingLinks.getCohortArps('esse', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('et', { + const response = await client.trackingLinks.getStats('alias', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 16d5ebf..4a203b6 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('voluptatem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('molestiae', { + const responsePromise = client.trialLinks.listSubscribers('iste', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('molestiae', { + const response = await client.trialLinks.listSubscribers('iste', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,9 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('sapiente', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -157,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('sapiente', { + const response = await client.trialLinks.retrieveCohortArps('fuga', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,9 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('consectetur', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveStats('est', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -181,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('consectetur', { + const response = await client.trialLinks.retrieveStats('est', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 269d5b4..1f21493 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'om' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yonlwqrjuftfvp' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'om' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yonlwqrjuftfvp' }); }); // Mock server tests are disabled From f0b9fb8ad5624c01e220df4381cc37a1213a1692 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 16:12:34 +0000 Subject: [PATCH 53/59] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 4 +-- src/resources/engagement/messages/messages.ts | 7 +++-- src/resources/media/vault/lists/media.ts | 4 +-- src/resources/posts/comments.ts | 18 +++++-------- .../saved-for-later/messages/settings.ts | 2 +- src/resources/smart-links.ts | 14 +++++----- src/resources/stories/highlights.ts | 4 +-- .../tracking-links/tracking-links.ts | 8 +++--- src/resources/trial-links/trial-links.ts | 10 +++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++-------- .../engagement/messages/messages.test.ts | 4 +-- .../media/vault/lists/media.test.ts | 8 +++--- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++--- .../saved-for-later/messages/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 26 +++++++++---------- tests/api-resources/stored.test.ts | 12 ++++----- .../api-resources/stories/highlights.test.ts | 8 +++--- .../tracking-links/tracking-links.test.ts | 18 +++++++------ .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 8 ++++-- 25 files changed, 113 insertions(+), 110 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5930ed9..c0182bd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-98e4e47da7e64769b6554eea85263c51042b47fd498b081e3db4dd1d84082355.yml -openapi_spec_hash: 28324b15d88b3d82e1a3ea0a0f03a02a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bd98dfd5eb9c197536b1a50c0f7f20c7a946ab0b1391ecbd99370981c8d3caa6.yml +openapi_spec_hash: bc927ca065b20e14d6381988600c8afc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 0859fc3..fea649d 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,9 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect( - * 'dolores', - * ); + * const response = await client.accounts.disconnect('cumque'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index bed11f9..fd93dd3 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,10 +31,9 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers( - * 'quis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('id', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 685b16a..aa4e8de 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'molestiae', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'molestiae', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 9f94b65..185f935 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,13 +11,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create( - * 'adipisci', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }); * ``` */ create( @@ -37,10 +34,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'adipisci', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 599a952..e20f70d 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 105f082..0339592 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'placeat', + * 'aliquam', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'laborum', + * 'ut', * ); * ``` */ @@ -113,7 +113,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('est'); + * const response = await client.smartLinks.listFans( + * 'consequatur', + * ); * ``` */ listFans( @@ -130,7 +132,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'quisquam', + * 'non', * ); * ``` */ @@ -147,7 +149,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('consequatur'); + * await client.smartLinks.retrieveCohortArps('non'); * ``` */ retrieveCohortArps( @@ -169,7 +171,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptatum', + * 'facilis', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 3e57276..209a377 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'est', + * 'quia', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('est', { + * await client.stories.highlights.removeStory('quia', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index e39ebde..8684797 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'omnis', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'omnis', + * 'qui', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('esse', { + * await client.trackingLinks.getCohortArps('laudantium', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'alias', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 67f5cdf..d18b64d 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'dolorem', + * 'repellat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'dolorem', + * 'repellat', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'iste', + * 'labore', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('fuga', { + * await client.trialLinks.retrieveCohortArps('voluptatum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'est', + * 'veniam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 687523b..04819b6 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'yonlwqrjuftfvp' }, + * { name: 'fjlvbeydblzfbmpqkaxhxzf' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a2da246..11e9246 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('dolores'); + const responsePromise = client.accounts.disconnect('cumque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 959825f..95c0721 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'nobis', - auth_type: 'raw_data', - cookies: 'reiciendis', + auth_id: 'saepe', + auth_type: 'mobile_app', + cookies: 'nam', customProxy: { host: 'proxy.example.com', - password: 'G*thdB,m$F-f', + password: "0F7'FG,@", port: 8080, - username: 'rem', + username: 'quia', }, - email: 'hackett.alphonso@example.net', - force_connect: false, - name: 'quidem', - password: 'q7TDu.1jo0N6;', + email: 'may76@example.org', + force_connect: true, + name: 'laboriosam', + password: 'O`hSV!4]?3d,j', proxyCountry: 'uk', - user_agent: 'ex', - xbc: 'illum', + user_agent: 'quos', + xbc: 'consequatur', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 1bf6241..84d654c 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('quis', { + const responsePromise = client.engagement.messages.getMessageBuyers('id', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('quis', { + const response = await client.engagement.messages.getMessageBuyers('id', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 1697eb4..1cb0c75 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('molestiae', { + const responsePromise = client.media.vault.lists.media.add('est', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('molestiae', { + const response = await client.media.vault.lists.media.add('est', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('molestiae', { + const responsePromise = client.media.vault.lists.media.remove('est', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('molestiae', { + const response = await client.media.vault.lists.media.remove('est', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 2533389..14dcb2e 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'subscriptions', + type: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index 08ce109..a5ecaaf 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('adipisci', { + const responsePromise = client.posts.comments.create('et', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('adipisci', { + const response = await client.posts.comments.create('et', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('adipisci', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('adipisci', { + const response = await client.posts.comments.list('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index 8e5b056..fd74b68 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2f..d13ad1c 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: false, + isForward: true, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index fb1db99..27ccce5 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -65,7 +65,7 @@ describe('resource smartLinks', () => { client.smartLinks.list( { account_ids: 'acct_abc123,acct_def456', - filter: { tags: ['llbkcmzaxeolzcwd'] }, + filter: { tags: ['cnluwurcl'] }, limit: 50, meta_pixel_ids: '1,2', name: 'Instagram', @@ -91,7 +91,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('placeat'); + const responsePromise = client.smartLinks.listClicks('aliquam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -106,7 +106,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'placeat', + 'aliquam', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('laborum'); + const responsePromise = client.smartLinks.listConversions('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -137,7 +137,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'laborum', + 'ut', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -155,7 +155,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('est'); + const responsePromise = client.smartLinks.listFans('consequatur'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -170,7 +170,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'est', + 'consequatur', { has_messages: true, limit: 100, @@ -187,7 +187,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('quisquam'); + const responsePromise = client.smartLinks.listSpenders('non'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -202,7 +202,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'quisquam', + 'non', { limit: 50, minSpend: 1, @@ -215,7 +215,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('consequatur'); + const responsePromise = client.smartLinks.retrieveCohortArps('non'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -230,7 +230,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'consequatur', + 'non', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -243,7 +243,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptatum'); + const responsePromise = client.smartLinks.retrieveStats('facilis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -258,7 +258,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'voluptatum', + 'facilis', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 554d0e9..f8d414d 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'tgosrbj', tags: ['tgvhvhakvmebvcgoqbccejro'] }, + filter: { search: 'f', tags: ['mo'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'uk', tags: ['cmgfkircewewpxhatzrcnystq'] }, + filter: { search: 'p', tags: ['urjmkyjkzwngdrx'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'ljkagjuegego', - tags: ['hs'], + search: 'mhvucwarcgrvdzpgltagvkbfg', + tags: ['leocwjnteqpuui'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'i', - tags: ['dndyehdh'], + search: 'gqhc', + tags: ['mhkrqevfeorawkc'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 3b4f631..f95a25b 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('est', { + const responsePromise = client.stories.highlights.addStory('quia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('est', { + const response = await client.stories.highlights.addStory('quia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('est', { + const responsePromise = client.stories.highlights.removeStory('quia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('est', { + const response = await client.stories.highlights.removeStory('quia', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 01e5fef..a9d2dd0 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('omnis', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('esse', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('laudantium', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('esse', { + const response = await client.trackingLinks.getCohortArps('laudantium', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('alias', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('alias', { + const response = await client.trackingLinks.getStats('quia', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 4a203b6..60287bc 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('dolorem', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('iste', { + const responsePromise = client.trialLinks.listSubscribers('labore', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('iste', { + const response = await client.trialLinks.listSubscribers('labore', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('voluptatum', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('fuga', { + const response = await client.trialLinks.retrieveCohortArps('voluptatum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('est', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('est', { + const response = await client.trialLinks.retrieveStats('veniam', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 1f21493..b2dc29f 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,9 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yonlwqrjuftfvp' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'fjlvbeydblzfbmpqkaxhxzf', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,9 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'yonlwqrjuftfvp' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'fjlvbeydblzfbmpqkaxhxzf', + }); }); // Mock server tests are disabled From a43dc1250b1a5933fa4af5a965447b93fc14e793 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 20:12:33 +0000 Subject: [PATCH 54/59] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 4 ++- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 +-- .../saved-for-later/messages/settings.ts | 2 +- src/resources/smart-links.ts | 14 +++++----- src/resources/stories/highlights.ts | 4 +-- .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 10 +++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++-------- .../engagement/messages/messages.test.ts | 4 +-- .../media/vault/lists/media.test.ts | 8 +++--- .../notifications/notifications.test.ts | 2 +- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +-- tests/api-resources/smart-links.test.ts | 26 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++--- .../tracking-links/tracking-links.test.ts | 18 ++++++------- .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++---- 23 files changed, 95 insertions(+), 102 deletions(-) diff --git a/.stats.yml b/.stats.yml index c0182bd..7ad8da5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bd98dfd5eb9c197536b1a50c0f7f20c7a946ab0b1391ecbd99370981c8d3caa6.yml -openapi_spec_hash: bc927ca065b20e14d6381988600c8afc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bdf0ec6c222e345e512af7c9c9ddc55c0fa72d3860a8c8be3e747667c8c31a81.yml +openapi_spec_hash: af3728e576ac859886d59cc48d3a513d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index fea649d..0a7a15b 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,9 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('cumque'); + * const response = await client.accounts.disconnect( + * 'perspiciatis', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index fd93dd3..a5c5e92 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,7 +31,7 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('id', { + * await client.engagement.messages.getMessageBuyers('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index aa4e8de..eb4aa47 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'est', + * 'temporibus', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'est', + * 'temporibus', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d..09d6973 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 0339592..398f761 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -76,7 +76,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listClicks( - * 'aliquam', + * 'culpa', * ); * ``` */ @@ -95,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'ut', + * 'nemo', * ); * ``` */ @@ -113,9 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'consequatur', - * ); + * const response = await client.smartLinks.listFans('ab'); * ``` */ listFans( @@ -132,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'non', + * 'nobis', * ); * ``` */ @@ -149,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('non'); + * await client.smartLinks.retrieveCohortArps('praesentium'); * ``` */ retrieveCohortArps( @@ -171,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'facilis', + * 'quo', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 209a377..2bf8044 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'quia', + * 'quos', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quia', { + * await client.stories.highlights.removeStory('quos', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 8684797..8acf359 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'qui', + * 'tempora', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'qui', + * 'tempora', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('laudantium', { + * await client.trackingLinks.getCohortArps('rerum', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,10 +133,9 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats( - * 'quia', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const response = await client.trackingLinks.getStats('in', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index d18b64d..778a98b 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'repellat', + * 'adipisci', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'repellat', + * 'adipisci', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'labore', + * 'iusto', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('voluptatum', { + * await client.trialLinks.retrieveCohortArps('minus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'veniam', + * 'ut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 04819b6..fb10bef 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'fjlvbeydblzfbmpqkaxhxzf' }, + * { name: 'vpdeabzxzht' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 11e9246..958468a 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('cumque'); + const responsePromise = client.accounts.disconnect('perspiciatis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 95c0721..4395eaa 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'saepe', + auth_id: 'cum', auth_type: 'mobile_app', - cookies: 'nam', + cookies: 'quam', customProxy: { host: 'proxy.example.com', - password: "0F7'FG,@", + password: 'E!4Iu({s$6X7S', port: 8080, - username: 'quia', + username: 'qui', }, - email: 'may76@example.org', - force_connect: true, - name: 'laboriosam', - password: 'O`hSV!4]?3d,j', - proxyCountry: 'uk', - user_agent: 'quos', - xbc: 'consequatur', + email: 'mccullough.ursula@example.org', + force_connect: false, + name: 'quia', + password: '13?1QAe', + proxyCountry: 'us', + user_agent: 'nam', + xbc: 'et', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 84d654c..5d39f0e 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('id', { + const responsePromise = client.engagement.messages.getMessageBuyers('ut', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('id', { + const response = await client.engagement.messages.getMessageBuyers('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 1cb0c75..3f72571 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('est', { + const responsePromise = client.media.vault.lists.media.add('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('est', { + const response = await client.media.vault.lists.media.add('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('est', { + const responsePromise = client.media.vault.lists.media.remove('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('est', { + const response = await client.media.vault.lists.media.remove('temporibus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e..e769f5c 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'all', + type: 'purchases', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index fd74b68..e2edc67 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 27ccce5..9ef38d4 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -65,7 +65,7 @@ describe('resource smartLinks', () => { client.smartLinks.list( { account_ids: 'acct_abc123,acct_def456', - filter: { tags: ['cnluwurcl'] }, + filter: { tags: ['vdourbabcorxulddydttmbr'] }, limit: 50, meta_pixel_ids: '1,2', name: 'Instagram', @@ -91,7 +91,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('aliquam'); + const responsePromise = client.smartLinks.listClicks('culpa'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -106,7 +106,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'aliquam', + 'culpa', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('ut'); + const responsePromise = client.smartLinks.listConversions('nemo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -137,7 +137,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'ut', + 'nemo', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -155,7 +155,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('consequatur'); + const responsePromise = client.smartLinks.listFans('ab'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -170,7 +170,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'consequatur', + 'ab', { has_messages: true, limit: 100, @@ -187,7 +187,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('non'); + const responsePromise = client.smartLinks.listSpenders('nobis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -202,7 +202,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'non', + 'nobis', { limit: 50, minSpend: 1, @@ -215,7 +215,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('non'); + const responsePromise = client.smartLinks.retrieveCohortArps('praesentium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -230,7 +230,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'non', + 'praesentium', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -243,7 +243,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('facilis'); + const responsePromise = client.smartLinks.retrieveStats('quo'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -258,7 +258,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'facilis', + 'quo', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index f8d414d..785405b 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'f', tags: ['mo'] }, + filter: { search: 'ry', tags: ['cjemwamcbtyr'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'p', tags: ['urjmkyjkzwngdrx'] }, + filter: { search: 'njigsjwdljnxqrcj', tags: ['vbhnpixelrgucwsizwpddy'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'mhvucwarcgrvdzpgltagvkbfg', - tags: ['leocwjnteqpuui'], + include_smart_links: false, + search: 'iexiqorn', + tags: ['gxzdfmlureiljunfswc'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'gqhc', - tags: ['mhkrqevfeorawkc'], + search: 'x', + tags: ['nkxovprx'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index f95a25b..5938058 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('quia', { + const responsePromise = client.stories.highlights.addStory('quos', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('quia', { + const response = await client.stories.highlights.addStory('quos', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('quia', { + const responsePromise = client.stories.highlights.removeStory('quos', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('quia', { + const response = await client.stories.highlights.removeStory('quos', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index a9d2dd0..6bc26b3 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,14 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('laudantium', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -111,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('laudantium', { + const response = await client.trackingLinks.getCohortArps('rerum', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('in', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('quia', { + const response = await client.trackingLinks.getStats('in', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 60287bc..4bacb3c 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('adipisci', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('adipisci', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('adipisci', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('repellat', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('adipisci', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('labore', { + const responsePromise = client.trialLinks.listSubscribers('iusto', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('labore', { + const response = await client.trialLinks.listSubscribers('iusto', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('voluptatum', { + const responsePromise = client.trialLinks.retrieveCohortArps('minus', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -157,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('voluptatum', { + const response = await client.trialLinks.retrieveCohortArps('minus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('veniam', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('veniam', { + const response = await client.trialLinks.retrieveStats('ut', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index b2dc29f..60b1b80 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,9 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'fjlvbeydblzfbmpqkaxhxzf', - }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vpdeabzxzht' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -24,9 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { - name: 'fjlvbeydblzfbmpqkaxhxzf', - }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vpdeabzxzht' }); }); // Mock server tests are disabled From 4a111d4f097391fdc6dc920ba1606c0d8621708a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 00:12:29 +0000 Subject: [PATCH 55/59] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 4 +-- src/resources/engagement/messages/messages.ts | 7 ++--- src/resources/media/vault/lists/media.ts | 4 +-- src/resources/posts/comments.ts | 18 ++++++++----- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 16 +++++------- src/resources/stories/highlights.ts | 4 +-- .../tracking-links/tracking-links.ts | 13 +++++----- src/resources/trial-links/trial-links.ts | 20 +++++++------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 +++++++------- .../engagement/messages/messages.test.ts | 4 +-- .../media/vault/lists/media.test.ts | 8 +++--- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++--- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 26 +++++++++---------- tests/api-resources/stored.test.ts | 14 +++++----- .../api-resources/stories/highlights.test.ts | 8 +++--- .../tracking-links/tracking-links.test.ts | 18 +++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 28 files changed, 121 insertions(+), 123 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7ad8da5..957fd85 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bdf0ec6c222e345e512af7c9c9ddc55c0fa72d3860a8c8be3e747667c8c31a81.yml -openapi_spec_hash: af3728e576ac859886d59cc48d3a513d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-11891f5358d3244391c3e9b1797f402e242962ed931ae6dbeac9265d1d057ae5.yml +openapi_spec_hash: 58a5a24c26bf2ee28f4a654a0c8a4ea7 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 0a7a15b..d646b3b 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,9 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect( - * 'perspiciatis', - * ); + * const response = await client.accounts.disconnect('ad'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index a5c5e92..8473f88 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,9 +31,10 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers('ut', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * await client.engagement.messages.getMessageBuyers( + * 'unde', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index eb4aa47..1a710b3 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'temporibus', + * 'culpa', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'temporibus', + * 'culpa', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 185f935..a28581a 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,10 +11,13 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }); + * const comment = await client.posts.comments.create( + * 'itaque', + * { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }, + * ); * ``` */ create( @@ -34,9 +37,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const comments = await client.posts.comments.list( + * 'itaque', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973..e20f70d 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index c9a094c..2b04cbb 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 398f761..668ff93 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,9 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks( - * 'culpa', - * ); + * const response = await client.smartLinks.listClicks('quam'); * ``` */ listClicks( @@ -95,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'nemo', + * 'labore', * ); * ``` */ @@ -113,7 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('ab'); + * const response = await client.smartLinks.listFans('illum'); * ``` */ listFans( @@ -129,9 +127,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders( - * 'nobis', - * ); + * const response = await client.smartLinks.listSpenders('ut'); * ``` */ listSpenders( @@ -147,7 +143,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('praesentium'); + * await client.smartLinks.retrieveCohortArps('commodi'); * ``` */ retrieveCohortArps( @@ -169,7 +165,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'quo', + * 'voluptas', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 2bf8044..651e8fb 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'quos', + * 'qui', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('quos', { + * await client.stories.highlights.removeStory('qui', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 8acf359..e96b72f 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'tempora', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'tempora', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('rerum', { + * await client.trackingLinks.getCohortArps('dolores', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -133,9 +133,10 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * const response = await client.trackingLinks.getStats('in', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const response = await client.trackingLinks.getStats( + * 'qui', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ getStats( diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 778a98b..ba89517 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,10 +50,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve( - * 'adipisci', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.retrieve('a', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ retrieve( @@ -89,10 +88,9 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete( - * 'adipisci', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const trialLink = await client.trialLinks.delete('a', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ delete( @@ -130,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'iusto', + * 'qui', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('minus', { + * await client.trialLinks.retrieveCohortArps('aut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'ut', + * 'quia', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index fb10bef..7311a1f 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'vpdeabzxzht' }, + * { name: 'scqwrdpszjlubxijb' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 958468a..e63adb9 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('perspiciatis'); + const responsePromise = client.accounts.disconnect('ad'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index 4395eaa..a50939d 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'cum', - auth_type: 'mobile_app', - cookies: 'quam', + auth_id: 'ducimus', + auth_type: 'email_password', + cookies: 'non', customProxy: { host: 'proxy.example.com', - password: 'E!4Iu({s$6X7S', + password: 'yGIZt0-z', port: 8080, username: 'qui', }, - email: 'mccullough.ursula@example.org', + email: 'frederique.streich@example.org', force_connect: false, - name: 'quia', - password: '13?1QAe', - proxyCountry: 'us', - user_agent: 'nam', - xbc: 'et', + name: 'qui', + password: '9"u?)jR|yb[CzOfx/G', + proxyCountry: 'uk', + user_agent: 'ad', + xbc: 'ullam', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 5d39f0e..4ef64e8 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('ut', { + const responsePromise = client.engagement.messages.getMessageBuyers('unde', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('ut', { + const response = await client.engagement.messages.getMessageBuyers('unde', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 3f72571..dc22aa4 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('temporibus', { + const responsePromise = client.media.vault.lists.media.add('culpa', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('temporibus', { + const response = await client.media.vault.lists.media.add('culpa', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('temporibus', { + const responsePromise = client.media.vault.lists.media.remove('culpa', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('temporibus', { + const response = await client.media.vault.lists.media.remove('culpa', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index e769f5c..14dcb2e 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'purchases', + type: 'all', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index a5ecaaf..bb28a8f 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('et', { + const responsePromise = client.posts.comments.create('itaque', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('et', { + const response = await client.posts.comments.create('itaque', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('itaque', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('et', { + const response = await client.posts.comments.list('itaque', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index e2edc67..fd74b68 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index b643af6..96d399d 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1c..6b1dc2f 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: true, + isForward: false, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 9ef38d4..d5beddd 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -65,7 +65,7 @@ describe('resource smartLinks', () => { client.smartLinks.list( { account_ids: 'acct_abc123,acct_def456', - filter: { tags: ['vdourbabcorxulddydttmbr'] }, + filter: { tags: ['lawhsevqwyimtpxkcagwqpiy'] }, limit: 50, meta_pixel_ids: '1,2', name: 'Instagram', @@ -91,7 +91,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('culpa'); + const responsePromise = client.smartLinks.listClicks('quam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -106,7 +106,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'culpa', + 'quam', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('nemo'); + const responsePromise = client.smartLinks.listConversions('labore'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -137,7 +137,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'nemo', + 'labore', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -155,7 +155,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('ab'); + const responsePromise = client.smartLinks.listFans('illum'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -170,7 +170,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'ab', + 'illum', { has_messages: true, limit: 100, @@ -187,7 +187,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('nobis'); + const responsePromise = client.smartLinks.listSpenders('ut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -202,7 +202,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'nobis', + 'ut', { limit: 50, minSpend: 1, @@ -215,7 +215,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('praesentium'); + const responsePromise = client.smartLinks.retrieveCohortArps('commodi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -230,7 +230,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'praesentium', + 'commodi', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -243,7 +243,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('quo'); + const responsePromise = client.smartLinks.retrieveStats('voluptas'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -258,7 +258,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'quo', + 'voluptas', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 785405b..1b1d157 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ry', tags: ['cjemwamcbtyr'] }, + filter: { search: 'ui', tags: ['jdcsf'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'njigsjwdljnxqrcj', tags: ['vbhnpixelrgucwsizwpddy'] }, + filter: { search: 'qqvwcxtaqau', tags: ['dklvxtjixlnqierqkkrtxv'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'iexiqorn', - tags: ['gxzdfmlureiljunfswc'], + include_smart_links: true, + search: 'jjdgnt', + tags: ['vzes'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'x', - tags: ['nkxovprx'], + search: 'litvgomlmzgcogmzxofmirx', + tags: ['k'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 5938058..46e853d 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('quos', { + const responsePromise = client.stories.highlights.addStory('qui', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('quos', { + const response = await client.stories.highlights.addStory('qui', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('quos', { + const responsePromise = client.stories.highlights.removeStory('qui', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('quos', { + const response = await client.stories.highlights.removeStory('qui', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 6bc26b3..c4451fd 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('tempora', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('rerum', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('dolores', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('rerum', { + const response = await client.trackingLinks.getCohortArps('dolores', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('in', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('in', { + const response = await client.trackingLinks.getStats('qui', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 4bacb3c..0398bc8 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('adipisci', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('a', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('adipisci', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('a', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('adipisci', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('a', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('adipisci', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('a', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('iusto', { + const responsePromise = client.trialLinks.listSubscribers('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('iusto', { + const response = await client.trialLinks.listSubscribers('qui', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,9 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('minus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -157,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('minus', { + const response = await client.trialLinks.retrieveCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('ut', { + const response = await client.trialLinks.retrieveStats('quia', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 60b1b80..b78004b 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vpdeabzxzht' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'scqwrdpszjlubxijb' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'vpdeabzxzht' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'scqwrdpszjlubxijb' }); }); // Mock server tests are disabled From 5a77418eb4f2058adb334944d241e7b91f3711c7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 02:12:31 +0000 Subject: [PATCH 56/59] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 4 ++- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 +-- src/resources/posts/comments.ts | 4 +-- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 16 +++++++----- src/resources/stories/highlights.ts | 4 +-- .../tracking-links/tracking-links.ts | 8 +++--- src/resources/trial-links/trial-links.ts | 10 +++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 20 +++++++------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 +-- .../media/vault/lists/media.test.ts | 8 +++--- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++--- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/posts/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 26 +++++++++---------- tests/api-resources/stored.test.ts | 16 ++++++------ .../api-resources/stories/highlights.test.ts | 8 +++--- .../tracking-links/tracking-links.test.ts | 18 ++++++------- .../trial-links/trial-links.test.ts | 22 +++++++++------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 107 insertions(+), 101 deletions(-) diff --git a/.stats.yml b/.stats.yml index 957fd85..5daaca5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-11891f5358d3244391c3e9b1797f402e242962ed931ae6dbeac9265d1d057ae5.yml -openapi_spec_hash: 58a5a24c26bf2ee28f4a654a0c8a4ea7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-dc4af76400591eade1cc1740973c24d9069d50b7d16619ec8cf6a633cf240888.yml +openapi_spec_hash: 935a3c6ddcb27902f5d0919b243f2c08 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index d646b3b..0859fc3 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,9 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('ad'); + * const response = await client.accounts.disconnect( + * 'dolores', + * ); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 8473f88..1b1447a 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'unde', + * 'laboriosam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index 1a710b3..aa4e8de 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'culpa', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'culpa', + * 'est', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index a28581a..b63ecbc 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -12,7 +12,7 @@ export class Comments extends APIResource { * @example * ```ts * const comment = await client.posts.comments.create( - * 'itaque', + * 'inventore', * { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', @@ -38,7 +38,7 @@ export class Comments extends APIResource { * @example * ```ts * const comments = await client.posts.comments.list( - * 'itaque', + * 'inventore', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb..a84ff07 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 668ff93..62da420 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('quam'); + * const response = await client.smartLinks.listClicks('est'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'labore', + * 'facilis', * ); * ``` */ @@ -111,7 +111,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('illum'); + * const response = await client.smartLinks.listFans( + * 'excepturi', + * ); * ``` */ listFans( @@ -127,7 +129,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listSpenders('ut'); + * const response = await client.smartLinks.listSpenders( + * 'velit', + * ); * ``` */ listSpenders( @@ -143,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('commodi'); + * await client.smartLinks.retrieveCohortArps('impedit'); * ``` */ retrieveCohortArps( @@ -165,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'voluptas', + * 'aut', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 651e8fb..a9c614a 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'qui', + * 'et', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('qui', { + * await client.stories.highlights.removeStory('et', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index e96b72f..298b3c2 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'inventore', + * 'doloribus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'inventore', + * 'doloribus', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('dolores', { + * await client.trackingLinks.getCohortArps('nemo', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'qui', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index ba89517..7cf24a1 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,7 +50,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('a', { + * const trialLink = await client.trialLinks.retrieve('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -88,7 +88,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('a', { + * const trialLink = await client.trialLinks.delete('et', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -128,7 +128,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'qui', + * 'quis', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +154,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('aut', { + * await client.trialLinks.retrieveCohortArps('soluta', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +179,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quia', + * 'quo', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index 7311a1f..d723034 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'scqwrdpszjlubxijb' }, + * { name: 'hnf' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index e63adb9..a2da246 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('ad'); + const responsePromise = client.accounts.disconnect('dolores'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index a50939d..cb999b0 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'ducimus', - auth_type: 'email_password', - cookies: 'non', + auth_id: 'laudantium', + auth_type: 'mobile_app', + cookies: 'repellat', customProxy: { host: 'proxy.example.com', - password: 'yGIZt0-z', + password: 'XQ*jN;<*M,3', port: 8080, - username: 'qui', + username: 'nisi', }, - email: 'frederique.streich@example.org', + email: 'stroman.ayana@example.org', force_connect: false, - name: 'qui', - password: '9"u?)jR|yb[CzOfx/G', + name: 'animi', + password: ',.(oCkj3', proxyCountry: 'uk', - user_agent: 'ad', - xbc: 'ullam', + user_agent: 'rerum', + xbc: 'aut', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/client-sessions.test.ts b/tests/api-resources/client-sessions.test.ts index c17a81d..229de46 100644 --- a/tests/api-resources/client-sessions.test.ts +++ b/tests/api-resources/client-sessions.test.ts @@ -27,7 +27,7 @@ describe('resource clientSessions', () => { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 4ef64e8..12dd668 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('unde', { + const responsePromise = client.engagement.messages.getMessageBuyers('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('unde', { + const response = await client.engagement.messages.getMessageBuyers('laboriosam', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index dc22aa4..1cb0c75 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('culpa', { + const responsePromise = client.media.vault.lists.media.add('est', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('culpa', { + const response = await client.media.vault.lists.media.add('est', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('culpa', { + const responsePromise = client.media.vault.lists.media.remove('est', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('culpa', { + const response = await client.media.vault.lists.media.remove('est', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index 14dcb2e..b0d9651 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'all', + type: 'tags', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index bb28a8f..c513642 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('itaque', { + const responsePromise = client.posts.comments.create('inventore', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('itaque', { + const response = await client.posts.comments.create('inventore', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('itaque', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('itaque', { + const response = await client.posts.comments.list('inventore', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399d..02883e1 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index 6b1dc2f..d13ad1c 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: false, + isForward: true, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index d5beddd..16e9544 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -65,7 +65,7 @@ describe('resource smartLinks', () => { client.smartLinks.list( { account_ids: 'acct_abc123,acct_def456', - filter: { tags: ['lawhsevqwyimtpxkcagwqpiy'] }, + filter: { tags: ['pdrbisgiu'] }, limit: 50, meta_pixel_ids: '1,2', name: 'Instagram', @@ -91,7 +91,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('quam'); + const responsePromise = client.smartLinks.listClicks('est'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -106,7 +106,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'quam', + 'est', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('labore'); + const responsePromise = client.smartLinks.listConversions('facilis'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -137,7 +137,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'labore', + 'facilis', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -155,7 +155,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('illum'); + const responsePromise = client.smartLinks.listFans('excepturi'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -170,7 +170,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'illum', + 'excepturi', { has_messages: true, limit: 100, @@ -187,7 +187,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('ut'); + const responsePromise = client.smartLinks.listSpenders('velit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -202,7 +202,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'ut', + 'velit', { limit: 50, minSpend: 1, @@ -215,7 +215,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('commodi'); + const responsePromise = client.smartLinks.retrieveCohortArps('impedit'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -230,7 +230,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'commodi', + 'impedit', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -243,7 +243,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('voluptas'); + const responsePromise = client.smartLinks.retrieveStats('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -258,7 +258,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'voluptas', + 'aut', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 1b1d157..25fc832 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ui', tags: ['jdcsf'] }, + filter: { search: 'hjmlukoilsudqdk', tags: ['euesdkcdslvjwquwdqoxiejj'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'qqvwcxtaqau', tags: ['dklvxtjixlnqierqkkrtxv'] }, + filter: { search: 'favgoguwsmgxlarpdueuh', tags: ['wpmzqbpmynutzvqlfn'] }, limit: 10, offset: 0, }, @@ -84,9 +84,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: true, - search: 'jjdgnt', - tags: ['vzes'], + include_smart_links: false, + search: 'pzycixvxvdepssatwvapbvq', + tags: ['ayeuo'], }, limit: 10, offset: 0, @@ -116,9 +116,9 @@ describe('resource stored', () => { 'acct_XXXXXXXXXXXXXXX', { filter: { - include_smart_links: false, - search: 'litvgomlmzgcogmzxofmirx', - tags: ['k'], + include_smart_links: true, + search: 'brfohsmvpuyrexloijlu', + tags: ['gesiqzfwgptyzvmcnu'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index 46e853d..fca45b0 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('qui', { + const responsePromise = client.stories.highlights.addStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('qui', { + const response = await client.stories.highlights.addStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('qui', { + const responsePromise = client.stories.highlights.removeStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('qui', { + const response = await client.stories.highlights.removeStory('et', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index c4451fd..938d955 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,14 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('dolores', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -111,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('dolores', { + const response = await client.trackingLinks.getCohortArps('nemo', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('qui', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('qui', { + const response = await client.trackingLinks.getStats('quo', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index 0398bc8..f8f3a3b 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('a', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('qui', { + const responsePromise = client.trialLinks.listSubscribers('quis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('qui', { + const response = await client.trialLinks.listSubscribers('quis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,9 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('soluta', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +157,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('aut', { + const response = await client.trialLinks.retrieveCohortArps('soluta', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +167,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +179,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('quia', { + const response = await client.trialLinks.retrieveStats('quo', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index b78004b..f412526 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'scqwrdpszjlubxijb' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hnf' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'scqwrdpszjlubxijb' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hnf' }); }); // Mock server tests are disabled From b25bee6f69bce712a4937386383ccec055309f39 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 15:12:34 +0000 Subject: [PATCH 57/59] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 4 +-- src/resources/engagement/messages/messages.ts | 2 +- src/resources/media/vault/lists/media.ts | 4 +-- src/resources/posts/comments.ts | 18 +++++-------- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 +++++----- src/resources/stories/highlights.ts | 4 +-- .../tracking-links/tracking-links.ts | 8 +++--- src/resources/trial-links/trial-links.ts | 20 +++++++------- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 22 ++++++++-------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 +-- .../media/vault/lists/media.test.ts | 8 +++--- tests/api-resources/posts/comments.test.ts | 8 +++--- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- tests/api-resources/smart-links.test.ts | 26 +++++++++---------- tests/api-resources/stored.test.ts | 12 ++++----- .../api-resources/stories/highlights.test.ts | 8 +++--- .../tracking-links/tracking-links.test.ts | 18 +++++++------ .../trial-links/trial-links.test.ts | 22 +++++++--------- .../user-lists/user-lists.test.ts | 4 +-- 27 files changed, 112 insertions(+), 118 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5daaca5..6423fd4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-dc4af76400591eade1cc1740973c24d9069d50b7d16619ec8cf6a633cf240888.yml -openapi_spec_hash: 935a3c6ddcb27902f5d0919b243f2c08 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2e785cbc06d9d1c87eed6cd9454f7810800127056430d27750adfe70d066da51.yml +openapi_spec_hash: 059bbd7be3e61566b2b574513cfc7657 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 0859fc3..97372da 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,9 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect( - * 'dolores', - * ); + * const response = await client.accounts.disconnect('ipsam'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index 1b1447a..f8001da 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -32,7 +32,7 @@ export class Messages extends APIResource { * ```ts * const response = * await client.engagement.messages.getMessageBuyers( - * 'laboriosam', + * 'facilis', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index aa4e8de..cdae008 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'est', + * 'accusamus', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'est', + * 'accusamus', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index b63ecbc..185f935 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,13 +11,10 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create( - * 'inventore', - * { - * account: 'acct_XXXXXXXXXXXXXXX', - * text: 'This is a comment.', - * }, - * ); + * const comment = await client.posts.comments.create('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * text: 'This is a comment.', + * }); * ``` */ create( @@ -37,10 +34,9 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list( - * 'inventore', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * const comments = await client.posts.comments.list('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ list(postID: string, params: CommentListParams, options?: RequestOptions): APIPromise { diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index e20f70d..09d6973 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 48 }, + * { period: 24 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index a84ff07..2b04cbb 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 6 }, + * { period: 12 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 62da420..9e4ec64 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('est'); + * const response = await client.smartLinks.listClicks('et'); * ``` */ listClicks( @@ -93,7 +93,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'facilis', + * 'distinctio', * ); * ``` */ @@ -111,9 +111,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans( - * 'excepturi', - * ); + * const response = await client.smartLinks.listFans('enim'); * ``` */ listFans( @@ -130,7 +128,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'velit', + * 'sunt', * ); * ``` */ @@ -147,7 +145,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('impedit'); + * await client.smartLinks.retrieveCohortArps('delectus'); * ``` */ retrieveCohortArps( @@ -169,7 +167,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'aut', + * 'eaque', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index a9c614a..96d12b7 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'et', + * 'nulla', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('et', { + * await client.stories.highlights.removeStory('nulla', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 298b3c2..3a8aa4a 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'doloribus', + * 'dolor', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'doloribus', + * 'dolor', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('nemo', { + * await client.trackingLinks.getCohortArps('repellendus', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'quo', + * 'fuga', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 7cf24a1..81a4c90 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -50,9 +50,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.retrieve('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.retrieve( + * 'laudantium', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ retrieve( @@ -88,9 +89,10 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * const trialLink = await client.trialLinks.delete('et', { - * account: 'acct_XXXXXXXXXXXXXXX', - * }); + * const trialLink = await client.trialLinks.delete( + * 'laudantium', + * { account: 'acct_XXXXXXXXXXXXXXX' }, + * ); * ``` */ delete( @@ -128,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'quis', + * 'optio', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -154,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('soluta', { + * await client.trialLinks.retrieveCohortArps('quia', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -179,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'quo', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d723034..d872059 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'hnf' }, + * { name: 'gvzasxdqyajx' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index a2da246..0bcd04f 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('dolores'); + const responsePromise = client.accounts.disconnect('ipsam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index cb999b0..c9e0be7 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'laudantium', - auth_type: 'mobile_app', - cookies: 'repellat', + auth_id: 'aspernatur', + auth_type: 'email_password', + cookies: 'nihil', customProxy: { host: 'proxy.example.com', - password: 'XQ*jN;<*M,3', + password: '%yZtRP+s3 { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'uk', + proxy_country: 'us', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 12dd668..0149988 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('laboriosam', { + const responsePromise = client.engagement.messages.getMessageBuyers('facilis', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('laboriosam', { + const response = await client.engagement.messages.getMessageBuyers('facilis', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 1cb0c75..8cac4fb 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('est', { + const responsePromise = client.media.vault.lists.media.add('accusamus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('est', { + const response = await client.media.vault.lists.media.add('accusamus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('est', { + const responsePromise = client.media.vault.lists.media.remove('accusamus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('est', { + const response = await client.media.vault.lists.media.remove('accusamus', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index c513642..a5ecaaf 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('inventore', { + const responsePromise = client.posts.comments.create('et', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('inventore', { + const response = await client.posts.comments.create('et', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('inventore', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('et', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('inventore', { + const response = await client.posts.comments.list('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index ad49ad2..9bf5999 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index fd74b68..e2edc67 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 48 }, + { period: 24 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 02883e1..96d399d 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 6 }, + { period: 12 }, ); }); }); diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 16e9544..339e754 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -65,7 +65,7 @@ describe('resource smartLinks', () => { client.smartLinks.list( { account_ids: 'acct_abc123,acct_def456', - filter: { tags: ['pdrbisgiu'] }, + filter: { tags: ['fyhkmbtqyiqotrdgeavmjg'] }, limit: 50, meta_pixel_ids: '1,2', name: 'Instagram', @@ -91,7 +91,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('est'); + const responsePromise = client.smartLinks.listClicks('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -106,7 +106,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'est', + 'et', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('facilis'); + const responsePromise = client.smartLinks.listConversions('distinctio'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -137,7 +137,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'facilis', + 'distinctio', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -155,7 +155,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('excepturi'); + const responsePromise = client.smartLinks.listFans('enim'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -170,7 +170,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'excepturi', + 'enim', { has_messages: true, limit: 100, @@ -187,7 +187,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('velit'); + const responsePromise = client.smartLinks.listSpenders('sunt'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -202,7 +202,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'velit', + 'sunt', { limit: 50, minSpend: 1, @@ -215,7 +215,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('impedit'); + const responsePromise = client.smartLinks.retrieveCohortArps('delectus'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -230,7 +230,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'impedit', + 'delectus', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -243,7 +243,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('aut'); + const responsePromise = client.smartLinks.retrieveStats('eaque'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -258,7 +258,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'aut', + 'eaque', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index 25fc832..adea911 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'hjmlukoilsudqdk', tags: ['euesdkcdslvjwquwdqoxiejj'] }, + filter: { search: 'xxqrtlswgnosvgdjzlpqgbwoy', tags: ['v'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'favgoguwsmgxlarpdueuh', tags: ['wpmzqbpmynutzvqlfn'] }, + filter: { search: 'ezbruukbcd', tags: ['tknvxvr'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'pzycixvxvdepssatwvapbvq', - tags: ['ayeuo'], + search: 'hqdqpftbcpbaymzqftzbwy', + tags: ['sbyvhwfzvnktjwpimh'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'brfohsmvpuyrexloijlu', - tags: ['gesiqzfwgptyzvmcnu'], + search: 'psxaxnnticerqa', + tags: ['zrxgwcngzjow'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index fca45b0..a4fd83d 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('et', { + const responsePromise = client.stories.highlights.addStory('nulla', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('et', { + const response = await client.stories.highlights.addStory('nulla', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('et', { + const responsePromise = client.stories.highlights.removeStory('nulla', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('et', { + const response = await client.stories.highlights.removeStory('nulla', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 938d955..1d3d23c 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,12 +92,14 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('doloribus', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('nemo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getCohortArps('repellendus', { + account: 'acct_XXXXXXXXXXXXXXX', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -109,7 +111,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('nemo', { + const response = await client.trackingLinks.getCohortArps('repellendus', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -119,7 +121,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -131,7 +133,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('quo', { + const response = await client.trackingLinks.getStats('fuga', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index f8f3a3b..ee7785e 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('laudantium', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('laudantium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('laudantium', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('laudantium', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('quis', { + const responsePromise = client.trialLinks.listSubscribers('optio', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('quis', { + const response = await client.trialLinks.listSubscribers('optio', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,9 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('soluta', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trialLinks.retrieveCohortArps('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -157,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('soluta', { + const response = await client.trialLinks.retrieveCohortArps('quia', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -167,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('quo', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -179,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('quo', { + const response = await client.trialLinks.retrieveStats('aut', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index f412526..8c401b9 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hnf' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gvzasxdqyajx' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +22,7 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'hnf' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gvzasxdqyajx' }); }); // Mock server tests are disabled From 980ff369e0ef08500ae478ded5a232da7f38b5ed Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 16:12:34 +0000 Subject: [PATCH 58/59] feat(api): api update --- .stats.yml | 4 +-- src/resources/accounts.ts | 2 +- src/resources/engagement/messages/messages.ts | 7 +++-- src/resources/media/vault/lists/media.ts | 4 +-- src/resources/posts/comments.ts | 4 +-- .../saved-for-later/messages/settings.ts | 2 +- .../saved-for-later/posts/settings.ts | 2 +- src/resources/smart-links.ts | 14 +++++----- src/resources/stories/highlights.ts | 4 +-- .../tracking-links/tracking-links.ts | 8 +++--- src/resources/trial-links/trial-links.ts | 10 +++---- src/resources/user-lists/user-lists.ts | 2 +- tests/api-resources/accounts.test.ts | 2 +- tests/api-resources/authenticate.test.ts | 24 ++++++++--------- tests/api-resources/client-sessions.test.ts | 2 +- .../engagement/messages/messages.test.ts | 4 +-- .../media/vault/lists/media.test.ts | 8 +++--- .../notifications/notifications.test.ts | 2 +- tests/api-resources/posts/comments.test.ts | 8 +++--- tests/api-resources/profiles.test.ts | 2 +- .../saved-for-later/messages/settings.test.ts | 4 +-- .../saved-for-later/posts/settings.test.ts | 4 +-- .../settings/welcome-message.test.ts | 2 +- tests/api-resources/smart-links.test.ts | 26 +++++++++---------- tests/api-resources/stored.test.ts | 12 ++++----- .../api-resources/stories/highlights.test.ts | 8 +++--- .../tracking-links/tracking-links.test.ts | 18 ++++++------- .../trial-links/trial-links.test.ts | 20 +++++++------- .../user-lists/user-lists.test.ts | 8 ++++-- 29 files changed, 110 insertions(+), 107 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6423fd4..085ef93 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2e785cbc06d9d1c87eed6cd9454f7810800127056430d27750adfe70d066da51.yml -openapi_spec_hash: 059bbd7be3e61566b2b574513cfc7657 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-74609107d9bbe47ca001712873c4449f6657c5539e4e83c398f672b7d4439749.yml +openapi_spec_hash: 0ced1a38864fe0442a4089920de41e5f config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index 97372da..6bb6558 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -29,7 +29,7 @@ export class Accounts extends APIResource { * * @example * ```ts - * const response = await client.accounts.disconnect('ipsam'); + * const response = await client.accounts.disconnect('aut'); * ``` */ disconnect(id: string, options?: RequestOptions): APIPromise { diff --git a/src/resources/engagement/messages/messages.ts b/src/resources/engagement/messages/messages.ts index f8001da..7e83f2a 100644 --- a/src/resources/engagement/messages/messages.ts +++ b/src/resources/engagement/messages/messages.ts @@ -31,10 +31,9 @@ export class Messages extends APIResource { * @example * ```ts * const response = - * await client.engagement.messages.getMessageBuyers( - * 'facilis', - * { account: 'acct_XXXXXXXXXXXXXXX' }, - * ); + * await client.engagement.messages.getMessageBuyers('et', { + * account: 'acct_XXXXXXXXXXXXXXX', + * }); * ``` */ getMessageBuyers( diff --git a/src/resources/media/vault/lists/media.ts b/src/resources/media/vault/lists/media.ts index cdae008..498021b 100644 --- a/src/resources/media/vault/lists/media.ts +++ b/src/resources/media/vault/lists/media.ts @@ -12,7 +12,7 @@ export class Media extends APIResource { * @example * ```ts * const response = await client.media.vault.lists.media.add( - * 'accusamus', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` @@ -28,7 +28,7 @@ export class Media extends APIResource { * @example * ```ts * const media = await client.media.vault.lists.media.remove( - * 'accusamus', + * 'aut', * { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'] }, * ); * ``` diff --git a/src/resources/posts/comments.ts b/src/resources/posts/comments.ts index 185f935..ca82093 100644 --- a/src/resources/posts/comments.ts +++ b/src/resources/posts/comments.ts @@ -11,7 +11,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comment = await client.posts.comments.create('et', { + * const comment = await client.posts.comments.create('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * text: 'This is a comment.', * }); @@ -34,7 +34,7 @@ export class Comments extends APIResource { * * @example * ```ts - * const comments = await client.posts.comments.list('et', { + * const comments = await client.posts.comments.list('ut', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` diff --git a/src/resources/saved-for-later/messages/settings.ts b/src/resources/saved-for-later/messages/settings.ts index 09d6973..a976781 100644 --- a/src/resources/saved-for-later/messages/settings.ts +++ b/src/resources/saved-for-later/messages/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( * 'acct_XXXXXXXXXXXXXXX', - * { period: 24 }, + * { period: 6 }, * ); * ``` */ diff --git a/src/resources/saved-for-later/posts/settings.ts b/src/resources/saved-for-later/posts/settings.ts index 2b04cbb..c9a094c 100644 --- a/src/resources/saved-for-later/posts/settings.ts +++ b/src/resources/saved-for-later/posts/settings.ts @@ -50,7 +50,7 @@ export class Settings extends APIResource { * const response = * await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( * 'acct_XXXXXXXXXXXXXXX', - * { period: 12 }, + * { period: 48 }, * ); * ``` */ diff --git a/src/resources/smart-links.ts b/src/resources/smart-links.ts index 9e4ec64..3070890 100644 --- a/src/resources/smart-links.ts +++ b/src/resources/smart-links.ts @@ -75,7 +75,9 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listClicks('et'); + * const response = await client.smartLinks.listClicks( + * 'praesentium', + * ); * ``` */ listClicks( @@ -93,7 +95,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listConversions( - * 'distinctio', + * 'quidem', * ); * ``` */ @@ -111,7 +113,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * const response = await client.smartLinks.listFans('enim'); + * const response = await client.smartLinks.listFans('et'); * ``` */ listFans( @@ -128,7 +130,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.listSpenders( - * 'sunt', + * 'assumenda', * ); * ``` */ @@ -145,7 +147,7 @@ export class SmartLinks extends APIResource { * * @example * ```ts - * await client.smartLinks.retrieveCohortArps('delectus'); + * await client.smartLinks.retrieveCohortArps('autem'); * ``` */ retrieveCohortArps( @@ -167,7 +169,7 @@ export class SmartLinks extends APIResource { * @example * ```ts * const response = await client.smartLinks.retrieveStats( - * 'eaque', + * 'ullam', * ); * ``` */ diff --git a/src/resources/stories/highlights.ts b/src/resources/stories/highlights.ts index 96d12b7..c556977 100644 --- a/src/resources/stories/highlights.ts +++ b/src/resources/stories/highlights.ts @@ -121,7 +121,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = await client.stories.highlights.addStory( - * 'nulla', + * 'sed', * { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, @@ -148,7 +148,7 @@ export class Highlights extends APIResource { * @example * ```ts * const response = - * await client.stories.highlights.removeStory('nulla', { + * await client.stories.highlights.removeStory('sed', { * account: 'acct_XXXXXXXXXXXXXXX', * highlight_id: 1234567890, * }); diff --git a/src/resources/tracking-links/tracking-links.ts b/src/resources/tracking-links/tracking-links.ts index 3a8aa4a..ade5218 100644 --- a/src/resources/tracking-links/tracking-links.ts +++ b/src/resources/tracking-links/tracking-links.ts @@ -47,7 +47,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.retrieve( - * 'dolor', + * 'dignissimos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -85,7 +85,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const trackingLink = await client.trackingLinks.delete( - * 'dolor', + * 'dignissimos', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -104,7 +104,7 @@ export class TrackingLinks extends APIResource { * * @example * ```ts - * await client.trackingLinks.getCohortArps('repellendus', { + * await client.trackingLinks.getCohortArps('optio', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -134,7 +134,7 @@ export class TrackingLinks extends APIResource { * @example * ```ts * const response = await client.trackingLinks.getStats( - * 'fuga', + * 'nesciunt', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/trial-links/trial-links.ts b/src/resources/trial-links/trial-links.ts index 81a4c90..03fd466 100644 --- a/src/resources/trial-links/trial-links.ts +++ b/src/resources/trial-links/trial-links.ts @@ -51,7 +51,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.retrieve( - * 'laudantium', + * 'exercitationem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -90,7 +90,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const trialLink = await client.trialLinks.delete( - * 'laudantium', + * 'exercitationem', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` @@ -130,7 +130,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.listSubscribers( - * 'optio', + * 'deleniti', * { * account: 'acct_XXXXXXXXXXXXXXX', * limit: 10, @@ -156,7 +156,7 @@ export class TrialLinks extends APIResource { * * @example * ```ts - * await client.trialLinks.retrieveCohortArps('quia', { + * await client.trialLinks.retrieveCohortArps('nisi', { * account: 'acct_XXXXXXXXXXXXXXX', * }); * ``` @@ -181,7 +181,7 @@ export class TrialLinks extends APIResource { * @example * ```ts * const response = await client.trialLinks.retrieveStats( - * 'aut', + * 'ipsam', * { account: 'acct_XXXXXXXXXXXXXXX' }, * ); * ``` diff --git a/src/resources/user-lists/user-lists.ts b/src/resources/user-lists/user-lists.ts index d872059..907b2e9 100644 --- a/src/resources/user-lists/user-lists.ts +++ b/src/resources/user-lists/user-lists.ts @@ -31,7 +31,7 @@ export class UserLists extends APIResource { * ```ts * const userList = await client.userLists.create( * 'acct_XXXXXXXXXXXXXXX', - * { name: 'gvzasxdqyajx' }, + * { name: 'xoefjwuukvndqnoilzrytz' }, * ); * ``` */ diff --git a/tests/api-resources/accounts.test.ts b/tests/api-resources/accounts.test.ts index 0bcd04f..5756d5a 100644 --- a/tests/api-resources/accounts.test.ts +++ b/tests/api-resources/accounts.test.ts @@ -37,7 +37,7 @@ describe('resource accounts', () => { // Mock server tests are disabled test.skip('disconnect', async () => { - const responsePromise = client.accounts.disconnect('ipsam'); + const responsePromise = client.accounts.disconnect('aut'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; diff --git a/tests/api-resources/authenticate.test.ts b/tests/api-resources/authenticate.test.ts index c9e0be7..d85a454 100644 --- a/tests/api-resources/authenticate.test.ts +++ b/tests/api-resources/authenticate.test.ts @@ -62,22 +62,22 @@ describe('resource authenticate', () => { await expect( client.authenticate.start( { - auth_id: 'aspernatur', - auth_type: 'email_password', - cookies: 'nihil', + auth_id: 'debitis', + auth_type: 'raw_data', + cookies: 'ut', customProxy: { host: 'proxy.example.com', - password: '%yZtRP+s3>0 { const response = await client.clientSessions.create({ display_name: 'STRLCxGLVC Agency / Model: Stella', client_reference_id: 'my_crm_model_12345', - proxy_country: 'us', + proxy_country: 'uk', }); }); }); diff --git a/tests/api-resources/engagement/messages/messages.test.ts b/tests/api-resources/engagement/messages/messages.test.ts index 0149988..32dab22 100644 --- a/tests/api-resources/engagement/messages/messages.test.ts +++ b/tests/api-resources/engagement/messages/messages.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: only required params', async () => { - const responsePromise = client.engagement.messages.getMessageBuyers('facilis', { + const responsePromise = client.engagement.messages.getMessageBuyers('et', { account: 'acct_XXXXXXXXXXXXXXX', }); const rawResponse = await responsePromise.asResponse(); @@ -24,7 +24,7 @@ describe('resource messages', () => { // Mock server tests are disabled test.skip('getMessageBuyers: required and optional params', async () => { - const response = await client.engagement.messages.getMessageBuyers('facilis', { + const response = await client.engagement.messages.getMessageBuyers('et', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, marker: 0, diff --git a/tests/api-resources/media/vault/lists/media.test.ts b/tests/api-resources/media/vault/lists/media.test.ts index 8cac4fb..7b876bd 100644 --- a/tests/api-resources/media/vault/lists/media.test.ts +++ b/tests/api-resources/media/vault/lists/media.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource media', () => { // Mock server tests are disabled test.skip('add: only required params', async () => { - const responsePromise = client.media.vault.lists.media.add('accusamus', { + const responsePromise = client.media.vault.lists.media.add('aut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -25,7 +25,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('add: required and optional params', async () => { - const response = await client.media.vault.lists.media.add('accusamus', { + const response = await client.media.vault.lists.media.add('aut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -33,7 +33,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: only required params', async () => { - const responsePromise = client.media.vault.lists.media.remove('accusamus', { + const responsePromise = client.media.vault.lists.media.remove('aut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); @@ -48,7 +48,7 @@ describe('resource media', () => { // Mock server tests are disabled test.skip('remove: required and optional params', async () => { - const response = await client.media.vault.lists.media.remove('accusamus', { + const response = await client.media.vault.lists.media.remove('aut', { account: 'acct_XXXXXXXXXXXXXXX', mediaIds: ['string'], }); diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b0d9651..e56040c 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -30,7 +30,7 @@ describe('resource notifications', () => { from_id: 123, limit: 10, skip_users: 'all', - type: 'tags', + type: 'likes', }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/posts/comments.test.ts b/tests/api-resources/posts/comments.test.ts index a5ecaaf..548a48c 100644 --- a/tests/api-resources/posts/comments.test.ts +++ b/tests/api-resources/posts/comments.test.ts @@ -10,7 +10,7 @@ const client = new OnlyFansAPI({ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.posts.comments.create('et', { + const responsePromise = client.posts.comments.create('ut', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', }); @@ -25,7 +25,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.posts.comments.create('et', { + const response = await client.posts.comments.create('ut', { account: 'acct_XXXXXXXXXXXXXXX', text: 'This is a comment.', answerTo: 123, @@ -35,7 +35,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: only required params', async () => { - const responsePromise = client.posts.comments.list('et', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.posts.comments.list('ut', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -47,7 +47,7 @@ describe('resource comments', () => { // Mock server tests are disabled test.skip('list: required and optional params', async () => { - const response = await client.posts.comments.list('et', { + const response = await client.posts.comments.list('ut', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts index 9bf5999..ad49ad2 100644 --- a/tests/api-resources/profiles.test.ts +++ b/tests/api-resources/profiles.test.ts @@ -24,7 +24,7 @@ describe('resource profiles', () => { test.skip('retrieve: request options and params are passed correctly', async () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( - client.profiles.retrieve('madison420ivy', { fresh: true }, { path: '/_stainless_unknown_path' }), + client.profiles.retrieve('madison420ivy', { fresh: false }, { path: '/_stainless_unknown_path' }), ).rejects.toThrow(OnlyFansAPI.NotFoundError); }); }); diff --git a/tests/api-resources/saved-for-later/messages/settings.test.ts b/tests/api-resources/saved-for-later/messages/settings.test.ts index e2edc67..4ec8acc 100644 --- a/tests/api-resources/saved-for-later/messages/settings.test.ts +++ b/tests/api-resources/saved-for-later/messages/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: only required params', async () => { const responsePromise = client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 6 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticMessaging: required and optional params', async () => { const response = await client.savedForLater.messages.settings.enableOrUpdateAutomaticMessaging( 'acct_XXXXXXXXXXXXXXX', - { period: 24 }, + { period: 6 }, ); }); }); diff --git a/tests/api-resources/saved-for-later/posts/settings.test.ts b/tests/api-resources/saved-for-later/posts/settings.test.ts index 96d399d..b643af6 100644 --- a/tests/api-resources/saved-for-later/posts/settings.test.ts +++ b/tests/api-resources/saved-for-later/posts/settings.test.ts @@ -37,7 +37,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: only required params', async () => { const responsePromise = client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource settings', () => { test.skip('enableOrUpdateAutomaticPosting: required and optional params', async () => { const response = await client.savedForLater.posts.settings.enableOrUpdateAutomaticPosting( 'acct_XXXXXXXXXXXXXXX', - { period: 12 }, + { period: 48 }, ); }); }); diff --git a/tests/api-resources/settings/welcome-message.test.ts b/tests/api-resources/settings/welcome-message.test.ts index d13ad1c..6b1dc2f 100644 --- a/tests/api-resources/settings/welcome-message.test.ts +++ b/tests/api-resources/settings/welcome-message.test.ts @@ -39,7 +39,7 @@ describe('resource welcomeMessage', () => { client.settings.welcomeMessage.update( 'acct_XXXXXXXXXXXXXXX', { - isForward: true, + isForward: false, lockedText: false, mediaFiles: ['ofapi_media_abc123', 1234567890], previews: ['ofapi_media_abc123', 1234567890], diff --git a/tests/api-resources/smart-links.test.ts b/tests/api-resources/smart-links.test.ts index 339e754..c65bf7b 100644 --- a/tests/api-resources/smart-links.test.ts +++ b/tests/api-resources/smart-links.test.ts @@ -65,7 +65,7 @@ describe('resource smartLinks', () => { client.smartLinks.list( { account_ids: 'acct_abc123,acct_def456', - filter: { tags: ['fyhkmbtqyiqotrdgeavmjg'] }, + filter: { tags: ['lyxqcmnxobiryxfen'] }, limit: 50, meta_pixel_ids: '1,2', name: 'Instagram', @@ -91,7 +91,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listClicks', async () => { - const responsePromise = client.smartLinks.listClicks('et'); + const responsePromise = client.smartLinks.listClicks('praesentium'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -106,7 +106,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listClicks( - 'et', + 'praesentium', { date_end: '2026-01-07T23:59:59Z', date_start: '2026-01-01T00:00:00Z', @@ -122,7 +122,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listConversions', async () => { - const responsePromise = client.smartLinks.listConversions('distinctio'); + const responsePromise = client.smartLinks.listConversions('quidem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -137,7 +137,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listConversions( - 'distinctio', + 'quidem', { conversion_type: 'new_transaction', date_end: '2026-01-07T23:59:59Z', @@ -155,7 +155,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listFans', async () => { - const responsePromise = client.smartLinks.listFans('enim'); + const responsePromise = client.smartLinks.listFans('et'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -170,7 +170,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listFans( - 'enim', + 'et', { has_messages: true, limit: 100, @@ -187,7 +187,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('listSpenders', async () => { - const responsePromise = client.smartLinks.listSpenders('sunt'); + const responsePromise = client.smartLinks.listSpenders('assumenda'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -202,7 +202,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.listSpenders( - 'sunt', + 'assumenda', { limit: 50, minSpend: 1, @@ -215,7 +215,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps', async () => { - const responsePromise = client.smartLinks.retrieveCohortArps('delectus'); + const responsePromise = client.smartLinks.retrieveCohortArps('autem'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -230,7 +230,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveCohortArps( - 'delectus', + 'autem', { acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -243,7 +243,7 @@ describe('resource smartLinks', () => { // Mock server tests are disabled test.skip('retrieveStats', async () => { - const responsePromise = client.smartLinks.retrieveStats('eaque'); + const responsePromise = client.smartLinks.retrieveStats('ullam'); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -258,7 +258,7 @@ describe('resource smartLinks', () => { // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error await expect( client.smartLinks.retrieveStats( - 'eaque', + 'ullam', { date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z' }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/stored.test.ts b/tests/api-resources/stored.test.ts index adea911..663ca80 100644 --- a/tests/api-resources/stored.test.ts +++ b/tests/api-resources/stored.test.ts @@ -27,7 +27,7 @@ describe('resource stored', () => { client.stored.listSharedTrackingLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'xxqrtlswgnosvgdjzlpqgbwoy', tags: ['v'] }, + filter: { search: 'wmpjnvsokrtmm', tags: ['db'] }, limit: 10, offset: 0, }, @@ -55,7 +55,7 @@ describe('resource stored', () => { client.stored.listSharedTrialLinks( 'acct_XXXXXXXXXXXXXXX', { - filter: { search: 'ezbruukbcd', tags: ['tknvxvr'] }, + filter: { search: 'qjvowkkefosyvpazi', tags: ['ysa'] }, limit: 10, offset: 0, }, @@ -85,8 +85,8 @@ describe('resource stored', () => { { filter: { include_smart_links: false, - search: 'hqdqpftbcpbaymzqftzbwy', - tags: ['sbyvhwfzvnktjwpimh'], + search: 'lzamwfuhxgsqjmaarx', + tags: ['xnxlnbqdcuqpdbwkf'], }, limit: 10, offset: 0, @@ -117,8 +117,8 @@ describe('resource stored', () => { { filter: { include_smart_links: true, - search: 'psxaxnnticerqa', - tags: ['zrxgwcngzjow'], + search: 'tfcfixxskknngoiy', + tags: ['sdvhdjxxzhevudlaginokmjpe'], }, limit: 10, offset: 0, diff --git a/tests/api-resources/stories/highlights.test.ts b/tests/api-resources/stories/highlights.test.ts index a4fd83d..990b3fc 100644 --- a/tests/api-resources/stories/highlights.test.ts +++ b/tests/api-resources/stories/highlights.test.ts @@ -124,7 +124,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: only required params', async () => { - const responsePromise = client.stories.highlights.addStory('nulla', { + const responsePromise = client.stories.highlights.addStory('sed', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -140,7 +140,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('addStory: required and optional params', async () => { - const response = await client.stories.highlights.addStory('nulla', { + const response = await client.stories.highlights.addStory('sed', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, story_id: 2345678901, @@ -149,7 +149,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: only required params', async () => { - const responsePromise = client.stories.highlights.removeStory('nulla', { + const responsePromise = client.stories.highlights.removeStory('sed', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); @@ -164,7 +164,7 @@ describe('resource highlights', () => { // Mock server tests are disabled test.skip('removeStory: required and optional params', async () => { - const response = await client.stories.highlights.removeStory('nulla', { + const response = await client.stories.highlights.removeStory('sed', { account: 'acct_XXXXXXXXXXXXXXX', highlight_id: 1234567890, }); diff --git a/tests/api-resources/tracking-links/tracking-links.test.ts b/tests/api-resources/tracking-links/tracking-links.test.ts index 1d3d23c..e0b1a8b 100644 --- a/tests/api-resources/tracking-links/tracking-links.test.ts +++ b/tests/api-resources/tracking-links/tracking-links.test.ts @@ -30,7 +30,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trackingLinks.retrieve('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.retrieve('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -42,7 +42,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trackingLinks.retrieve('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.retrieve('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -80,7 +80,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trackingLinks.delete('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.delete('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -92,14 +92,12 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trackingLinks.delete('dolor', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trackingLinks.delete('dignissimos', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled test.skip('getCohortArps: only required params', async () => { - const responsePromise = client.trackingLinks.getCohortArps('repellendus', { - account: 'acct_XXXXXXXXXXXXXXX', - }); + const responsePromise = client.trackingLinks.getCohortArps('optio', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -111,7 +109,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getCohortArps: required and optional params', async () => { - const response = await client.trackingLinks.getCohortArps('repellendus', { + const response = await client.trackingLinks.getCohortArps('optio', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -121,7 +119,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: only required params', async () => { - const responsePromise = client.trackingLinks.getStats('fuga', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trackingLinks.getStats('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -133,7 +131,7 @@ describe('resource trackingLinks', () => { // Mock server tests are disabled test.skip('getStats: required and optional params', async () => { - const response = await client.trackingLinks.getStats('fuga', { + const response = await client.trackingLinks.getStats('nesciunt', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/trial-links/trial-links.test.ts b/tests/api-resources/trial-links/trial-links.test.ts index ee7785e..84ec524 100644 --- a/tests/api-resources/trial-links/trial-links.test.ts +++ b/tests/api-resources/trial-links/trial-links.test.ts @@ -37,7 +37,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: only required params', async () => { - const responsePromise = client.trialLinks.retrieve('laudantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieve('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -49,7 +49,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieve: required and optional params', async () => { - const response = await client.trialLinks.retrieve('laudantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.retrieve('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -77,7 +77,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: only required params', async () => { - const responsePromise = client.trialLinks.delete('laudantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.delete('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -89,7 +89,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('delete: required and optional params', async () => { - const response = await client.trialLinks.delete('laudantium', { account: 'acct_XXXXXXXXXXXXXXX' }); + const response = await client.trialLinks.delete('exercitationem', { account: 'acct_XXXXXXXXXXXXXXX' }); }); // Mock server tests are disabled @@ -118,7 +118,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: only required params', async () => { - const responsePromise = client.trialLinks.listSubscribers('optio', { + const responsePromise = client.trialLinks.listSubscribers('deleniti', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -134,7 +134,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('listSubscribers: required and optional params', async () => { - const response = await client.trialLinks.listSubscribers('optio', { + const response = await client.trialLinks.listSubscribers('deleniti', { account: 'acct_XXXXXXXXXXXXXXX', limit: 10, offset: 0, @@ -143,7 +143,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: only required params', async () => { - const responsePromise = client.trialLinks.retrieveCohortArps('quia', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveCohortArps('nisi', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -155,7 +155,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveCohortArps: required and optional params', async () => { - const response = await client.trialLinks.retrieveCohortArps('quia', { + const response = await client.trialLinks.retrieveCohortArps('nisi', { account: 'acct_XXXXXXXXXXXXXXX', acquisition_end: '2026-01-31T23:59:59Z', acquisition_start: '2026-01-01T00:00:00Z', @@ -165,7 +165,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: only required params', async () => { - const responsePromise = client.trialLinks.retrieveStats('aut', { account: 'acct_XXXXXXXXXXXXXXX' }); + const responsePromise = client.trialLinks.retrieveStats('ipsam', { account: 'acct_XXXXXXXXXXXXXXX' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -177,7 +177,7 @@ describe('resource trialLinks', () => { // Mock server tests are disabled test.skip('retrieveStats: required and optional params', async () => { - const response = await client.trialLinks.retrieveStats('aut', { + const response = await client.trialLinks.retrieveStats('ipsam', { account: 'acct_XXXXXXXXXXXXXXX', date_end: '2026-01-31T23:59:59Z', date_start: '2026-01-01T00:00:00Z', diff --git a/tests/api-resources/user-lists/user-lists.test.ts b/tests/api-resources/user-lists/user-lists.test.ts index 8c401b9..432e27a 100644 --- a/tests/api-resources/user-lists/user-lists.test.ts +++ b/tests/api-resources/user-lists/user-lists.test.ts @@ -10,7 +10,9 @@ const client = new OnlyFansAPI({ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: only required params', async () => { - const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gvzasxdqyajx' }); + const responsePromise = client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'xoefjwuukvndqnoilzrytz', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +24,9 @@ describe('resource userLists', () => { // Mock server tests are disabled test.skip('create: required and optional params', async () => { - const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { name: 'gvzasxdqyajx' }); + const response = await client.userLists.create('acct_XXXXXXXXXXXXXXX', { + name: 'xoefjwuukvndqnoilzrytz', + }); }); // Mock server tests are disabled From 55e3eddab5a9e61db52c80949612171ef49c6958 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 14 Jun 2026 16:13:13 +0000 Subject: [PATCH 59/59] release: 0.3.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 58 +++++++++++++++++++++++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 61 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2be9c43..0ee8c01 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.0" + ".": "0.3.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index fbadecd..c2e655c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,63 @@ # Changelog +## 0.3.0 (2026-06-14) + +Full Changelog: [v0.2.0...v0.3.0](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/compare/v0.2.0...v0.3.0) + +### Features + +* **api:** api update ([980ff36](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/980ff369e0ef08500ae478ded5a232da7f38b5ed)) +* **api:** api update ([b25bee6](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/b25bee6f69bce712a4937386383ccec055309f39)) +* **api:** api update ([5a77418](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/5a77418eb4f2058adb334944d241e7b91f3711c7)) +* **api:** api update ([4a111d4](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4a111d4f097391fdc6dc920ba1606c0d8621708a)) +* **api:** api update ([a43dc12](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a43dc1250b1a5933fa4af5a965447b93fc14e793)) +* **api:** api update ([f0b9fb8](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f0b9fb8ad5624c01e220df4381cc37a1213a1692)) +* **api:** api update ([ca21354](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ca2135486d6ca505afe5c49142f29adc7e227fa3)) +* **api:** api update ([01c6418](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/01c6418872a4dc0595e42f781d03386a82bff9be)) +* **api:** api update ([057180b](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/057180b905228cbb29c753be8ecac5683c600dd0)) +* **api:** api update ([a48a7e2](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a48a7e23be200f80b19c72e4b2c82f974cec1117)) +* **api:** api update ([f9977f2](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/f9977f213c80713606e9cfc600e15c7383e4644f)) +* **api:** api update ([aee1709](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/aee1709a9d39bd78be1db9aaaf0e3a2497a45f83)) +* **api:** api update ([66e39a4](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/66e39a42bb0d0c4bb70d0450f0cbff98cc45fe5c)) +* **api:** api update ([9ca88c4](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/9ca88c44a83eb4ab893c19c433044176fcc479d1)) +* **api:** api update ([59cc52a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/59cc52af2ecf36763f5d1f06c7bba9a55519141e)) +* **api:** api update ([bc7b763](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/bc7b763675ba43a49f8cab78a30255866c35e4b2)) +* **api:** api update ([710d78e](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/710d78e95405788e056f3a338a2d8fd772a26eee)) +* **api:** api update ([3bdb33f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/3bdb33f46ecd9a661a99ffbe1eeb4ce7ddfb57cb)) +* **api:** api update ([0d0c1dc](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/0d0c1dcf0720c6f4ef56779a1c4e6f2fad1a33c3)) +* **api:** api update ([8d3c93c](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8d3c93c186cb7a11fd84226957137a7505e045d7)) +* **api:** api update ([0017f6f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/0017f6f209548fe6a8ead615b86b913a6df7baf1)) +* **api:** api update ([1f119f5](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/1f119f566c1f540f8a466d371fb6956ceecce30a)) +* **api:** api update ([a79343d](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a79343d9a35f5a31e3d29320e1588e1d3c529f10)) +* **api:** api update ([8ebf680](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8ebf680384a856aed45875ae4453bb594d8316c6)) +* **api:** api update ([8b449c4](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/8b449c44c869ab90ada7acc26123d58bfc083f1f)) +* **api:** api update ([4b821d9](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4b821d974a38d50ae58321f62a83cd6c62998bb5)) +* **api:** api update ([3dbb7ca](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/3dbb7ca5c9b27baa4a7be982f69394a683db7090)) +* **api:** api update ([4019fcb](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4019fcbe6b6fdcc117c6b8dabc174ab166498520)) +* **api:** api update ([ebdc5d4](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ebdc5d46ba1bec74cc573fafff2d20ac4849db76)) +* **api:** api update ([1de2a95](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/1de2a952889d464577df810a8da0d7af3bbc1c7c)) +* **api:** api update ([b5ac8cc](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/b5ac8ccaa35aab1bfd6c8d391a9cb42302a4849a)) +* **api:** api update ([882ec77](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/882ec779a553bf8f0d1db0ca35ef2609c5a8078c)) +* **api:** api update ([4eec03f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4eec03ff386d8c64bd83285865c82bb061bf70a6)) +* **api:** api update ([3df5007](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/3df5007c69007088fc11a9aa01fb31088d9b5206)) +* **api:** api update ([3d8f2c4](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/3d8f2c4ca4509051e645536e656d82dadc9a20f2)) +* **api:** api update ([ac2d398](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ac2d39857ba083470553fab82c27f940926081b6)) +* **api:** api update ([5ffb97d](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/5ffb97d9f3802d47f115a57bee40f3581801a3cd)) +* **api:** api update ([c2bc00b](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/c2bc00b282aca8daa45b24e6f4dc0fe66a606af4)) +* **api:** api update ([864ab2a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/864ab2a56a9233228eb3053c0126794e1ae58182)) +* **api:** api update ([21aaa90](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/21aaa9051c98389cd43e3ed577b1a55dc90c1cdd)) +* **api:** api update ([a514bd1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/a514bd1af8d12749bf37af858f70087126d6efbf)) +* **api:** api update ([83acb2e](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/83acb2edc04277e8494e469cd596cec1faa4ed81)) +* **api:** api update ([ad300ac](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ad300ac3fb405cebd716bdd0e28d40b419ca6012)) +* **api:** api update ([3974622](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/39746225a5043e7b0861eda2ef1f491f6407da3a)) +* **api:** api update ([4dc96ad](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/4dc96addfdd7e241dcfcb967cd4c237ad417b85a)) +* **api:** api update ([2ba0e5f](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2ba0e5f5ee52365b833d6904268201f398aaa001)) +* **api:** api update ([1312108](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/131210835bbd489c99ed6056302e0e1c30b0de12)) +* **api:** api update ([ff87eb3](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/ff87eb31769d1fa7de42185fd8089f543809a6b5)) +* **api:** api update ([efe94c1](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/efe94c163c71dbf361316438c01dff00fb2d87d8)) +* **api:** api update ([2894f2a](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/2894f2a7ecb37a33faf9f9e7b128c14e9bb0c518)) +* **api:** api update ([7466589](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/commit/74665892091c8009dc04edf23fea6acb36eda70d)) + ## 0.2.0 (2026-05-25) Full Changelog: [v0.1.1...v0.2.0](https://github.com/onlyfansapi/onlyfansapi-typescript-sdk/compare/v0.1.1...v0.2.0) diff --git a/package.json b/package.json index 36a7c75..86ff194 100644 --- a/package.json +++ b/package.json @@ -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 ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index bade2ff..88f4d40 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.2.0'; // x-release-please-version +export const VERSION = '0.3.0'; // x-release-please-version